Why don't you use the size of the packets themselves. After all, your HTTP
header also adds to the band width (but does not show in Content-Length
response header.

As java would not let you sniff packets, you should use either C or C++ as
you choose.

On Sun, Jun 5, 2011 at 3:33 PM, Deepak Garg <[email protected]> wrote:

> Hello all,
>
> I want to develop a network bandwidth calculation program. i am a beginner
> to this type of work.
>
> my strategy to do this is as follows:-
>
> 1. First sniffing the packets on a particular port ( for example if in
> first phase,  I want to calculate bandwidth only for HTTP packets, port 80 )
> 2. Extract the header and get the size information of the payload.
> 3. Now calculating the bandwidth..
>
> is this the correct approach?
> Kindly give me some directions on it like: how can i proceed to do that
> ,which language i should use (i am comfortable with java, c/c++ )
>
>
> Best Regards
> Deepak Garg
> B.Tech(CSE)
> Amity University
>
>  --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>



-- 
Debasish Ray Chawdhuri

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to