CN101150415A - A statistical method for network access time and traffic of ADSL terminal - Google Patents

A statistical method for network access time and traffic of ADSL terminal Download PDF

Info

Publication number
CN101150415A
CN101150415A CNA2006101522146A CN200610152214A CN101150415A CN 101150415 A CN101150415 A CN 101150415A CN A2006101522146 A CNA2006101522146 A CN A2006101522146A CN 200610152214 A CN200610152214 A CN 200610152214A CN 101150415 A CN101150415 A CN 101150415A
Authority
CN
China
Prior art keywords
time
flow
surf
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.)
Granted
Application number
CNA2006101522146A
Other languages
Chinese (zh)
Other versions
CN100550750C (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2006101522146A priority Critical patent/CN100550750C/en
Publication of CN101150415A publication Critical patent/CN101150415A/en
Application granted granted Critical
Publication of CN100550750C publication Critical patent/CN100550750C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to a method for evaluating internet time and flux by an ADSL terminal by adding four variables in its database expressing this or accumulated internet time or flux including the following steps: a, starting up the ADSL terminal, if the software does not operate normally, it is ended, if it is normal, then setting the internet flux and time of this time zero, b, executing the next step if the ADSL is activated, otherwise it judges if it starts up the ADSL, c, reading data packets received by the current WAN interface every other T, if it is zero, it waits for the next T, if not, it executes the next step, d, when the current WAN I value=this time of internet flux, the internet time of this time is accumulated onto the accumulated internet time and the current WAN I value into the accumulated internet flux to clear the current WAN I value, this time and flux and return to b, otherwise, adding T to this internet time and storing the read current WAN I value into this time of internet flux and return to c.

Description

The method of a kind of ADSL terminal statistics surf time and online flow
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 after last time, online finished.
When described ADSL terminal recovered to dispatch from the factory the default configuration operation, " accumulative total surf time " and " adding up to surf the Net flow ", information was 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 that the ADSL terminal is added up 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 after last time, online finished.
3. the method for claim 1 is characterized in that: when described ADSL terminal recovered to dispatch from the factory the default configuration operation, " accumulative total surf time " and " flow of totally surfing the Net ", information was by zero setting.
4. the method for claim 1, it 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 surf the Net statistical information of flow of accumulative total surf time and accumulative total.
5. the method that the ADSL terminal is added up the 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 an ADSL terminal statistics surf time increases by three variablees in the ADSL terminal database, represents 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).
CNB2006101522146A 2006-09-20 2006-09-20 The method of a kind of ADSL terminal statistics surf time and online flow Expired - Fee Related CN100550750C (en)

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 true CN101150415A (en) 2008-03-26
CN100550750C 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600186A (en) * 2009-06-12 2009-12-09 中兴通讯股份有限公司 A kind of traffic statistics and automatic method and the device that calculates expenses of surfing Internet
CN101984579A (en) * 2010-10-12 2011-03-09 中兴通讯股份有限公司 Method and device for judging running state of port of broadband access equipment
CN102595243A (en) * 2012-02-10 2012-07-18 深圳创维-Rgb电子有限公司 Method and device for monitoring network flux in television set and television set

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600186A (en) * 2009-06-12 2009-12-09 中兴通讯股份有限公司 A kind of traffic statistics and automatic method and the device that calculates expenses of surfing Internet
WO2010142087A1 (en) * 2009-06-12 2010-12-16 中兴通讯股份有限公司 Method and device for flow counting and automatically calculating internet connection fee
CN101600186B (en) * 2009-06-12 2013-11-06 中兴通讯股份有限公司 Method and device for traffic statistics and automatic computation of network charge
AU2009347686B2 (en) * 2009-06-12 2014-02-13 Zte Corporation Method and device for flow counting and automatically calculating internet connection fee
US8774046B2 (en) 2009-06-12 2014-07-08 Zte Corporation Method and device for counting traffic and automatically calculating a cost of surfing a network
CN101984579A (en) * 2010-10-12 2011-03-09 中兴通讯股份有限公司 Method and device for judging running state of port of broadband access equipment
WO2012048584A1 (en) * 2010-10-12 2012-04-19 中兴通讯股份有限公司 Method and system for judging operation state of broadband access device port
CN102595243A (en) * 2012-02-10 2012-07-18 深圳创维-Rgb电子有限公司 Method and device for monitoring network flux in television set and television set

Also Published As

Publication number Publication date
CN100550750C (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN101340449B (en) Mobile terminal and method for obtaining network access information
CN101461253B (en) Vectored dsl system
CN101448006B (en) Method and system for realizing access for a great amount of terminals for streaming media server
CN102450039B (en) Calling-out method, calling-out server and calling-out system
CN101228776B (en) User-preference-based DSL system
CN101150414A (en) A display method for network access time and traffic of ADSL terminal
CN101213826A (en) DSL system training
CN105611084A (en) User fraud suspiciousness degree calculation method and suspiciousness degree calculation system
CN101218807B (en) Apparatus and method for estimating fill factor of client input buffers of a real time content distribution
WO2020098598A9 (en) Method and system for performing charging processing on network resources, and related device
CN108389070A (en) A kind of customer action characteristic analysis method, server and system
CN101883178A (en) Method and system for automatically timing and metering during surfing Internet with cell phone on basis of cell phone terminal
CN103200428A (en) Service pre-push method and service pre-push device
CN104735272A (en) Crank call interception method and system
CN101119416A (en) Device and method of value-added service network and real-time analysis flow track
CN100550750C (en) The method of a kind of ADSL terminal statistics surf time and online flow
US6466660B1 (en) Method and apparatus for retroactively updating a communication billing system
CN101741974A (en) Terminal and method for counting utilization rate of loadable module of terminal
CN110442819A (en) Data processing method, device, storage medium and terminal
CN1926805B (en) System and method for quality condition analysis of access network supporting broad band telecommunication service
CN106230741A (en) A kind of method and apparatus that message is carried out speed limit
CN108924368A (en) A kind of call control method, device and server
CN101977130A (en) Method and device for monitoring bandwidth of Ethernet port in real time
CN105847284A (en) Communication service processing method, device and server
CN107786956B (en) Method and device for determining real-time priority of package

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