Link to home
Start Free TrialLog in
Avatar of CodedK
CodedKFlag for Greece

asked on

Maximum banwidth

Hi.

I'd like to know if there is a way to get the maximum bandwidth of a connection.

Thanks in advance.
Avatar of Greybird
Greybird

Avatar of CodedK

ASKER

GreyBird...

Everyone is confused with this question you gave me.

The title may be "Get the connection speed." (I WAS THE AUTHOR)

BUT

It gives the packets that comes in or come out. The speed of a download...
Ex:  Upload:10Kb/sec    Download:120Kb/sec.

Lets say i'd like to draw a red line in a graph ... different for every computer ... based on the Maximum bandwidth.

Thanks.
Hi again :)

well exactly: the physical limitation to bandwith is in this structure:

 TrIFROW=record
    FName:array[0..511] of Byte;                                        
    FIndex:Cardinal;                                                            
    FType:Longint;                                                              
    FMTU:Longint;                                                              
    FSpeed:Longint;                                                  << SPEED IS STORED HERE - in bits per second (bps) usually value: 10000000 or 1000000000
    FPhysAddrLen:Longint;                                                  
    FPhysAddr:array[0..7] of Byte;                                      
    FAdminStatus:Longint;                                                  
    FOperStatus:Longint;                                                    
    FLastChange:Longint;                                                  
    FInOctets:Longint;                                                        
    FInUcastPkts:Longint;                                                  
    FInNUcastPkts:Longint;                                                
    FInDiscards:Longint;                                                    
    FInErrors:Longint;                                                      
    FInUnknownProtos:Longint;                                          
    FOutOctets:Longint;                                                    
    FOutUcastPkts:Longint;                                                
    FOutNUcastPkts:Longint;                                              
    FOutDiscards:Longint;                                                
    FOutErrors:Longint;                                                    
    FOutQLen:Longint;                                                    
    FLength:Longint;                                                        
    FDescription:array[0..255] of Char;                            
  end;

if you want the maximal transfer of the internet connection then
you should make some kind of bandwith meter (aka speed of
downloading/uploading of some file located on remote server
with enough speed to cover even the higher transfer rates)

regards,
Kate
Or the second way is (as commonly used in other software)
by defining your connection speed manually (NetLimiter)

regards,
Kate
Avatar of CodedK

ASKER

:) :) :)

HI Katka.

The big problem is .... If the computer is offline then this will not work !
ASKER CERTIFIED SOLUTION
Avatar of _Katka_
_Katka_
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'd be so bold to say that there's no possibility to directly
detect the speed of internet because it depends on ISP :(

Kate
More on my first post:

You will detect this maximum only once when the user is connected
otherwise it'll stay or it should be redetected by user on demand
if he will change the ISP or the speed of his internet. Otherwise
I should recommend you my second dynamic method as it's commonly
used by most of the software. When user went offline it should has
it's minimal maximum (like 5kB/s) because graph would be grabbled
with zeros :))

regard,
Kate
Avatar of CodedK

ASKER

:(
...There is no way to hack ISP and learn it ?

Your idea is very good :) Thanks.

Or just ping a target and time it? (When download speed is 0)

Maybe it is possible to retreive value for ISP
but it's specific to a ISP alone. So you would
have to make a different way for different ISPs
which is overhauling :))

Yeah, ping idea is fine extension..

regards,
Kate
Avatar of CodedK

ASKER

Thanks...

I wish you good summer :)

See you.

CodedK.
Same to you :) see ya

regards,
Kate