CN101895427B - Stream-based virtual local area network processing method and system - Google Patents

Stream-based virtual local area network processing method and system Download PDF

Info

Publication number
CN101895427B
CN101895427B CN201010235513.2A CN201010235513A CN101895427B CN 101895427 B CN101895427 B CN 101895427B CN 201010235513 A CN201010235513 A CN 201010235513A CN 101895427 B CN101895427 B CN 101895427B
Authority
CN
China
Prior art keywords
vlan
processing
data flow
stream
data stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010235513.2A
Other languages
Chinese (zh)
Other versions
CN101895427A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010235513.2A priority Critical patent/CN101895427B/en
Priority to PCT/CN2010/077931 priority patent/WO2012009893A1/en
Publication of CN101895427A publication Critical patent/CN101895427A/en
Application granted granted Critical
Publication of CN101895427B publication Critical patent/CN101895427B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/4666Operational details on the addition or the stripping of a tag in a frame, e.g. at a provider edge node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags
    • H04L12/4654Details on frame tagging wherein a single frame includes a plurality of VLAN tags wherein a VLAN tag represents a customer VLAN, e.g. C-Tag
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags
    • H04L12/4658Details on frame tagging wherein a single frame includes a plurality of VLAN tags wherein a VLAN tag represents a service provider backbone VLAN, e.g. B-Tag, S-Tag

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a stream-based virtual local area network processing method and a stream-based virtual local area network processing system. The method comprises the following steps of: performing VLAN (virtual local area network) processing on an uplink data stream and performing VLAN processing on a downlink data stream. The step of performing VLAN processing on the uplink data stream comprises the following steps of: performing ditag standardization on the data stream at an access port; performing user port uplink processing on the data stream, namely establishing a stream identifier for the data stream to be processed, setting a number for a virtual port and replacing an outer tag with the target VLAN; and performing uplink port uplink processing on the data stream, namely removing an inner tag by using the data stream subjected to the user port uplink processing. The step of performing VLAN processing on the downlink data stream comprises the following steps of: performing uplink port downlink processing on the data stream, namely establishing the stream identifier for the data stream to be processed and replacing the outer tag with the target VLAN; and performing user port downlink processing on the data stream, namely removing an outer tag by using the data stream subjected to the user port uplink processing and replacing the inner tag with the VLAN corresponding to the virtual port number. The method and the system realize the arbitrary modification of convection tags at the same port.

Description

