CN104333610A - IPv6 address allocation method and device - Google Patents

IPv6 address allocation method and device Download PDF

Info

Publication number
CN104333610A
CN104333610A CN201410596662.XA CN201410596662A CN104333610A CN 104333610 A CN104333610 A CN 104333610A CN 201410596662 A CN201410596662 A CN 201410596662A CN 104333610 A CN104333610 A CN 104333610A
Authority
CN
China
Prior art keywords
type
service
address
terminal
ipv6 address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410596662.XA
Other languages
Chinese (zh)
Inventor
刘雨涵
周光涛
傅承鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410596662.XA priority Critical patent/CN104333610A/en
Publication of CN104333610A publication Critical patent/CN104333610A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

An embodiment of the invention provides an IPv6 address allocation method and device, relates to the technical field of communication, and can solve the problem that fine management operation for a terminal is inconvenient as an allocated IPv6 address cannot reflect the relationship among an access terminal type, a terminal type and a terminal business type. The method includes the steps: allocating a first IPv6 address corresponding to the terminal type for the terminal according to the terminal type in a terminal IPv6 address application message by an address allocation device; replacing a source address in an uplink data packet from the first IPv6 address into a second IPv6 address corresponding to the business type according to the data business type of the terminal. The method and the device are used for allocating IPv6 addresses of the terminal.

Description

