how to know the modem connection speed under Linux? 

Newsgroups: comp.os.linux.networking
Date: 2000-10-06 10:15:13 PST
> does anyone know how to determine the connection speed of a dial
> up session under Linux? I only get the baud speed of my serial
> port when i report the CONNECT string, but i don't get the speed
> it negociates with the remote modem.
> When i connect with a windows it tells me the speed it has negociated
> so i'm sure that Linux can do it too. Maybe it's an AT command
> but i don't know which one and how to pass it after stablishing
> the connection.

Look in your modem manual for the AT command, in the old Hayes command set ATW1s95=47 would cause the modem to report initial DCE connect speed (and other things as well). Add the chat option “REPORT CONNECT” and the pppd option updetach (or nodetach to be able to control-c pppd) to get it sent to the terminal.

REPORT CONNECT may not work for an old version of chat and -detach may be needed in an old verision of pppd. Chat comes with the pppd source package, and the latest pppd source package (2.4.0) can be obtained via ftp at linuxcare.com.au in /pub/ppp.

Clifford Kite