Access Network is realized method and the access node that double layer VLAN Ethernet message is transmitted
Technical field
The present invention relates to the network communications technology field, be specifically related to method and access node that a kind of Access Network realizes that double layer VLAN Ethernet message is transmitted.
Background technology
In the WT101 of DSL Forum (Digital Subscriber Line forum), in order to improve the extensibility of network size, the double layer VLAN (VLAN) of having quoted IEEE 802.1ad definition is VLAN Stack (storehouse), as the sign that inserts the business and residence customer, wherein, it is C-VLAN that inner VLAN is called user vlan, and it is S-VLAN that outside VLAN is called service VLAN.
Stipulate among the IEEE 802.1ad that inner VLAN adopts the sign of EtherType (ethernet type) the value 0x8100 identical with IEEE 802.1Q as C-VLAN, outside VLAN adopts the EtherType value that is different from inner VLAN, so that and C-VLAN difference.Also do not determine the concrete value of outside VLAN at present.
According to the VLAN Stack application structure that defines among the WT101, when VLAN Stack is applied in the DSL Access Network, implication in the application scenarios of the implication of VLAN Stack and original 802.1ad definition is not quite identical, in fact, VLAN Stack represents different implications in two kinds of different application scenes of DSL Access Network.
1, in the residential customer application scenarios, VLAN Stack is the access sign of residential customer, S-VLAN is the combination of access node and type of service, is used for distinguishing different access nodes and type of service, makes the flow of different access nodes and different business converge on the net and can isolate and identify.C-VLAN is the sign of the inner different user of access node, be used for realizing the isolation and the sign of flow between the interior different user of same access node, C-VLAN is only meaningful to access node and BNG (wideband network gateway), aggregation node does not need perception C-VLAN, only need can transmit based on S-VLAN.C-VLAN obtains based on the mapping of the user on the line attachment port.
2, under the application scenarios of enterprise's access via telephone line, VLAN Stack is as the access sign of enterprise's individual line subscriber, and S-VLAN is the sign of enterprise, is used for identifying and isolating the flow of specific enterprise.C-VLAN is the self-administered sign of enterprise, is used for realizing the flow isolation of enterprises, and DSL (Digital Subscriber Line) network does not need perception C-VLAN.
Because the aggregation node in the network be can't see C-VLAN, only transmit based on S-VLAN, so above-mentioned two kinds of application scenarioss are as broad as long to aggregation node, aggregation node can adopt identical processing mode in two kinds of application scenarioss.But access node needs to adopt different messages to transmit processing mode in two kinds of different application scenarioss.
When access node when uplink port receives the message of residential customer, C-VLAN in the message is the sign of specific residential customer, and same user's different business all needs to be forwarded on the same subscriber's line, like this, access node only need carry out message based on C-VLAN and transmits and to get final product.And S-VLAN has only carried the information of different business, and S-VLAN does not provide any information for the message repeating process of access node.
When access node when uplink port is received enterprise customer's message, the S-VLAN in the message is specific enterprise user's a sign, C-VLAN is provided with and does not have the effect of sign enterprise voluntarily by enterprise.Like this, access node only need carry out the message forwarding based on S-VLAN and get final product, and need not carry out message based on C-VLAN and transmit.
The WT101 regulation of DSL Forum, the DSL Access Network need be deferred to the standard supported vlans Stack of 802.1ad.
When the VLAN Stack of 802.1ad standard is deferred in the employing of DSL Access Network, 802.1ad the VLANStack form of regulation can't be distinguished residential customer and enterprise customer's application, like this, access node receives message when transmitting from uplink port, need to judge that according to outer S-VLAN this message is enterprise customer's the message or the message of residential customer earlier, if enterprise customer's message, then adopting S-VLAN to carry out message transmits, if the message of residential customer then adopts C-VLAN to carry out message and transmits.Access node also can adopt the mode of S-VLAN+C-VLAN to carry out message and transmit.The message repeating process complexity of access node.
Summary of the invention
The objective of the invention is to, provide a kind of Access Network to realize method and access node that double layer VLAN Ethernet message is transmitted, utilize the different values of the ethernet type of inner VLAN, make access node can judge the access user type of message easily and efficiently, thereby simplified the message repeating process of access node, improved the message forward efficiency of access node.
For achieving the above object, a kind of Access Network provided by the invention is realized the method that double layer VLAN Ethernet message is transmitted, and comprising:
A, be packaged into different values, and transfer to access node by the uplink port of access node according to inserting the ethernet type of user type with the inner VLAN of double layer VLAN Ethernet message;
B, access node directly determine to insert user type according to the ethernet type of the inner VLAN of the message of its reception;
C, access node carry out the message forwarding according to inserting user type.
Described access user type comprises: residential customer, enterprise's individual line subscriber.
The access user type identification information of described residential customer correspondence is: the ethernet type value of IEEE 802.1Q, the access user type identification information of enterprise's individual line subscriber correspondence is: the value different with the ethernet type value of IEEE 802.1Q.
Described step a specifically comprises:
Network side is according to inserting the ethernet type that user type is provided with the inner VLAN in the message that needs are sent to described access node, and transfers to access node by network-side port.
Described step a specifically comprises:
The broad access network gate BNG of the network side of access node place end is when message encapsulation double layer VLAN Ethernet message of the residential customer that to be it receive from core net, the ethernet type of inner VLAN is set to the ethernet type of residential customer correspondence, and with this message transmissions to access node;
The BNG of the network side of access node place end is when message encapsulation double layer VLAN Ethernet message of enterprise's individual line subscriber that to be it receive from core net, the ethernet type of inner VLAN is set to the ethernet type of enterprise's individual line subscriber correspondence, and with this message transmissions to access node; Or
The opposite end network equipment is when being the message encapsulation double layer VLAN Ethernet message of enterprise's individual line subscriber of its transmission, and the ethernet type of inner VLAN is set to the ethernet type of enterprise's individual line subscriber correspondence, and with this message transmissions to described access node.
Access node in the described method is also carried out following operation:
Described access node receives the message that has 802.1Q VLAN and this message need be forwarded to uplink port the time from the user port of enterprise's individual line subscriber, the ethernet type of the inner VLAN of message is set to the ethernet type of enterprise's individual line subscriber correspondence, and after increasing outside VLAN, this message is sent by uplink port;
When access node carried out the double layer VLAN interpolation for its message that receives from the residential customer port, the ethernet type of inner VLAN was set to the ethernet type value of residential customer correspondence, and this message is sent by uplink port;
Described step c comprises: when access node receives that from network-side port the ethernet type of inner VLAN is the message of ethernet type of enterprise's individual line subscriber, the ethernet type value of the inner VLAN of message is set to the ethernet type value of IEEE 802.1Q, and after removing outside VLAN, this message is sent to enterprise's individual line subscriber port.
Access node in the described method is also carried out following operation: access node is determining that its message that receives from the user port of enterprise's individual line subscriber need be forwarded to ethernet type the inner VLAN of upstream Interface and this message when being the ethernet type value of enterprise's individual line subscriber correspondence, abandons described message.
Described step c comprises: when the access user type of determining message was residential customer, access node carried out message according to the inner VLAN of message and transmits.
Described step c comprises: when the access user type of determining message was enterprise's individual line subscriber, access node carried out message according to the outside VLAN of message and transmits.
The present invention also provides a kind of access node, comprising: descending forwarding inserts user type judge module and packet forwarding module;
Descending forwarding inserts the user type judge module: directly determine the access user type of this message according to access node by the different values of the ethernet type of the inner VLAN of the message of uplink port reception, and transmit it to packet forwarding module;
Packet forwarding module: the message that the access node uplink port is received according to the access user type of its reception carries out message and transmits.
Described packet forwarding module comprises:
Uplink message is transmitted submodule: when access node receives message and this message need be forwarded to upstream Interface the time from enterprise's individual line subscriber port, ethernet type value in the inner VLAN of message is revised as the value different with the ethernet type value of IEEE 802.1Q, and after increasing outside VLAN, by the uplink port transmission of access node;
Descending modification submodule: insert the access user type that the transmission of user type judge module comes according to descending forwarding, the ethernet type of the inner VLAN of the message of enterprise's individual line subscriber is revised as the ethernet type value of IEEE 802.1Q and the outside VLAN of deletion message;
Downlink message is transmitted submodule: when the next access user type information of descending forwarding access user type judge module transmission is enterprise's individual line subscriber, carrying out downlink message according to the outside VLAN of message transmits, when descending forwarding inserts access user type information that the transmission of user type judge module comes and is residential customer, carry out downlink message according to the user port of the inner VLAN correspondence of message and transmit.
Description by technique scheme as can be known, the different values of the ethernet type of the present invention by utilizing inner VLAN identify the access user type, avoided access node to search the process that inserts user type according to S-VLAN, make the access user type that access node can convenient, fast and accurate definite message, make access node can be applicable to easily that the message in the different application scene transmits; The present invention can represent residential customer with Ethernet types value 0x8100, represents enterprise's individual line subscriber with particular value, and same, the present invention also can represent enterprise's individual line subscriber with Ethernet types value 0x8100, represents residential customer etc. with particular value; Thereby the message repeating process of access node, the purpose of raising access node message forward efficiency have been realized simplifying by technical scheme provided by the invention.
Description of drawings
Fig. 1 is an access node schematic diagram of the present invention.
Embodiment
The core of method of the present invention is: be packaged into different values according to inserting the ethernet type of user type with the inner VLAN of double layer VLAN Ethernet message, and transfer to access node by the uplink port of access node, access node directly determines to insert user type according to the ethernet type of the inner VLAN of the message of its reception, and access node carries out the message forwarding according to inserting user type.
Based on core concept of the present invention technical scheme provided by the invention is further described below.
The present invention at first needs to be provided with according to different access user types the different values of the ethernet type of message inner VLAN, promptly carries the identification information that inserts user type in the ethernet type of the inner VLAN of message.
Transfer to by network side should carry in the ethernet type of inner VLAN of message of access node and insert the user type identification information, like this, access node does not need to search the access user type according to S-VLAN again, directly the content of carrying in the ethernet type according to inner VLAN just can determine that this message is the message of residential customer, or the access via telephone line user's of enterprise message.
The ethernet type of inner VLAN that transfers to the message of access node can be provided with by the BNG of the network side of access node place end, as BNG when message encapsulation double layer VLAN Ethernet message of the residential customer that to be it receive from core net, the ethernet type of inner VLAN is set to the ethernet type of residential customer correspondence, and with this message transmissions to access node; BNG is when message encapsulation double layer VLAN Ethernet message of enterprise's individual line subscriber that to be it receive from core net for another example, and the ethernet type of inner VLAN is set to the ethernet type of enterprise's individual line subscriber correspondence, and with this message transmissions to access node.
The ethernet type of inner VLAN that transfers to the message of access node can be provided with by the opposite end network equipment, be provided with as BNG by the opposite end network side, when BNG encapsulates double layer VLAN Ethernet message at the message that is enterprise's individual line subscriber of its transmission, the ethernet type of inner VLAN is set to the ethernet type of enterprise's individual line subscriber correspondence, and with this message transmissions to described access node; Be provided with by the opposite end access node for another example.
When the ethernet type that utilizes inner VLAN carries access user type identification information, can represent residential customer with the ethernet type value 0x8100 of 802.1Q, use with the ethernet type value of 802.1Q numerical value inequality and identify enterprise's individual line subscriber, this numerical value can be the EtherType (Enterprise-Customizeed Ethertype) of the self-defined VLAN of enterprise, be called for short EC Ethertype, the value of this numerical value can be distributed by IANA (Internet Assigned Number Authority).Certainly, above-mentioned setting also can be opposite, promptly use the ethernet type value 0x8100 of 802.1Q to represent enterprise's individual line subscriber, with identifying residential customer with the ethernet type value of 802.1Q numerical value inequality, equally, the identification information of residential customer and enterprise's individual line subscriber can all be self-defining numerical value also.
Below with the ethernet type value 0x8100 of 802.1Q represent residential customer, with the ethernet type value of 802.1Q numerical value sign enterprise individual line subscriber inequality be example, access node in two kinds of different application scenarioss is realized the method for message forwarding is elaborated.
In the residential customer application scenarios, S-VLAN can be called dwelling house S-VLAN, i.e. RS-VLAN, and C-VLAN can be called dwelling house C-VLAN, i.e. RC-VLAN.In enterprise's individual line subscriber application scenarios, it is EC-VLAN that C-VLAN can be called the self-defined VLAN of enterprise (Enterprise Customized VLAN), and S-VLAN can be called the S-VLAN of enterprise, i.e. ES-VLAN.
Access node is when the user port of enterprise's individual line subscriber receives message, if this message need be forwarded to uplink port, whether the EtherType that then judges the inner VLAN of message is EC EtherType, if be EC EtherType, then directly with this packet loss; If be not EC EtherType, then need value is changed more EC Ethertype for the EtherType of the inner VLAN of 0x8100, then, this message is added S-VLAN, send to uplink port, by uplink port message is sent to network side.
Access node directly is sent to network side with it by uplink port when the user port of residential customer receives message.
BNG (broad access network gate) is when message encapsulation double layer VLAN Ethernet message of the residential customer that to be it receive from core net, the ethernet type of inner VLAN is set to 0x8100, and the uplink port of this message by access node transferred to access node.
BNG is sent to the ethernet type of the inner VLAN in the message of access node also can be by the opposite end network settings, when the opposite end network equipment encapsulates double layer VLAN Ethernet message at the message that is enterprise's individual line subscriber of its transmission, the ethernet type of inner VLAN is set to EC EtherTyp, and with the access node of this message transmissions to message sink.The opposite end network equipment can be the BGN of opposite end network side, can be the access node of opposite end network side.
When access node receives message from uplink port, directly judge the access user type of this message according to the EtherType among the VLAN in the message, judge promptly whether the EtherType in the inner VLAN of message is 0x8100, if the EtherType in the inner VLAN is 0x8100, show that then this message is the message of residential customer, access node carries out message according to internal layer RC-VLAN and transmits; If the EtherType in the inner VLAN is not 0x8100, access node then carries out message according to outer ES-VLAN and transmits.
Access node carries out the process that message transmits according to outer ES-VLAN: the EC EtherType value of the EtherType of inner VLAN is changed to 0x8100, and remove the outer S-VLAN of this message, then, this message is forwarded on the user port.
In access node, if ES-VLAN and RC-VLAN take same VLAN 4K space, then by the used ES-VLAN value of enterprise's individual line subscriber, can not be used by the RC-VLAN of the residential customer of this access node again, at this moment, the summation of enterprise's individual line subscriber of this access node support and residential customer is 4K.
Access node provided by the invention as shown in Figure 1.
Among Fig. 1, access node comprises: descending forwarding inserts user type judge module and packet forwarding module, and the function of packet forwarding module transmits submodule by descending modification submodule, downlink message and uplink message forwarding submodule is realized.
Uplink message transmit submodule be mainly used in when access node when the user port of enterprise's individual line subscriber receives message, ethernet type value in the inner VLAN of message is revised as the ethernet type value EC EtherType of enterprise's individual line subscriber correspondence, EC EtherType promptly inserts the user type identification information, and after increasing S-VLAN, by the uplink port transmission of access node.
Descending forwarding access user type judge module is mainly used in the access user type of determining this message according to the numerical value of the EtherType of the inner VLAN of the message of access node uplink port reception, as judge whether the EtherType in the inner VLAN of message all is 0x8100, if the EtherType in the inner VLAN is 0x8100, determine that then this message is the message of residential customer, transmits submodule with residential customer message transmission to downlink message; If the EtherType in the inner VLAN is not 0x8100, determine that then this message is the message of enterprise's individual line subscriber, enterprise's individual line subscriber message transmission to descending modification submodule and downlink message transmitted submodule.
Descending modification submodule is mainly used in when receiving the enterprise individual line subscriber information that inserts that the transmission of user type judge module comes, and the ECEtherType in the inner VLAN of the message that the access node uplink port is received is revised as EtherType such as 0x8100.
Downlink message is transmitted submodule and is being received when inserting the residential customer information that the transmission of user type judge module comes, and sends according to the inner VLAN of message, user port by corresponding residential customer; When receiving the enterprise individual line subscriber information that inserts that the transmission of user type judge module comes, with sending according to outside VLAN, user port by enterprise's individual line subscriber that the access node uplink port receives through revising the amended message of submodule.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, and the claim of application documents of the present invention comprises these distortion and variation.