Embodiment
Below in conjunction with Fig. 1 one embodiment of the invention is described:
Fig. 1 is that the prefix during stateless address disposes automatically in the one embodiment of the invention sends and the designation method flow chart.This method comprises:
102, second equipment receives the advertising of route message that first equipment sends, and carries prefix in the described advertising of route message, and with described prefix corresponding service classification information or user's classification information.
First equipment is the prefix transmitting apparatus during stateless address disposes automatically, 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, BNG) or wideband network access server (Broadband Network Access Server, 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 the advertising of route message can be carried by prefix information option.Referring to Fig. 2, Fig. 2 is the prefix information option schematic diagram in the advertising of route message.Prefix information option can comprise:
1) type (Type): the type of expression 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 of expression option is unit with 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, is unit with the position, and span is 0 to 128.
4) L: at link mark (on-link flag).The length of this field is 1.If address is assigned to the interface on the link of appointment, this address just is 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) keep 1 (Reserved1): the field of reservation.The length of this field is 6.
7) effectively have the phase (Valid Lifetime): the length of this field is 32.Represent that this prefix is used to carry out the effective time span (with respect to the message transmitting time) that on-link determines.This time span is unit with the second.When this field value represents effectively to exist the phase infinity during for 0xffffffff.
8) there is the phase (Preferred Lifetime) in first-selection: the length of this field is 32.Expression keeps first-selected effective time span (with respect to the message transmitting time) from this prefix by the address that SLAAC mechanism generates.This time span is unit with the second.When this field value represents that there is the phase infinity in first-selection during for 0xffffffff.The value of this field is no more than the value that effectively has the phase field usually, can avoid the address of first-selection invalid.
9) keep 2 (Reserved2): the field of reservation.The length of this field is 32.
10) prefix (Prefix): the prefix of representing an IP address or an IP address.The length of this field is 128.Aforementioned prefix length field has been represented in the prefix field number since first effective position.
Also comprise in the advertising of route message and prefix corresponding service classification information or user's classification information.In order to realize the management of business management system to business, advertising of route message need comprise and the service category information or the user's classification information that before are embroidered with corresponding relation.Because a common prefix carried by a prefix information option, also can think advertising of route message need comprise corresponding relation with prefix information option service category information or user's classification information.Service category information or user's classification information can be single class of service or user's classifications, also can be the set of some classs of service or user's classification.Class of service can comprise the classification information relevant with type of service such as IPTV, VoIP or HSI.User's classification (User Class) is the information relevant with the user, can be that first equipment was provided with agreement (Dynamic Host Configuration Protocol by DynamicHost before step 102, user's classification of crossing to second devices advertise of mode such as DHCP), for example the type of service of interface is that VOIP, second equipment are STB equipment etc.For instance, advertising of route message can comprise two prefix information option, carries a prefix respectively, and one of them prefix information option is professional corresponding with IPTV, and another is professional corresponding with VoIP and HSI.
Service category information or user's classification information can adopt multiple mode to represent.For instance, service category information can be represented with the title of business, is expressed as character string " IPTV " as the professional corresponding service classification information of IPTV, and the professional corresponding service classification information of VoIP is expressed as character string " VoIP ".The set of the service category information of IPTV and VoIP can be used character string " IPTV; VoIP " represent, also can define a new character string and represent as " VoiceNTV ".Service category information can represent that also for example the professional corresponding service classification information of IPTV is expressed as numeral 2 with the numbering of business, and the professional corresponding service classification information of VoIP is expressed as numeral 3.The set of the type of service of IPTV and VoIP can be with numeral to { 2,3} represents, also can define a new numbering and represent as 4.In order to distinguish different network providers (network service provider, NSP) the identical business that provides also can comprise the identifying information (as the title of network provider or numbering etc.) of network provider in service category information.The professional corresponding service classification information of IPTV that provides as network provider A is expressed as character string " A:IPTV ", and the professional corresponding service classification information of the IPTV that network provider B provides is expressed as character string " B:IPTV ".If prefix can corresponding some classs of service or the set of user's classification, then can use " IPTV; VoIP " or similar fashion represent.
User's classification information can comprise different particular contents, also can adopt different representations.For example user's classification information can be represented the type of second equipment, represents that as adopting character string " PC " or numeral 1 second equipment is personal computer, and represents that with character string " STB " or numeral 2 second equipment is STB.Also can represent rank with the contracted user, as representing that with character string " Gold " or numeral 10 contracted user is a Gold Subscriber, as representing that with character string " Silver " or numeral 11 contracted user is a Silver Subscriber, Gold Subscriber can obtain higher-quality service with respect to Silver Subscriber.
Corresponding relation between prefix in the advertising of route message and service category information or user's classification information can have multiple mode to represent, for example:
In prefix information option, increase one or more fields and represent prefix corresponding service classification information or the user classification information entrained with this prefix information option.
Perhaps, use reserved field in the prefix information option to represent prefix corresponding service classification information or the user's classification information that is comprised with this prefix information option, as use above-mentioned reservation 1 field or keep 2 fields, or use reservation 1 field simultaneously and keep 2 fields.
Also can define a new option and represent service category information or user's classification information, the name of supposing this option is called the classification information option, then in advertising of route message, can be used for representing service category information or user's classification information and prefix information option corresponding relation by the classification information option being placed on the back of specific prefix information option.For example: the prefix information option of supposing prefix A correspondence is prefix information option A, prefix A corresponding class information option is classification information option A, the prefix information option of prefix B correspondence is prefix information option B, prefix B corresponding class information option is classification information option B, then putting in order of above-mentioned option is prefix information option A in the RA message, classification information option A, prefix information option B, classification information option B.
The mode that other those of ordinary skills 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 first equipment obtains from pre-configured configuration file, perhaps obtain from configuration-system by configuration interface, perhaps obtain by the manual entry mode by configuration interface, also can obtain this corresponding relation from other equipment by communication interface and other devices communicatings.
104, second equipment is the interface specified prefix according to described service category information or user's classification information from the prefix that described advertising of route message is carried.
Second equipment obtains prefix and corresponding service classification information or user's classification information from advertising of route message, be its interface specified prefix.When the interface of second equipment has corresponding service classification or user's classification, second equipment is according to service category information or user's classification information, and interface corresponding service classification or user's classification are that its interface is specified and the class of service of this interface or the service category information or the pairing prefix of user's classification information of user's classification coupling from the prefix that advertising of route message is carried.For instance, advertising of route message comprises two prefix information option, carries a prefix respectively, and one of them prefix information option is professional corresponding with IPTV, and another is professional corresponding with VoIP and HSI.If second equipment need be an interface specified prefix of its corresponding IPTV business, then second equipment will be assigned to this interface with the professional corresponding prefix of IPTV.In some concrete application scenarios, another need also receive this advertising of route message for the equipment of its interface specified prefix, interface corresponding service classification or user's classification of this equipment are VoIP and HSI business, then will be assigned to this interface with VoIP and the professional corresponding prefix of HSI.
When second equipment need be for a plurality of interface specified prefix, second equipment was respectively its each interface and specifies and the class of service of this interface or the class of service or the pairing prefix of user's classification of user's classification coupling.When only comprising a prefix information option in the advertising of route message and during with this prefix information option corresponding service classification information or user's classification information, if the class of service of the interface of second equipment or user's classification can be mated with this service category information or user's classification information, then specify the prefix in this prefix information option to give interface, otherwise be not the interface specified prefix.For example, the corresponding IPTV business of prefix in the notice message, second equipment is a switch, and in the network planning this switch process IP TV business not, then this switch can not specified this prefix for its interface, avoid the confusion of service management, helped the raising of the routing performance of the routing management of network and network.
The obtain manner of the class of service of the interface of second equipment or user's classification can have multiple implementation.For example, service category information or user's classification information of interface can be set in the hardware of second equipment or software, second equipment just can obtain interface corresponding service classification or user's classification by the data that read in hardware or the software.Perhaps, service category information or user's classification information of interface can be set in the configuration file of second equipment also, second equipment just can obtain interface corresponding service classification or user's classification by reading configuration file.Second equipment can also provide configuration interface, obtains interface corresponding service classification information or user's classification information by modes such as configuration-system or manual entries.Second equipment also can provide communication interface, from other equipment mutual obtain interface corresponding service classification or user's classification.
For specific interface, second equipment can obtain this interface corresponding service classification or user's classification before receiving advertising of route message, also can obtain this interface corresponding service classification or user's classification again after receiving advertising of route message.
The method for expressing of docking port corresponding service classification or user's classification can be similar to the method for expressing of service category information or user's classification information to first equipment in second equipment, for example use character string " IPTV ", " VoIP ", " STB " or with class of service or the corresponding expressions such as numeral of user's classification.The method for expressing of docking port corresponding service classification or user's classification needn't be identical in second equipment, for example, first equipment can then be used and class of service or the corresponding numeral of user's classification with string representation service category information or user's classification information second equipment, and second equipment can judge whether both mate according to the corresponding relation between different representations.
If the interface of second equipment and class of service or user's classification do not have clear and definite corresponding relation, perhaps in the automatic layoutprocedure of stateless address not the class of service of docking port or user's classification limit, then second equipment does not need matched interfaces corresponding service classification or user's classification and specifies corresponding prefix with prefix corresponding service classification information or user's classification information.The prefix that second equipment will meet aforementioned condition such as effectively having phase, prefix length is assigned to interface, and record prefix corresponding service classification information or user's classification information.
When being an interface when having specified a plurality of prefixes,, and write down this corresponding relation according to the generation and service category information or the corresponding global address of user's classification information respectively of these prefixes.For example, advertising of route message comprises three prefix information option and respectively carries a prefix, professional corresponding with IPTV business, VoIP and HSI respectively, interface corresponding service classification or user's classification of second equipment are VoIP and HSI business, and second equipment will be assigned to this interface with VoIP and professional two the corresponding prefixes of HSI.Second equipment combines two prefixes respectively with the interface identifier of this interface, generate two global addresses, and these two global addresses are professional corresponding with VoIP and HSI respectively.And for example, advertising of route message comprises two prefix information option and respectively carries a prefix, professional corresponding with VoIP and HSI respectively, the interface of second equipment and class of service or user's classification do not have clear and definite corresponding relation, and then second equipment will be assigned to this interface with VoIP and professional two the corresponding prefixes of HSI.Second equipment combines two prefixes respectively with the interface identifier of this interface, generate two global addresses, and these two global addresses are professional corresponding with VoIP and HSI respectively.
Second equipment can be selected corresponding global address according to class of service or user's classification of pending business, uses the global address of class of service or user's classification correspondence that described pending business is handled.For example, in the message that sends described pending business, fill the global address of described class of service or user's classification correspondence, send the global address of filling described class of service or user's classification correspondence in the message of described pending business at other to this interface, when described pending business is carried out service management, use the management identification information of the global address of described class of service or user's classification correspondence, treating the global address of using described class of service or user's classification correspondence when carrying out business monitoring of managing business as the identification information of the IP stream of the described pending business of identification etc. as described pending business.For instance, when second equipment generated for its interface respectively with VoIP and professional corresponding two global addresses of HSI after, the global address that second equipment can be selected correspondence according to class of service or user's classification of pending business.For example, second equipment uses the professional corresponding global address with VoIP in the signaling message of VoIP business.Again for example, second equipment uses the professional corresponding global address with HSI in the data message of HSI business.
Can determine flexibly the opportunity of the global address that the second equipment generation is corresponding with class of service or user's classification.For example, after the prefix corresponding that first equipment that receives sends, do not generate global address immediately with service category information or user's classification information, but the prefix corresponding with service category information or user's classification information is assigned to interface, manage business when handling treating, for example, when receiving the message of pending business, when self generating the message of pending business, treat and manage business when carrying out service management, perhaps treat and manage business when carrying out business monitoring, just according to the class of service of pending business or user's classification from be prefix of selection the prefix of interface appointment, the corresponding service classification information of selecteed this prefix or the class of service of user's classification information and pending business or user's classification coupling, generate global address according to selecteed prefix, this global address is used to treat manage business to be handled.For example, in the message that sends described pending business, fill the global address of described class of service or user's classification correspondence, send the global address of filling described class of service or user's classification correspondence in the message of described pending business at other to this interface, when described pending business is carried out service management, use the management identification information of the global address of described class of service or user's classification correspondence, treating the global address of using described class of service or user's classification correspondence when carrying out business monitoring of managing business as the identification information of the IP stream of the described pending business of identification etc. as described pending business.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 during stateless address disposes automatically in the one embodiment of the invention.This equipment comprises:
Receiving element 302 is used to receive the advertising of route message that the prefix transmitting apparatus sends, and carries prefix in the described advertising of route message, and with described prefix corresponding service classification information or user's classification information.
The 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 the advertising of route message can be carried by prefix information option, and prefix information option (referring to Fig. 2) can comprise: fields such as Type, Length, Prefix Length, L, A, Reserved1, Valid Lifetime, Preferred Lifetime, Reserved2, Prefix.
Also comprise in the advertising of route message and prefix corresponding service classification information or user's classification information.In order to realize the management of business management system to business, advertising of route message need comprise and the service category information or the user's classification information that before are embroidered with corresponding relation.Because a common prefix carried by a prefix information option, also can think advertising of route message need comprise corresponding relation with prefix information option service category information or user's classification information.Service category information or user's classification information can be single class of service or user's classifications, also can be the set of some classs of service or user's classification.For instance, advertising of route message can comprise two prefix information option, carries a prefix respectively, and one of them prefix information option is professional corresponding with IPTV, and another is professional corresponding with VoIP and HSI.
Service category information or user's classification information can adopt multiple mode to represent.For instance, service category information can be represented with the title of business, is expressed as character string " IPTV " as the professional corresponding service classification information of IPTV, and the professional corresponding service classification information of VoIP is expressed as character string " VoIP ".The set of the service category information of IPTV and VoIP can be used character string " IPTV; VoIP " represent, also can define a new character string and represent as " VoiceNTV ".Service category information can represent that also for example the professional corresponding service classification information of IPTV is expressed as numeral 2 with the numbering of business, and the professional corresponding service classification information of VoIP is expressed as numeral 3.The set of the type of service of IPTV and VoIP can be with numeral to { 2,3} represents, also can define a new numbering and represent as 4.In order to distinguish different network providers (network service provider, NSP) the identical business that provides also can comprise the identifying information (as the title of network provider or numbering etc.) of network provider in service category information.The professional corresponding service classification information of IPTV that provides as network provider A is expressed as character string " A:IPTV ", and the professional corresponding service classification information of the IPTV that network provider B provides is expressed as character string " B:IPTV ".If prefix can corresponding some classs of service or the set of user's classification, then can use " IPTV; VoIP " or similar fashion represent.
User's classification information can comprise different particular contents, also can adopt different representations.For example user's classification information can be represented the type of second equipment, represents that as adopting character string " PC " or numeral 1 second equipment is personal computer, and represents that with character string " STB " or numeral 2 second equipment is STB.Also can represent rank with the contracted user, as representing that with character string " Gold " or numeral 10 contracted user is a Gold Subscriber, as representing that with character string " Silver " or numeral 11 contracted user is a Silver Subscriber, Gold Subscriber can obtain higher-quality service with respect to Silver Subscriber.
Corresponding relation between prefix in the advertising of route message and service category information or user's classification information can have multiple mode to represent, for example:
In prefix information option, increase one or more fields and represent prefix corresponding service classification information or the user classification information entrained with this prefix information option.
Perhaps, use reserved field in the present prefix information option to represent prefix corresponding service classification information or the user's classification information that is comprised with this prefix information option, as use above-mentioned reservation 1 field or keep 2 fields, or use reservation 1 field simultaneously and keep 2 fields.
Also can define a new option and represent service category information or user's classification information, the name of supposing this option is called the classification information option, then in advertising of route message, can be used for representing service category information or user's classification information and prefix information option corresponding relation by the classification information option being placed on the back of specific prefix information option.For example: the prefix information option of supposing prefix A correspondence is prefix information option A, prefix A corresponding class information option is classification information option A, the prefix information option of prefix B correspondence is prefix information option B, prefix B corresponding class information option is classification information option B, then putting in order of above-mentioned option is prefix information option A in the RA message, classification information option A, prefix information option B, classification information option B.
The mode that other those of ordinary skills 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 is used for according to described service category information or user's classification information, is the interface specified prefix from the prefix that described advertising of route message is carried.
Designating unit 304 is obtained prefix and corresponding service classification information or user's classification information from advertising of route message, be its interface specified prefix.When the interface of prefix designated equipment has corresponding service classification or user's classification, designating unit 304 specifically is used for according to service category information or user's classification information, and specifies and the class of service of this interface or the service category information or the pairing prefix of user's classification information of user's classification coupling for its interface in interface corresponding service classification or the prefix of user's classification from advertising of route message.For instance, advertising of route message comprises two prefix information option, carries a prefix respectively, and one of them prefix information option is professional corresponding with IPTV, and another is professional corresponding with VoIP and HSI.If designating unit 304 need be an interface specified prefix of prefix designated equipment, and the corresponding IPTV business of this interface, then designating unit 304 will be assigned to this interface with the professional corresponding prefix of IPTV.If another prefix designated equipment also receives this advertising of route message, interface corresponding service classification or user's classification of this equipment are VoIP and HSI business, then will be assigned to this interface with VoIP and the professional corresponding prefix of HSI.When designating unit 304 need be for a plurality of interface specified prefix, designating unit 304 was respectively each interface of prefix designated equipment and specifies and the class of service of this interface or the service category information or the pairing prefix of user's classification information of user's classification coupling.When only comprising a prefix information option in the notice message and during with this prefix information option corresponding service classification information or user's classification information, 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 the prefix in this prefix information option to give interface, otherwise is not the interface specified prefix.For example, the corresponding IPTV business of prefix in the notice message, the prefix designated equipment is a switch, and in the network planning this switch process IP TV business not, then this switch can not specified this prefix for its interface, avoid the confusion of service management, helped the raising of the routing performance of the routing management of network and network.
The obtain manner of the class of service of the interface of prefix designated equipment or user's classification can have multiple implementation.For example, service category information or user's classification information of interface can be set in the hardware of prefix designated equipment or software, the prefix designated equipment just can obtain interface corresponding service classification or user's classification by the data that read in hardware or the software.Perhaps, service category information or user's classification information of interface can be set in the configuration file of prefix designated equipment also, the prefix designated equipment just can obtain interface corresponding service classification or user's classification by reading configuration file.The prefix designated equipment can also provide configuration interface, obtains interface corresponding service classification information or user's classification information by modes such as configuration-system or manual entries.The prefix designated equipment also can provide communication interface, from other equipment mutual obtain interface corresponding service classification or user's classification.
For specific interface, the prefix designated equipment can obtain this interface corresponding service classification or user's classification before receiving advertising of route message, also can obtain this interface corresponding service classification or user's classification again after receiving advertising of route message.
The method for expressing of docking port corresponding service classification or user's classification can be similar to the method for expressing of service category information or user's classification information to the prefix transmitting apparatus in the prefix designated equipment, for example use character string " IPTV ", " VoIP ", " STB " or with class of service or the corresponding expressions such as numeral of user's classification.The method for expressing of docking port corresponding service classification or user's classification needn't be identical in the prefix designated equipment, for example, the prefix transmitting apparatus can then be used and class of service or the corresponding numeral of user's classification with string representation service category information or user's classification information prefix designated equipment, and designating unit 304 can judge whether both mate according to the corresponding relation between different representations.
If the interface of prefix designated equipment and class of service or user's classification do not have clear and definite corresponding relation, perhaps in the automatic layoutprocedure of stateless address not the class of service of docking port or user's classification limit, then designating unit 304 does not need matched interfaces corresponding service classification or user's classification and specifies corresponding prefix with prefix corresponding service classification information or user's classification information.The prefix that designating unit 304 will meet aforementioned condition such as effectively having phase, prefix length is assigned to interface, and record prefix corresponding service classification information or user's classification information.
The prefix designated equipment can also comprise generation unit and selected cell.When designating unit 304 is an interface when having specified a plurality of prefixes, generation unit is according to the generation and service category information or the corresponding global address of user's classification information respectively of these prefixes, and writes down this corresponding relation.For example, advertising of route message comprises three prefix information option and respectively carries a prefix, professional corresponding with IPTV business, VoIP and HSI respectively, interface corresponding service classification or user's classification of prefix designated equipment are VoIP and HSI business, and designating unit 304 will be assigned to this interface with VoIP and professional two the corresponding prefixes of HSI.Generation unit with two prefixes respectively the interface identifier of this interface combine, generate two global addresses, these two global addresses are professional corresponding with VoIP and HSI respectively.And for example, advertising of route message comprises two prefix information option and respectively carries a prefix, professional corresponding with VoIP and HSI respectively, the interface of prefix designated equipment and class of service or user's classification do not have clear and definite corresponding relation, and then designating unit 304 will be assigned to this interface with VoIP and professional two the corresponding prefixes of HSI.Generation unit with two prefixes respectively the interface identifier of this interface combine, generate two global addresses, these two global addresses are professional corresponding with VoIP and HSI respectively.
Selected cell can be selected corresponding global address according to class of service or user's classification of pending business, uses the global address of class of service or user's classification correspondence that described pending business is handled.For example, in the message that sends described pending business, fill the global address of described class of service or user's classification correspondence, send the global address of filling described class of service or user's classification correspondence in the message of described pending business at other to this interface, when described pending business is carried out service management, use the management identification information of the global address of described class of service or user's classification correspondence, treating the global address of using described class of service or user's classification correspondence when carrying out business monitoring of managing business as the identification information of the IP stream of the described pending business of identification etc. as described pending business.For instance, when generation unit be the interface of prefix designated equipment generated respectively with VoIP and professional corresponding two global addresses of HSI after, the global address that selected cell can be selected correspondence according to class of service or user's classification of pending business.For example, selected cell uses the professional corresponding global address with VoIP in the signaling message of VoIP business.Again for example, selected cell uses the professional corresponding global address with HSI in the data message of HSI business.
Can determine flexibly the opportunity of the global address that the second equipment generation is corresponding with class of service or user's classification.For example, after the prefix corresponding that first equipment that receives sends, do not generate global address immediately with service category information or user's classification information, but the prefix corresponding with service category information or user's classification information is assigned to interface, manage business when handling treating, for example, when receiving the message of pending business, when self generating the message of pending business, treat and manage business when carrying out service management, perhaps treat and manage business when carrying out business monitoring, just according to the class of service of pending business or user's classification from be prefix of selection the prefix of interface appointment, the corresponding service classification information of selecteed this prefix or the class of service of user's classification information and pending business or user's classification coupling, generate global address according to selecteed prefix, this global address is used to treat handling of managing business.For example, in the message that sends described pending business, fill the global address of described class of service or user's classification correspondence, send the global address of filling described class of service or user's classification correspondence in the message of described pending business at other to this interface, when described pending business is carried out service management, use the management identification information of the global address of described class of service or user's classification correspondence, treating the global address of using described class of service or user's classification correspondence when carrying out business monitoring of managing business as the identification information of the IP stream of the described pending business of identification etc. as described pending business.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 during stateless address disposes automatically in the one embodiment of the invention.This equipment comprises:
Acquiring unit 402 is used to obtain 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, perhaps can obtain from configuration-system by configuration interface, perhaps obtain by the manual entry mode by configuration interface, also can obtain this corresponding relation from other equipment by communication interface and other devices communicatings.
Transmitting element 404, be used for sending advertising of route message to the prefix designated equipment, carry prefix in the described advertising of route message, and with described prefix corresponding service classification information or user's classification information, described advertising of route message is used to make 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.
The prefix transmitting apparatus can be Router, HGW, DSLAM, switch, NAS, BRAS, BNG, BNAS usually.
Prefix in the advertising of route message can be carried by prefix information option, and prefix information option (referring to Fig. 2) can comprise: fields such as Type, Length, Prefix Length, L, A, Reserved1, Valid Lifetime, Preferred Lifetime, Reserved2, Prefix.
Also comprise in the advertising of route message and prefix corresponding service classification information or user's classification information.In order to realize the management of business management system to business, advertising of route message need comprise and the service category information or the user's classification information that before are embroidered with corresponding relation.Because a common prefix carried by a prefix information option, also can think advertising of route message need comprise corresponding relation with prefix information option service category information or user's classification information.Service category information or user's classification information can be single class of service or user's classifications, also can be the set of some classs of service or user's classification.For instance, advertising of route message can comprise two prefix information option, carries a prefix respectively, and one of them prefix information option is professional corresponding with IPTV, and another is professional corresponding with VoIP and HSI.
Service category information or user's classification information can adopt multiple mode to represent.For instance, service category information can be represented with the title of business, is expressed as character string " IPTV " as the professional corresponding service classification information of IPTV, and the professional corresponding service classification information of VoIP is expressed as character string " VoIP ".The set of the service category information of IPTV and VoIP can be used character string " IPTV; VoIP " represent, also can define a new character string and represent as " VoiceNTV ".Service category information can represent that also for example the professional corresponding service classification information of IPTV is expressed as numeral 2 with the numbering of business, and the professional corresponding service classification information of VoIP is expressed as numeral 3.The set of the type of service of IPTV and VoIP can be with numeral to { 2,3} represents, also can define a new numbering and represent as 4.In order to distinguish different network providers (network service provider, NSP) the identical business that provides also can comprise the identifying information (as the title of network provider or numbering etc.) of network provider in service category information.The professional corresponding service classification information of IPTV that provides as network provider A is expressed as character string " A:IPTV ", and the professional corresponding service classification information of the IPTV that network provider B provides is expressed as character string " B:IPTV ".If prefix can corresponding some classs of service or the set of user's classification, then can use " IPTV; VoIP " or similar fashion represent.
User's classification information can comprise different particular contents, also can adopt different representations.For example user's classification information can be represented the type of second equipment, represents that as adopting character string " PC " or numeral 1 second equipment is personal computer, and represents that with character string " STB " or numeral 2 second equipment is STB.Also can represent rank with the contracted user, as representing that with character string " Gold " or numeral 10 contracted user is a Gold Subscriber, as representing that with character string " Silver " or numeral 11 contracted user is a Silver Subscriber, Gold Subscriber can obtain higher-quality service with respect to Silver Subscriber.
Corresponding relation between prefix in the advertising of route message and service category information or user's classification information can have multiple mode to represent, for example:
In prefix information option, increase one or more fields and represent prefix corresponding service classification information or the user classification information entrained with this prefix information option.
Perhaps, use reserved field in the present prefix information option to represent prefix corresponding service classification information or the user's classification information that is comprised with this prefix information option, as use above-mentioned reservation 1 field or keep 2 fields, or use reservation 1 field simultaneously and keep 2 fields.
Also can define a new option and represent service category information or user's classification information, the name of supposing this option is called the classification information option, then in advertising of route message, can be used for representing service category information or user's classification information and prefix information option corresponding relation by the classification information option being placed on the back of specific prefix information option.For example: the prefix information option of supposing prefix A correspondence is prefix information option A, prefix A corresponding class information option is classification information option A, the prefix information option of prefix B correspondence is prefix information option B, prefix B corresponding class information option is classification information option B, then putting in order of above-mentioned option is prefix information option A in the RA message, classification information option A, prefix information option B, classification information option B.
The mode that other those of ordinary skills can expect also can be used for representing the corresponding relation between prefix and service category information or user's classification information.
The prefix designated equipment is the interface specified prefix according to described service category information or user's classification information in the prefix from described advertising of route message.
The technical scheme that adopts the embodiment of the invention to provide, make different business can use by prefix corresponding and the global address corresponding with this business with this business, thereby help the management of business management system, help the raising of the routing performance of the routing management of network and network business.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer-readable recording medium, described storage medium can be ROM/RAM, disk or CD etc.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation 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.