CN100362814C - Method for realizing user detection based on neightbour discovery technique - Google Patents
Method for realizing user detection based on neightbour discovery technique Download PDFInfo
- Publication number
- CN100362814C CN100362814C CNB2004100553805A CN200410055380A CN100362814C CN 100362814 C CN100362814 C CN 100362814C CN B2004100553805 A CNB2004100553805 A CN B2004100553805A CN 200410055380 A CN200410055380 A CN 200410055380A CN 100362814 C CN100362814 C CN 100362814C
- Authority
- CN
- China
- Prior art keywords
- message
- main frame
- router
- online
- response message
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The present invention relates to a method for realizing user detection based on the neighbor discovery technique, which comprises the following steps: a router sends a neighbor solicitation NS message or an inverse neighbor solicitation INS message based on a neighbor discovery ND message, and the NS message carried with the IP address of a host computer; the on-line host computer receives the message and returns a response message to the router; thus, the router can determine whether the host computer is on-line based in the condition whether the response message returned from the host computer is received or not to realize the function of user detection. Accordingly, the present invention simultaneously ensures that the router can accurately detect whether the user is on-line in time under the condition that the relevant RFC protocols and standards are not modified to accurately manage and charge the host computer of the user.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to the charging implementation method of a kind of IPv6.
Background technology
Along with rapid development of network technology, network has been deep into the each side of our life and work.The application of especially medium and small network is more extensive, and address distribution commonly used is that stateless address is distributed in medium and small network.Because stateless address is distributed simple, be easy to realize, and do not need server just can finish address assignment.But because the complete address assignment of function ratio stateless that has state address to distribute, so stateless address is distributed and is usually used in the medium and small network.Here generally use IPv6 (procotol) agreement, the RFC2461 of ITEF and RFC2462 have defined the stateless address of main frame and have distributed (StatelessAddress Autoconfiguration), make main frame no longer need DHCPv6 (based on the DHCP of Internet Protocol version 6) server can get access to the address of IPv6, can be applied to easily in the medium and small network.
Because IPv6 integral body is very unripe, does not stipulate clearly in based on the stateless address distribution technique of ND (neighbours' discovery) whether how router or other access devices (following unification abbreviates router as) detect the host subscriber rapidly and accurately online.Give like this based on aspects such as the authentication of Host Administration and chargings and brought very big trouble, as the charge in the communication network etc.Such as user's system application crash, physical circuit in the middle of the network interrupts (but the user can't find), if we can not the fast shut-off user,, will charge to him if this user charges according to duration so always.This obviously is irrational, brings unnecessary trouble can for user and network manager.
Summary of the invention
In view of above-mentioned existing in prior technology problem, the purpose of this invention is to provide the charging implementation method of a kind of IPv6,
The objective of the invention is to be achieved through the following technical solutions:
The invention provides the charging implementation method of a kind of IPv6, comprising:
A, router are regularly to the message of main frame transmission based on the ND agreement;
After B, online main frame are received described message, return response message, carry the link address information of main frame in the described response message to router;
Whether C, router according to receiving whether the host link address information of carrying in response message that main frame returns and the described response message mates with local host link address information of preserving,, determine whether main frame is online;
D, described main frame is realized chargeing according to the online situation of described main frame.
The message based on the ND agreement of described steps A comprises:
Reverse neighbor request INS message.
In described step B:
The response message that main frame returns for the INS message is that reverse neighbours declare the INA message.
Described step C comprises:
Whether judgement receives the response message that main frame returns in the time of setting, as does not receive and determine that then main frame is not online.
Described step C comprises:
When router is received response message, with the host link address information and the local host link address information coupling of preserving of carrying in the response message, if match hit determine that then main frame is online, otherwise main frame is not online.
Described main frame comprises:
Stateless address distributing user or based on the dynamic host configuration protocol DHCP v6 user of Internet Protocol version 6.
As seen from the above technical solution provided by the invention, among the present invention router stateless address distribute and the DHCPv6 pattern (if under the DHCPv6 pattern, main frame and router are supported the processing of ND and IND) under, under the situation of not changing standard agreement, realize that online host subscriber surveys.And router adopts respectively in the ND agreement to send and sends the INS method of message in NS method of message and the IND agreement whether survey the host subscriber online.
This method is under the situation of not revising relevant RFC agreement and standard, two kinds of methods of router detection host subscriber have been realized, thereby judged accurately and timely whether stateless address distributing user and even DHCPv6 user be online, and can reach the operation of more exactly host subscriber ground being managed and being chargeed.
Description of drawings
The process schematic diagram that Fig. 1 distributes for stateless address;
Whether online Fig. 2 send the NS method of message and survey host subscriber's flow chart in the ND agreement for router adopts;
Whether online Fig. 3 send the INS method of message and survey host subscriber's flow chart in the IND agreement for router adopts.
Embodiment
Based on the prior art situation, the invention provides the charging method of a kind of IPv6, by using the message and the related procedure of ND regulation, can judge accurately and timely whether the host subscriber is online.Thereby provide information accurately to aspects such as chargings.
The present invention is applicable to the host subscriber who distributes based on stateless address that supports the ND technology and based on the host subscriber of DHCPv6, and needs main frame and router all to support the processing procedure of ND and IND.
At first, simply introduce the ND technology by the flow process that stateless address is distributed and relate to the message that between main frame and router, transmits, as shown in Figure 1:
The main frame of IPv6 is when start, at first generate If-ID (the interface identifier of oneself, interface identifier), and use If-ID to generate link-local (link this locality) address, and whole process and method can be referring to RFC2373, and main frame begins to carry out DAD (duplicate address detection) process then, testing process finishes, then finish the stateless address assigning process, described DAD process specifically may further comprise the steps as shown in Figure 1:
Step 11: send NS (neighbor request) message by multicast, carrying the local link-local address that generates in the message, so that on router, whether more described link-local address is with identical with other main frame link-local address of this main frame in a multicast domain, be the link-local address that whether duplicates in the same multicast domain, if find to repeat, then execution in step 12, if do not repeat, then abandon described NS message;
Step 12: send NA (neighbours' declaration) message to the main frame that sends the NS message.
Step 13: carry out DAD detect in or afterwards, main frame can send the RS message and use stateless address to distribute the Prefix (prefix) of application site-local (website this locality) and/or global (overall situation) address to router;
Step 14: the relevant address Prefix that router is asked step 13 comprises that the information such as rental period of address send to main frame by RA (route announcement) message, finish the process of address assignment.
In addition, also defined IND (oppositely ND) technology among the RFC3122 (Request for Comment 3122), oppositely the ND technology is meant when main frame or router are known the other side's IP address but do not known the other side's link address, at first can send the INS message to the other side, if with loopback INA message, carrying the link address of main frame in the INA message after the other side receives.
Based on above-mentioned ND technology, in the process after the host subscriber reaches the standard grade, whether the present invention can use following method to survey main frame (user) online:
In the stateless address assigning process, router is to the message of main frame transmission based on ND, and the described ND message that sends to main frame comprises NS message or INS message, and described NS message is carrying the IP address information of main frame.The message that online main frame receiving router is sent, as receive the NS message, then return NA message message in response to router; As receive that the INS message then returns INA message message in response to router; Receive the NA message as router, determine that main frame is online; Receive the INA message as router, with the host link address information and the local host link address information coupling of preserving of carrying in the INA message, if match hit determine that then main frame is online, otherwise main frame is not online; Do not receive any message as router, determine that then main frame is not online.
As can be seen, by above-mentioned processing procedure, realized in the IPv6 network detecting function whether online, thereby whether online, be convenient to management such as Host Based authentication, charging in the network if the user can be understood timely and accurately to the user.
Describe respectively below in conjunction with accompanying drawing and to use NS message and INS message to survey the whether online process of main frame (user).
(1) situation of use NS message:
As shown in Figure 2, referring to step 21, router is to main frame timed sending NS message, and this NS message is carrying the IP address information of main frame, purpose is to detect whether whether this main frame is online in the network of router control, and cardinal principle is the principle that adopts DAD to detect; If main frame is online, when receiving this NS message, check and find that the IP address of carrying in the NS message is identical with the IP address of local terminal, will send the NA message to router, occur conflicting to represent the address that this host address and router send;
Referring to step 22, need judge whether the response message (being the NA message) of receiving that main frame returns in router side, after router is received response message, then shown in step 24, think that this main frame is online; If in official hour, do not receive the NA message of main frame, show that main frame or link send fault, shown in step 23, assert that this main frame is not online, at this moment router just can determine next step operation according to configured strategy, such as these host subscriber's data of deletion, sending charges stops message etc.
(2) situation of use INS message:
As shown in Figure 3, referring to step 31, router also can be realized the present invention by regularly sending the INS message to main frame, if main frame is received behind the INS message loopback INA message is comprised the host link address in the INA message.Shown in figure 32, router judges in the time of setting whether receive described INA message, if router is received the INA message in official hour, then further execution in step 33, whether the link address information of judging this main frame that link address in the INA message and router are preserved mates, if match hit, promptly link address is correct, then shown in step 34, determine that this host subscriber is online; If the link address coupling is incorrect, then shown in step 35, determine this host subscriber's error in data, the host subscriber is not online; If router is not received the INA message in official hour, then same execution in step 35 determines that this host subscriber is not online.If determine that the host subscriber is not online, just then router can determine next step operational processes at this host subscriber according to configured strategy, such as these host subscriber's data of deletion, sending charges stops message etc.
By foregoing description as can be seen, two kinds of specific implementation methods provided by the invention can be under the situation of not revising relevant RFC agreement and standard, on router, realize the detection that the host subscriber is whether online, thereby judged accurately and timely whether stateless address distributing user and even DHCPv6 user be online, and can reach more exactly to host subscriber's the management and the operation of charging.
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 claims.
Claims (6)
1. the charging implementation method of an IPv6 is characterized in that, comprising:
A, router regularly send the message of finding the ND agreement based on neighbours to main frame;
After B, online main frame are received described message, return response message, carry the link address information of main frame in the described response message to router;
C, router are according to whether receiving that whether the host link address information of carrying in response message that main frame returns and the described response message mates with local host link address information of preserving, and determines whether main frame is online;
D, described main frame is realized chargeing according to the online situation of described main frame.
2. according to the described method of claim 1, it is characterized in that the message based on the ND agreement of described steps A comprises:
Reverse neighbor request INS message.
3. method according to claim 2 is characterized in that, in described step B:
The response message that main frame returns for the INS message is that reverse neighbours declare the INA message.
4. method according to claim 1 is characterized in that, described step C comprises:
Whether judgement receives the response message that main frame returns in the time of setting, as does not receive and determine that then main frame is not online.
5. method according to claim 1 is characterized in that, described step C comprises:
When router is received response message, with the host link address information and the local host link address information coupling of preserving of carrying in the response message, if match hit determine that then main frame is online, otherwise main frame is not online.
6. according to claim 1,2,3,4 or 5 described methods, it is characterized in that described main frame comprises:
Stateless address distributing user or based on the dynamic host configuration protocol DHCP v6 user of Internet Protocol version 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100553805A CN100362814C (en) | 2004-09-01 | 2004-09-01 | Method for realizing user detection based on neightbour discovery technique |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100553805A CN100362814C (en) | 2004-09-01 | 2004-09-01 | Method for realizing user detection based on neightbour discovery technique |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1744528A CN1744528A (en) | 2006-03-08 |
CN100362814C true CN100362814C (en) | 2008-01-16 |
Family
ID=36139735
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100553805A Expired - Fee Related CN100362814C (en) | 2004-09-01 | 2004-09-01 | Method for realizing user detection based on neightbour discovery technique |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100362814C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159587A (en) * | 2007-11-07 | 2008-04-09 | 华为技术有限公司 | Method and system of remote exchange deployment |
CN101582888B (en) * | 2009-06-01 | 2012-04-18 | 杭州华三通信技术有限公司 | Method for creating neighbor discovery table item and server |
CN102238075A (en) * | 2010-05-05 | 2011-11-09 | 杭州华三通信技术有限公司 | IPv6 (Internet Protocol version 6) routing establishing method based on Ethernet Point-to-Point Protocol and access server |
CN101945020A (en) * | 2010-09-14 | 2011-01-12 | 中兴通讯股份有限公司 | Conversation monitoring processing method and monitoring equipment |
CN111585951A (en) * | 2020-03-24 | 2020-08-25 | 普联技术有限公司 | SDN network host position attack detection method and device and controller |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003017615A1 (en) * | 2001-08-15 | 2003-02-27 | Nokia Corporation | Load balancing for a server farm |
CN1440159A (en) * | 2003-03-31 | 2003-09-03 | 中国科学院计算机网络信息中心 | Control method for layered switching network node region |
CN1453962A (en) * | 2002-04-27 | 2003-11-05 | 三星电子株式会社 | Internetwork protocol and method for setting main machine address and selecting source address |
-
2004
- 2004-09-01 CN CNB2004100553805A patent/CN100362814C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003017615A1 (en) * | 2001-08-15 | 2003-02-27 | Nokia Corporation | Load balancing for a server farm |
CN1453962A (en) * | 2002-04-27 | 2003-11-05 | 三星电子株式会社 | Internetwork protocol and method for setting main machine address and selecting source address |
CN1440159A (en) * | 2003-03-31 | 2003-09-03 | 中国科学院计算机网络信息中心 | Control method for layered switching network node region |
Non-Patent Citations (6)
Title |
---|
IPv4的ARP与IPv6的邻居发现协议之比较. 殷苌茗,龚红仿,姜腊林.长沙电力学院学报(自然科学版),第16卷第1期. 2001 * |
IPv6协议及其发展现状. 李滢,赵杨川.本溪冶金高等专科学校学报,第4卷第1期. 2002 * |
IPv6标准简介. 魏亮.电信工程技术与标准化. 2002 * |
Neighbor Discovery for IP Version 6(RFC 2461). Thomas Narten,Erik Nordmark, William Allen Simpson,21-22,66-67. 1998 * |
NEIGHBOR DISCOVERY FOR IP VERSION. THOMAS NARTEN ERIK NORDMARK,21-22,66-67,WILLIAM ALLEN SIMPSON. 1998 * |
计算机网络. 谢希仁,179,大边理工大学出版社. 2000 * |
Also Published As
Publication number | Publication date |
---|---|
CN1744528A (en) | 2006-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101692674B (en) | Method and equipment for double stack access | |
US7181503B2 (en) | Apparatus and method of searching for DNS server in outernet | |
US6219715B1 (en) | Automatic address distributing system | |
CN101820432A (en) | Safety control method and device of stateless address configuration | |
CN110913031A (en) | IPv6 network address configuration method | |
EP2749010A1 (en) | Discovery and disconnection of client addresses in an access node for an ip network | |
CN101753460A (en) | Method and device for processing internet protocol version 6(IPV6) routing prefix | |
CN101753458A (en) | Method and device for processing ND neighbor table entry | |
CN102143164B (en) | Message relaying method, message relaying device and base station | |
US20060146742A1 (en) | Mobile router, position management server, mobile network management system, and mobile network management method | |
CN104935564A (en) | Method of enabling devices and services based on mDNS protocol to discover mutually in local area network | |
CN102325200A (en) | Method for rapidly acquiring IPv6 (Internet Protocol Version 6) address and DHCP (Dynamic Host Configuration Protocol) snooping equipment | |
CN103051739A (en) | Network terminal and IP (Internet Protocol) address configuration method thereof | |
CN100362814C (en) | Method for realizing user detection based on neightbour discovery technique | |
CN102025797A (en) | Address prefix processing method, device, system and network equipment | |
CN111698339B (en) | IPV6 network positioning method and device | |
CN104581977B (en) | WLAN user management method, apparatus and system | |
CN102761425B (en) | Charging method and device | |
WO2018006684A1 (en) | Message processing method and device, and router | |
CN102752414B (en) | Method and equipment for releasing Internet protocol (IP)v6 address | |
CN105472530A (en) | Method, device and system for near distance communication discovery | |
CN101888319A (en) | Method and device for acquiring network access information of terminal equipment | |
CN109981813A (en) | Message processing method and device | |
CN106973126A (en) | A kind of arp reply method and device | |
CN113347282A (en) | IP address distribution and duplicate checking method and system for satellite internet |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080116 |