Networking Forums

Networking Forums > Computer Networking > Linux Networking > Usage based billing

Reply
Thread Tools Display Modes

Usage based billing

 
 
Sonny
Guest
Posts: n/a

 
      11-18-2007, 03:42 PM
Has anyone here implemented a usage based billing system by sniffing
HTTP packets? I tried searching it in the Web but come up short. I
just want to know how to do it, i mean, a successful web download has
a series of 200 OKs. What is the best indication that a page is
successfully downloaded? Thanks.
 
Reply With Quote
 
 
 
 
D. Stussy
Guest
Posts: n/a

 
      11-18-2007, 08:58 PM
"Sonny" <(E-Mail Removed)> wrote in message
news:619b69c6-59ca-4964-9937-(E-Mail Removed)...
> Has anyone here implemented a usage based billing system by sniffing
> HTTP packets? I tried searching it in the Web but come up short. I
> just want to know how to do it, i mean, a successful web download has
> a series of 200 OKs. What is the best indication that a page is
> successfully downloaded? Thanks.


How about a firewall packet counter?

 
Reply With Quote
 
Antoine Junod
Guest
Posts: n/a

 
      11-19-2007, 06:53 AM
"D. Stussy" <(E-Mail Removed)> writes:

> "Sonny" <(E-Mail Removed)> wrote in message
> news:619b69c6-59ca-4964-9937-(E-Mail Removed)...
>> Has anyone here implemented a usage based billing system by sniffing
>> HTTP packets? I tried searching it in the Web but come up short. I
>> just want to know how to do it, i mean, a successful web download has
>> a series of 200 OKs. What is the best indication that a page is
>> successfully downloaded? Thanks.

>
> How about a firewall packet counter?


Does it need a lot of CPU ressources? Does is slow down the
throughput?

Thanks for your reply,
-AJ
 
Reply With Quote
 
Sonny
Guest
Posts: n/a

 
      11-19-2007, 11:36 PM
On Nov 19, 3:53 pm, Antoine Junod <t...@tots-ns.net> wrote:
> "D. Stussy" <s...@bde-arc.ampr.org> writes:
> > "Sonny" <smani...@gmail.com> wrote in message
> >news:619b69c6-59ca-4964-9937-(E-Mail Removed)...
> >> Has anyone here implemented a usage based billing system by sniffing
> >> HTTP packets? I tried searching it in the Web but come up short. I
> >> just want to know how to do it, i mean, a successful web download has
> >> a series of 200 OKs. What is the best indication that a page is
> >> successfully downloaded? Thanks.

>
> > How about a firewall packet counter?

>
> Does it need a lot of CPU resources? Does is slow down the
> throughput?
>
> Thanks for your reply,
> -AJ


Actually we're just doing a prototype, so far we're checking how many
packets for one http transaction, and the http headers that comes
along with it. We don't think that it needs a lot of CPU resources
though we're expecting many requests with different request for the
same web page/file which makes a packet counter kind of difficult to
implement. Hmm, is there an open source system which is similar to
Cisco's NetFlow?
 
Reply With Quote
 
D. Stussy
Guest
Posts: n/a

 
      11-20-2007, 12:26 AM
"Sonny" <(E-Mail Removed)> wrote in message
news:5a5ec602-b052-4933-9d60-(E-Mail Removed)...
> On Nov 19, 3:53 pm, Antoine Junod <t...@tots-ns.net> wrote:
> > "D. Stussy" <s...@bde-arc.ampr.org> writes:
> > > "Sonny" <smani...@gmail.com> wrote in message
> > >news:619b69c6-59ca-4964-9937-(E-Mail Removed)...
> > >> Has anyone here implemented a usage based billing system by sniffing
> > >> HTTP packets? I tried searching it in the Web but come up short. I
> > >> just want to know how to do it, i mean, a successful web download has
> > >> a series of 200 OKs. What is the best indication that a page is
> > >> successfully downloaded? Thanks.

