Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method that realizes service distributing on accessing terminal, and this method can realize service distributing on accessing terminal.
The present invention also provides a kind of system that realizes service distributing on accessing terminal, and this system can realize service distributing in having the network that accesses terminal.
According to above-mentioned purpose, technical scheme of the present invention is achieved in that
A kind of method that on accessing terminal, realizes service distributing, this method comprises:
Go into after accessing terminal between the equipment receive message in subscriber equipment drawn game termination, the network of being administered according to the message operator is or/and the type of service of message, for message identification or peel off the virtual LAN VLAN label of the network that operator administers or/and behind the VLAN label of type of service, shunt.
Described network of administering according to the message operator is or/and the type of service of message is a message identification or to peel off the VLAN label be by carrying out for message identification or the function of peeling off the VLAN label of being provided with, and in the process of the function that is set to message identification VLAN label of accessing terminal is:
In the VLAN label that upstream Interface and downstream interface correspondence are set that accesses terminal, affiliated VLAN group and vlan port type, the corresponding relation of VLAN label and type of service is set on access device;
The network that described message operator is administered is to determine according to the VLAN label of the downstream interface of the subscriber equipment connection that sends message;
Message is when when the downstream interface that accesses terminal receives, and described network of being administered according to the message operator is or/and the type of service of message, and adopting described function is that message identification or the process of peeling off the VLAN label are:
The downstream interface that accesses terminal receives message, according to the vlan port type of downstream interface and corresponding VLAN label is the VLAN label of the message identification operator network of being administered, or/and be the VLAN label of message identification type of service according to the corresponding relation of VLAN label and type of service, be transmitted to the upstream Interface in the same VLAN group again, after upstream Interface receives this message, according to self the vlan port type and corresponding VLAN label to determine directly to shunt this message still be to identify or peel off shunting again behind the VLAN label again;
Message is when when the upstream Interface that accesses terminal receives, and described network of being administered according to the message operator is or/and the type of service of message, and adopting described function is that message identification or the process of peeling off the VLAN label are:
The upstream Interface that accesses terminal receives message, according to self the vlan port type and corresponding VLAN label to determine directly to shunt this message still be to identify or peel off shunting again behind the VLAN label again, be transmitted to the downstream interface in the same VLAN group again, after downstream interface receives this message, according to the vlan port type of downstream interface and corresponding VLAN label is the VLAN label that message is peeled off the network that operator administers, or/and be the VLAN label that message is peeled off type of service according to the corresponding relation of VLAN label and type of service.
This method further comprises:
There is the message of VLAN label to be transmitted to the local side access device sign, this local side access device determines whether it is the message of self operator network of administering according to the VLAN label of this message, if, then determine the type of service of this message according to the VLAN label of this message, after having handled this message according to type of service, the identical local side service processing function unit of network that sends core backbone again to or administer with self operator; If not, the local side service processing function unit in the network of then this message transmission being administered to the operator of the VLAN label correspondence of core backbone or this message.
This method further comprises:
The message of having peeled off the VLAN label is shunted to subscriber equipment.
Described message is the message of asynchronous transfer mode ATM encapsulation or is the message of PTM Packet Transfer Mode PTM.
A kind of system that realizes service distributing on accessing terminal, this system comprise subscriber equipment, have for message identification or peel off accessing terminal and having the local side access device of the VLAN label function that the identification message carries of VLAN label function, wherein,
Subscriber equipment sends message to accessing terminal, the type of service of the network of being administered according to the message operator and message of accessing terminal adopts to be had for message identification or peels off the VLAN label function, for sending to the local side access device behind the message identification VLAN label, the local side access device is according to the VLAN label with VLAN label function identification message identification that the identification message carries;
Perhaps the local side access device message that will identify the VLAN label sends to and accesses terminal, and the VLAN label according to message identification of accessing terminal adopts to have for message identification or peel off the VLAN label function, for message sends to subscriber equipment after peeling off the VLAN label.
This system also comprises core backbone or local side service processing function unit, after being used for office of acceptance's termination and going into the message of the sign VLAN label that equipment sends, handles according to the VLAN label that is identified.
A kind of method that realizes service distributing on accessing terminal is provided with the professional upstream Interface of Different Logic by the VLAN label on the uplink port in accessing terminal, and this method also comprises:
After receiving message when accessing terminal, determine the logic business upstream Interface of the VLAN label correspondence that message carries, message is shunted by the logic business upstream Interface of correspondence.
The professional upstream Interface of described Different Logic is provided with different message packaged types, this different message packaged type is Point to Point Protocol over ATM Adaptation Layer 5 PPPoA, PPP over Ethernet PPPoE, Internet Protocol over ATM IPoA, Ethernet bearing IP protocol IP oE or bridge joint Bridge mode, and the described process of message being shunted by the logic business upstream Interface of correspondence is:
Behind the message packaged type encapsulated message according to the setting of logic business upstream Interface, shunt.
Described message is with the message of PTM encapsulation or the message of ATM.
The VLAN label that described message carries is to access terminal after receiving message, and the VLAN label of the network of being administered according to the message operator by the downstream interface that accesses terminal identifies;
Or this message self sends to and to carry when accessing terminal.
From such scheme as can be seen, the present invention is set to message identification or peels off one or more layers VLAN (VLAN on accessing terminal, Virtual Local Area Network) function of label, after receiving message, the network of being administered according to the message operator and the type of service of message adopt the function that is provided be message identification or peel off the VLAN label after, carry out service distributing, sending to local side access device or subscriber equipment handles, authorities' termination is gone into equipment when handling, the local side access device is determined the network that the message operator is administered and the type of service of message according to the VLAN label of message identification, handles accordingly.Because under the situation of ATM encapsulated message, the present invention need set up a VCC for every type of service unlike prior art, but, just can realize that a VCC goes up the message of carrying multiple business type directly by adding the VLAN label of tagged traffic type; Because under the situation of PTM encapsulated message, the present invention has only a passage on a subscribers feeder unlike prior art, cause on the local side access device, can't distinguishing the message of different service types, but can be under the situation of PTM encapsulated message, for the service distributing decision-making provides a kind of valid approach.Therefore, method and system provided by the invention can realize service distributing on accessing terminal, and can realize distinguishing different operators is administered under the message network or/and different service types, thereby strengthen service distributing.
Further, the present invention can also be provided with different encapsulated message modes by the upstream Interface on accessing terminal, different logic business upstream Interface corresponding to different encapsulated message modes promptly is set, thereby set up upstream Interface and the professional tunnel of the Different Logic between the local side access device on accessing terminal, this method can be used when the message that shunting encapsulates with the message of PTM encapsulation or with ATM.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, below lift specific embodiment and, the present invention is described in more detail with reference to accompanying drawing.
Can distinguish the message of the different business of the network of administering in order to make the local side access device from the different operators that accesses terminal, the present invention is provided with the function of giving message identification or peeling off the VLAN label in accessing terminal, the network that thereby making accesses terminal can be administered the message identification operator that receives from subscriber equipment is or/and send to the local side access device behind the VLAN label of type of service, and the local side access device is determined network that the operator under the message administers and affiliated type of service according to the VLAN label of message.Opposite, accessing terminal can receive sign and network that operator administers is arranged or/and behind the message of the VLAN label of type of service, adopt the function that is provided with to carry out sending to subscriber equipment and handling after the peeling off of VLAN label from the local side access device.
Access terminal in order to realize to message identification or to peel off the function of VLAN label, upstream Interface and the downstream interface of self can be configured to vlan port, as be configured to access (Access) port or backbone (Trunk) port in the vlan port type, and two or more interfaces are divided in the VLAN group, form an independently broadcast domain.As upstream Interface 1 and downstream interface 1 are divided in the VLAN group, the message that downstream interface 1 receives will be transmitted to the local side access device by upstream Interface 1.In addition, the corresponding relation of interface and VLAN label is set in accessing terminal, the network that the operator under the VLAN label can identify administers.After interface receives message, will determine that the VLAN label for this interface correspondence of message identification still is that direct transparent transmission forwards according to the vlan port type that self is provided with and the VLAN label of interface.
Message is when when the downstream interface that accesses terminal receives, and detailed process is:
The downstream interface that accesses terminal receives message, according to the vlan port type of downstream interface and corresponding VLAN label is the VLAN label of the message identification operator network of being administered, or/and be the VLAN label of message identification type of service according to the corresponding relation of VLAN label and type of service, be transmitted to the upstream Interface in the same VLAN group again, after upstream Interface receives this message, according to self the vlan port type and corresponding VLAN label to determine directly to shunt this message still be to identify or peel off shunting again behind the VLAN label again.
When message when when the upstream Interface that accesses terminal receives, detailed process is:
The upstream Interface that accesses terminal receives message, according to self the vlan port type and corresponding VLAN label to determine directly to shunt this message still be to identify or peel off shunting again behind the VLAN label again, be transmitted to the downstream interface in the same VLAN group again, after downstream interface receives this message, according to the vlan port type of downstream interface and corresponding VLAN label is the VLAN label that message is peeled off the network that operator administers, or/and be the VLAN label that message is peeled off type of service according to the corresponding relation of VLAN label and type of service.
In accessing terminal, also be provided with the corresponding relation of different business and VLAN label, after interface receives message, can determine the VLAN label of message traffic type correspondence according to corresponding relation, will send to the local side access device in the pairing VLAN tag identifier message.
Correspondingly, the present invention also is provided with the corresponding relation of the network that VLAN label and different operators administer in the local side access device, the network that the operator of the VLAN label correspondence that the message of determining to receive from accessing terminal according to this corresponding relation carries administers: if the network of administering with the operator under self is identical, analytic message and handle this message (how handling, face is described in detail as follows) then according to the type of service of this message; If inequality with the network that the operator under self administers, then this message is carried out transparent transmission, be transparent in other local side service functional units or the core backbone.
The present invention still is provided with the corresponding relation of VLAN label and different business in the local side access device, when parsing VLAN label corresponding service type that the message that receives from accessing terminal carries (at this moment, must message and local side access device local side access device all belong to the network that an operator administers), type of service according to this corresponding relation and message is handled message, the process of handling is: the type of service of determining this message according to the VLAN label of this message, after having handled this message according to type of service, the identical local side service processing function unit of network that sends core backbone again to or administer with self operator.
At the demand of method provided by the invention, the process of the interface that has different port types now being handled the VLAN label is as follows:
The downstream interface that the present invention usually accesses terminal is set to the Access port, for the message that receives from the Access port, no matter whether itself have the VLAN label, all force to stamp the VLAN label of the network that sign operator that this interface configured administered, for the message that sends from the Access port, all force label peeling, again message is sent VLAN.
The upstream Interface that usually accesses terminal among the present invention is set to the Trunk port, makes itself and a plurality of downstream interfaces that access terminal belong to different VLAN groups.The VLAN label of Trunk port need be set, and under the situation of default port sign, default port is designated VLAN1.After the Trunk port receives message, judged whether the VLAN label, if do not have, then behind the VLAN label with self, send; If VLAN label and inequality with the VLAN label of self is arranged, determine then whether this Trunk port moves this message and enter (in the present invention, being set to allow this message to enter), if, then direct this message of transparent transmission (this message carries the VLAN label); Otherwise, then abandon this message; If VLAN label and identical with the VLAN label of self is arranged, send after then peeling off this VLAN label.
In the present invention, for the VLAN label of stamping sign to message (this VLAN label be when subscriber equipment sends message, carry or on add when accessing terminal), the VLAN label can be arranged in the frame head of message, as after the source address of the original ethernet frame of frame head in the prior art is set.
In the present invention, network and type of service for the operator that identifies under the message administers usually need two-layer VLAN label, the network that one deck VLAN label (outside VLAN label) is used to indicate the operator under this message to administer; Another layer VLAN label (inner VLAN label) is used to indicate the type of service of this message.
Fig. 2 realizes the method flow diagram of service distributing on access device for the present invention, the function of giving message identification or peeling off the VLAN label is set in accessing terminal, the network that this function can be administered at the subscriber equipment operator that sends message and the type of service of this message are to message identification or peel off corresponding VLAN label, here just adopt subscriber equipment to carry out service shunting process by accessing terminal and describe, its concrete steps are:
Step 201, accessing terminal receives message, the network of being administered at the subscriber equipment operator that sends this message is or/and the type of service of this message adopts the function that is provided with to give the local side access device for the shunting of this message identification VLAN label (may have one deck label or two-layer label) back.
The VLAN label that step 202, local side access device are carried according to this message that receives from accessing terminal determines whether it is the message of self operator network of administering, if then execution in step 203; If not, execution in step 204 then.
Step 203, local side access device peel off the VLAN label of the network that outer field identifying user equipment operator administered earlier, and then determine the type of service of this message according to the VLAN label of the mark business-type of the inside, after having handled this message according to type of service, the identical local side service processing function unit of network that sends core backbone again to or administer with self operator.
Local side service processing function unit or core backbone in the network that the operator of the VLAN label correspondence that step 204, local side access device are carried this message transmission to this message administers.
In the present invention, receive when carrying message from the local side access device when accessing terminal, also can adopt to message identification or peel off the function of VLAN label, this message is handled:, send after can peeling off the VLAN label if this message carries the VLAN label; If this message does not carry the VLAN label, also the affix of VLAN label can be sent again.
Certainly, method provided by the invention also can send message by accessing terminal to subscriber equipment by the local side access device, at this moment, the local side access device can be with message identification VLAN label, when this message sends to when accessing terminal, access terminal according to be provided with for message identification or peel off the function of VLAN label, peel off the VLAN label after, send to corresponding user equipment and handle.
Following specific embodiment explanation the present invention.
Fig. 3 a is the corresponding relation schematic diagram of the VLAN label (being PVID shown in the figure) of upstream Interface, downstream interface and port type and sign network that operator is administered, as shown in the figure: this access terminal downstream interface LAN-1 and downstream interface LAN-2 are set to the Access port, and identifying the VLAN label respectively is 100 and 200; Downstream interface LAN-3 and downstream interface LAN-4 are set to the Trunk port, and identifying the VLAN label respectively is 1 and 1; Upstream Interface nas_0_32_3 is set to the Trunk port, and identifying the VLAN label respectively is 1.
Fig. 3 b is for being tied to the schematic diagram that a VLAN organizes to upstream Interface that accesses terminal and downstream interface on accessing terminal, as shown in the figure: this embodiment is arranged on VLAN with downstream interface LAN-2 and up nas_0_32_3 and is designated in 200 the VLAN group, downstream interface LAN-1 and upstream Interface nas_0_32_3 is arranged on VLAN is designated in 100 the VLAN group.
Fig. 3 c is the schematic diagram of the corresponding relation of configuration different service types and VLAN label on accessing terminal, as shown in the figure: the VLAN label of FTP correspondence is 8, the VLAN label of multicast, web page browsing and voice correspondence is 1, and state is to enable to open type of service FTP and VLAN label binding function, and multicast, web page browsing and speech business type and VLAN label binding function are not opened.
First embodiment
As Fig. 4 first the row shown in (in the drawings, access device home gateway (HGW, HomeGateway) expression, local side access device Digital Subscriber Line Access Multiplexer (DSLAM, DigitalSubscriber Line Access Multiplexer) expression), suppose that subscriber equipment drawn game termination goes into network that operator administers under the equipment, subscriber equipment links to each other with the downstream interface LAN-1 that accesses terminal, this downstream interface LAN-1 and the upstream Interface nas_0_32_3 that accesses terminal are divided into same VLAN group, what this VLAN organized is designated 100, this downstream interface LAN-1 is set to the Access port, its VLAN label is 100 (because the VLAN label of the network that local side access device operator is administered is 100 exactly), this upstream Interface nas_0_32_3 is set to the Trunk port, and the VLAN label of setting is 1.
When subscriber equipment sends message, subscriber equipment is by PPP over Ethernet (PPPoE, Point to Point Protocol over Ethernet) Internet protocol (IP) address is obtained in dialing, at first, subscriber equipment sends and to carry VLAN ID is the 3 initial (PADI of effective discovery, PPPoE ActiveDiscovery Initiation) message is to the downstream interface of access device, because this downstream interface is set to the Access port, and its VLAN label is 100, so it is 100 that this downstream interface increases a VLAN label for this message, sends to the upstream Interface nas_0_32_3 that accesses terminal; Secondly because this upstream Interface nas_0_32_3 is that Trunk port and VLAN label are 1, then directly transparent transmission to have increased the VLAN label be that 100 message is to the local side access device; At last, the local side access device receives this message, and according to the VLAN label 100 of this message determine these messages for the messages sent by user equipment that oneself belongs to the network that same operator administers, handle after then the VLAN label of this message being peeled off, this message is through broad band remote access service (BRAS, Broadband Remote AccessServer) will respond one to subscriber equipment after the authentication and effectively find to provide (PADO, PPPoE ActiveDiscovery Offer) message, can stamp the label of a VLAN100 behind the PADO message process local side access device by the BRAS response, sign is the message of operator's network of administering to one's name, send to the upstream Interface nas_0_32_3 of access device again by the message of a sign of local side access device transmission VLAN label 100, because this upstream Interface nas_0_32_3 is that Trunk port and VLAN label are 1, then directly be transparent on the downlink port LAN-1, downlink port LAN-1 is owing to be set to the Access port, and its VLAN label is 100, send to subscriber equipment after then peeling off the VLAN label 100 of this message, follow-up message is all as packet sending and receiving processing procedure recited above, subscriber equipment just can be assigned to an IP address like this, and carries out normal service operation.
Second embodiment
Shown in second row of Fig. 4, suppose that subscriber equipment drawn game termination goes into equipment and do not belong to the network that same operator administers, subscriber equipment links to each other with the downstream interface LAN-2 that accesses terminal, the upstream Interface nas_0_32_3 of this downstream interface LAN-2 and access device is divided into same VLAN group, what this VLAN organized is designated 200, this downstream interface LAN-2 is set to the Access port, its VLAN label is 200, and (owing to set up the VLAN label of the network that local side access device operator administered is 100, it is inequality to represent that then network drawn game termination that the subscriber equipment operator is administered is gone into equipment), this upstream Interface nas_0_32_3 is set to the Trunk port, and the VLAN label of setting is 1.
When subscriber equipment sends message, subscriber equipment dials by PPPoE and obtains Internet protocol (IP) address, at first, subscriber equipment sends and to carry VLAN ID is that 6 PADI message is to the downstream interface that accesses terminal, because this downstream interface is set to the Access port, and its VLAN label is 200, is 200 so this downstream interface increases a VLAN label for this message, sends to the upstream Interface nas_0_32_3 that accesses terminal; Secondly because this upstream Interface nas_0_32_3 is that Trunk port and VLAN label are 1, then directly transparent transmission to have increased the VLAN label be that 200 message is to the local side access device; At last, the local side access device receives this message, and according to the VLAN label 200 of this message determine these messages for the messages sent by user equipment that oneself does not belong to the network that same operator administers, then this message directly is transparent to core backbone or is transparent to the local side service processing function unit (in the local side access device, be provided with VLAN label with the corresponding relation of the corresponding operator network of administering) of the network that corresponding operator administers according to the VLAN label 200 of this message.
The 3rd embodiment
Shown in the third line of Fig. 4, suppose that subscriber equipment sends the message of ftp business, this message adopts PTM or ATM to encapsulate, subscriber equipment links to each other with the downstream interface LAN-1 that accesses terminal, this downstream interface LAN-1 and the upstream Interface nas_0_32_3 that accesses terminal are divided into same VLAN group, what this VLAN organized is designated 100, this downstream interface LAN-1 is set to the Access port, its VLAN label is 100 (because the VLAN label of the network that the local side access device is administered in operator is 100 exactly), this upstream Interface nas_0_32_3 is set to the Trunk port, and the VLAN label of setting is 1.In access device, downstream interface LAN-1 can be set at the message of ftp business and the corresponding relation of VLAN label 8, then when the downstream interface LAN-1 of access device receives the ftp business message of the employing PTM encapsulation that subscriber equipment sends, will increase the VLAN label and be 8 after (indicate this message carry be ftp business), just can be forwarded to the upstream Interface nas_0_32_3 that belongs to same VLAN group with its downstream interface to message, upstream Interface nas_0_32_3 with this message transmission to the local side access device.The VLAN label that the local side access device carries according to this message again be 8 determine these messages be the ftp business type (at this moment, the local side access device must belong to the network that same operator administers with subscriber equipment, can determine according to the method for embodiment one), carry out speed limit according to ftp business type of process flow process and handle.
Certainly, in the present invention, also can give message identification VLAN label at upstream Interface nas_0_32_3 is 8, and does not identify on downstream interface LAN-1.
From embodiment three as can be seen,, can classify, thereby strengthen service distributing by the VLAN label for the message of the different business that adopts PTM or ATM encapsulation.
In order to realize transmitting the message of different business in the heterogeneous networks, the present invention also provides a kind of system, as shown in Figure 5, this system comprises subscriber equipment, has for message identification or peels off accessing terminal and having the local side access device of the VLAN label function that carries of identification message of VLAN label function.
Wherein, subscriber equipment sends message to accessing terminal, the type of service of the network of being administered according to the subscriber equipment operator that sends message and message of accessing terminal adopts to be had for message identification or peels off the VLAN label function, for sending to the local side access device behind the message identification VLAN label, the local side access device according to VLAN label with VLAN label function identification message identification that the identification message carries after, handle accordingly: if with self belong to the network that same operator administers, then handle this message according to the type of service of this message; If do not belong to the network that same operator administers with self, then directly this message transmission is transparent to the local side service processing function unit of the network that corresponding operator administers to core backbone or according to the VLAN label of this message, handle.
Perhaps the local side access device message that will identify the VLAN label sends to access device, and access device adopts according to the VLAN label of message identification to have for message identification or peel off the VLAN label function, for message sends to subscriber equipment after peeling off the VLAN label.
In the present invention, the VLAN label function that the identification message carries can also be set in backbone network or local side service processing function unit, like this, the message that just can identify the VLAN label has been handled accordingly according to the type of service of message.
From such scheme as can be seen, the present invention identifies the VLAN label can for the message of the network that different operators administers and distinguish on accessing terminal, thereby make local side access device and follow-up local side Service Processing Unit or core backbone distinguish the message of the network of administering, carry out respective handling from different operators according to the VLAN label.The present invention identify the VLAN label by the message of the network giving different operators and administer on accessing terminal, thereby the subscriber equipment of the network of administering for the extension different operators that accesses terminal down becomes possibility.
When message encapsulates with ATM or PTM, access terminal to the different VLAN labels of the message identification of different service types, thereby make local side access device and follow-up local side Service Processing Unit or core backbone distinguish the type of message, shunt processing according to the VLAN label.
Provided by the invention accessing terminal can be adopted ATM or PTM encapsulated message, gives the message identification VLAN label of different service types, thereby makes local side access device or each Service Processing Unit of zone distinguish the type of service of message according to the VLAN label.
In the present invention, a kind of method also is provided, this method is applied under the situation with PTM or ATM encapsulated message, on the uplink port that accesses terminal,, different VLAN labels marks off a plurality of logic business passages by being set, be set to two logic business upstream Interface nas_0_32_1 and nas_0_32_2 as nas_0_32, correspond respectively to logic business passage and second logic business passage of first foundation.
After receiving message when accessing terminal, determine that (the VLAN label is to access terminal after receiving message for VLAN label that message carries, the VLAN label of the network of being administered according to the message operator by the downstream interface that accesses terminal identifies, or this message self send to carry when accessing terminal) corresponding logic business upstream Interface, by the logic business upstream Interface of correspondence message is shunted.
In the present invention, the professional upstream Interface of Different Logic is provided with different message packaged types, this different message packaged type is Point to Point Protocol over ATM Adaptation Layer 5 (PPPoA, Point to Point Protocol over ATMAdaptation Layer 5), PPPoE, Internet Protocol over ATM (IPoA, Internet Protocol overATM), Ethernet bearing IP agreement (IPoE, Internet Protocol over Ethernet) or bridge joint (Bridge) mode etc., the process of message being shunted by the logic business upstream Interface of correspondence is: behind the message packaged type encapsulated message according to the setting of logic business upstream Interface, shunt.
Therefore, the present invention can be provided with different encapsulated message modes by the upstream Interface on accessing terminal, different logic business upstream Interface corresponding to different encapsulated message modes promptly is set, thereby sets up upstream Interface and the professional tunnel of the Different Logic between the local side access device on accessing terminal.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.