ya i can use the whole packet but think a situation where lots of packets
are traveling in a network (FTP,HTTP etc) would it be a gud approach?
and how can i implement the port listening for packet capture, i found the
libpcap library (it has java port also )..is it the only one which i can
use?

On Sun, Jun 5, 2011 at 4:53 PM, Debasish Ray Chawdhuri <
[email protected]> wrote:

> 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
>



-- 
U.D.I.T

Sent by Nokia OVI (c)

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

Reply via email to