A kind of IPv6 address distribution method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of IPv6 address distribution method and device.
Background technology
IPv6 (Internet Protocol Version 6, Internet protocol sixth version) be for substituting existing IPv4 (Internet Protocol Version 4, Internet protocol the 4th edition) next generation optical transmission network, it is by 128 bit representation, address capability reaches 2128, not only solve the problem of IPv4 network address resources lazy weight, also in restricted number, clear away obstacle for the equipment except computer is connected into the Internet simultaneously.
Because the address capability of IPv6 is very huge, the coding thus being carried out IPv6 address by reasonable manner is particularly important for network management with distribution.IPv6 address is made up of 64 network prefixs and 64 host address two parts.At present, when carrying out IPv6 address assignment, terminal dial-in direct or dialled by home gateway, obtains 64 network prefixs of being distributed by operator from network side; Simultaneously, by random algorithm or DHCP (the Dynamic Host Configuration Protocol of node self, DHCP) server-assignment, as adopted IEEE (Institute of Electrical and Electronics Engineers, Institute of Electrical and Electric Engineers) EUI-64 switch technology etc., obtain 64 host addresses in IPv6 network, and then host address is combined with network prefix, generate the IPv6 address of 128.
But, adopt the IPv6 address that the scheme of prior art is distributed, only by prefix part reflection terminal access address information (access address province, type, district information), by the address space left bit part reflection correlated identities of terminal and the moment of access network, thus operator cannot grasp terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed, and brings inconvenience to realizing IP address-based terminal fine-grained management operation.
Summary of the invention
Embodiments of the invention provide a kind of IPv6 address distribution method and device, can not reflect the relation of access terminal type and terminal traffic type in order to solve distributing IP v6 address, cause the unhandy problem of terminal fine-grained management.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of IPv6 address distribution method, comprising:
The IPv6 application IP addresses message that address distributing device receiving terminal sends, comprises the terminal type of described terminal in described solicitation message;
Determine an IPv6 address corresponding with described terminal type, and give described terminal by a described IPv6 address assignment;
When described terminal uses the described IPv6 address distributed to carry out data service, obtain the type of service of described data service upstream data bag carrying;
Determine the two IPv6 address corresponding with described type of service, and the source address in described upstream data bag is replaced with described 2nd IPv6 address by a described IPv6 address.
Second aspect, provides a kind of IPv6 address distribution method, comprising:
Terminal sends IPv6 application IP addresses message to address distributing device, the terminal type of described terminal is comprised, so that described address distributing device is a described terminal distribution IPv6 address corresponding with described terminal type according to described solicitation message in described solicitation message;
A described IPv6 address is used to carry out data service, so that the source address in described upstream data bag is replaced with the two IPv6 address corresponding with described type of service by a described IPv6 address by the type of service that described address distributing device carries according to described data service upstream data bag.
The third aspect, provides a kind of IPv6 address distributing device, comprising:
Receiving element, for the IPv6 application IP addresses message that receiving terminal sends, comprises the terminal type of described terminal in described solicitation message;
Allocation units, for determining an IPv6 address corresponding with described terminal type, and give described terminal by a described IPv6 address assignment;
Acquiring unit, during for using the described IPv6 address distributed to carry out data service in described terminal, obtains the type of service of described data service upstream data bag carrying;
Replacement unit, for determining the two IPv6 address corresponding with described type of service, and replaces with described 2nd IPv6 address by the source address in described upstream data bag by a described IPv6 address.
Fourth aspect, provides a kind of terminal, comprising:
Transmitting element, for sending IPv6 application IP addresses message to address distributing device, the terminal type of described terminal is comprised, so that described address distributing device is a described terminal distribution IPv6 address corresponding with described terminal type according to described solicitation message in described solicitation message;
Business unit, for using a described IPv6 address to carry out data service, so that the source address in described upstream data bag is replaced with the two IPv6 address corresponding with described type of service by a described IPv6 address by the type of service that described address distributing device carries according to described data service upstream data bag.
Visible, the embodiment of the present invention provides a kind of IPv6 address distribution method and device, according to the terminal type comprised in IPv 6 terminal address solicitation message, is the IPv6 address that terminal distribution is corresponding with terminal type; And then the source address in data service upstream data bag is replaced with the two IPv6 address corresponding with type of service by an IPv6 address by type of service when carrying out data service according to terminal.Like this, by distinguishing corresponding IPv6 address for terminal distribution with terminal type and type of service, avoid prior art and generate IPv6 address in conjunction with network prefix and host address, cause operator cannot grasp the problem of terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed.Therefore, the present invention is relative to prior art, the relation that access terminal type and terminal traffic type can not be reflected in distributing IP v6 address can be solved, cause the unhandy problem of terminal fine-grained management, for the terminal management based on terminal type IP address, the management of the routing policy based on type of service IP address and differentiation control to provide convenience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of IPv6 address distribution method that Fig. 1 provides for the embodiment of the present invention based on system configuration schematic diagram;
The schematic flow sheet one of a kind of IPv6 address distribution method that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet two of a kind of IPv6 address distribution method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet three of a kind of IPv6 address distribution method that Fig. 4 provides for the embodiment of the present invention;
The structural representation one of a kind of address distributing device that Fig. 5 provides for the embodiment of the present invention;
The structural representation two of a kind of address distributing device that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of terminal that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
A kind of IPv6 address distribution method that Fig. 1 provides for the embodiment of the present invention based on system configuration schematic diagram.See Fig. 1, this system comprises: address distributing device 001, DPI (Deep Packet Inspection, deep-packet detection) module 002, one or more terminal 003 and IP (Internet Protocol, Internet protocol) net 004.
Wherein, address distributing device 001 can be BRAS (Broadband Remote Access Server, Broadband Remote Access Server) or comprise multiple server apparatus set of BRAS, existing with DPI module 002, each terminal 003 and IP network 004 respectively and communicate to connect, is also each terminal 003 distributing IP v6 address for receiving the IPv6 application IP addresses message of each terminal 003; DPI module 002, for when each terminal 003 carries out data service, identifies each upstream data bag that address distributing device 001 obtains, to obtain the type of service that packet carries; Each terminal 003 is for applying for IPv6 address to address distributing device 001, and then data service is carried out in the IPv6 address using address distributing device 001 to distribute.And the communication connection between the said equipment, can be wired mode or wireless mode, not limit herein.
The embodiment of the present invention provides a kind of IPv6 address distribution method, based on address distributing device side, as shown in Figure 2, comprising:
The IPv6 application IP addresses message that S101, address distributing device receiving terminal send, comprises the terminal type of terminal in solicitation message.
S102, determine an IPv6 address corresponding with terminal type, and by an IPv6 address assignment to terminal.
Under a kind of implementation, address distributing device according to terminal type, can inquire about first address pool corresponding with terminal type, using arbitrary IPv6 address of wherein recording as an IPv6 address.
Wherein, the first address pool is the address set of each IP available v6 address that record is corresponding with terminal type.
S103, when terminal uses the IPv6 address distributed to carry out data service, obtain the type of service of data service upstream data bag carrying.
Under a kind of implementation, address distributing device can obtain the service communication parameter of terminal when carrying out data service in upstream data bag, and then inquiry business Type mapping table obtains the type of service corresponding with service communication parameter.
Wherein, type of service mapping table is the tables of data recording each service communication parameter and each type of service mapping relations.
Under another kind of implementation, further, when there are not mapping relations in address distributing device any one type of service can also worked as in service communication parameter and type of service mapping table, deep-packet detection DPI is used to carry out traffic identification to upstream data bag, obtain type of service, and then the mapping relations of type of service service communication parameter obtained with identification are recorded in above-mentioned type of service mapping table.
S104, determine the two IPv6 address corresponding with type of service, and the source address in upstream data bag is replaced with the 2nd IPv6 address by an IPv6 address.
Under a kind of implementation, address distributing device according to type of service, can inquire about second address pool corresponding with type of service, using arbitrary IPv6 address of wherein recording as the 2nd IPv6 address.
Wherein, the second address pool is the address set of each IP available v6 address that record is corresponding with type of service.
Under another kind of implementation, address distributing device, can also updating type relation table after the source address in upstream data bag is replaced with the 2nd IPv6 address by an IPv6 address.
Wherein, type of relationship table be record IPv6 address and terminal type, type of service corresponding relation tables of data; Updating type relation table specifically can comprise: an IPv6 address, the 2nd IPv6 address, corresponding relation between terminal type and type of service are recorded in type of relationship table.
The embodiment of the present invention provides a kind of IPv6 address distribution method, first according to the terminal type comprised in IPv 6 terminal address solicitation message, is the IPv6 address that terminal distribution is corresponding with terminal type; And then the source address in upstream data bag is replaced with the two IPv6 address corresponding with type of service by an IPv6 address by type of service when carrying out data service according to terminal.Like this, by distinguishing corresponding IPv6 address for terminal distribution with terminal type and type of service, solve operator and cannot grasp terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed, cause the unhandy problem of terminal fine-grained management, for the terminal management based on terminal type IP address, the management of the routing policy based on type of service IP address and differentiation control to provide convenience.
The embodiment of the present invention provides another kind of IPv6 address distribution method, based on end side, as shown in Figure 3, comprising:
S201, terminal send IPv6 application IP addresses message to address distributing device, comprise the terminal type of terminal in solicitation message, so that address distributing device is a terminal distribution IPv6 address corresponding with terminal type according to solicitation message.
Data service is carried out, so that the source address in upstream data bag is replaced with the two IPv6 address corresponding with type of service by an IPv6 address by the type of service that address distributing device carries according to data service upstream data bag in S202, use the one IPv6 address.
The embodiment of the present invention provides a kind of IPv6 address distribution method, first the IPv6 application IP addresses message comprising own terminal type is sent to address distributing device, and then data service is carried out, so that the source address in upstream data bag is replaced with the two IPv6 address corresponding with the type of service of data service by an IPv6 address by address distributing device in the IPv6 address corresponding with this terminal type using address distributing device to distribute.Like this, by distinguishing corresponding IPv6 address for terminal distribution with terminal type and type of service, solve operator and cannot grasp terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed, cause the unhandy problem of terminal fine-grained management, for the terminal management based on terminal type IP address, the management of the routing policy based on type of service IP address are provided convenience.
The technical scheme more clearly understood the embodiment of the present invention to enable those skilled in the art and provide, below by specific embodiment, be described in detail to the another kind of IPv6 address distribution method that the embodiment of the present invention provides, as shown in Figure 4, the method comprises:
S301, terminal send IPv6 application IP addresses message to address distributing device.
Concrete, terminal is before access network carries out data service, IPv6 application IP addresses message is sent to address distributing device, this message is used for being obtained from body IP address in a network to address distributing device application, so that it is terminal distribution IPv6 address that address distributing device performs subsequent operation after receiving this application message.
Wherein, the terminal type of terminal is comprised in this application IP addresses message.This terminal type can be: PC (Personal Computer, personal computer), any one in the electronic equipment such as Set Top Box, smart mobile phone, intelligent television, panel computer or internet-of-things terminal, and the above-mentioned terminal type enumerated is only exemplary, includes but not limited to this.
Address distributing device can be BRAS, also can for comprising multiple server apparatus set of BRAS, Dynamic Host Configuration Protocol server; Wherein, BRAS is a kind of IAD towards broad band network application, for realizing the access of the broadband network user of various broadband access method, certification, charging, control, management, may be used for receiving IPv6 application IP addresses message that above-mentioned terminal sends in the present embodiment and perform subsequent operation and work in coordination with Dynamic Host Configuration Protocol server for this terminal distribution IPv6 address, so that terminal uses the IPv6 address access network distributed to carry out data service.
Be worth mentioning, when terminal cannot detect the terminal type of self, or, comprise information in the IPv6 application IP addresses message of transmission and make mistakes, when causing address distributing device cannot obtain the terminal type of terminal, default terminal can be carried out acquisition process as PC type.And the above-mentioned processing mode by PC type terminal type is by default only exemplary, according to the difference of application scenarios, acquiescence terminal type selection can there is some difference, include but not limited to this.
S302, address distributing device are terminal distribution the one IPv6 address according to terminal type.
Concrete, address distributing device is receiving the IPv6 application IP addresses message of terminal transmission, and after obtaining the terminal type wherein comprised, according to this terminal type, inquire about first address pool corresponding with this terminal type, determine an IPv6 address, and then by an IPv6 address assignment to terminal.
Be worth mentioning, current all available IPv6 addresses are divided into multiple IP address pool by address distributing device, and the IPv6 address in each IP address pool can be continuous print address field, also can for having the set of a class IPv6 address of specific fields coding.Meanwhile, also establishing the corresponding relation between multiple terminal type and multiple IP address pool, making above-mentioned multiple IP address pool terminal be exclusively used in as having the terminal type corresponding with it provide IPv6 address.
And the corresponding relation between the multiple terminal type of address above mentioned distributor foundation and multiple IP address pool, can set for network system internal default, also can be that operator or administrative staff are regular or business demand external input setting according to preset service, not limit herein.
Should be noted that, IPv6 address in above-mentioned each IP address pool, it can be the complete IPv6 address of 128, also can be the network prefix of 64, do not limit herein, obtain the selection of IP address mode when concrete form under different application scene can access according to user, but the IPv6 address format in each IP address pool needs unified, i.e. unification to be all the complete IPv6 address of 128 or unification be all network prefix of 64 in each IP address pool.
Optionally, the first address pool mapping table can be set up further in address distributing device.This first address pool mapping table is the tables of data of corresponding relation between record multiple terminal type and multiple IP address pool, for storing after the corresponding relation of setting terminal type and IP address pool, so that address distributing device is inquired about after obtain terminal type from IPv6 application IP addresses message, determine that the address pool corresponding with terminal type carries out subsequent operation.And the mode of each corresponding relation of above-mentioned employing tables of data record is only exemplary, includes but not limited to this.
Exemplary, address distributing device is receiving the IPv6 application IP addresses message of terminal transmission, and after obtaining the terminal type wherein comprised, inquire about above-mentioned first address pool mapping table, determine first address pool corresponding with this terminal type, and then arbitrary IPv6 address of recording in this first address pool is defined as an IPv6 address.And an IPv6 address can be the complete IPv6 address of 128, also can be the network prefix of 64, not limit herein.
Wherein, above-mentionedly determine that the determination mode of an IPv6 address can for determine at random in the first address pool, also can for determining according to the rule (sequencing, specified portions address priority allocation etc. as address arrangement) preset, specifically can be distinct according to the difference of application scenarios, do not limit herein.
Further, the IPv6 address assignment determined is given above-mentioned terminal by address distributing device, so that terminal uses an IPv6 address to carry out data service.
Be worth mentioning, address distributing device after determining an IPv6 address from the first address pool, also need to upgrade the first address pool, an IPv6 address is got rid of from this first address pool, to ensure that each IPv6 address in the first address pool is all the available address be not assigned with.
S303, terminal use an IPv6 address to carry out data service.
Concrete, after address distributing device is terminal distribution the one IPv6 address according to terminal type, terminal uses an IPv6 address to carry out data service.Namely terminal uses an IPv6 address, is established a communications link, carry out data service by address distributing device and IP network.
Wherein, data service is the business that terminal and IP network carry out data interaction.Using smart mobile phone as example, data service can comprise instant messaging business (as mobile phone QQ, micro-letter), SNS (Social Networking Services, social network services) business (as Sina's microblogging, Twitter), Digital Media business etc.And the above-mentioned data service enumerated is only exemplary, includes but not limited to this.
Be worth mentioning, when an above-mentioned IPv6 address is the network prefix of 64, obtain host address by terminal self according to the mode of random algorithm or server-assignment, complete the completion to IPv6 address, to use the complete IPv6 address after completion to carry out data service.
S304, address distributing device obtain the type of service of data service upstream data bag carrying.
Concrete, terminal is when data service is carried out in use the one IPv6 address, and send upstream data bag to address distributing device, address distributing device obtains this upstream data bag and resolves, and determines the type of service of current data service.
Exemplary, address distributing device, after acquisition upstream data bag, is resolved this upstream data bag, is obtained the service communication parameter wherein comprised.This service communication parameter can be the five-tuple (source IP address, source port, object IP address, destination interface and transport layer protocol number) of business.
Further, the type of service corresponding with this service communication parameter is obtained according to this service communication parameter query type of service mapping table.Wherein, type of service mapping table is the tables of data set up in advance in address distributing device for recording each service communication parameter and each type of service mapping relations.For micro-communication service, after extracting the five-tuple of micro-communication service in the upstream data bag that address distributing device sends when carrying out micro-communication service from terminal, getting final product inquiry business Type mapping table, determining the type of service corresponding with this five-tuple.
Optionally, above-mentioned type of service mapping table can also be realized by IP filter (Packet filter), and the mapping relations of each service communication parameter recorded in above-mentioned type of service mapping table and each type of service, the related service information deployment in early stage that can provide according to service provider for operator or administrative staff, also can be that address distributing device is supplementary perfect in running, not limit herein.
Should be noted that, when address distributing device inquire about be any one type of service found in the service communication parameter of above-mentioned data service and type of service mapping table there are not mapping relations time, then determine that the service communication parameter that this data service adopts is not recorded, need to call the upstream data bag of DPI module to this data service further and carry out traffic identification.
Concrete, DPI module is come OSI (Open System Interconnection by the content of deep reading upstream data payload package, OSI) application layer message in seven layer protocols recombinates, thus obtain the content of whole business, the type of service of this data service can be determined.
Be worth mentioning, in the success of DPI Module recognition, after determining the type of service of data service, the service communication parameter of data service and the mapping relations identifying the type of service obtained can be determined, and then these mapping relations are stored in type of service mapping table, when again processing identical services type, directly to determine corresponding type of service according to service communication parameter by inquiry business Type mapping table.
S305, address distributing device to be responsible for assigning the 2nd IPv6 address according to the upstream data that type of service is terminal data business.
Concrete, address distributing device is after determining that terminal is current and carrying out the type of service of data service, according to this type of service, inquire about second address pool corresponding with this type of service, determine the 2nd IPv6 address, and then the source address in upstream data bag is replaced with the 2nd IPv6 address by an IPv6 address.
Be worth mentioning, address distributing device also establishes between multiple business type and multiple IP address pool and establishes corresponding relation, makes above-mentioned multiple IP address pool terminal be exclusively used in as carrying out the type of service corresponding with it provide IPv6 address.And the corresponding relation between the type of service of address distributing device foundation and IP address pool, can set for network system internal default, also can be that operator or administrative staff are regular or business demand external input setting according to preset service, not limit herein.
Optionally, the second address pool mapping table can be set up further in address distributing device.This second address pool mapping table is the tables of data of corresponding relation between record multiple business type and multiple IP address pool, for storing after the corresponding relation of setting type of service and IP address pool, so that address distributing device is inquired about after determining that terminal is current to carry out the type of service of data service, determine that the address pool corresponding with type of service carries out subsequent operation.And the mode of each corresponding relation of above-mentioned employing tables of data record is only exemplary, includes but not limited to this.
Exemplary, address distributing device is after determining that terminal is current and carrying out the type of service of data service, inquire about above-mentioned second address pool mapping table, determine second address pool corresponding with this type of service, and then arbitrary IPv6 address of recording in this second address pool is defined as the 2nd IPv6 address.And the 2nd IPv6 address can be the complete IPv6 address of 128, also can be the network prefix of 64, do not limit herein, but need identical with an IPv6 address format, namely, when an IPv6 address is the complete IPv6 address of 128, the 2nd IPv6 address is also necessary for the complete IPv6 address of 128; Or when an IPv6 address is the network prefix of 64, the 2nd IPv6 address is also necessary for the network prefix of 64.
Wherein, above-mentionedly determine that the determination mode of the 2nd IPv6 address can for determine at random in the second address pool, also can for determining according to the rule (sequencing, specified portions address priority allocation etc. as address arrangement) preset, specifically can be distinct according to the difference of application scenarios, do not limit herein.
Further, the 2nd IPv6 address assignment determined is given the upstream data bag of above-mentioned terminal data business by address distributing device, replace the IPv6 address that the source address in upstream data bag has set, thus the IPv6 address assignment of complete paired terminal, to perform subsequent operation to IP network forwarding uplink data bag.
Should be noted that, when above-mentioned 2nd IPv6 address is the network prefix of 64, during the IPv6 address that the source address in above-mentioned replacement upstream data bag has set, only need to replace 64 network-prefix portion in source address.
Be worth mentioning, address distributing device after determining the 2nd IPv6 address from the second address pool, also need to upgrade the second address pool, the 2nd IPv6 address is got rid of from this second address pool, to ensure that each IPv6 address in the second address pool is all the available address be not assigned with.
S306, address distributing device upgrade the type of relationship table safeguarded.
Concrete, address distributing device is determining the 2nd IPv6 address, and the source address in upstream data bag is replaced with the 2nd IPv6 address by an IPv6 address, after the IPv6 address assignment of complete paired terminal, upgrades the type of relationship table safeguarded.
Wherein, the above-mentioned type relation table is the tables of data for recording the IPv6 address of distributing to terminal and terminal type, type of service corresponding relation.According to the record in the type relation table, operator accurately can grasp terminal access quantity, terminal kinds and terminal traffic behavior, the terminal management of realization based on terminal type IPv6 address, the routing policy based on type of service IPv6 address manage, and then can according to terminal type and behavioural characteristic, formulate the differentiated service strategy of various dimensions, reach the object of fine-grained management.
Exemplary, after the IPv6 address assignment of complete paired terminal, corresponding relation is there is between the type of service can determining to have distributed to data service in an IPv6 address of terminal, the 2nd IPv6 address, the terminal type of terminal and terminal, and then the corresponding relation between an IPv6 address, the 2nd IPv6 address, terminal type and type of service is recorded in type of relationship table, complete the renewal to type of relationship table.
Be worth mentioning; the processing mode of the corresponding relation between above-mentioned employing type of relationship table storage terminal type, type of service is only exemplary; it is conceivable that; after the IPv6 address corresponding with terminal type and type of service for terminal distribution; adopt any one record or storage mode reflection terminal type and type of service between corresponding relation; being those skilled in the art can realize, therefore also in embodiments of the invention protection range not making under creative work prerequisite easily based on the embodiment of the present invention.
Should be noted that, address distributing device is when forwarding the downlink data packet from IP network to terminal, also need to resolve and obtain destination address in downlink data packet, and using this destination address as the above-mentioned renewal of the 2nd IPv6 address search after type of relationship table, determine an IPv6 address corresponding with the 2nd IPv6 address in showing, and by the destination address in downlink data packet by the current two IPv6 address corresponding with type of service, replace with the IPv6 address corresponding with terminal type determined by type of relationship table, and then the forwarding completed downlink data packet, avoid packet to forward to make mistakes.
The embodiment of the present invention provides a kind of IPv6 address distribution method, by address distributing device according to the terminal type comprised in IPv 6 terminal address solicitation message, is the IPv6 address that terminal distribution is corresponding with terminal type; And then the source address in data service upstream data bag is replaced with the two IPv6 address corresponding with type of service by an IPv6 address by type of service when carrying out data service according to terminal.Like this, by distinguishing corresponding IPv6 address for terminal distribution with terminal type and type of service, avoid prior art and generate IPv6 address in conjunction with network prefix and host address, cause operator cannot grasp the problem of terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed.Therefore, the present invention is relative to prior art, the relation that access terminal type and terminal traffic type can not be reflected in distributing IP v6 address can be solved, cause the unhandy problem of terminal fine-grained management, for the terminal management based on terminal type IP address, the management of the routing policy based on type of service IP address and differentiation control to provide convenience.
The embodiment of the present invention provides a kind of address distributing device 01, for implementing a kind of IPv6 address distribution method that previous embodiment provides.This address distributing device 01 can be an independently network equipment, the set of multiple conventional network equipment, also can for being built in a functional module in arbitrary conventional network equipment, and as shown in Figure 5, this address distributing device 01 comprises:
Receiving element 011, for the IPv6 application IP addresses message that receiving terminal sends, comprises the terminal type of terminal in solicitation message.
Allocation units 012, for determining an IPv6 address corresponding with terminal type, and by an IPv6 address assignment to terminal.
Acquiring unit 013, during for using the IPv6 address distributed to carry out data service in terminal, obtains the type of service of data service upstream data bag carrying.
Replacement unit 014, for determining the two IPv6 address corresponding with type of service, and replaces with the 2nd IPv6 address by the source address in upstream data bag by an IPv6 address.
It should be noted that, wherein dotted line represents can possess annexation between unit, also direct annexation can not be possessed, such as can not there is information between allocation units 012 and acquiring unit 013 carries out mutual, allocation units 012 can by an IPv6 address assignment to terminal after notify acquiring unit 013, also can not notify, be undertaken unifying regulation and control by device.
Optionally, allocation units 012 can be specifically for:
According to terminal type, inquire about first address pool corresponding with terminal type, using arbitrary IPv6 address of wherein recording as an IPv6 address;
Replacement unit 014 can be specifically for:
According to type of service, inquire about second address pool corresponding with type of service, using arbitrary IPv6 address of wherein recording as the 2nd IPv6 address;
Wherein, first address pool is the address set set up in advance in address distributing device 01 for recording each IP available v6 address corresponding with terminal type, and the second address pool is the address set set up in advance in address distributing device 01 for recording each IP available v6 address corresponding with type of service.
Optionally, acquiring unit 013 can be specifically for:
Obtain the service communication parameter of terminal when carrying out data service in upstream data bag;
Inquiry business Type mapping table obtains the type of service corresponding with service communication parameter, and type of service mapping table is the tables of data set up in advance in address distributing device 01 for recording each service communication parameter and each type of service mapping relations.
Optionally, acquiring unit 013 can also be specifically for:
When any one type of service in service communication parameter and type of service mapping table does not exist mapping relations, use deep-packet detection DPI to carry out traffic identification to above-mentioned upstream data bag, obtain the type of service of data service;
The mapping relations of type of service service communication parameter obtained with identification are recorded in type of service mapping table.
Optionally, as shown in Figure 6, this address distributing device 01 can also comprise:
Updating block 015, after the source address in upstream data bag is replaced with the 2nd IPv6 address by an IPv6 address by replacement unit 014, updating type relation table.
Wherein, the type relation table is that above-mentioned updating type relation table comprises for recording the tables of data of IPv6 address and terminal type, type of service corresponding relation in address distributing device 01: an IPv6 address, the 2nd IPv6 address, corresponding relation between terminal type and type of service are recorded in type of relationship table.
Should be noted that, address distributing device 01 is when forwarding the downlink data packet from IP network to terminal, also need to resolve the destination address obtaining and indicate in downlink data packet, and using this destination address as the above-mentioned renewal of the 2nd IPv6 address search after type of relationship table, determine an IPv6 address corresponding with the 2nd IPv6 address in showing, and by the destination address in downlink data packet by the current two IPv6 address corresponding with type of service, replace with the IPv6 address corresponding with terminal type determined by type of relationship table, and then the forwarding completed downlink data packet, avoid packet to forward to make mistakes.
The embodiment of the present invention provides a kind of address distributing device, first according to the terminal type comprised in IPv 6 terminal address solicitation message, is the IPv6 address that terminal distribution is corresponding with terminal type; And then the source address in upstream data bag is replaced with the two IPv6 address corresponding with type of service by an IPv6 address by type of service when carrying out data service according to terminal.Like this, by distinguishing corresponding IPv6 address for terminal distribution with terminal type and type of service, solve operator and cannot grasp terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed, cause the unhandy problem of terminal fine-grained management, for IP address-based terminal management and differentiation control to provide convenience.
The embodiment of the present invention also provides a kind of terminal 02, and as shown in Figure 7, this terminal 02 comprises:
Transmitting element 021, for sending IPv6 application IP addresses message to address distributing device, comprises the terminal type of terminal in this application message, so that address distributing device is a terminal distribution IPv6 address corresponding with terminal type according to solicitation message.
Business unit 022, for using an IPv6 address to carry out data service, so that the source address in upstream data bag is replaced with the two IPv6 address corresponding with type of service by an IPv6 address by the type of service that address distributing device carries according to data service upstream data bag.
The embodiment of the present invention provides a kind of terminal, first the IPv6 application IP addresses message comprising own terminal type is sent to address distributing device, and then data service is carried out, so that the source address in upstream data bag is replaced with the two IPv6 address corresponding with the type of service of data service by an IPv6 address by address distributing device in the IPv6 address corresponding with terminal type using address distributing device to distribute.Like this, by distinguishing corresponding IPv6 address for terminal distribution with terminal type and type of service, solve operator and cannot grasp terminal access quantity, terminal kinds and terminal behavior according to the IPv6 address distributed, cause the unhandy problem of terminal fine-grained management, for the terminal management based on terminal type IP address, the management of the routing policy based on type of service IP address are provided convenience.
In several embodiments that the application provides, should be understood that, disclosed system, equipment and method, can realize by another way.Such as, apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.
In addition, in the equipment in each embodiment of the present invention and system, each functional unit can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.And above-mentioned each unit both can adopt the form of hardware to realize, the form that hardware also can be adopted to add SFU software functional unit had realized.
The all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, and aforesaid program can be stored in a computer read/write memory medium, and this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (Read Only Memory, read-only memory), RAM (Random Access Memory, random access memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, 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; change can be expected easily or replace, 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 described claim.

Claims (12)

1. an IPv6 address distribution method, is characterized in that, comprising:
The IPv6 application IP addresses message that address distributing device receiving terminal sends, comprises the terminal type of described terminal in described solicitation message;
Determine an IPv6 address corresponding with described terminal type, and give described terminal by a described IPv6 address assignment;
When described terminal uses the described IPv6 address distributed to carry out data service, obtain the type of service of described data service upstream data bag carrying;
Determine the two IPv6 address corresponding with described type of service, and the source address in described upstream data bag is replaced with described 2nd IPv6 address by a described IPv6 address.
2. method according to claim 1, is characterized in that,
Describedly determine that an IPv6 address corresponding with described terminal type comprises: according to described terminal type, inquire about first address pool corresponding with described terminal type, using arbitrary IPv6 address of wherein recording as a described IPv6 address;
Describedly determine that the two IPv6 address corresponding with described type of service comprises: according to described type of service, inquire about second address pool corresponding with described type of service, using arbitrary IPv6 address of wherein recording as described 2nd IPv6 address;
Described first address pool is the address set of each IP available v6 address that record is corresponding with described terminal type, and described second address pool is the address set of each IP available v6 address that record is corresponding with described type of service.
3. method according to claim 1, is characterized in that, the type of service of described acquisition described data service upstream data bag carrying comprises:
Obtain the service communication parameter of described terminal when carrying out described data service in described upstream data bag;
Inquiry business Type mapping table obtains the type of service corresponding with described service communication parameter, and described type of service mapping table is the tables of data recording each service communication parameter and each type of service mapping relations.
4. method according to claim 3, is characterized in that, described inquiry business Type mapping table obtains the type of service corresponding with described service communication parameter and also comprises:
When any one type of service in described service communication parameter and described type of service mapping table does not exist mapping relations, use deep-packet detection DPI to carry out traffic identification to described upstream data bag, obtain described type of service;
The mapping relations of the described type of service described service communication parameter obtained with identification are recorded in described type of service mapping table.
5. method according to claim 1, is characterized in that, described source address in described upstream data bag replaced with described 2nd IPv6 address by a described IPv6 address after, also comprise:
Updating type relation table, described type of relationship table be record IPv6 address and terminal type, type of service corresponding relation tables of data;
Described updating type relation table comprises: a described IPv6 address, described 2nd IPv6 address, corresponding relation between described terminal type and described type of service are recorded in described type of relationship table.
6. an IPv6 address distribution method, is characterized in that, comprising:
Terminal sends IPv6 application IP addresses message to address distributing device, the terminal type of described terminal is comprised, so that described address distributing device is a described terminal distribution IPv6 address corresponding with described terminal type according to described solicitation message in described solicitation message;
A described IPv6 address is used to carry out data service, so that the source address in described upstream data bag is replaced with the two IPv6 address corresponding with described type of service by a described IPv6 address by the type of service that described address distributing device carries according to described data service upstream data bag.
7. an IPv6 address distributing device, is characterized in that, comprising:
Receiving element, for the IPv6 application IP addresses message that receiving terminal sends, comprises the terminal type of described terminal in described solicitation message;
Allocation units, for determining an IPv6 address corresponding with described terminal type, and give described terminal by a described IPv6 address assignment;
Acquiring unit, during for using the described IPv6 address distributed to carry out data service in described terminal, obtains the type of service of described data service upstream data bag carrying;
Replacement unit, for determining the two IPv6 address corresponding with described type of service, and replaces with described 2nd IPv6 address by the source address in described upstream data bag by a described IPv6 address.
8. device according to claim 7, is characterized in that,
Described allocation units specifically for: according to described terminal type, inquire about first address pool corresponding with described terminal type, using arbitrary IPv6 address of wherein recording as a described IPv6 address;
Described replacement unit specifically for: according to described type of service, inquire about second address pool corresponding with described type of service, using arbitrary IPv6 address of wherein recording as described 2nd IPv6 address;
Described first address pool is the address set of each IP available v6 address that record is corresponding with described terminal type, and described second address pool is the address set of each IP available v6 address that record is corresponding with described type of service.
9. device according to claim 7, is characterized in that, described acquiring unit specifically for:
Obtain the service communication parameter of described terminal when carrying out described data service in described upstream data bag;
Inquiry business Type mapping table obtains the type of service corresponding with described service communication parameter, and described type of service mapping table is the tables of data recording each service communication parameter and each type of service mapping relations.
10. device according to claim 9, is characterized in that, described acquiring unit inquiry business Type mapping table obtains the type of service corresponding with described service communication parameter and also comprises:
When any one type of service in described service communication parameter and described type of service mapping table does not exist mapping relations, use deep-packet detection DPI to carry out traffic identification to described upstream data bag, obtain described type of service;
The mapping relations of the described type of service described service communication parameter obtained with identification are recorded in described type of service mapping table.
11. devices according to claim 7, is characterized in that, also comprise:
Updating block, after the source address in described upstream data bag being replaced with described 2nd IPv6 address by a described IPv6 address at described replacement unit, updating type relation table, described type of relationship table be record IPv6 address and terminal type, type of service corresponding relation tables of data;
Described updating type relation table comprises: a described IPv6 address, described 2nd IPv6 address, corresponding relation between described terminal type and described type of service are recorded in described type of relationship table.
12. 1 kinds of terminals, is characterized in that, comprising:
Transmitting element, for sending IPv6 application IP addresses message to address distributing device, the terminal type of described terminal is comprised, so that described address distributing device is a described terminal distribution IPv6 address corresponding with described terminal type according to described solicitation message in described solicitation message;
Business unit, for using a described IPv6 address to carry out data service, so that the source address in described upstream data bag is replaced with the two IPv6 address corresponding with described type of service by a described IPv6 address by the type of service that described address distributing device carries according to described data service upstream data bag.
CN201410596662.XA 2014-10-29 2014-10-29 IPv6 address allocation method and device Pending CN104333610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410596662.XA CN104333610A (en) 2014-10-29 2014-10-29 IPv6 address allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410596662.XA CN104333610A (en) 2014-10-29 2014-10-29 IPv6 address allocation method and device

Publications (1)

Publication Number Publication Date
CN104333610A true CN104333610A (en) 2015-02-04

Family

ID=52408258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410596662.XA Pending CN104333610A (en) 2014-10-29 2014-10-29 IPv6 address allocation method and device

Country Status (1)

Country Link
CN (1) CN104333610A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100241A (en) * 2015-07-23 2015-11-25 中国联合网络通信集团有限公司 Method of identifying service types and apparatus thereof
CN106027697A (en) * 2016-08-01 2016-10-12 清华大学 IPv6 address generation scheme management system
CN109005251A (en) * 2018-08-01 2018-12-14 深圳市天威视讯股份有限公司 IPv6 address acquiring method and system for two-stack machine top box
CN110290228A (en) * 2019-06-03 2019-09-27 网宿科技股份有限公司 A kind of internet protocol address distribution method and device
CN111541794A (en) * 2020-04-07 2020-08-14 广西松贤科技有限公司 IPV6 protocol-based address automatic allocation method and device
CN112104764A (en) * 2020-09-22 2020-12-18 陈军 Method and system for classifying DHCP (dynamic host configuration protocol) client
CN112367256A (en) * 2020-10-15 2021-02-12 深信服科技股份有限公司 Creation method, apparatus and storage medium
CN113132503A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Address allocation method and device
CN113645319A (en) * 2020-04-27 2021-11-12 中兴通讯股份有限公司 Address allocation method and system, electronic device, and computer-readable storage medium
CN114615194A (en) * 2020-11-23 2022-06-10 中盈优创资讯科技有限公司 Diversified address allocation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155196A (en) * 2006-09-27 2008-04-02 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN101986665A (en) * 2010-11-04 2011-03-16 中国电信股份有限公司 Internet protocol version 6 (IPV6) address allocating method and system
US20140064259A1 (en) * 2012-08-28 2014-03-06 Electronics And Telecommunications Research Institute Method of managing context table for compression of ipv6 header based on context in wireless mesh network
CN103650424A (en) * 2013-08-20 2014-03-19 华为技术有限公司 Implementation method and server of home gateway service function
CN103812954A (en) * 2012-11-09 2014-05-21 中国电信股份有限公司 IPv6 address management method and system
CN103856414A (en) * 2012-11-29 2014-06-11 中国电信股份有限公司 IPv6 data packet service quality processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155196A (en) * 2006-09-27 2008-04-02 中国电信股份有限公司 Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN101986665A (en) * 2010-11-04 2011-03-16 中国电信股份有限公司 Internet protocol version 6 (IPV6) address allocating method and system
US20140064259A1 (en) * 2012-08-28 2014-03-06 Electronics And Telecommunications Research Institute Method of managing context table for compression of ipv6 header based on context in wireless mesh network
CN103812954A (en) * 2012-11-09 2014-05-21 中国电信股份有限公司 IPv6 address management method and system
CN103856414A (en) * 2012-11-29 2014-06-11 中国电信股份有限公司 IPv6 data packet service quality processing method and device
CN103650424A (en) * 2013-08-20 2014-03-19 华为技术有限公司 Implementation method and server of home gateway service function

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100241A (en) * 2015-07-23 2015-11-25 中国联合网络通信集团有限公司 Method of identifying service types and apparatus thereof
CN105100241B (en) * 2015-07-23 2018-12-18 中国联合网络通信集团有限公司 Identify the method and device of type of service
CN106027697A (en) * 2016-08-01 2016-10-12 清华大学 IPv6 address generation scheme management system
CN109005251A (en) * 2018-08-01 2018-12-14 深圳市天威视讯股份有限公司 IPv6 address acquiring method and system for two-stack machine top box
CN110290228A (en) * 2019-06-03 2019-09-27 网宿科技股份有限公司 A kind of internet protocol address distribution method and device
CN110290228B (en) * 2019-06-03 2022-03-11 网宿科技股份有限公司 Internet protocol IP address allocation method and device
CN113132503B (en) * 2019-12-31 2022-05-24 华为技术有限公司 Address allocation method and device
CN113132503A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Address allocation method and device
CN111541794A (en) * 2020-04-07 2020-08-14 广西松贤科技有限公司 IPV6 protocol-based address automatic allocation method and device
CN113645319A (en) * 2020-04-27 2021-11-12 中兴通讯股份有限公司 Address allocation method and system, electronic device, and computer-readable storage medium
CN112104764A (en) * 2020-09-22 2020-12-18 陈军 Method and system for classifying DHCP (dynamic host configuration protocol) client
CN112104764B (en) * 2020-09-22 2022-09-13 陈军 Method and system for classifying DHCP (dynamic host configuration protocol) client
CN112367256A (en) * 2020-10-15 2021-02-12 深信服科技股份有限公司 Creation method, apparatus and storage medium
CN114615194A (en) * 2020-11-23 2022-06-10 中盈优创资讯科技有限公司 Diversified address allocation method and device
CN114615194B (en) * 2020-11-23 2023-06-23 中盈优创资讯科技有限公司 Diversified address allocation method and device

Similar Documents

Publication Publication Date Title
CN104333610A (en) IPv6 address allocation method and device
CN107733670B (en) Forwarding strategy configuration method and device
CN100407625C (en) Method for providing business according to its type
CN107733799B (en) Message transmission method and device
CN102340546B (en) IPv6 address distribution method and system
CN102845123B (en) Virtual private cloud connection method and tunnel proxy server
CN102404418B (en) Method, device and system for distributing IP (internet protocol) address for user terminal
CN101729500B (en) Method, device and system for identifying IP session
CN103118147A (en) Method, equipment and system for accessing intranet server
EP2439903B1 (en) Method for providing information, home gateway and home network system
CN103200281A (en) Method, device and system for accessing intranet server
CN104753697A (en) Method, equipment and system for controlling provisioning of network equipment
CN101883090A (en) Client access method, equipment and system
CN101771732B (en) Message processing method, device and network equipment
CN102790813A (en) Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network
CN105245629A (en) DHCP-based host communication method and device
CN103095667B (en) Authorization message passing method, trunk equipment and server
CN103780711A (en) Address assignment method and address assignment system for intelligent access type decision, and AAA system
CN105323229A (en) CPE-based data transmission method, network element, platform and system
WO2017032145A1 (en) Domain name forwarding method and apparatus
CN102143242B (en) IP (internet protocol) network address allocation method, IP network address allocation equipment and IP network address allocation system
CN105472048A (en) Address allocating method, information aggregation method and related equipment
CN103916484A (en) IP-address configuring method and device
US20200274948A1 (en) Service flow configuration method and apparatus
CN101459532A (en) Method and apparatus for automatic networking by multi-port equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150204

RJ01 Rejection of invention patent application after publication