Embodiment
Below in conjunction with Fig. 1, one embodiment of the invention is described:
Fig. 1 is that the prefix in one embodiment of the invention in shaftless driving sends and designation method flow chart.The method comprises:
102, the second equipment receives the advertising of route message that the first equipment sends, and carries prefix in described advertising of route message, and the service category information corresponding with described prefix or user's classification information.
First equipment is the prefix transmitting apparatus in shaftless driving, usually can be router (Router), home gateway (Home Gateway, HGW), digital subscriber line access multiplex (Digital Subscriber Line Access Multiplexer, DSLAM), switch, network access server (Network Access Server, NAS), Broadband Remote Access Server (Broadband Remote Access Server, BRAS), wideband network gateway (Broadband Network Gateway, or wideband network access server (Broadband Network Access Server BNG), BNAS).Second equipment is the equipment for its interface specified prefix, usually can be main frame (Host), customer premises equipment, CPE (Customerpremises equipment, CPE), Set Top Box (Set Top Box, STB), router, home gateway, DSLAM, switch, NAS, BRAS, BNG or BNAS.
Prefix in advertising of route message can be carried by prefix information option.See the prefix information option schematic diagram that Fig. 2, Fig. 2 are in advertising of route message.Prefix information option can comprise:
1) type (Type): the type representing option.The length of this field is 8.For prefix information option, the value of this field can be 3.
2) length (Length): the length representing option, in units of 8 octets.The length of this field is 8.For prefix information option, the value of this field can be 4.
3) prefix length (Prefix Length): the length of this field can be 8, represents the effective length of the prefix of carrying in this prefix information option, in units of position, span is 0 to 128.
4) L: at link indicia (on-link flag).The length of this field is 1.If address is assigned to the interface on the link of specifying, this address is just considered to on-link's.When this mark is set up, represent that this prefix can be used for carrying out on-link and determine.
5) A: autonomous address configuration mark (autonomous address-configurationflag).The length of this field is 1.When this mark is set up, represent that this prefix can be used to stateless address and distribute.
6) 1 (Reserved1) is retained: the field of reservation.The length of this field is 6.
7) effective presence (Valid Lifetime): the length of this field is 32.Represent the effective time span (relative to message transmitting time) that this prefix is determined for carrying out on-link.This time span in seconds.Represent that when this field value is 0xffffffff effective presence is infinitely great.
8) first-selected presence (Preferred Lifetime): the length of this field is 32.Represent that the address generated by SLAAC mechanism from this prefix keeps first-selected effective time span (relative to message transmitting time).This time span in seconds.Represent that when this field value is 0xffffffff first-selected presence is infinitely great.The value of this field is no more than the value of effective presence field usually, and first-selected address can be avoided invalid.
9) 2 (Reserved2) are retained: the field of reservation.The length of this field is 32.
10) prefix (Prefix): the prefix representing an IP address or an IP address.The length of this field is 128.Aforementioned prefix length field illustrates the number of the effective position in prefix field from first.
The service category information corresponding with prefix or user's classification information is also comprised in advertising of route message.In order to realize the management of business management system to business, advertising of route message needs to comprise and the service category information or the user's classification information that are front embroidered with corresponding relation.Because a usual prefix is carried by a prefix information option, also can think that advertising of route message needs to comprise the service category information or user's classification information that there are corresponding relation with prefix information option.Service category information or user's classification information can be single class of service or user's classification, also can be the set of some classs of service or user's classification.Class of service can comprise the classification information relevant to type of service such as IPTV, VoIP or HSI.User's classification (User Class) is the information relevant to user, can be that the first equipment arranged agreement (Dynamic Host Configuration Protocol by DynamicHost before step 102, user's classification of crossing to the second devices advertise of mode such as DHCP), the type of service of such as interface is VOIP, the second equipment is STB equipment etc.For example, advertising of route message can comprise two prefix information option, and carry a prefix respectively, one of them prefix information option is corresponding with IPTV service, and another is corresponding with VoIP and HSI business.
Service category information or user's classification information can adopt various ways to represent.For example, service category information can represent by the title of business, and service category information as corresponding in IPTV service is expressed as character string " IPTV ", and service category information corresponding to VoIP business is expressed as character string " VoIP ".The set of the service category information of IPTV and VoIP can use character string " IPTV; VoIP " represent, also can define a new character string such as " VoiceNTV " and represent.Service category information also can represent by the numbering of business, and the service category information that service category information corresponding to such as IPTV service is expressed as numeral 2, VoIP business corresponding is expressed as numeral 3.The set of the type of service of IPTV and VoIP can by numeral to { 2,3} represents, also can define a new numbering as 4 to represent.In order to distinguish different network provider (network service provider, NSP) the identical business provided, also can comprise the identifying information (title or numbering etc. as network provider) of network provider in service category information.Service category information corresponding to the IPTV service provided as network provider A is expressed as character string " A:IPTV ", and service category information corresponding to the IPTV service that network provider B provides is expressed as character string " B:IPTV ".If prefix can the set of corresponding some classs of service or user's classification, then " IPTV can be used; VoIP " or similar fashion represent.
User's classification information can comprise different particular contents, also can adopt different representations.Such as user's classification information can represent the type of the second equipment, as adopted character string " PC " or numeral 1 to represent that the second equipment is personal computer, and represents that the second equipment is STB by character string " STB " or numeral 2.Also the rank with contracted user can be represented, as represented that contracted user is Gold Subscriber by character string " Gold " or numeral 10, as represented that contracted user is Silver Subscriber by character string " Silver " or numeral 11, Gold Subscriber can obtain higher-quality service relative to Silver Subscriber.
Corresponding relation between the prefix in advertising of route message and service category information or user's classification information can have various ways to represent, such as:
One or more field is increased to represent the service category information corresponding with the prefix entrained by this prefix information option or user's classification information in prefix information option.
Or, the service category information that the prefix using the reserved field in prefix information option to represent to comprise with this prefix information option is corresponding or user's classification information, as used above-mentioned reservation 1 field or retaining 2 fields, or use reservation 1 field simultaneously and retain 2 fields.
Also a new option can be defined to represent service category information or user's classification information, suppose that the name of this option is called classification information option, then in advertising of route message, can by classification information option be placed on after specific prefix information option, be used for representing service category information or user's classification information and prefix information option corresponding relation.Such as: suppose that the prefix information option that prefix A is corresponding is prefix information option A, the classification information option that prefix A is corresponding is classification information option A, the prefix information option that prefix B is corresponding is prefix information option B, the classification information option that prefix B is corresponding is classification information option B, then in a ra message above-mentioned option put in order as prefix information option A, classification information option A, prefix information option B, classification information option B.
The mode that other those of ordinary skill in the art can expect also can be used for representing the corresponding relation between prefix and service category information or user's classification information.
The corresponding relation of prefix and service category information or user's classification information can be that the first equipment obtains from pre-configured configuration file, or obtained from configuration-system by configuration interface, or obtained by manual entry mode by configuration interface, also by communication interface and other devices communicatings, this corresponding relation can be obtained from other equipment.
104, the second equipment is according to described service category information or user's classification information, is interface specified prefix from the prefix that described advertising of route message is carried.
Second equipment obtains service category information or user's classification information of prefix and correspondence thereof from advertising of route message, is its interface specified prefix.When the interface of the second equipment has corresponding class of service or user's classification, second equipment is according to service category information or user's classification information, and class of service corresponding to interface or user's classification are that its interface is specified and the prefix corresponding to the class of service of this interface or the service category information of user's categorical match or user's classification information from the prefix that advertising of route message is carried.For example, advertising of route message comprises two prefix information option, and carry a prefix respectively, one of them prefix information option is corresponding with IPTV service, and another is corresponding with VoIP and HSI business.If the second equipment needs an interface specified prefix for its corresponding IPTV service, then the prefix corresponding with IPTV service is assigned to this interface by the second equipment.In some embody rule scene, another needs the equipment for its interface specified prefix also to receive this advertising of route message, the class of service that an interface of this equipment is corresponding or user's classification are VoIP and HSI business, then the prefix corresponding with VoIP and HSI business is assigned to this interface.
When the second equipment needs for multiple interface specified prefix, the second equipment is respectively its each interface and specifies and the class of service of this interface or the class of service of user's categorical match or the prefix corresponding to user's classification.When only comprising a prefix information option and the service category information corresponding with this prefix information option or user's classification information in advertising of route message, if the class of service of the interface of the second equipment or user's classification can be mated with this service category information or user's classification information, then specify prefix in this prefix information option to interface, otherwise be not interface specified prefix.Such as, the corresponding IPTV service of prefix in notice message, second equipment is a switch, and this switch does not process IPTV service in the network planning, then this switch can not specify this prefix for its interface, avoid the confusion of service management, be conducive to the raising of the routing management of network and the routing performance of network.
The class of service of the interface of the second equipment or the obtain manner of user's classification can have multiple implementation.Such as, can arrange service category information or user's classification information of interface in the hardware of the second equipment or software, the second equipment just can obtain class of service corresponding to interface or user's classification by the data read in hardware or software.Or also can arrange service category information or user's classification information of interface in the configuration file of the second equipment, the second equipment just can obtain class of service corresponding to interface or user's classification by reading configuration file.Second equipment can also provide configuration interface, obtains service category information corresponding to interface or user's classification information by the mode such as configuration-system or manual entry.Second equipment also can provide communication interface, from other equipment mutual obtain class of service corresponding to interface or user's classification.
For specific interface, the second equipment can obtain class of service corresponding to this interface or user's classification before receiving advertising of route message, also can obtain class of service corresponding to this interface or user's classification again after receiving advertising of route message.
The method for expressing of the class of service that in the second equipment, docking port is corresponding or user's classification can be similar to the method for expressing of the first equipment to service category information or user's classification information, such as, represent by character string " IPTV ", " VoIP ", " STB " or the numeral etc. corresponding with class of service or user's classification.The method for expressing of the class of service that in the second equipment, docking port is corresponding or user's classification need not be identical, such as, whether the first equipment can use string representation service category information or user's classification information second equipment then by the numeral corresponding with class of service or user's classification, mate both the second equipment can judge according to the corresponding relation between different representation.
If the interface of the second equipment and class of service or user's classification do not have clear and definite corresponding relation, or the class of service of docking port or user's classification do not limit in shaftless driving process, then the second equipment does not need class of service corresponding to matched interfaces or user's classification and the service category information corresponding with prefix or user's classification information to specify corresponding prefix.The prefix meeting the aforementioned condition such as effective presence, prefix length is assigned to interface by the second equipment, and records service category information corresponding to prefix or user's classification information.
When specifying multiple prefixes for an interface, generating the global address corresponding with service category information or user's classification information respectively according to these prefixes, and recording this corresponding relation.Such as, advertising of route message comprises three prefix information option and respectively carries a prefix, corresponding with IPTV service, VoIP and HSI business respectively, the class of service that an interface of the second equipment is corresponding or user's classification are VoIP and HSI business, and corresponding with VoIP and HSI business two prefixes are assigned to this interface by the second equipment.Two prefixes combine with the interface identifier of this interface by the second equipment respectively, generate two global addresses, and these two global addresses are corresponding with VoIP and HSI business respectively.And for example, advertising of route message comprises two prefix information option and respectively carries a prefix, corresponding with VoIP and HSI business respectively, the interface of the second equipment and class of service or user's classification do not have clear and definite corresponding relation, then corresponding with VoIP and HSI business two prefixes are assigned to this interface by the second equipment.Two prefixes combine with the interface identifier of this interface by the second equipment respectively, generate two global addresses, and these two global addresses are corresponding with VoIP and HSI business respectively.
Second equipment can select corresponding global address according to the class of service of pending business or user's classification, uses class of service or global address corresponding to user's classification to process described pending business.Such as, described class of service or global address corresponding to user's classification is filled in the message sending described pending business, to send in messages of described pending business to this interface at other and fill described class of service or global address corresponding to user's classification, use described class of service or global address corresponding to user's classification as the management identification information of described pending business when carrying out service management to described pending business, use described class of service or global address corresponding to user's classification as the identification information etc. of IP stream identifying described pending business when treating process business and carrying out business monitoring.For example, when the second equipment for its interface generates respectively after two global addresses corresponding to VoIP and HSI business, the second equipment can select corresponding global address according to the class of service of pending business or user's classification.Such as, the second equipment uses the global address corresponding with VoIP business in the signaling message of VoIP business.Again such as, the second equipment uses the global address corresponding with HSI business in the data message of HSI business.
The opportunity that second equipment generates the global address corresponding with class of service or user's classification can be determined flexibly.Such as, global address is not generated immediately after the prefix corresponding with service category information or user's classification information that first equipment that receives sends, but the prefix corresponding with service category information or user's classification information is assigned to interface, when treating process business and processing, such as, when receiving the message of pending business, when self generating the message of pending business, treat process business when carrying out service management, or treat process business when carrying out business monitoring, ability selects a prefix according to the class of service of pending business or user's classification from the prefix of specifying for interface, by the service category information of correspondence of this prefix selected or the class of service of user's classification information and pending business or user's categorical match, global address is generated according to by the prefix selected, this global address is used for treating process business and processes.Such as, described class of service or global address corresponding to user's classification is filled in the message sending described pending business, to send in messages of described pending business to this interface at other and fill described class of service or global address corresponding to user's classification, use described class of service or global address corresponding to user's classification as the management identification information of described pending business when carrying out service management to described pending business, use described class of service or global address corresponding to user's classification as the identification information etc. of IP stream identifying described pending business when treating process business and carrying out business monitoring.This global address can continue to be assigned to this interface after this service ending, also can remove after service ending.
Fig. 3 is the prefix designated equipment block diagram in one embodiment of the invention in shaftless driving.This equipment comprises:
Receiving element 302, for receiving the advertising of route message that prefix transmitting apparatus sends, carries prefix in described advertising of route message, and the service category information corresponding with described prefix or user's classification information.
Prefix designated equipment is the equipment for its interface specified prefix, can be Host, CPE, STB, router, home gateway, DSLAM, switch, NAS, BRAS, BNG or BNAS usually.
Prefix in advertising of route message can be carried by prefix information option, and prefix information option (see Fig. 2) can comprise: the fields such as Type, Length, Prefix Length, L, A, Reserved1, Valid Lifetime, Preferred Lifetime, Reserved2, Prefix.
The service category information corresponding with prefix or user's classification information is also comprised in advertising of route message.In order to realize the management of business management system to business, advertising of route message needs to comprise and the service category information or the user's classification information that are front embroidered with corresponding relation.Because a usual prefix is carried by a prefix information option, also can think that advertising of route message needs to comprise the service category information or user's classification information that there are corresponding relation with prefix information option.Service category information or user's classification information can be single class of service or user's classification, also can be the set of some classs of service or user's classification.For example, advertising of route message can comprise two prefix information option, and carry a prefix respectively, one of them prefix information option is corresponding with IPTV service, and another is corresponding with VoIP and HSI business.
Service category information or user's classification information can adopt various ways to represent.For example, service category information can represent by the title of business, and service category information as corresponding in IPTV service is expressed as character string " IPTV ", and service category information corresponding to VoIP business is expressed as character string " VoIP ".The set of the service category information of IPTV and VoIP can use character string " IPTV; VoIP " represent, also can define a new character string such as " VoiceNTV " and represent.Service category information also can represent by the numbering of business, and the service category information that service category information corresponding to such as IPTV service is expressed as numeral 2, VoIP business corresponding is expressed as numeral 3.The set of the type of service of IPTV and VoIP can by numeral to { 2,3} represents, also can define a new numbering as 4 to represent.In order to distinguish different network provider (network service provider, NSP) the identical business provided, also can comprise the identifying information (title or numbering etc. as network provider) of network provider in service category information.Service category information corresponding to the IPTV service provided as network provider A is expressed as character string " A:IPTV ", and service category information corresponding to the IPTV service that network provider B provides is expressed as character string " B:IPTV ".If prefix can the set of corresponding some classs of service or user's classification, then " IPTV can be used; VoIP " or similar fashion represent.
User's classification information can comprise different particular contents, also can adopt different representations.Such as user's classification information can represent the type of the second equipment, as adopted character string " PC " or numeral 1 to represent that the second equipment is personal computer, and represents that the second equipment is STB by character string " STB " or numeral 2.Also the rank with contracted user can be represented, as represented that contracted user is Gold Subscriber by character string " Gold " or numeral 10, as represented that contracted user is Silver Subscriber by character string " Silver " or numeral 11, Gold Subscriber can obtain higher-quality service relative to Silver Subscriber.
Corresponding relation between the prefix in advertising of route message and service category information or user's classification information can have various ways to represent, such as:
One or more field is increased to represent the service category information corresponding with the prefix entrained by this prefix information option or user's classification information in prefix information option.
Or, the service category information using the reserved field in current prefix information option to represent the prefix that comprises with this prefix information option corresponding or user's classification information, as used above-mentioned reservation 1 field or retaining 2 fields, or use reservation 1 field simultaneously and retain 2 fields.
Also a new option can be defined to represent service category information or user's classification information, suppose that the name of this option is called classification information option, then in advertising of route message, can by classification information option be placed on after specific prefix information option, be used for representing service category information or user's classification information and prefix information option corresponding relation.Such as: suppose that the prefix information option that prefix A is corresponding is prefix information option A, the classification information option that prefix A is corresponding is classification information option A, the prefix information option that prefix B is corresponding is prefix information option B, the classification information option that prefix B is corresponding is classification information option B, then in a ra message above-mentioned option put in order as prefix information option A, classification information option A, prefix information option B, classification information option B.
The mode that other those of ordinary skill in the art can expect also can be used for representing the corresponding relation between prefix and service category information or user's classification information.
Designating unit 304, for according to described service category information or user's classification information, is interface specified prefix from the prefix that described advertising of route message is carried.
Designating unit 304 obtains service category information or user's classification information of prefix and correspondence thereof from advertising of route message, is its interface specified prefix.When the interface of prefix designated equipment has corresponding class of service or user's classification, designating unit 304 is specifically for according to service category information or user's classification information, and class of service corresponding to interface or user's classification are that its interface is specified and the prefix corresponding to the class of service of this interface or the service category information of user's categorical match or user's classification information from the prefix advertising of route message.For example, advertising of route message comprises two prefix information option, and carry a prefix respectively, one of them prefix information option is corresponding with IPTV service, and another is corresponding with VoIP and HSI business.If designating unit 304 needs an interface specified prefix for prefix designated equipment, and the corresponding IPTV service of this interface, then the prefix corresponding with IPTV service is assigned to this interface by designating unit 304.If another prefix designated equipment also receives this advertising of route message, the class of service that an interface of this equipment is corresponding or user's classification are VoIP and HSI business, then the prefix corresponding with VoIP and HSI business is assigned to this interface.When designating unit 304 needs for multiple interface specified prefix, each interface that designating unit 304 is respectively prefix designated equipment is specified and the class of service of this interface or the service category information of user's categorical match or the prefix corresponding to user's classification information.When only comprising a prefix information option and the service category information corresponding with this prefix information option or user's classification information in notice message, if the class of service of the interface of prefix designated equipment or user's classification can be mated with this service category information or user's classification information, then designating unit 304 specifies prefix in this prefix information option to interface, otherwise is not interface specified prefix.Such as, the corresponding IPTV service of prefix in notice message, prefix designated equipment is a switch, and this switch does not process IPTV service in the network planning, then this switch can not specify this prefix for its interface, avoid the confusion of service management, be conducive to the raising of the routing management of network and the routing performance of network.
The class of service of the interface of prefix designated equipment or the obtain manner of user's classification can have multiple implementation.Such as, can arrange service category information or user's classification information of interface in the hardware of prefix designated equipment or software, prefix designated equipment just can obtain class of service corresponding to interface or user's classification by the data read in hardware or software.Or also can arrange service category information or user's classification information of interface in the configuration file of prefix designated equipment, prefix designated equipment just can obtain class of service corresponding to interface or user's classification by reading configuration file.Prefix designated equipment can also provide configuration interface, obtains service category information corresponding to interface or user's classification information by the mode such as configuration-system or manual entry.Prefix designated equipment also can provide communication interface, from other equipment mutual obtain class of service corresponding to interface or user's classification.
For specific interface, prefix designated equipment can obtain class of service corresponding to this interface or user's classification before receiving advertising of route message, also can obtain class of service corresponding to this interface or user's classification again after receiving advertising of route message.
The method for expressing of the class of service that in prefix designated equipment, docking port is corresponding or user's classification can be similar to the method for expressing of prefix transmitting apparatus to service category information or user's classification information, such as, represent by character string " IPTV ", " VoIP ", " STB " or the numeral etc. corresponding with class of service or user's classification.The method for expressing of the class of service that in prefix designated equipment, docking port is corresponding or user's classification need not be identical, such as, whether prefix transmitting apparatus can use string representation service category information or user's classification information prefix designated equipment then by the numeral corresponding with class of service or user's classification, mate both designating unit 304 can judge according to the corresponding relation between different representation.
If the interface of prefix designated equipment and class of service or user's classification do not have clear and definite corresponding relation, or the class of service of docking port or user's classification do not limit in shaftless driving process, then designating unit 304 does not need class of service corresponding to matched interfaces or user's classification and the service category information corresponding with prefix or user's classification information to specify corresponding prefix.The prefix meeting the aforementioned condition such as effective presence, prefix length is assigned to interface by designating unit 304, and records service category information corresponding to prefix or user's classification information.
Prefix designated equipment can also comprise generation unit and selected cell.When designating unit 304 be an interface specify multiple prefixes time, generation unit generates the global address corresponding with service category information or user's classification information respectively according to these prefixes, and records this corresponding relation.Such as, advertising of route message comprises three prefix information option and respectively carries a prefix, corresponding with IPTV service, VoIP and HSI business respectively, the class of service that an interface of prefix designated equipment is corresponding or user's classification are VoIP and HSI business, and corresponding with VoIP and HSI business two prefixes are assigned to this interface by designating unit 304.The interface identifier of two prefixes this interface respectively combines by generation unit, and generate two global addresses, these two global addresses are corresponding with VoIP and HSI business respectively.And for example, advertising of route message comprises two prefix information option and respectively carries a prefix, corresponding with VoIP and HSI business respectively, the interface of prefix designated equipment and class of service or user's classification do not have clear and definite corresponding relation, then corresponding with VoIP and HSI business two prefixes are assigned to this interface by designating unit 304.The interface identifier of two prefixes this interface respectively combines by generation unit, and generate two global addresses, these two global addresses are corresponding with VoIP and HSI business respectively.
Selected cell can select corresponding global address according to the class of service of pending business or user's classification, uses class of service or global address corresponding to user's classification to process described pending business.Such as, described class of service or global address corresponding to user's classification is filled in the message sending described pending business, to send in messages of described pending business to this interface at other and fill described class of service or global address corresponding to user's classification, use described class of service or global address corresponding to user's classification as the management identification information of described pending business when carrying out service management to described pending business, use described class of service or global address corresponding to user's classification as the identification information etc. of IP stream identifying described pending business when treating process business and carrying out business monitoring.For example, when the generation unit interface that is prefix designated equipment generates respectively after two global addresses corresponding to VoIP and HSI business, selected cell can select corresponding global address according to the class of service of pending business or user's classification.Such as, selected cell uses the global address corresponding with VoIP business in the signaling message of VoIP business.Again such as, selected cell uses the global address corresponding with HSI business in the data message of HSI business.
The opportunity that second equipment generates the global address corresponding with class of service or user's classification can be determined flexibly.Such as, global address is not generated immediately after the prefix corresponding with service category information or user's classification information that first equipment that receives sends, but the prefix corresponding with service category information or user's classification information is assigned to interface, when treating process business and processing, such as, when receiving the message of pending business, when self generating the message of pending business, treat process business when carrying out service management, or treat process business when carrying out business monitoring, ability selects a prefix according to the class of service of pending business or user's classification from the prefix of specifying for interface, by the service category information of correspondence of this prefix selected or the class of service of user's classification information and pending business or user's categorical match, global address is generated according to by the prefix selected, this global address processes for the carrying out for the treatment of process business.Such as, described class of service or global address corresponding to user's classification is filled in the message sending described pending business, to send in messages of described pending business to this interface at other and fill described class of service or global address corresponding to user's classification, use described class of service or global address corresponding to user's classification as the management identification information of described pending business when carrying out service management to described pending business, use described class of service or global address corresponding to user's classification as the identification information etc. of IP stream identifying described pending business when treating process business and carrying out business monitoring.This global address can continue to be assigned to this interface after this service ending, also can remove after service ending.
Fig. 4 is the prefix transmitting apparatus block diagram in one embodiment of the invention in shaftless driving.This equipment comprises:
Acquiring unit 402, for obtaining the corresponding relation of prefix and service category information or user's classification information.
The corresponding relation of prefix and service category information or user's classification information can be that acquiring unit 402 obtains from pre-configured configuration file, or can be obtained from configuration-system by configuration interface, or obtained by manual entry mode by configuration interface, also by communication interface and other devices communicatings, this corresponding relation can be obtained from other equipment.
Transmitting element 404, for sending advertising of route message to prefix designated equipment, prefix is carried in described advertising of route message, and the service category information corresponding with described prefix or user's classification information, described advertising of route message is used for making described prefix designated equipment according to described service category information or user's classification information, is the interface specified prefix of described prefix designated equipment from described prefix.
Prefix transmitting apparatus can be Router, HGW, DSLAM, switch, NAS, BRAS, BNG, BNAS usually.
Prefix in advertising of route message can be carried by prefix information option, and prefix information option (see Fig. 2) can comprise: the fields such as Type, Length, Prefix Length, L, A, Reserved1, Valid Lifetime, Preferred Lifetime, Reserved2, Prefix.
The service category information corresponding with prefix or user's classification information is also comprised in advertising of route message.In order to realize the management of business management system to business, advertising of route message needs to comprise and the service category information or the user's classification information that are front embroidered with corresponding relation.Because a usual prefix is carried by a prefix information option, also can think that advertising of route message needs to comprise the service category information or user's classification information that there are corresponding relation with prefix information option.Service category information or user's classification information can be single class of service or user's classification, also can be the set of some classs of service or user's classification.For example, advertising of route message can comprise two prefix information option, and carry a prefix respectively, one of them prefix information option is corresponding with IPTV service, and another is corresponding with VoIP and HSI business.
Service category information or user's classification information can adopt various ways to represent.For example, service category information can represent by the title of business, and service category information as corresponding in IPTV service is expressed as character string " IPTV ", and service category information corresponding to VoIP business is expressed as character string " VoIP ".The set of the service category information of IPTV and VoIP can use character string " IPTV; VoIP " represent, also can define a new character string such as " VoiceNTV " and represent.Service category information also can represent by the numbering of business, and the service category information that service category information corresponding to such as IPTV service is expressed as numeral 2, VoIP business corresponding is expressed as numeral 3.The set of the type of service of IPTV and VoIP can by numeral to { 2,3} represents, also can define a new numbering as 4 to represent.In order to distinguish different network provider (network service provider, NSP) the identical business provided, also can comprise the identifying information (title or numbering etc. as network provider) of network provider in service category information.Service category information corresponding to the IPTV service provided as network provider A is expressed as character string " A:IPTV ", and service category information corresponding to the IPTV service that network provider B provides is expressed as character string " B:IPTV ".If prefix can the set of corresponding some classs of service or user's classification, then " IPTV can be used; VoIP " or similar fashion represent.
User's classification information can comprise different particular contents, also can adopt different representations.Such as user's classification information can represent the type of the second equipment, as adopted character string " PC " or numeral 1 to represent that the second equipment is personal computer, and represents that the second equipment is STB by character string " STB " or numeral 2.Also the rank with contracted user can be represented, as represented that contracted user is Gold Subscriber by character string " Gold " or numeral 10, as represented that contracted user is Silver Subscriber by character string " Silver " or numeral 11, Gold Subscriber can obtain higher-quality service relative to Silver Subscriber.
Corresponding relation between the prefix in advertising of route message and service category information or user's classification information can have various ways to represent, such as:
One or more field is increased to represent the service category information corresponding with the prefix entrained by this prefix information option or user's classification information in prefix information option.
Or, the service category information using the reserved field in current prefix information option to represent the prefix that comprises with this prefix information option corresponding or user's classification information, as used above-mentioned reservation 1 field or retaining 2 fields, or use reservation 1 field simultaneously and retain 2 fields.
Also a new option can be defined to represent service category information or user's classification information, suppose that the name of this option is called classification information option, then in advertising of route message, can by classification information option be placed on after specific prefix information option, be used for representing service category information or user's classification information and prefix information option corresponding relation.Such as: suppose that the prefix information option that prefix A is corresponding is prefix information option A, the classification information option that prefix A is corresponding is classification information option A, the prefix information option that prefix B is corresponding is prefix information option B, the classification information option that prefix B is corresponding is classification information option B, then in a ra message above-mentioned option put in order as prefix information option A, classification information option A, prefix information option B, classification information option B.
The mode that other those of ordinary skill in the art can expect also can be used for representing the corresponding relation between prefix and service category information or user's classification information.
Prefix designated equipment, according to described service category information or user's classification information, is interface specified prefix from the prefix described advertising of route message.
Adopt the technical scheme that the embodiment of the present invention provides, make different business can use by the prefix corresponding with this business and the global address corresponding with this business, thus be conducive to the management of business management system to business, be conducive to the raising of the routing management of network and the routing performance of network.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in computer-readable recording medium, described storage medium can be ROM/RAM, disk or CD etc.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.