A kind of virtual local area network processing method and system based on stream
Technical field
The present invention relates to Ethernet passive optical network, specifically, relate to a kind of virtual local area network processing method and system based on stream.
Background technology
Along with development and the extensive use of mechanics of communication, require ONU (Optical Network Unit, optical network unit) function is complicated, flexibility and intellectuality.Due to IPTV (Int ernet Protocol Television, interactive television), QOS (Quality of Service, service quality), the fast development of the business such as voice, the VLAN of convection current (Virtual Local Area Network, VLAN) processing of label is also more tending towards flexibility and variation, in the urgent need to data stream being carried out to VLAN conversion arbitrarily, copying or peel off and flow priority is copied or revised.Particularly operator is to TR101 (reported by DSL Forum Architecture and Transport Working Group, the technical need report that is applicable to broadband access network of YouDSL forum issue) promoting the use of standard, just requires to provide a kind of more feasible, more flexibly and more more comprehensive VLAN treatment mechanism.
Existing PON (Passive Optical Network, EPON) in equipment, conventionally adopt VLAN conversion table and static MAC (Medium Access Control, medium access control) method of study realizes VLAN 1:N and N:1 conversion, and then realize the mark of priority by configuration ACL (Access Control List, Access Control List (ACL)).Way exists following defect like this:
Cannot realize for the 802.1p label of any stream and make arbitrarily and revise at same port.It can be single TAG (single label) or double T AG (two label) or UNTAG (without label) that any modification refers to the stream that from then on port is gone out, and its TAG value can arbitrary disposition.For the message with TAG, can accomplish its priority of arbitrary layer to copy or revise simultaneously.Visible, existing VLAN processor is shaped with and needs improvements.
Summary of the invention
The main technical problem to be solved in the present invention is, a kind of virtual local area network processing method and system based on stream is provided, and can when VLAN is processed, realize any modification of the label of convection current.
For solving the problems of the technologies described above, the present invention has adopted following technical scheme:
A virtual local area network processing method based on stream, comprises the VLAN processing procedure of upstream, and the VLAN processing procedure of described upstream comprises:
The data flow of entry port is carried out to two tag standards;
To the up processing of the registered permanent residence of data stream, being included as pending data flow establishment traffic identifier, setting virtual port number and replace outer layer label is object VLAN;
Data stream is carried out to the up processing in upper united mouth, be included as through removing vpn label by the data flow of the up processing of the registered permanent residence.
In a kind of embodiment of the method for the invention, described pair of tag standards comprises:
If two label data stream is not made an amendment;
If single label data stream, adding port default PVLAN is SVLAN or CVLAN;
If without label data stream, all stamp port default PVLAN at ectonexine.
In a kind of embodiment of the method for the invention, also comprise: at address resolution logic table learning, by outer layer label, replaced the object VLAN obtaining.
In a kind of embodiment of the method for the invention, with the registered permanent residence, between the up processing in up processing and upper united mouth, also comprising: the ectonexine priority to data flow is modified.
In a kind of embodiment of the method for the invention, before data stream is used to the up processing of the registered permanent residence, also comprise: data stream is carried out to mating of source vlan and user's slogan, using the data flow of coupling as pending data flow.
The present invention also provides a kind of virtual local area network processing method based on stream, comprises the VLAN processing procedure of downstream data flow, and the VLAN processing procedure of described downstream data flow comprises:
The data flow of entry port is carried out to two tag standards;
Data stream is carried out to upper united mouth downlink processing, and being included as pending data flow establishment traffic identifier and replacing outer layer label is object VLAN;
To data stream registered permanent residence downlink processing, the data flow deletion outer layer label and the replacement vpn label that are included as through upper united mouth downlink processing are VLAN corresponding to virtual port number.
In a kind of embodiment of the method for the invention, described pair of tag standards comprises:
If two label data stream is not made an amendment;
If single label data stream, adding port default PVLAN is SVLAN or CVLAN;
If without label data stream, all stamp port default PVLAN at ectonexine.
In a kind of embodiment of the method for the invention, in upper united mouth downlink processing with between by registered permanent residence downlink processing, also comprise: the ectonexine priority to data flow is modified.
In a kind of embodiment of the method for the invention, before data stream is carried out to upper united mouth downlink processing, also comprise: data stream is carried out to the coupling of outer layer label and first line of a couplet slogan, using the data flow of coupling as pending data flow.
The present invention also provides a kind of VLAN treatment system based on stream, comprising: the VLAN processing unit of upstream, and the VLAN processing unit of described upstream comprises:
Up standardized module, for carrying out two tag standards to the data flow of entry port;
Use registered permanent residence uplink processing module, for data stream being used to the up processing of the registered permanent residence, being included as pending data flow establishment traffic identifier, setting virtual port number and replace outer layer label is object VLAN;
Upper united mouth uplink processing module, for data stream being carried out to the up processing in upper united mouth, is included as through removing vpn label by the data flow of the up processing of the registered permanent residence.
The present invention also provides a kind of VLAN treatment system based on stream, comprising: the VLAN processing unit of downstream data flow, and the VLAN processing unit of described downstream data flow comprises:
Descending standardized module, for carrying out two tag standards to the data flow of entry port;
Upper united mouth downlink processing module, for data stream is carried out to upper united mouth downlink processing, being included as pending data flow establishment traffic identifier and replacing outer layer label is object VLAN;
By registered permanent residence downlink processing module, for to data stream registered permanent residence downlink processing, be included as that through the data flow of upper united mouth downlink processing, to delete outer layer label and replace vpn label be VLAN corresponding to virtual port number.
The invention has the beneficial effects as follows:
By the standardization of convection current, and the traffic identifier carrying out respectively with the registered permanent residence and upper united mouth establishment, the different disposal of inside and outside label, has realized any modification of the stream label on same port.
Accompanying drawing explanation
Fig. 1 is the structural representation of the VLAN treatment system based on stream of the embodiment of the present invention;
Fig. 2 is upstream IVM and the EVM schematic flow sheet of the embodiment of the present invention;
Fig. 3 is downstream data flow IVM and the EVM schematic flow sheet of the embodiment of the present invention;
Fig. 4 is the VLAN handling process schematic diagram of the data flow of the embodiment of the present invention.
Embodiment
Below by embodiment, by reference to the accompanying drawings the present invention is described in further detail.
The present invention is mainly used in Ethernet passive optical network (EPON/GPON) field, the VLAN relating to based on stream processes, for example VLAN label and processed etc., be used for realizing the up 1:N of VLAN or N:1 conversion in Ethernet passive optical network, descending 1:N translation, copy and mark or replication stream priority again.
VLAN processing method and system based on stream that the embodiment of the present invention provides, realize the transmission of TLS or the Non-TLS of data flow, comprising up 1:N conversion and the operation of N:1 convergence processing and descending 1:1 and the operation of 1:N conversion process; Modifying in the PRI position of ectonexine label that can convection current, copies as required or reset the priority of stream.The tag of VLAN (label) form is as shown in table 1,
Table 1
TPID PRI CFI VLAN ID
Each field implication in table 1 is as follows:
TPID (Tag Protocol Identifier, tag protocol identifier symbol): be used for judging that whether notebook data frame is with VLAN Tag, length is 16bit, and default value is 0x8100 (IEEE802.1Q agreement).
PRI (Priority, priority): represent the 802.1P priority of message, length is 3bit.
CFI (Canonical Format Indicator, reference format indicating bit): whether sign MAC Address encapsulates with reference format in different transmission mediums, length is 1bit, value is that 0 expression MAC Address encapsulates with reference format, be that 1 expression encapsulates with noncanonical format, default value is 0.
VLAN ID: identify the numbering of the affiliated VLAN of this message, length is 12bit, and span is 0~4095.Because 0 and 4095 for agreement retains value, so the span of VLAN ID is 1~4094.
As shown in Figure 1, the VLAN treatment system based on stream of the embodiment of the present invention, comprises the VLAN processing unit of upstream and the VLAN processing unit of downstream data flow; Wherein,
The VLAN processing unit of upstream comprises:
Up standardized module, for carrying out two tag standards to the data flow of entry port;
With the registered permanent residence (UNI Ports, facing customers ports) uplink processing module, be used for the up processing of the registered permanent residence of data stream, being included as pending data flow establishment traffic identifier, setting virtual port number and replace outer layer label is object VLAN;
Upper united mouth (NNI Ports, uplink ports) uplink processing module, for data stream being carried out to the up processing in upper united mouth, is included as through removing vpn label by the data flow of the up processing of the registered permanent residence.
The VLAN processing unit of downstream data flow comprises:
Descending standardized module, for carrying out two tag standards to the data flow of entry port;
Upper united mouth downlink processing module, for data stream is carried out to upper united mouth downlink processing, being included as pending data flow establishment traffic identifier and replacing outer layer label is object VLAN;
By registered permanent residence downlink processing module, for to data stream registered permanent residence downlink processing, be included as that through the data flow of upper united mouth downlink processing, to delete outer layer label and replace vpn label be VLAN corresponding to virtual port number.
At up direction, by registered permanent residence uplink processing module, be data flow entrance, when processing, do IVM (ingress VLAN mapping, ingress VLAN mapping) conversion; Upper united mouth uplink processing module is data flow outlet, does EVM (egress VLAN mapping, outlet VLAN mapping) conversion when processing.
At down direction, upper united mouth downlink processing module is data flow entrance, does IVM (ingress VLAN mapping, ingress VLAN mapping) conversion when processing; By registered permanent residence downlink processing module, be data flow outlet, when processing, do EVM (egress VLAN mapping, outlet VLAN mapping) conversion.
Any flowing to into device port all can be given tacit consent to advanced column criterion, makes stream become double tag (two label).The standardization of double tag is divided into following three kinds of situations:
1) for the data flow of single tag (single label), can add SVLAN (Service Provider VLAN according to different situations, the VLAN of service provider) or CVLAN (Customer VLAN, user vlan), wherein, the corresponding outer layer label of SVLAN, the corresponding vpn label of CVLAN.Under default situations, SVLAN and CVLAN numerical value are equal to the numerical value (, PVLAN refers to port default VLAN, i.e. port default VLAN, CVLAN numerical value can configure separately again) of the PVLAN of port herein.
2) for the data flow of double tag (two label), the tag that adopts data flow to carry, does not modify.
3) for the data flow of untag (without label), the PVLAN that can all stamp port default at ectonexine (can arrange ectonexine vlan not identical in practical application, give tacit consent to not under configuring condition: the CVLAN of internal layer is identical with outer field SVLAN, and value is PVLAN).
As shown in Figure 2, upstream need be processed through following:
21, UNI Port IVM processing module (use registered permanent residence uplink processing module, as previously mentioned, at up direction, carry out IVM processing with the registered permanent residence), its processing of carrying out comprises:
211, the stream of changing for every need is handled as follows:
Create flow id (traffic identifier), for distinguishing different data flow, different data flow flow id is different;
Set vport id (virtual port number), vport is different from the UNI Port (physical port) of equipment, when it is changed for distinguishing descending 1:N, the stream of corresponding Same Physical port need convert different CVLAN to, for the different vport id of different source vlan marks;
Replace outer tag value for object SVLAN, the VLAN label that after conversion, upstream carries.
212, judge whether to revise priority, if do not needed, use the priority of acquiescence, if needed, to the ectonexine tag of coupling stream again priority-labeled.The priority of ectonexine can be taked respectively following amending method: 1) internal layer of replication stream or outer field priority; 2) user's self-defining priority.
213, make the VLAN after ARL (address resolution logic, address resolution logic) address table study conversion.
Before 211, port default standardization, need to all be labeled as all stream the form of double tag, then, judges whether to configure VLAN conversion, if not, data flow is not made an amendment and directly sent upper united mouth; If, according to local side MDU (multi-user unit) the equipment configuration order of Ethernet passive optical network, setting up VLAN translative mode is N:1, object is that to learn outer t ag be SVLAN to configuration device port, configuration device UNI Ports and NNI ports port is set is double tag pattern, TPID is 0x8100.
Stream coupling, by setting up the up IVM transformation rule of UNI Port, mate, comprise coupling source UNI Port physical port number and conversion before data flow with VLAN tag value, if do not mated, this unmatched stream is not made an amendment and sent upper united mouth, if coupling, this data flow is pending stream, starts to carry out the processing of step 211.
22, NNI Port EVM processing module (be upper united mouth uplink processing module, as previously mentioned, at up direction, EVM processing is carried out in upper united mouth), its processing of carrying out comprises the following steps:
221, coupling flow id (creating in abovementioned steps 211); The physical port number of coupling source UNI port and object NNI Port.
222, for the stream of coupling, remove internal layer tag, replacing outer tag is object VLAN (carried out outer tag replacement in step 211, also can no longer carry out outer tag replacement herein, the object of again replacing is further to guarantee the reliability of replacement).
Upstream is by after UNI Port, meet VLAN conversion stripes object stream, ARL address table will be learnt its MAC+ source No. port+vport id+ object VLAN, in exchange chip, data flow is marked as double tag, internal layer tag keeps source vlan tag value, and outer tag is object VLAN tag value.After NNI Port egress, data flow is converted into individual layer tag, and its VLAN value is object VLAN.So far the upstream that meets transformation rule, VLAN changes successfully, and upper united mouth obtains changing rear VLAN and the data flow of priority-labeled again.
For the data flow with VLAN tag that does not meet transformation rule, by standardization, outer tag is marked as the default VLAN (PVLAN) of source UNI Port, and internal layer keeps the original VLAN tag of data flow.After NNI Port, according to the tag/untag attribute of upper united mouth, whether determine peeling outer layer tag.As PVLAN adds NNI Port with tag pattern, go out behind upper united mouth, data flow is converted into double-deck tag, and internal layer keeps VLAN tag constant, and outer tag is labeled as PVLAN.Otherwise, if PVLAN adds upper united mouth with untag pattern, go out behind upper united mouth, data flow is single tag, VLAN keep former data flow with VLAN constant.
For untag message, by standardization, ectonexine tag is all marked as the default VLAN (actual that ectonexine vlan can be set is not identical, gives tacit consent to not the identical PVLAN of being of ectonexine vlan under facilities) of source UNI Port.After NNI Port, according to the tag/untag attribute of upper united mouth, whether determine peeling outer layer tag.As PVLAN adds NNI Port with tag pattern, go out upper united mouth after data flow be converted into single tag, VLAN value is PVLAN.Otherwise if PVLAN adds upper united mouth with untag pattern, going out data flow behind upper united mouth is untag.
As shown in Figure 3, downstream data flow need to be processed through following:
31, NNI Port IVM processing module (be upper united mouth downlink processing module, as previously mentioned, at down direction, IVM processing is carried out in upper united mouth), its processing of carrying out comprises the steps:
311, create the flow id` of the downstream that needs conversion, flow id` is for distinguishing different data flow; Downstream is replaced to outer tag, and its tag value is for needing the SVLAN of conversion.
312, judge whether to revise priority, if do not needed, use the priority of acquiescence, if needed, to the ectonexine tag of coupling stream again priority-labeled.The priority of ectonexine can be taked respectively following amending method: 1) internal layer of replication stream or outer field priority; 2) user's self-defining priority.
313, make the VLAN before ARL (address resolution logic, address resolution logic) address table study conversion.
Before 311, port default standardization, need to all be labeled as all stream the form of double tag, then, judges whether to configure VLAN conversion, if not, data flow is not made an amendment and directly send with the registered permanent residence; If, setting up VLAN translative mode is N:1, by setting up the descending IVM transformation rule of NNI Port, flow coupling, outer tag value (object VLAN value) after coupling conversion and the physical port number of NNI Port, if do not mated, this unmatched stream is not made an amendment and send with the registered permanent residence, if coupling, this data flow is pending stream, starts to carry out the processing of step 311.
32, UNI Port EVM processing module (use registered permanent residence downlink processing module, as previously mentioned, at down direction, carry out EVM processing with the registered permanent residence), its processing of carrying out comprises the steps:
321, coupling flow id` (creating in abovementioned steps 311), the physical port number of the corresponding vport id of VLAN that coupling will be changed (the vport id creating with up I VM is corresponding one by one) and UNI Port and NNI Port.
322, for the stream of coupling, remove outer tag, replace internal layer tag, revise inner VLAN VLAN corresponding to vport for this reason.
Downstream data flow is by after UNI Port, meet VLAN conversion stripes object stream, ARL address table will be learnt its MAC+ source No. port+vport id (being now default value 0)+object VLAN, in exchange chip, data are failed to be sold at auction and are marked as double tag, internal layer tag keeps source vlan tag value, and outer tag is object VLANtag value.By UNI Port, after egress, data flow is converted into individual layer tag, and its VLAN value is source vlan.So far the downstream data flow that meets transformation rule, VLAN changes successfully, with the registered permanent residence, obtains changing front source vlan and the data flow of priority-labeled again.
For the data flow that does not meet transformation rule, if double tag, enter NNI Port after ectonexine tag all remain unchanged; If single tag, skin remains unchanged, and internal layer is marked as the pVLAN that tag value is NNI Port.After UNI Port, according to the tag/untag attribute with the registered permanent residence, whether determine peeling outer layer tag.The VLAN of internal layer keep former data flow with VLAN constant.
For untag message, by standardization, ectonexine tag is all marked as the default VLAN (actual that ectonexine vlan can be set is not identical, gives tacit consent to not the identical PVLAN of being of ectonexine vlan under facilities) of NNI Port.After UNI Port, according to the tag/untag attribute with the registered permanent residence, whether determine peeling outer layer tag.As PVLAN adds UNI Port with tag pattern, data flow is converted into individual layer tag, and VLAN value is PVLAN.Otherwise if PVLAN adds upper united mouth with untag pattern, data flow is untag.
As shown in Figure 4, the VLAN of data flow processes and comprises:
For arbitrary port, can in ingress (entrance) direction, take following processing to any data flow:
(Ia) reset VLAN and vport id, make the VLAN after ARL table learning arranges.
(Ib) mark stream flow id.
(Ic) the ectonexine tag priority of change 802.1p.
In egress (outlet) direction, can take following processing:
(Ea) it is consistent when while keeping Vid and flowing to inbound port, standardization is moved.
(Eb) maintenance is the same before coming in bag, if while coming in be untag, export ctag and is stripped from.
(Ec) with obtaining Svid and Cvid in standardisation process, replace the ectonexine VLAN of outlet.
(Ed) ectonexine VLAN value is set voluntarily by user.
(Ee) remove stream with tag label.
Below with reference to Fig. 1, with an application example, modules translation function is described.
First, for up modular converter, suppose to have respectively five upstreams, through UNI port 1, port 2, port 3, be up to upper united mouth NNI port 4, wherein,
Stream 1 is double tag, and its VLAN tag is cvlan x1, svlan y1, and source port is uni port port 1 (port default vlan p1);
Stream 2 is untag, and source port is uni port port 1;
Stream 3 is single tag, and its VLAN tag is cvlan x2, and source port is uni port port 2 (port default vlan p2);
Stream 4 is single tag, and its VLAN tag is cvlan x3, and source port is uni port port 2;
Stream 5 is single tag, and its VLAN tag is cvlan x4, and source port is uni port port 3 (port default vlan p3);
Stream passes through respectively different uni port port1, port2, port3, after tag standardization, is:
The VLAN tag of stream 1 is cvlan x1, svlan y1;
The VLAN tag of stream 2 is cvlan p1, svlan p1;
The VLAN tag of stream 3 is cvlan x2, svlan p2;
The VLAN tag of stream 4 is cvlan x3, svlan p2;
The VLAN tag of stream 5 is cvlan x4, svlan p3;
As need conversion, configure N:1 translative mode; Suppose that stream 3,4,5 meets conversion demand, needing the vlan after changing is z.
Stream 1, stream 2 do not meet transformation rule, directly deliver to upper united mouth.Stream 1 is still doubletag (cvlan x1, svlan y1) behind upper united mouth.If vlan p1 adds upper united mouth with untag form, flowing 2, to go out behind upper united mouth be still untag; As vlan p1 adds upper united mouth with tag form, flow 2 and become single tag (vlan p1) after going out upper united mouth.
Convection current 3,4,5 is handled as follows:
1, through using registered permanent residence uplink processing module:
The flow id of mark stream 3 is that 1, vport id is 1, and replacing outer tag is object vlan, and the vlan that is about to flow after 3 standardization changes cvlan x3 into, svlan z;
The flow id of mark stream 4 is that 2, vport id is 2 (because stream 3 and stream 4 are all from port 2, so vport must be different), and replacing outer tag is object vlan, and the vlan that is about to flow after 4 standardization changes cvlan x4 into, svlan z;
The flow id of mark stream 5 is that 3, vport id is 1 (because stream 5 and stream 3 are from different port, so vport can be identical), and replacing outer tag is object vlan, and the vlan that is about to flow after 5 standardization changes cvlan x5 into, svlan z;
The ARL study of stream 3 is: MAC1+ SVLAN z+port2+vport id (1);
The ARL study of stream 4 is: MAC2+ SVLAN z+port2+vport id (2);
The ARL study of stream 5 is: MAC3+ SVLAN z+port3+vport id (1);
2, through upper united mouth uplink processing module
In the up EVM transformation rule of NNI mouth, coupling flow id, determine that flow id is that 1,2,3 stream is coupling stream, coupling uni port number (port), determines that port2, port3 are coupling port, Way out coupling NNI port numbers, suppose that stream 3, stream 4, stream 5 all delivers to corresponding NNI port, by the processing module of this NNI port, processed, if deliver to other NNI ports, think and do not mate.
For the stream of coupling, stream 3,4,5 is all peeled off internal layer tag, retains outer tag, all becomes single tag message after going out upper united mouth, and its vlan is for needing the vlan z after conversion.
For unmatched stream, retain internal layer cvlan, whether outer svlan (assumed value is m) peels off, and is that tag or untag are relevant to upper united mouth vlan m attribute.
Upstream data EOC.
For down conversion module, for the stream of non-matching transformation rule, processing procedure and up similar, a detailed description here meets the processing procedure of the stream of transformation rule.Suppose and have three downstreams 6,7,8 corresponding with stream 3,4,5, its object mac is respectively the source mac of stream 3,4,5, and its vlan is single tag (vlan z).
1, through upper united mouth downlink processing module
The physical port number of coupling upper united mouth, the flow id of mark stream 6,7,8 was for 4 (as identical in descending vlan, flow id also needs identical), replacing outer tag is object vlan, now flow 6,7,8 and be double tag, outer svlan z, the PVLAN that internal layer cvlan is upper united mouth;
The ARL study of stream 6 is: MAC4+ SVLAN z+port4+vport id (0);
The ARL study of stream 7 is: MAC5+ SVLAN z+port4+vport id (0);
The ARL study of stream 8 is: MAC6+ SVLAN z+port4+vport id (0);
2, through using registered permanent residence downlink processing module
For stream 6 and stream 7, mate upper united mouth port numbers port 4 and with registered permanent residence port numbers port 2, mate flow id 4.By tabling look-up, stream 6 coupling vport 1, revising internal layer cvlan is x2, removes outer svlan, goes out to become after port 2 single tag (vlan x2) and to flow 3 corresponding; Stream 7 coupling vport 2, revising internal layer cvlan is x3, removes outer svlan, goes out to become after port 2 single tag (vlan x3) and to flow 4 corresponding; Stream 8 coupling upper united mouth port numbers port 4 and with registered permanent residence port numbers port 2, coupling flow id 4, coupling vport 1, revising internal layer vlan is x4, goes out to become after port 3 single tag (vlan x4) and to flow 5 corresponding.
So far, downlink data EOC.Whole VLAN transfer process is complete.
Same as described above for broadcasting packet basic procedure, just increased the port isolation between UNI Ports, assurance upstream can not used inundation between the registered permanent residence.The VLAN conversion and the translation that adopt the present invention to realize, can make any stream after MDU equipment, converts double tag to, the message of single tag or untag, and VLAN transfer process is convenient, safeguards simple.For the priority of tag message mark or remain unchanged arbitrarily, can be in the priority of revising the same tense marker stream of VLAN.The priority of convection current, can realize mutually copying of ectonexine priority, stream with internal layer TAG priority copy to stream after conversion with outer TAG priority or outer priority copy to internal layer.Can accomplish Broadcast to TLS (Transparent LAN Service, transparent LAN service) VLAN (to the VLAN broadcast of transparent service), the broadcast packet of realizing after conversion is isolated completely at downlink user mouth.The present invention can meet the requirement of telecommunications TR101 standard completely, and configuration is simple, and stable performance is convenient to safeguard and upgrading, applied widely.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (11)

1. the virtual local area network processing method based on stream, is characterized in that, comprise the VLAN processing procedure of upstream, the VLAN processing procedure of described upstream comprises:
The data flow of entry port is carried out to two tag standards;
To the up processing of the registered permanent residence of data stream, being included as pending data flow establishment traffic identifier, setting virtual port number and replace outer layer label is object VLAN;
Data stream is carried out to the up processing in upper united mouth, be included as through removing vpn label by the data flow of the up processing of the registered permanent residence.
2. the method for claim 1, is characterized in that, described pair of tag standards comprises:
If two label data stream is not made an amendment;
If single label data stream adds SVLAN or CVLAN to this data flow, the value of the PVLAN of the SVLAN of interpolation or the value of CVLAN and port equates;
If without label data stream, all stamp port default PVLAN at ectonexine.
3. the method for claim 1, is characterized in that, also comprises: at address resolution logic table learning, by outer layer label, replaced the object VLAN obtaining.
4. the method for claim 1, is characterized in that, is also comprising: the ectonexine priority to data flow is modified with the registered permanent residence between the up processing in up processing and upper united mouth.
5. the method as described in as arbitrary in claim 1-4, is characterized in that, before data stream is used to the up processing of the registered permanent residence, also comprises: data stream is carried out to mating of source vlan and user port number, using the data flow of coupling as pending data flow.
6. the virtual local area network processing method based on stream, is characterized in that, comprise the VLAN processing procedure of downstream data flow, the VLAN processing procedure of described downstream data flow comprises:
The data flow of entry port is carried out to two tag standards;
Data stream is carried out to upper united mouth downlink processing, and being included as pending data flow establishment traffic identifier and replacing outer layer label is object VLAN;
To data stream registered permanent residence downlink processing, the data flow deletion outer layer label and the replacement vpn label that are included as through upper united mouth downlink processing are VLAN corresponding to virtual port number.
7. method as claimed in claim 6, is characterized in that, described pair of tag standards comprises:
If two label data stream is not made an amendment;
If single label data stream adds SVLAN or CVLAN to this data flow, the value of the PVLAN of the SVLAN of interpolation or the value of CVLAN and port equates;
If without label data stream, all stamp port default PVLAN at ectonexine.
8. method as claimed in claim 6, is characterized in that, in upper united mouth downlink processing with between by registered permanent residence downlink processing, also comprises: the ectonexine priority to data flow is modified.
9. the method as described in as arbitrary in claim 6-8, is characterized in that, before data stream is carried out to upper united mouth downlink processing, also comprises: data stream is carried out to the coupling of outer layer label and first line of a couplet slogan, using the data flow of coupling as pending data flow.
10. the VLAN treatment system based on stream, is characterized in that, comprising: the VLAN processing unit of upstream, and the VLAN processing unit of described upstream comprises:
Up standardized module, for carrying out two tag standards to the data flow of entry port;
Use registered permanent residence uplink processing module, for data stream being used to the up processing of the registered permanent residence, being included as pending data flow establishment traffic identifier, setting virtual port number and replace outer layer label is object VLAN;
Upper united mouth uplink processing module, for data stream being carried out to the up processing in upper united mouth, is included as through removing vpn label by the data flow of the up processing of the registered permanent residence.
11. 1 kinds of VLAN treatment systems based on stream, is characterized in that, comprising: the VLAN processing unit of downstream data flow, and the VLAN processing unit of described downstream data flow comprises:
Descending standardized module, for carrying out two tag standards to the data flow of entry port;
Upper united mouth downlink processing module, for data stream is carried out to upper united mouth downlink processing, being included as pending data flow establishment traffic identifier and replacing outer layer label is object VLAN;
By registered permanent residence downlink processing module, for to data stream registered permanent residence downlink processing, be included as that through the data flow of upper united mouth downlink processing, to delete outer layer label and replace vpn label be VLAN corresponding to virtual port number.
CN201010235513.2A 2010-07-23 2010-07-23 Stream-based virtual local area network processing method and system Expired - Fee Related CN101895427B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010235513.2A CN101895427B (en) 2010-07-23 2010-07-23 Stream-based virtual local area network processing method and system
PCT/CN2010/077931 WO2012009893A1 (en) 2010-07-23 2010-10-20 Flow based processing method and system in virtual local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010235513.2A CN101895427B (en) 2010-07-23 2010-07-23 Stream-based virtual local area network processing method and system

Publications (2)

Publication Number Publication Date
CN101895427A CN101895427A (en) 2010-11-24
CN101895427B true CN101895427B (en) 2014-08-13

Family

ID=43104505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010235513.2A Expired - Fee Related CN101895427B (en) 2010-07-23 2010-07-23 Stream-based virtual local area network processing method and system

Country Status (2)

Country Link
CN (1) CN101895427B (en)
WO (1) WO2012009893A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480652B (en) * 2010-11-29 2014-09-10 中兴通讯股份有限公司 Method for mapping service flow and ONT (Optical Network Termination)
CN102655504A (en) * 2011-12-16 2012-09-05 中兴通讯股份有限公司 Method and device for carrying out N:1Vlan conversion by using virtual port
CN104104571B (en) * 2013-04-10 2018-12-07 中兴通讯股份有限公司 The method and apparatus for realizing virtual LAN domain mapping and access control
CN104243257A (en) * 2013-06-06 2014-12-24 太仓市同维电子有限公司 Method for realizing dynamic shunting by using virtual port in optical network unit
CN103475559B (en) * 2013-09-18 2017-01-11 北京锐安科技有限公司 Method and system for processing and transmitting message according to contents of message
CN104883325B (en) 2014-02-27 2018-02-06 国际商业机器公司 PVLAN interchangers and its method for being connected to non-PVLANs device
CN105634985B (en) * 2016-01-21 2018-10-09 烽火通信科技股份有限公司 A kind of processing method of the more ports the DSL ONU Business Streams of FTTdp
CN105915427B (en) * 2016-03-31 2019-12-17 华为技术有限公司 Message sending and receiving method and device
CN107493524B (en) * 2017-09-21 2020-02-11 烽火通信科技股份有限公司 Method for realizing virtual OLT
CN111698141B (en) * 2019-03-13 2022-12-02 中兴通讯股份有限公司 Message forwarding method and device
CN111614566B (en) * 2020-06-02 2021-11-09 中电科航空电子有限公司 Method, device and system for forwarding airborne data stream and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453673A (en) * 2006-08-21 2009-06-10 华为技术有限公司 Optical network terminal, and packet process method thereof
CN101491029A (en) * 2006-07-14 2009-07-22 思科技术公司 Ethernet layer 2 protocol packet switching
CN101567854A (en) * 2009-05-26 2009-10-28 武汉烽火网络有限责任公司 Ethernet data frame VLAN double-layer label processing device and method based on flow classification
CN101783765A (en) * 2009-12-25 2010-07-21 上海市共进通信技术有限公司 Method for filtering data stream in Gigabit passive optical network and optical network terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491029A (en) * 2006-07-14 2009-07-22 思科技术公司 Ethernet layer 2 protocol packet switching
CN101453673A (en) * 2006-08-21 2009-06-10 华为技术有限公司 Optical network terminal, and packet process method thereof
CN101567854A (en) * 2009-05-26 2009-10-28 武汉烽火网络有限责任公司 Ethernet data frame VLAN double-layer label processing device and method based on flow classification
CN101783765A (en) * 2009-12-25 2010-07-21 上海市共进通信技术有限公司 Method for filtering data stream in Gigabit passive optical network and optical network terminal

Also Published As

Publication number Publication date
CN101895427A (en) 2010-11-24
WO2012009893A1 (en) 2012-01-26

Similar Documents

Publication Publication Date Title
CN101895427B (en) Stream-based virtual local area network processing method and system
US7646778B2 (en) Support of C-tagged service interface in an IEEE 802.1ah bridge
CN100442772C (en) Bridge-connection transmitting method
US9240894B2 (en) Multicast snooping on layer 2 virtual private network
US7633956B1 (en) System and method for providing support for multipoint L2VPN services in devices without local bridging
US8619784B2 (en) Mapping PBT and PBB-TE traffic to VPLS and other services
CN1286297C (en) Method of realizing sign delivery of user's position
CN101160850B (en) Method and device for forwarding packet
CN101808042B (en) Access method and device of multiprotocol label switching double-layer virtual private network
CN101257452B (en) Method for ether passive optical network access equipment to transmit downlink data packet
CN100521653C (en) Method and system for nesting group network by skeleton bridging technology
CN101166137B (en) Method for separating different virtual LAN services
US8549178B2 (en) Using provider backbone bridged network to reduce the number of media access control addresses visible to core bridges in the data center
CN102882784B (en) LSP information from flooding method and apparatus in SPBM
CN101133407A (en) Metro Ethernet network with scaled broadcast and service instance domains
CN100589443C (en) An Ethernet service processing method in Gbit passive optical network
PT2001172E (en) Method, system and device of the ethernet technique exchanging and forwarding
CN102075446A (en) Interconnection method of transparent interconnection network of lots of links in different places and operator edge device
CN101110764A (en) Method for Ethernet switchboard data frame partitioning virtual local area network and transmitting
CN100563205C (en) The implementation method of user-isolated virtual local area network (LAN) and the network equipment of application thereof
CN101729274A (en) Method for realizing multicast in PBB_VPLS network
CN102227137A (en) Network digital set top box and method for realizing multiple network access
CN100502336C (en) City domain Ethernet network bridge, system and method for providing service
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN102136981B (en) Method for realizing E-Tree (Ethernet tree) service in Ethernet and related device

Legal Events

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

Granted publication date: 20140813

Termination date: 20190723

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