CN101895427A - 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
CN101895427A
CN101895427A CN2010102355132A CN201010235513A CN101895427A CN 101895427 A CN101895427 A CN 101895427A CN 2010102355132 A CN2010102355132 A CN 2010102355132A CN 201010235513 A CN201010235513 A CN 201010235513A CN 101895427 A CN101895427 A CN 101895427A
Authority
CN
China
Prior art keywords
data stream
port
processing
vlan
uplink
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
CN2010102355132A
Other languages
Chinese (zh)
Other versions
CN101895427B (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

Images

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

Virtual local area network processing method and system based on stream
Technical Field
The present invention relates to ethernet passive optical networks, and in particular, to a method and system for processing a virtual local area network based on a stream.
Background
With the continuous development and wide application of communication technology, it is required that an ONU (Optical Network Unit) has complicated functions, flexibility, and intelligence. Due to the rapid development of services such as IPTV (interactive Television), QOS (Quality of Service), and voice, the processing of the VLAN (Virtual Local Area Network) tag of the stream tends to be more flexible and diversified, and there is an urgent need to perform any VLAN conversion, duplication, or stripping on the data stream, and to copy or modify the stream priority. Especially, the popularization and application of the TR101 (ported by DSL Forum technical requirement report applicable to broadband access networks, issued by DSL Forum) standard by operators require to provide a more feasible, more flexible and more comprehensive VLAN processing mechanism.
In an existing PON (Passive Optical Network) device, a VLAN conversion table and a static MAC (Medium Access Control) learning method are generally used to implement VLAN 1: N and N:1 conversion, and then an ACL (Access Control List) is configured to implement priority marking. This approach has the following drawbacks:
any modification of the 802.1p label for any one stream cannot be realized on the same port. Any modification means that one stream going out from this port can be a single TAG (single label) or a double TAG (double label) or UNTAG (no label), and the TAG value can be configured arbitrarily. Meanwhile, the priority of any layer of the message with the TAG can be copied or modified. It can be seen that existing VLAN processing mechanisms have needed improvement.
Disclosure of Invention
The invention provides a method and a system for processing a virtual local area network based on a stream, which can realize the arbitrary modification of a stream label when the virtual local area network is processed.
In order to solve the technical problems, the invention adopts the following technical scheme:
a virtual local area network processing method based on stream includes VLAN processing procedure of upstream data stream, the VLAN processing procedure of upstream data stream includes:
carrying out double-label standardization on the data stream entering the port;
performing user port uplink processing on the data stream, including establishing a stream identifier for the data stream to be processed, setting a virtual port number and replacing the outer layer tag as a destination VLAN;
and performing uplink port uplink processing on the data stream, wherein the uplink port uplink processing comprises removing the inner layer label for the data stream subjected to the user port uplink processing.
In one embodiment of the method of the present invention, the dual tag normalization comprises:
if the data stream is a double-label data stream, no modification is made;
if the data stream is a single-label data stream, adding a port default PVLAN (virtual private LAN) to be an SVLAN or a CVLAN;
if the data flow is label-free, the inner layer and the outer layer are marked with a port default PVLAN.
In an embodiment of the method of the present invention, the method further comprises: and learning the destination VLAN replaced by the outer layer label in the address resolution logic table.
In an embodiment of the method of the present invention, further comprising, between the user port uplink processing and the uplink port uplink processing: the inner and outer layer priorities of the data stream are modified.
In an embodiment of the method of the present invention, before performing the user uplink processing on the data stream, the method further includes: and matching the source VLAN with the user port number of the data stream, and taking the matched data stream as the data stream to be processed.
The invention also provides a virtual local area network processing method based on the stream, which comprises a VLAN processing process of the downlink data stream, wherein the VLAN processing process of the downlink data stream comprises the following steps:
carrying out double-label standardization on the data stream entering the port;
performing uplink port downlink processing on the data stream, including establishing a stream identifier for the data stream to be processed and replacing the outer label as a destination VLAN;
and carrying out user port downlink processing on the data stream, wherein the user port downlink processing comprises deleting an outer layer tag for the data stream subjected to uplink port downlink processing and replacing the inner layer tag with a VLAN (virtual local area network) corresponding to the virtual port number.
In one embodiment of the method of the present invention, the dual tag normalization comprises:
if the data stream is a double-label data stream, no modification is made;
if the data stream is a single-label data stream, adding a port default PVLAN (virtual private LAN) to be an SVLAN or a CVLAN;
if the data flow is label-free, the inner layer and the outer layer are marked with a port default PVLAN.
In an embodiment of the method of the present invention, further comprising, between the uplink port downlink processing and the user port downlink processing: the inner and outer layer priorities of the data stream are modified.
In an embodiment of the method of the present invention, before performing uplink and downlink processing on a data stream, the method further includes: and matching the outer layer label and the upper port number of the data stream, and taking the matched data stream as the data stream to be processed.
The invention also provides a virtual local area network processing system based on the stream, which comprises the following components: an upstream VLAN processing device, comprising:
the uplink standardization module is used for carrying out double-label standardization on the data flow entering the port;
the user port uplink processing module is used for carrying out user port uplink processing on the data stream, and comprises the steps of establishing a stream identifier for the data stream to be processed, setting a virtual port number and replacing an outer layer label as a destination VLAN;
and the uplink port uplink processing module is used for performing uplink port uplink processing on the data stream, and comprises removing the inner layer label for the data stream subjected to the user port uplink processing.
The invention also provides a virtual local area network processing system based on the stream, which comprises the following components: a downstream VLAN processing device, the downstream VLAN processing device comprising:
the downlink standardization module is used for carrying out double-label standardization on the data stream entering the port;
the uplink port downlink processing module is used for performing uplink port downlink processing on the data stream, and comprises the steps of establishing a stream identifier for the data stream to be processed and replacing the outer layer tag as a target VLAN;
and the user port downlink processing module is used for performing user port downlink processing on the data stream, and comprises deleting an outer layer tag for the data stream subjected to uplink port downlink processing and replacing the inner layer tag with a VLAN corresponding to the virtual port number.
The invention has the beneficial effects that:
the stream label on the same port can be modified arbitrarily by standardizing the stream, respectively establishing the stream identification on the user port and the uplink port and carrying out different treatments on the internal label and the external label.
Drawings
Fig. 1 is a schematic structural diagram of a flow-based VLAN processing system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of upstream IVM and EVM according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of downstream IVM and EVM according to an embodiment of the present invention;
fig. 4 is a schematic view of a VLAN processing flow of a data flow according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The invention is mainly applied in the field of Ethernet passive optical networks (EPON/GPON), and relates to VLAN processing based on flow, such as VLAN label and priority processing, and the like, which is used for realizing VLAN uplink 1: N or N:1 conversion, downlink 1: N translation, copy and re-marking or copying flow priority in the Ethernet passive optical network.
The VLAN processing method and system based on stream provided by the embodiment of the invention realize the transmission of TLS or Non-TLS of data stream, wherein the transmission comprises the uplink 1: N conversion and N:1 convergence processing operation and the downlink 1:1 and 1: N conversion processing operation; the PRI bit of the inner and outer layer tags of the stream can be modified to copy or reset the priority of the stream as needed. Tag format of VLAN as shown in table 1,
TABLE 1
TPID PRI CFI VLAN ID
The fields in table 1 have the following meanings:
TPID (Tag Protocol Identifier): the method is used for judging whether the data frame has VLAN Tag, the length is 16bit, and the default value is 0x8100(IEEE802.1Q protocol).
PRI (Priority): the message represents the 802.1P priority and has the length of 3 bits.
CFI (cancer Format Indicator, standard Format Indicator): and identifying whether the MAC address is packaged in a standard format or not in different transmission media, wherein the length is 1bit, the value of 0 represents that the MAC address is packaged in the standard format, the value of 1 represents that the MAC address is packaged in a non-standard format, and the default value is 0.
VLAN ID: and identifying the number of the VLAN to which the message belongs, wherein the length of the VLAN is 12 bits, and the value range is 0-4095. And values of 0 and 4095 are reserved for the protocol, so the value range of the VLAN ID is 1-4094.
As shown in fig. 1, the VLAN processing system according to the embodiment of the present invention includes a VLAN processing device for upstream data flow and a VLAN processing device for downstream data flow; wherein,
the VLAN processing device for the upstream data flow comprises:
the uplink standardization module is used for carrying out double-label standardization on the data flow entering the port;
a user port (UNI Ports) uplink processing module, configured to perform user port uplink processing on a data stream, including creating a stream identifier for the data stream to be processed, setting a virtual port number, and replacing an outer layer tag as a destination VLAN;
and an uplink port (NNI Ports) uplink processing module, configured to perform uplink port uplink processing on the data stream, including removing an inner layer tag from the data stream that is subjected to the user port uplink processing.
The VLAN processing device for the downstream data flow comprises:
the downlink standardization module is used for carrying out double-label standardization on the data stream entering the port;
the uplink port downlink processing module is used for performing uplink port downlink processing on the data stream, and comprises the steps of establishing a stream identifier for the data stream to be processed and replacing the outer layer tag as a target VLAN;
and the user port downlink processing module is used for performing user port downlink processing on the data stream, and comprises deleting an outer layer tag for the data stream subjected to uplink port downlink processing and replacing the inner layer tag with a VLAN corresponding to the virtual port number.
In the uplink direction, the user port uplink processing module is a data flow inlet, and performs IVM (ingress VLAN mapping) conversion during processing; the uplink port uplink processing module is a data egress port, and performs EVM (egress VLAN mapping) conversion during processing.
In the downlink direction, the uplink port downlink processing module is a data flow inlet, and performs IVM (ingress VLAN mapping) conversion during processing; the user port downlink processing module is a data flow outlet and performs EVM (egress VLAN mapping) conversion during processing.
Any stream entering a device port is standardized by default to make the stream a double tag. Normalization of double tags is divided into the following three cases:
1) for a single tag data stream, an SVLAN (Service Provider VLAN) or a CVLAN (Customer VLAN) is added according to different situations, where the SVLAN corresponds to an outer tag and the CVLAN corresponds to an inner tag. By default, the SVLAN and CVLAN values are equal to those of the port's PVLAN (PVLAN refers herein to port default VLAN, i.e., the port default VLAN, CVLAN values are reconfigurable individually).
2) For the data stream of double tag, the tag carried by the data stream is adopted without modification.
3) For an untagged data stream, a PVLAN with a default port is marked on both the inner layer and the outer layer (in actual application, the inner layer and the outer layer vlan may be set to be different, and in case of default non-configuration: the inner CVLAN and the outer SVLAN are the same and both values are PVLAN).
As shown in fig. 2, the upstream data flow needs to be processed as follows:
21. the UNI Port IVM processing module (i.e., the user Port uplink processing module, as mentioned above, performs IVM processing on the user Port in the uplink direction), and performs processing including:
211. the following processing is carried out for each stream to be converted:
creating flow ids (stream identifiers) for distinguishing different data streams, namely different data stream flow ids are different;
setting vport id (virtual Port number) which is different from UNI Port (physical Port) of the equipment, and is used for distinguishing that streams corresponding to the same physical Port need to be converted into different CVLANs during downlink 1: N conversion, and marking different vport ids for different source VLANs;
and replacing the outer tag value as a destination SVLAN, namely, a VLAN tag carried by the converted uplink data stream.
212. And judging whether the priority needs to be modified or not, if not, using the default priority, and if so, re-marking the priorities of the inner and outer layer tags of the matched stream. The priority of the inner layer and the outer layer can adopt the following modification methods respectively: 1) priority of inner or outer layer of the duplicate stream; 2) the user defines the priority by himself.
213. An Address Resolution Logic (ARL) address table is caused to learn the converted VLAN.
Before 211, the port is standardized by default, all streams need to be marked into a double tag format, then whether VLAN conversion is configured or not is judged, and if not, the data stream is directly sent to the uplink port without modification; if yes, according to the local side MDU (multi-user unit) equipment configuration command of the Ethernet passive optical network, a VLAN conversion mode is established to be N:1, the purpose is to configure the equipment port learning outer layer tag to be SVLAN, configure the equipment UNI Ports and NNI Ports and set the Ports to be double tag mode, and TPID is 0x 8100.
And (3) stream matching, namely matching by establishing an uplink IVM conversion rule of the UNI Port, wherein the matching comprises matching the physical Port number of the source UNI Port and the VLAN tag value carried by the data stream before conversion, if the matching is not matched, the unmatched stream is sent to the uplink Port without modification, and if the matching is matched, the data stream is the stream to be processed, and the processing of the step 211 is started.
22. The NNI Port EVM processing module (i.e., the uplink Port uplink processing module, as mentioned above, performs EVM processing on the uplink Port in the uplink direction) performs processing including the following steps:
221. matching flow id (created in the previous step 211); matching the physical Port numbers of the source UNI Port and the destination NNI Port.
222. For the matched flow, the inner tag is removed, and the outer tag is replaced into the destination VLAN (in step 211, the outer tag replacement is already performed, and here, the outer tag replacement may not be performed any more, and the purpose of the replacement again is to further ensure the reliability of the replacement).
After the uplink data stream passes through the UNI Port, the uplink data stream conforms to the stream of the VLAN conversion entry, the ARL address table learns the MAC + source Port number + vport id + destination VLAN, in the exchange chip, the data stream is marked as double tag, the inner layer tag keeps the value of the source VLAN tag, and the outer layer tag is the value of the destination VLAN tag. After passing through the NNI Port equations, the data stream is converted to a single layer tag with the VLAN value being the destination VLAN. And the VLAN is successfully converted for the uplink data stream which accords with the conversion rule, and the uplink port obtains the converted VLAN and the data stream with the priority re-marked.
For data stream with VLAN tag not conforming to conversion rule, the outer tag is marked as default VLAN (PVLAN) of source UNI Port through standardization, and the inner layer keeps original VLAN tag of data stream. After passing through the NNI Port, whether to strip the outer tag is determined according to the tag/untag attribute of the uplink Port. If PVLAN adds NNI Port in tag mode, the data stream is converted into double-layer tag after going out of the uplink Port, the inner layer keeps VLAN tag unchanged, and the outer layer tag is marked as PVLAN. On the contrary, if the PVLAN is added to the upstream port in the untag mode, the data stream is single tag after being taken out of the upstream port, and the VLAN keeps the VLAN carried by the original data stream unchanged.
For the untag message, through standardization, both the inner and outer layer tags are marked as default VLANs of the source UNI Port (actually, the inner and outer layer VLANs can be set to be different, and the inner and outer layer VLANs are both PVLANs when the default is not set). After passing through the NNI Port, whether to strip the outer tag is determined according to the tag/untag attribute of the uplink Port. If PVLAN adds NNI Port in tag mode, the data stream is converted into single tag after going out of the uplink Port, and the VLAN value is PVLAN. On the contrary, if the PVLAN is added to the uplink port in the unary mode, the data stream is unary after going out of the uplink port.
As shown in fig. 3, the downstream data stream needs to be processed as follows:
31. the NNI Port IVM processing module (i.e., the uplink Port downlink processing module, as described above, performs IVM processing on the uplink Port in the downlink direction) performs processing including the steps of:
311. creating a flow id 'of the downstream to be converted, wherein the flow id' is used for distinguishing different data flows; the outer tag is replaced for the downstream with a tag value of SVLAN that needs to be converted.
312. And judging whether the priority needs to be modified or not, if not, using the default priority, and if so, re-marking the priorities of the inner and outer layer tags of the matched stream. The priority of the inner layer and the outer layer can adopt the following modification methods respectively: 1) priority of inner or outer layer of the duplicate stream; 2) the user defines the priority by himself.
313. An Address Resolution Logic (ARL) address table is made to learn the VLAN before conversion.
Before 311, the port is standardized by default, all streams need to be marked into a double tag format, then whether VLAN conversion is configured or not is judged, and if not, the data stream is directly sent to a user port without modification; if yes, establishing a VLAN conversion mode as N:1, performing stream matching by establishing an NNI Port downlink IVM conversion rule, matching the converted outer tag value (target VLAN value) and the physical Port number of the NNI Port, if not, not modifying the unmatched stream to send to the user Port, if matched, the data stream is the stream to be processed, and starting the processing of the step 311.
32. The UNI Port EVM processing module (i.e. the user Port downstream processing module, as mentioned above, performs EVM processing on the user Port in the downstream direction), and the processing includes the following steps:
321. flow id' is matched (created in step 311 above), vport id corresponding to the VLAN to be converted (one-to-one with vport id created by upstream I VM) and physical Port numbers of UNI Port and NNI Port are matched.
322. And for the matched flow, removing the outer tag, and replacing the inner tag, namely modifying the inner VLAN to the VLAN corresponding to the vport.
After the downlink data stream passes through the UNI Port, the stream conforms to the stream of the VLAN conversion entry, the ARL address table learns the MAC + source Port number + vport id (the default value is 0 at this time) + the destination VLAN, the data stream marker in the exchange chip is marked as double tag, the inner layer tag keeps the source VLANtag value, and the outer layer tag is the destination VLANtag value. After UNI Port to egr, the data stream is converted to a single layer tag with the VLAN value of the source VLAN. And the VLAN is successfully converted in the downlink data stream which accords with the conversion rule, and the user interface obtains the source VLAN before conversion and the data stream with the priority re-marked.
For the data stream which does not accord with the conversion rule, if the data stream is double tag, the inner and outer layer tags are kept unchanged after entering NNI Port; if it is a single tag, the outer layer remains unchanged and the inner layer is labeled pVLAN with tag value NNI Port. After passing through the UNI Port, whether to strip the outer tag is determined according to the tag/untag attribute of the user Port. The VLAN in the inner layer keeps the VLAN carried by the original data stream unchanged.
For an untag message, through standardization, both the inner and outer layer tags are marked as default VLANs of NNI ports (actually, the inner and outer layer VLANs can be set to be different, and the inner and outer layer VLANs are the same and are all PVLANs under the condition of not setting by default). After passing through the UNI Port, whether to strip the outer tag is determined according to the tag/untag attribute of the user Port. If the PVLAN is added to the UNI Port in tag mode, the data stream is converted to a single-layer tag, and the VLAN value is PVLAN. On the contrary, if the PVLAN joins the upstream port in the untag mode, the data flow is untag.
As shown in fig. 4, VLAN processing of a data flow includes:
for any port, the following processing can be adopted for any data flow in the ingress direction:
and (Ia) resetting the VLAN and the vport id so that the ARL table learns the set VLAN.
(Ib) flag stream flow id.
(Ic) changes the 802.1p inner and outer layer tag priorities.
In the egr (exit) direction the following can be taken:
(Ea) keep Vid consistent with the normalized action on the stream ingress port.
(Eb) keep as before the package comes in, if there is an untag at the time of the incoming, the exit ctag is stripped.
(Ec) replacing the egress inner and outer layer VLANs with Svid and Cvid obtained in the standardisation procedure.
(Ed) the inner and outer VLAN values are set by the user.
(Ee) removing tag carried by the stream.
The following describes the conversion function of each module by using an application example with reference to fig. 1.
First, for the upstream switch module, assume that there are five upstream streams going up to the uplink NNI port4 via UNI port1, port2, and port3, respectively, wherein,
flow 1 is double tag, its VLAN tag is cvlan x1, svlan y1, source port is UNI port1 (port default VLAN p 1);
stream 2 is untag and the source port is UNI port 1;
stream 3 is single tag, VLAN tag is cvlan x2, and source port is UNI port2 (port default VLAN p 2);
stream 4 is single tag, its VLAN tag is cvlan x3, and the source port is UNI port 2;
stream 5 is single tag, its VLAN tag is cvlan x4, and the source port is UNI port3 (port default VLAN p 3);
the stream respectively passes through different UNI ports port1, port2 and port3, and the tag is normalized as follows:
VLAN tag of flow 1 is cvlan x1, svlan y 1;
VLAN tag of flow 2 is cvlan p1, svlan p 1;
VLAN tag of stream 3 is cvlan x2, svlan p 2;
VLAN tag of stream 4 is cvlan x3, svlan p 2;
VLAN tag of stream 5 is cvlan x4, svlan p 3;
if conversion is needed, configuring an N:1 conversion mode; assuming that streams 3, 4, 5 meet the conversion requirement, the vlan to be converted is z.
And the stream 1 and the stream 2 do not accord with the conversion rule and are directly sent to the upper connection port. Stream 1 remains doubletag after the up-connection (cvlan x1, svlan y 1). If vlan p1 added to the top connection as untag, stream 2 still left untag after exiting the top connection; if vlan p1 was added as tag to the uptake, stream 2 exited the uptake and became single tag (vlan p 1).
Streams 3, 4, 5 were treated as follows:
1. through a user interface uplink processing module:
marking the flow id of the stream 3 as 1, the vport id as 1, replacing the outer tag as a target vlan, namely changing the standardized vlan of the stream 3 into cvlan x3 and svlan z;
marking the flow id of the flow 4 as 2 and the vport id as 2 (since the flow 3 and the flow 4 are both from port2, vport must be different), replacing the outer tag as the destination vlan, namely changing the standardized vlan of the flow 4 into cvlan x4 and svlan z;
marking the flow id of the stream 5 as 3 and the vport id as 1 (since the stream 5 and the stream 3 are from different ports, vport can be the same), replacing the outer tag as the destination vlan, namely changing the standardized vlan of the stream 5 into cvlan x5 and svlan z;
the ARL learning for stream 3 is: MAC1+ SVLAN z + port2+ vport id (1);
the ARL learning for stream 4 is: MAC2+ SVLAN z + port2+ vport id (2);
the ARL learning for stream 5 is: MAC3+ SVLAN z + port3+ vport id (1);
2. go upward through upper connection port and process module
In the uplink EVM conversion rule of the NNI port, flow ids are matched, flows with flow ids 1, 2, and 3 are all matched flows, UNI port numbers (ports) are matched, ports 2 and 3 are both matched ports, the outlet direction is matched with the NNI port number, assuming that all flows 3, 4, and 5 are sent to the corresponding NNI ports, the flows are processed by the processing module of the NNI port, and if the flows are sent to other NNI ports, the flows are considered to be unmatched.
For the matched streams, the inner-layer tag is stripped from the streams 3, 4 and 5, the outer-layer tag is reserved, namely the streams are all changed into single tag messages after going out of the uplink port, and the vlan of the single tag messages is the vlan z which needs to be converted.
For unmatched streams, the inner cvlan is retained, and whether the outer svlan (assumed to be m) is stripped or not is related to whether the upper connector vlan m attribute is tag or untag.
And ending the conversion of the uplink data.
For the downstream conversion module, the processing procedure is similar to that for the streams not matching the conversion rule, and only the processing procedure for the streams conforming to the conversion rule is described in detail here. Assume that there are three downstream streams 6, 7, 8 corresponding to streams 3, 4, 5, whose destination macs are the source macs of streams 3, 4, 5, respectively, and whose vlans are all single tags (vlan z).
1. Goes through the uplink port and the downlink processing module
Matching the physical port number of the uplink port, marking the flow ids of the streams 6, 7 and 8 to be 4 (the flow ids are also required to be the same as the following vlan), replacing the outer layer tag as the target vlan, wherein the streams 6, 7 and 8 are double tags, the outer layer svlan z and the inner layer cvlan are the PVLAN of the uplink port;
the ARL learning for stream 6 is: MAC4+ SVLAN z + port4+ vport id (0);
the ARL learning for stream 7 is: MAC5+ SVLAN z + port4+ vport id (0);
the ARL of stream 8 learns as: MAC6+ SVLAN z + port4+ vport id (0);
2. processing module for descending through user interface
The uplink port number port4 and the user port number port2 are matched for flow 6 and flow 7, and flow id 4 is matched. By table lookup, stream 6 matches vport 1, the cvlan in the inner layer is modified to x2, the svlan in the outer layer is removed, and the stream is changed into a single tag (vlan x2) after going out of port2 and corresponds to stream 3; stream 7 matches vport 2, modifies the cvlan in the inner layer to x3, removes the svlan in the outer layer, and changes to single tag (vlan x3) after port2 is output to correspond to stream 4; stream 8 matches port number port4 of the uplink port and port number port2 of the user port, matches flow id 4, matches vport 1, modifies the vlan of the inner layer to x4, and changes to single tag (vlan x4) after going out of port3 to correspond to stream 5.
And ending the conversion of the downlink data. The whole VLAN conversion process is finished.
The basic flow of the broadcast message is the same as the above, only the port isolation among UNI Ports is added, and the uplink data flow is ensured not to flood among user Ports. The VLAN conversion and translation realized by the invention can convert any stream into the messages of double tags and single tags or untags after passing through MDU equipment, and the VLAN conversion process is convenient and the maintenance is simple. The priority of the tag message can be arbitrarily marked or kept unchanged, and the priority of the stream can be marked while the VLAN is modified. The priority of the stream can realize the mutual copy of the inner and outer layer priorities, namely, the inner layer TAG priority of the stream is copied to the outer layer TAG priority of the converted stream or the outer layer priority is copied to the inner layer. Broadcast to the Transparent Service VLAN can be achieved, and the converted Broadcast packet is completely isolated at the downlink user port. The invention can completely meet the requirements of telecommunication TR101 standard, has simple configuration, stable performance, convenient maintenance and upgrade and wide application range.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (11)