> >
> > > How about a firewall packet counter?

> >
> > Does it need a lot of CPU resources? Does is slow down the
> > throughput?
> >
> > Thanks for your reply,
> > -AJ

>
> Actually we're just doing a prototype, so far we're checking how many
> packets for one http transaction, and the http headers that comes
> along with it. We don't think that it needs a lot of CPU resources
> though we're expecting many requests with different request for the
> same web page/file which makes a packet counter kind of difficult to
> implement. Hmm, is there an open source system which is similar to
> Cisco's NetFlow?


Is there a reason why your iptables rules can't be used?

How many times do I have to hit your head with a hammer?

 
Reply With Quote
 
Sonny
Guest
Posts: n/a

 
      11-20-2007, 04:02 AM
On Nov 20, 9:26 am, "D. Stussy" <s...@bde-arc.ampr.org> wrote:
> "Sonny" <smani...@gmail.com> wrote in message
>
> news:5a5ec602-b052-4933-9d60-(E-Mail Removed)...
>
>
>
> > On Nov 19, 3:53 pm, Antoine Junod <t...@tots-ns.net> wrote:
> > > "D. Stussy" <s...@bde-arc.ampr.org> writes:
> > > > "Sonny" <smani...@gmail.com> wrote in message
> > > >news:619b69c6-59ca-4964-9937-(E-Mail Removed)...
> > > >> Has anyone here implemented a usage based billing system by sniffing
> > > >> HTTP packets? I tried searching it in the Web but come up short. I
> > > >> just want to know how to do it, i mean, a successful web download has
> > > >> a series of 200 OKs. What is the best indication that a page is
> > > >> successfully downloaded? Thanks.

>
> > > > How about a firewall packet counter?

>
> > > Does it need a lot of CPU resources? Does is slow down the
> > > throughput?

>
> > > Thanks for your reply,
> > > -AJ

>
> > Actually we're just doing a prototype, so far we're checking how many
> > packets for one http transaction, and the http headers that comes
> > along with it. We don't think that it needs a lot of CPU resources
> > though we're expecting many requests with different request for the
> > same web page/file which makes a packet counter kind of difficult to
> > implement. Hmm, is there an open source system which is similar to
> > Cisco's NetFlow?

>
> Is there a reason why your iptables rules can't be used?
>
> How many times do I have to hit your head with a hammer?


Actually, we can use the iptables, but it will be very dirty. We can
set the iptables rule per IP of the user to get the count. But as we
tested the setup, unlike a typical DHCP wherein most of the time, you
will get the same ip, the ip gets changed every time the end device is
turned off. Also, if the client is downloading more than one file at a
time, then it will be harder to monitor.

If we configured the firewall to monitor for example, per ip -and-
per destination host to solve the more-than-one-file scenario then we
will have thousands lines chain in the iptables and that would be very
inefficient I suppose. I forgot to mention, we would be looking at a
potential CIDR /20 number of clients. And unfortunately all clients
will be pointing to this gateway. We can't afford another machine to
serve the clients.

But, I could ask what kind of iptables rule will be most efficient
with this setup?

Regards,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco Announces Industry's First Network-Based, Standards- Based Rapid Channel-Change..... studyandjobs@yahoo.com Home Networking 0 12-26-2006 03:41 PM
Cisco Announces Industry's First Network-Based, Standards- Based Rapid Channel-Change..... studyandjobs@yahoo.com Linux Networking 0 12-26-2006 03:40 PM
Looking for home based Linux LKM and socket based application project GS Linux Networking 1 05-30-2005 08:56 PM
BT publish usage based charges for ADSL lines Sunil Sood Broadband 4 03-22-2005 07:36 PM
Using domain-based and workgroup-based networks on same PC S Ward Home Networking 3 08-09-2004 08:41 PM



1 2 3 4 5 6 7 8 9 10 11