CN100550750C - The method of a kind of ADSL terminal statistics surf time and online flow - Google Patents
The method of a kind of ADSL terminal statistics surf time and online flow Download PDFInfo
- Publication number
- CN100550750C CN100550750C CNB2006101522146A CN200610152214A CN100550750C CN 100550750 C CN100550750 C CN 100550750C CN B2006101522146 A CNB2006101522146 A CN B2006101522146A CN 200610152214 A CN200610152214 A CN 200610152214A CN 100550750 C CN100550750 C CN 100550750C
- Authority
- CN
- China
- Prior art keywords
- flow
- surf
- time
- packet
- wan mouth
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method of a kind of ADSL terminal statistics surf time and flow, in the ADSL terminal database, increase by four variablees, represent this respectively or add up surf time or flow, comprise following steps: (a) ADSL starting terminal, if running software is undesired, finish,, this online flow and time are put 0 if operation is normal; (b) then carry out next step if ADSL activates, otherwise continue to judge whether to activate; (c) every T, read current WAN mouth and receive number-of-packet, if this numerical value is 0, wait for interval T next time, if this numerical value is not 0, carry out next step; (d) current WAN mouth value=this flow of surfing the Net, this surf time was added in the accumulative total surf time, current WAN mouth value is added in the flow that adds up to surf the Net, with current WAN mouth value, this surf time and flow zero clearing, return (b), otherwise this surf time increases T, the current WAN mouth value that will read simultaneously deposits in this online flow, returns (c).
Description
Technical field
The present invention relates to digital communicating field, the method for particularly a kind of ADSL terminal statistics surf time and online flow.
Background technology
ADSL (Asymmetrical Digital Subscriber Loop) is as one of important means of broadband access, relies on it to make full use of the existing network resource, opens convenient, two-way asymmetric bandwidth, meets user's custom or the like advantage of surfing the Net and be subjected to the favor of telecom operators always deeply.Through development in recent years, domestic ADSL construction amount has surpassed 2,500 ten thousand lines, ADSL termination capacity also nearly 2,000 ten thousand, but the permeability with regard to its twisted-pair feeder resource only accounts for 8.5% of domestic fixed line, lag behind 10~15 percentage points in developed country, therefore, the construction of carrying out ADSL local side and terminal energetically will be the long-term from now on strategic means of telecommunications, Netcom or even Tie Tong.In order to adapt to the needs of this development, telecom operators constantly release new operational line, for example network game service, online request business, long-distance education and medical profession, Best Tone Service or the like in recent years; Change charging way simultaneously: change to the time of pressing or charge on traffic from extensive flat rate system.By improving the rich of operational line, the reasonability of charge attracts more domestic consumer's online, thereby improves the operation income of enterprise self.
In the face of this more and more meticulousr charging way of operator, the user is when using the broadband, sometimes need to know the information such as flow, this surf time, this online flow of surfing the Net such as accumulative total surf time, accumulative total, so that the control surf time, monitoring broadband network operating position reduces unnecessary broadband network cost of use.And the ADSL terminal of using in the market can't directly offer the above-mentioned information of user.Though the user can obtain related data by professional software being installed or being carried out network inquiry, use very inconveniently, not only the user there is certain professional knowledge requirement, and can produces certain expense.
Therefore, still there are some defectives in the use in present ADSL terminal, awaits improving and development.
Summary of the invention
The technical problem to be solved in the present invention provides the method for a kind of ADSL terminal statistics surf time and online flow, statistics as accumulative total surf time, accumulative total surf the Net flow, this surf time, this flow of surf the Net, make the user can get access to intuitively need internet information.
The present invention proposes the method for a kind of ADSL terminal statistics surf time and online flow, increases by four variablees in the ADSL terminal database, represents this surf time respectively, this flow of surfing the Net, add up the surf time and add up to surf the Net flow, a statistics interval T is set, comprise following steps:
(a) after the ADSL starting terminal, judge the running software situation,, finish,, this online flow and this surf time are put 0 if operation is normal if operation is undesired;
(b) judge whether the ADSL terminal activates, if activate, continue to carry out next step, otherwise continue to judge whether to activate;
(c) statistical interval T then reads current WAN mouth and receives number-of-packet, if this numerical value is 0, waits for that then statistical interval then continues to read current WAN mouth reception number-of-packet next time, if this numerical value is not 0, carries out next step;
Whether the current WAN mouth that (d) relatively reads receives number-of-packet and equates with this online flow, if, this surf time was added in the accumulative total surf time, current WAN mouth is received number-of-packet to be added in the flow that adds up to surf the Net, then current WAN mouth is received the number-of-packet zero clearing, with this surf time and this online flow zero clearing, return step (b); Otherwise this surf time increases T, and the current WAN mouth that will read simultaneously receives number-of-packet and deposits in this online flow, returns step (c).
If described ADSL terminal is to use for the first time, the surf the Net initial value of flow of described accumulative total surf time and accumulative total is 0; If described ADSL terminal was used net, then adds up the surf the Net initial value of flow of surf time and accumulative total and be respectively cumulative time and integrated flow till surfed the Net the finish time last time.
When described ADSL terminal recovered to dispatch from the factory the default configuration operation, described accumulative total surf time and described accumulative total were surfed the Net flow information by zero setting.
The user can obtain this surf time by this accessing ADSL terminal management page, this flow of surfing the Net, the statistical information that adds up the surf time and add up to surf the Net flow.
The present invention proposes a kind of method of ADSL terminal statistics online flow, in the ADSL terminal database, increase by two variablees, represent this online flow and the accumulative total flow of surfing the Net respectively, all the other steps but do not take statistics to undefined variable in each step as hereinbefore.
The present invention proposes the method for a kind of ADSL terminal statistics surf time, in the ADSL terminal database, increase by three variablees, represent this surf time respectively, this online flow and accumulative total surf time, all the other steps but do not take statistics to undefined variable in each step as hereinbefore.
The present invention utilizes the existing data statistics function of ADSL terminal software, related data is handled, information with user's needs, accumulative total surf time, the flow that adds up to surf the Net, this surf time, this online flow are kept in the ADSL terminal database, the user can increase methods such as display screen shows by this accessing ADSL terminal management page or on the ADSL terminal, get access to the internet information that needs intuitively, thereby the control surf time, monitoring broadband network operating position reduces unnecessary broadband network cost of use.
Description of drawings
Fig. 1 is " this surf time ", " this flow of surfing the Net " of the embodiment of the invention, the main schematic flow sheet of " accumulative total surf time " and " adding up to surf the Net flow " information processing.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is described in further detail.
In the ADSL terminal database, increase by four new variable: WANRcv and be used to preserve the WAN mouth reception number-of-packet that reads, be equivalent to this online flow; UpTime is used to preserve this surf time, and these two variable initial condition values are 0.SumUpTime is used for preserving the accumulative total surf time; SumUpData is used for preserving the accumulative total flow of surfing the Net, if terminal is to use for the first time or carry out over recovery acquiescence Default Value, then the value of SumUpTime and SumUpData is 0; If equipment was used net, then the value of SumUpTime and SumUpData is respectively cumulative time and the integrated flow after last time, online finished.
After the step 1:ADSL starting terminal, at first whether judgment device software moves normally, if it is undesired, then finish,, then variable UpTime and WANRcv in the database are put 0 if normal, then judge again whether the ADSL terminal activates, if activate, then execution in step 2, otherwise continue to judge whether to activate
Step 2: the current WAN mouth of per blanking time of T fetch equipment receives number-of-packet (this numerical value is original in the ADSL terminal database), carry out following data comparison and handle, during to the deexcitation of ADSL terminal till.
(1) if current WAN mouth receives number-of-packet=WANRcv, and current WAN mouth reception number-of-packet=0, not online of user then is described.
Do not upgrade the ADSL terminal database;
Continuation is to inquire about in the cycle with the time T.
(2), illustrate that then the user stops online after surfing the Net if current WAN mouth receives number-of-packet=WANRcv and current WAN mouth receives number-of-packet ≠ 0.
Data accumulation among the UpTime is deposited among the SumUpTime;
Current WAN mouth is received number-of-packet to add up and deposits among the SumUpData;
By ADSL terminal statistics function of reset current WAN mouth is received number-of-packet and put 0;
UpTime and WANRcv are put 0.
(3), illustrate that then the user begins online if current WAN mouth receives number-of-packet ≠ WANRcv.
Time T is added to UpTime, i.e. UpTime (n)=T+UpTime (n-1);
The current WAN mouth that reads is received number-of-packet be kept among the variable WANRcv, promptly WANRcv (n)=current WAN mouth receives number-of-packet.
Continuation is to inquire about in the cycle with the time T.
In actual motion, as shown in Figure 1, after checking running software situation and terminal activation situation, generally be to read current WAN mouth earlier every time T to receive number-of-packet, if value is 0, handle by the mode in above-mentioned (1);
If it is not 0 that current WAN mouth receives number-of-packet, judge again whether the WANRcv value equals current WAN mouth and receive number-of-packet, if equate, handles by the mode in above-mentioned (2), and echo check activation situation, if do not wait, handle by the mode in above-mentioned (3).
In another embodiment of the present invention, the user can obtain corresponding statistical information in the database by this accessing ADSL terminal management page, or increases display screen demonstration statistical information on the ADSL terminal.
In further embodiment of this invention, only add up this surf time and accumulative total surf time, in terminal database, increase by three variablees, WANRcv, this surf time UpTime, accumulative total surf time SumUpTime, its statistic procedure is the same with first embodiment, does not add up to surf the Net flow but do not add up in the step.
In yet another embodiment of the invention, only add up this online flow and add up to surf the Net flow, in terminal database, add two variablees, the WANRcv and the flow SumUpData that totally surfs the Net, its statistic procedure is the same with first embodiment, but does not add up this surf time and accumulative total surf time in the step.
Claims (6)
1, the method for a kind of ADSL terminal statistics surf time and online flow increases by four variablees in the ADSL terminal database, represents this surf time respectively, this flow of surfing the Net, add up the surf time and add up to surf the Net flow, a statistics interval T is set, comprise following steps:
(a) after the ADSL starting terminal, judge the running software situation,, finish,, this online flow and this surf time are put 0 if operation is normal if operation is undesired;
(b) judge whether the ADSL terminal activates, if activate, continue to carry out next step, otherwise continue to judge whether to activate;
(c) statistical interval T then reads current WAN mouth and receives number-of-packet, if this numerical value is 0, waits for that then statistical interval then continues to read current WAN mouth reception number-of-packet next time, if this numerical value is not 0, carries out next step;
Whether the current WAN mouth that (d) relatively reads receives number-of-packet and equates with this online flow, if, this surf time was added in the accumulative total surf time, current WAN mouth is received number-of-packet to be added in the flow that adds up to surf the Net, then current WAN mouth is received the number-of-packet zero clearing, with this surf time and this online flow zero clearing, return step (b); Otherwise this surf time increases T, and the current WAN mouth that will read simultaneously receives number-of-packet and deposits in this online flow, returns step (c).
2, the method for claim 1 is characterized in that: if described ADSL terminal is to use for the first time, the surf the Net initial value of flow of described accumulative total surf time and accumulative total is 0; If described ADSL terminal was used net, then adds up the surf the Net initial value of flow of surf time and accumulative total and be respectively cumulative time and integrated flow till surfed the Net the finish time last time.
3, the method for claim 1 is characterized in that: when described ADSL terminal recovered to dispatch from the factory the default configuration operation, described accumulative total surf time and described accumulative total were surfed the Net flow information by zero setting.
4, the method for claim 1 is characterized in that: the user can obtain this surf time by this accessing ADSL terminal management page, this flow of surfing the Net, the statistical information that adds up the surf time and add up to surf the Net flow.
5, a kind of ADSL terminal is added up the method for online flow, increases by two variablees in the ADSL terminal database, represents this online flow respectively and adds up to surf the Net flow, and a statistics interval T is set, and comprises following steps:
(a) after the ADSL starting terminal, judge the running software situation,, finish,, this online flow is put 0 if operation is normal if operation is undesired;
(b) judge whether the ADSL terminal activates, if activate, continue to carry out next step, otherwise continue to judge whether to activate;
(c) statistical interval T then reads current WAN mouth and receives number-of-packet, if this numerical value is 0, waits for that then statistical interval then continues to read current WAN mouth reception number-of-packet next time, if this numerical value is not 0, carries out next step;
Whether the current WAN mouth that (d) relatively reads receives number-of-packet and equates with this online flow, if, current WAN mouth is received number-of-packet be added in the flow that adds up to surf the Net, then current WAN mouth is received the number-of-packet zero clearing, with this online flow zero clearing, return step (b); Otherwise, the current WAN mouth that reads is received number-of-packet deposit in this online flow, return step (c).
6, the method for a kind of ADSL terminal statistics surf time increases by three variablees in the ADSL terminal database, represent this surf time respectively, this flow of surfing the Net, and the accumulative total surf time, a statistics interval T is set, comprise following steps:
(a) after the ADSL starting terminal, judge the running software situation,, finish,, this surf time is put 0 if operation is normal if operation is undesired;
(b) judge whether the ADSL terminal activates, if activate, continue to carry out next step, otherwise continue to judge whether to activate;
(c) statistical interval T then reads current WAN mouth and receives number-of-packet, if this numerical value is 0, waits for that then statistical interval then continues to read current WAN mouth reception number-of-packet next time, if this numerical value is not 0, carries out next step;
Whether the current WAN mouth that (d) relatively reads receives number-of-packet and equates with this online flow, if, this surf time was added in the accumulative total surf time, then current WAN mouth is received the number-of-packet zero clearing, with this surf time and this online flow zero clearing, return step (b); Otherwise this surf time increases T, the current WAN mouth that reads is received number-of-packet deposit in this online flow, returns step (c).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101522146A CN100550750C (en) | 2006-09-20 | 2006-09-20 | The method of a kind of ADSL terminal statistics surf time and online flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101522146A CN100550750C (en) | 2006-09-20 | 2006-09-20 | The method of a kind of ADSL terminal statistics surf time and online flow |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101150415A CN101150415A (en) | 2008-03-26 |
CN100550750C true CN100550750C (en) | 2009-10-14 |
Family
ID=39250768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101522146A Expired - Fee Related CN100550750C (en) | 2006-09-20 | 2006-09-20 | The method of a kind of ADSL terminal statistics surf time and online flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100550750C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101600186B (en) * | 2009-06-12 | 2013-11-06 | 中兴通讯股份有限公司 | Method and device for traffic statistics and automatic computation of network charge |
CN101984579A (en) * | 2010-10-12 | 2011-03-09 | 中兴通讯股份有限公司 | Method and device for judging running state of port of broadband access equipment |
CN102595243B (en) * | 2012-02-10 | 2015-03-11 | 深圳创维-Rgb电子有限公司 | Method and device for monitoring network flux in television set and television set |
-
2006
- 2006-09-20 CN CNB2006101522146A patent/CN100550750C/en not_active Expired - Fee Related
Non-Patent Citations (2)
Title |
---|
Internet网络测量方式综述. 牛燕华,任新华,毕经平.计算机应用与软件,第23卷第7期. 2006 |
Internet网络测量方式综述. 牛燕华,任新华,毕经平.计算机应用与软件,第23卷第7期. 2006 * |
Also Published As
Publication number | Publication date |
---|---|
CN101150415A (en) | 2008-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101340449B (en) | Mobile terminal and method for obtaining network access information | |
CN101461253B (en) | Vectored dsl system | |
CN101213826B (en) | Dsl system training | |
CN101233742B (en) | User-preference-based DSL system | |
CN101228776B (en) | User-preference-based DSL system | |
CN102450039B (en) | Calling-out method, calling-out server and calling-out system | |
EP1839411A2 (en) | System and method for managing broadband services | |
CN106937136A (en) | Data delay method and system based on statistical information between network direct broadcasting | |
CN105611084A (en) | User fraud suspiciousness degree calculation method and suspiciousness degree calculation system | |
CN101150414A (en) | A display method for network access time and traffic of ADSL terminal | |
WO2020098598A1 (en) | Method and system for performing charging processing on network resources, and related device | |
CN101803286A (en) | Method and apparatus for communicating data over a data network | |
CN102497452A (en) | Online streaming media service method based on embedded terminal | |
CN101119416A (en) | Device and method of value-added service network and real-time analysis flow track | |
CN103200428A (en) | Service pre-push method and service pre-push device | |
CN100550750C (en) | The method of a kind of ADSL terminal statistics surf time and online flow | |
CN101218807A (en) | Apparatus and method for estimating fill factor of client input buffers of a real time content distribution | |
CN106161284A (en) | A kind of resource regulating method and system | |
CN105847284A (en) | Communication service processing method, device and server | |
CN108924368A (en) | A kind of call control method, device and server | |
CN104104803A (en) | Call service method and system, system side and calling terminal | |
CN107786956B (en) | Method and device for determining real-time priority of package | |
CN101562563B (en) | Fast re-dial method after user is off line improperly | |
CN104954440B (en) | A kind of operational system and method for Android set-top box | |
US20060056304A1 (en) | Methods, systems, modems, and computer program products for connection speed selection |
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 |
Granted publication date: 20091014 Termination date: 20170920 |
|
CF01 | Termination of patent right due to non-payment of annual fee |