1. A virtual local area network processing method based on stream is characterized by comprising a VLAN processing process of an upstream data stream, wherein the VLAN processing process of the upstream data stream comprises the following steps:
carrying out double-label standardization on the data stream entering the port;
performing user port uplink processing on the data stream, including establishing a stream identifier for the data stream to be processed, setting a virtual port number and replacing the outer layer tag as a destination VLAN;
and performing uplink port uplink processing on the data stream, wherein the uplink port uplink processing comprises removing the inner layer label for the data stream subjected to the user port uplink processing.
2. The method of claim 1, wherein the dual tag normalization comprises:
if the data stream is a double-label data stream, no modification is made;
if the data stream is a single-label data stream, adding a port default PVLAN (virtual private LAN) to be an SVLAN or a CVLAN;
if the data flow is label-free, the inner layer and the outer layer are marked with a port default PVLAN.
3. The method of claim 1, further comprising: and learning the destination VLAN replaced by the outer layer label in the address resolution logic table.
4. The method of claim 1, further comprising, between the user port upstream processing and the uplink port upstream processing: the inner and outer layer priorities of the data stream are modified.
5. The method of any of claims 1-4, further comprising, prior to the user-friendly upstream processing of the data stream: and matching the source VLAN with the user port number of the data stream, and taking the matched data stream as the data stream to be processed.
6. A virtual local area network processing method based on stream is characterized by comprising a VLAN processing process of a downstream data stream, wherein the VLAN processing process of the downstream data stream comprises the following steps:
carrying out double-label standardization on the data stream entering the port;
performing uplink port downlink processing on the data stream, including establishing a stream identifier for the data stream to be processed and replacing the outer label as a destination VLAN;
and carrying out user port downlink processing on the data stream, wherein the user port downlink processing comprises deleting an outer layer tag for the data stream subjected to uplink port downlink processing and replacing the inner layer tag with a VLAN (virtual local area network) corresponding to the virtual port number.
7. The method of claim 6, wherein the dual tag normalization comprises:
if the data stream is a double-label data stream, no modification is made;
if the data stream is a single-label data stream, adding a port default PVLAN (virtual private LAN) to be an SVLAN or a CVLAN;
if the data flow is label-free, the inner layer and the outer layer are marked with a port default PVLAN.
8. The method of claim 6, further comprising, between the uplink port downlink processing and the user port downlink processing: the inner and outer layer priorities of the data stream are modified.
9. The method of any of claims 6-8, further comprising, prior to performing upstream downstream processing on the data stream: and matching the outer layer label and the upper port number of the data stream, and taking the matched data stream as the data stream to be processed.
10. A stream-based virtual local area network processing system, comprising: an upstream VLAN processing device, comprising:
the uplink standardization module is used for carrying out double-label standardization on the data flow entering the port;
the user port uplink processing module is used for carrying out user port uplink processing on the data stream, and comprises the steps of establishing a stream identifier for the data stream to be processed, setting a virtual port number and replacing an outer layer label as a destination VLAN;
and the uplink port uplink processing module is used for performing uplink port uplink processing on the data stream, and comprises removing the inner layer label for the data stream subjected to the user port uplink processing.
11. A stream-based virtual local area network processing system, comprising: a downstream VLAN processing device, the downstream VLAN processing device comprising:
the downlink standardization module is used for carrying out double-label standardization on the data stream entering the port;
the uplink port downlink processing module is used for performing uplink port downlink processing on the data stream, and comprises the steps of establishing a stream identifier for the data stream to be processed and replacing the outer layer tag as a target VLAN;
and the user port downlink processing module is used for performing user port downlink processing on the data stream, and comprises deleting an outer layer tag for the data stream subjected to uplink port downlink processing and replacing the inner layer tag with a VLAN corresponding to the 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 true CN101895427A (en) 2010-11-24
CN101895427B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480652A (en) * 2010-11-29 2012-05-30 中兴通讯股份有限公司 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
CN103475559A (en) * 2013-09-18 2013-12-25 北京锐安科技有限公司 Method and system for processing and transmitting message according to contents of message
CN104104571A (en) * 2013-04-10 2014-10-15 中兴通讯股份有限公司 Method and apparatus for realizing virtual local area network (VLAN) 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
CN104883325A (en) * 2014-02-27 2015-09-02 国际商业机器公司 PVLAN switch and method of connecting the PVLAN switch to non-PVLAN apparatus
CN105634985A (en) * 2016-01-21 2016-06-01 烽火通信科技股份有限公司 Processing method of FTTdp (Fiber to the Distribution Point) multi DSL (Digital Subscriber Line) port ONU (Optical Network Unit) service flow
CN105915427A (en) * 2016-03-31 2016-08-31 华为技术有限公司 Message sending and receiving method and message sending and receiving equipment
CN107493524A (en) * 2017-09-21 2017-12-19 烽火通信科技股份有限公司 A kind of method for realizing virtual OLT
CN111614566A (en) * 2020-06-02 2020-09-01 中电科航空电子有限公司 Method, device and system for forwarding airborne data stream and readable storage medium
CN111698141A (en) * 2019-03-13 2020-09-22 中兴通讯股份有限公司 Message forwarding method and device

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

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480652A (en) * 2010-11-29 2012-05-30 中兴通讯股份有限公司 Method for mapping service flow and ONT (Optical Network Termination)
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
CN104104571A (en) * 2013-04-10 2014-10-15 中兴通讯股份有限公司 Method and apparatus for realizing virtual local area network (VLAN) 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
CN103475559A (en) * 2013-09-18 2013-12-25 北京锐安科技有限公司 Method and system for processing and transmitting message according to contents of message
CN103475559B (en) * 2013-09-18 2017-01-11 北京锐安科技有限公司 Method and system for processing and transmitting message according to contents of message
US10038636B2 (en) 2014-02-27 2018-07-31 International Business Machines Corporation Connecting a PVLAN switch to a non-PVLAN device
US10574573B2 (en) 2014-02-27 2020-02-25 International Business Machiness Corporation Connecting a PVLAN switch to a non-PVLAN device
CN104883325A (en) * 2014-02-27 2015-09-02 国际商业机器公司 PVLAN switch and method of connecting the PVLAN switch to non-PVLAN apparatus
CN104883325B (en) * 2014-02-27 2018-02-06 国际商业机器公司 PVLAN interchangers and its method for being connected to non-PVLANs device
US9935878B2 (en) 2014-02-27 2018-04-03 International Business Machines Corporation Connecting a PVLAN switch to a non-PVLAN 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
CN105634985A (en) * 2016-01-21 2016-06-01 烽火通信科技股份有限公司 Processing method of FTTdp (Fiber to the Distribution Point) multi DSL (Digital Subscriber Line) port ONU (Optical Network Unit) service flow
CN105915427A (en) * 2016-03-31 2016-08-31 华为技术有限公司 Message sending and receiving method and message sending and receiving equipment
CN105915427B (en) * 2016-03-31 2019-12-17 华为技术有限公司 Message sending and receiving method and device
CN107493524A (en) * 2017-09-21 2017-12-19 烽火通信科技股份有限公司 A kind of method for realizing virtual OLT
CN107493524B (en) * 2017-09-21 2020-02-11 烽火通信科技股份有限公司 Method for realizing virtual OLT
CN111698141A (en) * 2019-03-13 2020-09-22 中兴通讯股份有限公司 Message forwarding method and device
CN111698141B (en) * 2019-03-13 2022-12-02 中兴通讯股份有限公司 Message forwarding method and device
CN111614566A (en) * 2020-06-02 2020-09-01 中电科航空电子有限公司 Method, device and system for forwarding airborne data stream and readable storage medium
CN111614566B (en) * 2020-06-02 2021-11-09 中电科航空电子有限公司 Method, device and system for forwarding airborne data stream and readable storage medium

