CN102739813B - Network server with IPv6 network prefix distribution function and method thereof - Google Patents
Network server with IPv6 network prefix distribution function and method thereof Download PDFInfo
- Publication number
- CN102739813B CN102739813B CN201110091625.XA CN201110091625A CN102739813B CN 102739813 B CN102739813 B CN 102739813B CN 201110091625 A CN201110091625 A CN 201110091625A CN 102739813 B CN102739813 B CN 102739813B
- Authority
- CN
- China
- Prior art keywords
- host
- predetermined charging
- charging service
- prefix
- network
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供一种具IPv6网络前缀分配功能的网络服务器及方法。该方法包括:网络服务器在周期性地接收到调制解调器发送的路由请求和DHCPv6请求时,判断与调制解调器连接的主机是否申请了预定的收费业务;以及网络服务器在判定主机申请了预定的收费业务并且与预定的收费业务相关的账户的余额能够满足预定的收费业务的最低消费时,根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的一种为调制解调器分配网络前缀,以使主机能够得到提供预定的收费业务的平台的服务。网络服务器根据主机是否申请了预定的收费业务及与预定的收费业务相关的账户的余额来选择路由通告与DHCPv6前缀代理中的一种来分配网络前缀,以控制主机是否能够得到相应的服务。
The invention provides a network server and method with IPv6 network prefix distribution function. The method includes: when the network server periodically receives the routing request and the DHCPv6 request sent by the modem, judging whether the host connected to the modem has applied for a predetermined charging service; and the network server determines that the host has applied for a predetermined charging service and communicates with When the balance of the account related to the predetermined charging service can meet the minimum consumption of the predetermined charging service, one of the two methods of route notification and DHCPv6 prefix proxy is selected to assign the network prefix to the modem according to the preset agreement, so that the host can be provided. Platform services for scheduled fee-based businesses. The network server selects one of route notification and DHCPv6 prefix proxy to allocate network prefixes according to whether the host has applied for a predetermined charging service and the balance of the account related to the predetermined charging service, so as to control whether the host can obtain corresponding services.
Description
技术领域technical field
本发明涉及通信领域,特别涉及一种实现IPv6网络前缀分配的网络服务器及方法。The invention relates to the communication field, in particular to a network server and a method for realizing IPv6 network prefix allocation.
背景技术Background technique
在IPv6环境下,网络运营商的服务器可以通过两种方式分配前缀:一种是通过RA(Route Advertise,RA),另一种是通过DHCPv6(Dynamic Host Configuration Protocol for IPv6,DHCPv6)前缀代理。现有中为一台主机分配IPv6前缀的方式一般是固定的,即选择上述两种方式中的一种,而不能根据主机申请的收费业务动态的选择IPv6前缀的分配方式为主机分配IPv6前缀。In the IPv6 environment, the network operator's server can assign prefixes in two ways: one is through RA (Route Advertise, RA), and the other is through DHCPv6 (Dynamic Host Configuration Protocol for IPv6, DHCPv6) prefix proxy. The existing method of assigning an IPv6 prefix to a host is generally fixed, that is, one of the above two methods is selected, and the allocation method of the IPv6 prefix cannot be dynamically selected according to the charging service applied by the host to assign an IPv6 prefix to the host.
发明内容Contents of the invention
有鉴于此,本发明提供一种具IPv6网络前缀分配功能的网络服务器及方法。In view of this, the present invention provides a network server and method with IPv6 network prefix allocation function.
所述具IPv6网络前缀分配功能的网络服务器周期性地接收调制解调器发送的路由请求和DHCPv6请求,所述网络服务器在接收到调制解调器发送的路由请求和DHCPv6请求时,根据路由请求和DHCPv6请求判断与所述调制解调器连接的主机是否申请了预定的收费业务,并在判定所述主机申请了所述预定的收费业务并且与所述预定的收费业务相关的账户的余额能够满足所述预定的收费业务的最低消费时,根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的一种为所述调制解调器分配网络前缀,以使所述主机通过所述网络前缀获得IPv6主机地址,并且在所述IPv6主机地址环境下所述主机能够得到提供所述预定的收费业务的平台的服务。The network server with the IPv6 network prefix distribution function periodically receives the routing request and the DHCPv6 request sent by the modem, and when the network server receives the routing request and the DHCPv6 request sent by the modem, it judges according to the routing request and the DHCPv6 request. Whether the host connected to the modem has applied for a predetermined charging service, and when it is determined that the host has applied for the predetermined charging service and the balance of the account related to the predetermined charging service can meet the minimum required amount of the predetermined charging service When consuming, select one of the two methods of routing advertisement and DHCPv6 prefix proxy to assign a network prefix to the modem according to the preset agreement, so that the host can obtain an IPv6 host address through the network prefix, and the IPv6 host Under the address environment, the host can obtain the service of the platform that provides the predetermined charging service.
所述IPv6网络前缀分配方法包括:网络服务器周期性地接收到调制解调器发送的路由请求和DHCPv6请求;所述网络服务器在接收到所述调制解调器发送的路由请求和DHCPv6请求时,根据路由请求和DHCPv6请求判断与所述调制解调器连接的主机是否申请了预定的收费业务;以及所述网络服务器在判定所述主机申请了所述预定的收费业务并且与所述预定的收费业务相关的账户的余额能够满足所述预定的收费业务的最低消费时,根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的一种为所述调制解调器分配网络前缀,以使所述主机通过所述网络前缀获得IPv6主机地址,并且在所述IPv6主机地址环境下所述主机能够得到提供所述请求的业务的平台的服务。The IPv6 network prefix distribution method includes: the network server periodically receives the routing request and the DHCPv6 request sent by the modem; when the network server receives the routing request and the DHCPv6 request sent by the modem, according to the routing request and the DHCPv6 request Judging whether the host connected to the modem has applied for a predetermined charging service; When the minimum consumption of the predetermined charging service is mentioned above, one of the two methods of route notification and DHCPv6 prefix agent is selected according to the preset agreement to assign a network prefix to the modem, so that the host obtains an IPv6 host address through the network prefix , and in the context of the IPv6 host address, the host can obtain the service of the platform that provides the requested service.
在本发明中,所述网络服务器根据主机是否申请了预定的收费业务及与预定的收费业务相关的账户的余额来选择路由通告与DHCPv6前缀代理中的一种来分配网络前缀,以控制所述主机是否能够得到相应的服务。如此,所述网络服务器可根据收费业务动态选择网络前缀分配方式为主机分配网络前缀,并通过选择分配网络前缀的方式来控制所述主机是否能够得到相应的服务。In the present invention, the network server selects one of route advertisement and DHCPv6 prefix proxy to allocate network prefixes according to whether the host has applied for a predetermined charging service and the balance of the account related to the predetermined charging service, so as to control the Whether the host can get the corresponding service. In this way, the network server can dynamically select a network prefix allocation method to allocate a network prefix to the host according to the charging service, and control whether the host can obtain corresponding services by selecting the network prefix allocation method.
附图说明Description of drawings
图1为本发明一种实施方式中IPv6网络系统的架构图。FIG. 1 is a structural diagram of an IPv6 network system in an embodiment of the present invention.
图2为本发明一种实施方式中IPv6网络前缀分配的方法流程图。Fig. 2 is a flowchart of a method for IPv6 network prefix allocation in an embodiment of the present invention.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式Detailed ways
请参考图1,本发明的IPv6网络系统100包括网络服务器10、调制解调器20及与调制解调器20连接的主机30。调制解调器20周期性地同时发送路由请求和DHCPv6请求,以请求网络服务器10为调制解调器20分配一个网络前缀,以使主机30能够通过分配的网络前缀获得IPv6主机地址。Please refer to FIG. 1 , the IPv6 network system 100 of the present invention includes a network server 10 , a modem 20 and a host 30 connected to the modem 20 . The modem 20 periodically sends a routing request and a DHCPv6 request at the same time to request the network server 10 to assign a network prefix to the modem 20, so that the host 30 can obtain an IPv6 host address through the assigned network prefix.
在本实施方式中,网络服务器10在接收到调制解调器20发送的路由请求和DHCPv6请求时,根据路由请求和DHCPv6请求判断主机30是否申请了预定的收费业务。网络服务器10在判定主机30申请了预定的收费业务并且与预定的收费业务相关的账户的余额能够满足预定的收费业务的最低消费时,根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的一种为调制解调器20分配一个网络前缀,以使主机30通过所述网络前缀获得IPv6主机地址,并且在所述IPv6主机地址环境下主机30能够得到提供预定的收费业务的平台的服务。网络服务器10在判定主机30申请了预定的收费业务并且与预定的收费业务相关的账户的余额不能够满足预定的收费业务的最低消费时,根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的另一种为调制解调器20分配一个网络前缀,以使主机30通过所述网络前缀获得IPv6主机地址,并且在所述IPv6主机地址环境下主机30不能够得到提供预定的收费业务的平台的服务。在本实施方式中,预定的收费业务为网络电话业务,网络服务器10在判定主机30申请了网络电话业务并且与网络电话业务相关的账户的余额能够满足网络电话业务的最低消费时,选择DHCPv6前缀代理为调制解调器20分配网络前缀。当然在其他实施方式中预定的收费也可为其他类型的收费业务。In this embodiment, when the network server 10 receives the routing request and the DHCPv6 request sent by the modem 20, it determines whether the host 30 has applied for a predetermined charging service according to the routing request and the DHCPv6 request. When the network server 10 determines that the host computer 30 has applied for a predetermined charging service and that the balance of the account related to the predetermined charging service can meet the minimum consumption of the predetermined charging service, it selects the route notification and the DHCPv6 prefix agent according to the preset agreement. One is to assign a network prefix to the modem 20, so that the host 30 can obtain an IPv6 host address through the network prefix, and under the environment of the IPv6 host address, the host 30 can obtain the service of the platform that provides predetermined charging services. When the network server 10 determines that the host computer 30 has applied for a predetermined charging service and the balance of the account related to the predetermined charging service cannot meet the minimum consumption of the predetermined charging service, it selects two methods of route notification and DHCPv6 prefix proxy according to the preset agreement. The other one assigns a network prefix to the modem 20, so that the host computer 30 obtains an IPv6 host address through the network prefix, and in the environment of the IPv6 host address, the host computer 30 cannot obtain the service of the platform that provides predetermined charging services . In this embodiment, the predetermined charging service is an Internet phone service, and when the network server 10 determines that the host computer 30 has applied for an Internet phone service and the balance of the account related to the Internet phone service can meet the minimum consumption of the Internet phone service, the DHCPv6 prefix is selected. The agent assigns the modem 20 a network prefix. Of course, in other implementation manners, the predetermined charging may also be other types of charging services.
在本实施方式中,网络服务器10在判定主机30没有申请预定的收费业务时,选择的网络前缀分配方式与网络服务器10在判定主机30申请了预定的收费业务并且与预定的收费业务相关的账户的余额不能够满足预定的收费业务的最低消费时选择的网络前缀分配方式相同。In this embodiment, when the network server 10 determines that the host computer 30 has not applied for a predetermined charging service, the selected network prefix allocation method is the same as the account that the network server 10 determines that the host computer 30 has applied for a predetermined charging service and is related to the predetermined charging service. The network prefix allocation method selected when the balance of the network cannot meet the minimum consumption of the scheduled charging service.
在本实施方式中,网络服务器10根据主机30是否申请了预定的收费业务及与预定的收费业务相关的账户的余额来选择路由通告与DHCPv6前缀代理中的一种来分配网络前缀,以控制主机30是否能够得到相应的服务。如此,网络服务器10可通过选择分配网络前缀的方式来控制主机30是否能够得到相应的服务。In this embodiment, the network server 10 selects one of route advertisement and DHCPv6 prefix proxy to allocate network prefixes according to whether the host 30 has applied for a predetermined charging service and the balance of the account related to the predetermined charging service, so as to control the host 30 Whether the corresponding services can be obtained. In this way, the network server 10 can control whether the host 30 can obtain the corresponding service by selecting a way of allocating network prefixes.
图2为本发明一种实施方式中IPv6网络前缀分配的方法流程图。Fig. 2 is a flowchart of a method for IPv6 network prefix allocation in an embodiment of the present invention.
步骤S201中,网络服务器10周期性地接收到调制解调器20发送的路由请求和DHCPv6请求。In step S201 , the network server 10 periodically receives the routing request and the DHCPv6 request sent by the modem 20 .
步骤S202中,网络服务器10在接收到调制解调器20发送的路由请求和DHCPv6请求时,根据路由请求和DHCPv6请求判断主机30是否申请了预定的收费业务。如果是,执行步骤S203,否则执行步骤S205。在本实施方式中,预定的收费业务为网络电话业务。In step S202, when the network server 10 receives the routing request and the DHCPv6 request sent by the modem 20, it determines whether the host computer 30 has applied for a predetermined charging service according to the routing request and the DHCPv6 request. If yes, execute step S203, otherwise execute step S205. In this embodiment, the predetermined charging service is an Internet phone service.
步骤S203中,网络服务器10判断与预定的收费业务相关的账户的余额是否能够满足预定的收费业务的最低消费。如果是,执行步骤S204,否则执行步骤S205。In step S203, the network server 10 judges whether the balance of the account related to the predetermined charging service can meet the minimum consumption of the predetermined charging service. If yes, execute step S204, otherwise execute step S205.
步骤S204中,网络服务器10根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的一种为调制解调器20分配网络前缀,以使主机30通过所述网络前缀获得IPv6主机地址,并且在所述IPv6主机地址环境下主机30能够得到提供预定的收费业务的平台的服务。在本实施方式中,网络服务器10选择DHCPv6前缀代理为调制解调器20分配网络前缀。In step S204, the network server 10 selects one of the two modes of route notification and DHCPv6 prefix proxy to assign a network prefix to the modem 20 according to a preset agreement, so that the host 30 obtains an IPv6 host address through the network prefix, and in the Under the environment of the IPv6 host address, the host 30 can obtain the service of the platform that provides predetermined charging services. In this embodiment, the network server 10 selects a DHCPv6 prefix agent to assign a network prefix to the modem 20 .
步骤S205中,网络服务器10根据预设协定选择路由通告与DHCPv6前缀代理两种方式中的另一种为调制解调器20分配网络前缀,以使主机30通过所述网络前缀获得IPv6主机地址。在本实施方式中,网络服务器10选择路由通告为调制解调器20分配网络前缀。In step S205 , the network server 10 selects the other of the route advertisement and the DHCPv6 prefix agent to assign a network prefix to the modem 20 according to a preset agreement, so that the host 30 obtains an IPv6 host address through the network prefix. In this embodiment, the network server 10 selects a routing advertisement to assign a network prefix to the modem 20 .
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110091625.XA CN102739813B (en) | 2011-04-13 | 2011-04-13 | Network server with IPv6 network prefix distribution function and method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110091625.XA CN102739813B (en) | 2011-04-13 | 2011-04-13 | Network server with IPv6 network prefix distribution function and method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102739813A CN102739813A (en) | 2012-10-17 |
| CN102739813B true CN102739813B (en) | 2014-10-22 |
Family
ID=46994584
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110091625.XA Active CN102739813B (en) | 2011-04-13 | 2011-04-13 | Network server with IPv6 network prefix distribution function and method thereof |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102739813B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1984155A (en) * | 2005-12-15 | 2007-06-20 | 上海贝尔阿尔卡特股份有限公司 | Method for configuring domain name in IPv6 access network and its network equipment |
| CN101355489A (en) * | 2007-07-23 | 2009-01-28 | 中兴通讯股份有限公司 | User management method based on dynamic host configuration protocol prefix proxy |
| CN101997904A (en) * | 2009-08-21 | 2011-03-30 | 华为技术有限公司 | Session distinguishing method and session distinguishing equipment |
| CN102143036A (en) * | 2010-06-07 | 2011-08-03 | 华为技术有限公司 | Prefix sending method, prefix appointing method and corresponding devices |
-
2011
- 2011-04-13 CN CN201110091625.XA patent/CN102739813B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1984155A (en) * | 2005-12-15 | 2007-06-20 | 上海贝尔阿尔卡特股份有限公司 | Method for configuring domain name in IPv6 access network and its network equipment |
| CN101355489A (en) * | 2007-07-23 | 2009-01-28 | 中兴通讯股份有限公司 | User management method based on dynamic host configuration protocol prefix proxy |
| CN101997904A (en) * | 2009-08-21 | 2011-03-30 | 华为技术有限公司 | Session distinguishing method and session distinguishing equipment |
| CN102143036A (en) * | 2010-06-07 | 2011-08-03 | 华为技术有限公司 | Prefix sending method, prefix appointing method and corresponding devices |
Non-Patent Citations (1)
| Title |
|---|
| 何华江,等.混合有状态和无状态地址自动配置的快速切换.《微机发展》.2005,第15卷(第7期),第106页~第110页. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102739813A (en) | 2012-10-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102594933B (en) | Method, device and system for address allocation of public networks | |
| CN102036422B (en) | Method, device and system for acquiring IP address | |
| CN111885733A (en) | Resource allocation method, device, storage medium and network device | |
| CN103685601A (en) | Application identification method and device | |
| CN104348928A (en) | Method for assigning address resources, management device, request device, and system | |
| WO2013082742A1 (en) | Resource scheduling method, device and system | |
| US10237233B2 (en) | Allocating identifiers with minimal fragmentation | |
| CN102918817B (en) | Method and equipment for assigning IPv6 address | |
| CN106161283A (en) | Message transmitting method and device | |
| CN105635326A (en) | Network equipment and IP address assignment method | |
| CN106936874A (en) | Physical source distributing method, apparatus and system | |
| CN101594642B (en) | Resource allocation method and resource allocation device used for communication network element device | |
| CN102739813B (en) | Network server with IPv6 network prefix distribution function and method thereof | |
| CN104735103A (en) | Method and device for managing distributed data and method and device for receiving distributed data | |
| CN102137494B (en) | Method and device for allocating communication resources | |
| CN104410727B (en) | Address distribution method, client, server and address allocation system | |
| CN105245564B (en) | WAP method for processing business and WAP gateway | |
| CN107708110A (en) | A kind of mark distributing method and device | |
| CN106413092A (en) | Uplink resource distribution method and device | |
| CN101267373B (en) | A method, device and system for terminal to be online again | |
| CN113497811A (en) | Domain name system server distribution method and related equipment | |
| CN105635344A (en) | IP address distribution method, device and system | |
| CN101453364B (en) | Allocation method and apparatus for digital signal processor resource | |
| CN106576116A (en) | Method for transmitting data sets to a mobile terminal | |
| CN104427009A (en) | Host dynamic IP (Internet protocol) address management system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20180224 Address after: Shanghai City, Songjiang Export Processing Zone South Road No. 1925 Patentee after: Ambit Microsystems (Shanghai) Co., Ltd. Address before: 201613 Shanghai City, Songjiang District Songjiang Export Processing Zone South Road No. 1925 Co-patentee before: Hon Hai Precision Industry Co., Ltd. Patentee before: Ambit Microsystems (Shanghai) Co., Ltd. |
|
| TR01 | Transfer of patent right |