Maximum banwidth

Hi.

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

Thanks in advance.
LVL 16
CodedKSenior Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodedKSenior Software EngineerAuthor Commented:
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.
_Katka_Commented:
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
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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

regards,
Kate
CodedKSenior Software EngineerAuthor Commented:
:) :) :)

HI Katka.

The big problem is .... If the computer is offline then this will not work !
_Katka_Commented:
One more option occured to me:

You can scan the actual speed and make the
local maximum of DL/UL by scaling the graph.

Let's presume this example:

1) detected 30kB/s - graph is set as 80% -> Maximum = 100*(Value/80) = 100*(30/80) = 37.5kB/s
2) next time 45kB/s is detected - graph's maximum has changed to -> Maximum = 100*(45/80) = 56.25kB/s

graph must be scaled accordingly ofcourse
and so on..

regards,
Kate

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
_Katka_Commented:
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
_Katka_Commented:
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
CodedKSenior Software EngineerAuthor Commented:
:(
...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)

_Katka_Commented:
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
CodedKSenior Software EngineerAuthor Commented:
Thanks...

I wish you good summer :)

See you.

CodedK.
_Katka_Commented:
Same to you :) see ya

regards,
Kate
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.