Also Published As

Publication number Publication date
WO2012009893A1 (en) 2012-01-26
CN101895427B (en) 2014-08-13

Similar Documents

Publication Publication Date Title
CN101895427A (en) Stream-based virtual local area network processing method and system
EP2383944B1 (en) Ethernet switching and forwarding method, system and apparatus
CN101160850B (en) Method and device for forwarding packet
US8902757B2 (en) Method and system for transparent LAN services in a packet network
US7920567B2 (en) Switching hub and LAN system
CN102170385B (en) Method for transmitting Ethernet frame in Ethernet tree business and provider edge device
ES2780933T3 (en) An optical network terminal, a message processing method and corresponding system
CN1286297C (en) Method of realizing sign delivery of user's position
US20060031925A1 (en) Access control method and apparatus
CN100442777C (en) Service quality managing method based on VLAN stack
CN102045607B (en) Method for enhancing QoS (Quality of Service) and VLAN (Virtual Local Area Network) processing capability in EPON (Ethernet Passive Optical Network) system
CN102857400B (en) The method for building up of broadcast domain and device in a kind of Layer 2 virtual private network
CN100397844C (en) Method for sending virtual LAN data
CN104202229B (en) A kind of device for passive optical network OLT QINQ message processing methods and system
CN107579899B (en) Access method and device for realizing VLAN (virtual local area network) isolation in VPLS (virtual private LAN service)
JP2009118127A (en) Data communication system and transfer frame
EP2071766B1 (en) System and method for improved traffic aggregation in an access network
CN105245388B (en) A kind of miniaturization access PTN device and its configuration method, system
Zhang Analysis of Virtual Local Area Networking Technology
Xun-yi et al. Research of access control strategy in EOC system based on VLAN
CN116208441A (en) Linux VLAN processing system of virtual group architecture

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