• Telnet/Rlogin speed?

    From Kirkman@GUARDIAN to All on Friday, May 18, 2018 13:31:06
    Is there a way in JS to detect the speed of a telnet or RLogin connection?

    I see that there's system.node_list[0].connection, but this seems to always return 65534 if I connect by telnet, even if I set SyncTerm to 19,200bps.

    Same thing if I connect with an old Atari ST using a Lantronix telnet-to-serial device at 19.2.

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    ■ Synchronet
  • From Nightfox@DIGDIST to Kirkman on Friday, May 18, 2018 13:26:15
    Re: Telnet/Rlogin speed?
    By: Kirkman to All on Fri May 18 2018 01:31 pm

    Is there a way in JS to detect the speed of a telnet or RLogin connection?

    I see that there's system.node_list[0].connection, but this seems to always return 65534 if I connect by telnet, even if I set SyncTerm to 19,200bps.

    I'm not sure if there's a way to detect the connection speed, but regarding SyncTerm, I would guess that its speed is just simulated in that it probably still sends and receives at full speed and just simulates displaying the data at a slower speed.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Android8675@SHODAN to Kirkman on Monday, May 21, 2018 08:27:40
    Re: Telnet/Rlogin speed?
    By: Android8675 to Kirkman on Mon May 21 2018 08:20 am

    I see that there's system.node_list[0].connection, but this seems to
    always return 65534 if I connect by telnet, even if I set SyncTerm
    to 19,200bps.

    Same thing if I connect with an old Atari ST using a Lantronix
    telnet-to-serial device at 19.2.

    So if you're connected on Syncterm you'll get data as fast as possible.

    Syncterm can be throttled to simulate different speeds

    (Sorry, saved prematurely.) ...using ANSI codes.

    I actually looked this up and figured it all out, but couldn't get them to work by just inserting them into .ans file or .asc files.

    So, eChicken gave me the .js code to change speeds. I modified my logon.js so when it displayed ansi it would slow down, but then return to normal speeds for message viewing. I still need to tweak it a bit, but it's getting there.

    Crap, my remote to my BBS isn't working at the moment. I'll get the code if you want it, not too complicated. as i recal you have to load ansi.js to get the function. Maybe look there?
    --
    Android8675@ShodansCore



    ... Sow your wild oats on Saturday night, then on Sunday pray for crop failure

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
  • From Android8675@SHODAN to Kirkman on Monday, May 21, 2018 08:43:03
    Re: Telnet/Rlogin speed?
    By: Android8675 to Kirkman on Mon May 21 2018 08:27 am


    Crap, my remote to my BBS isn't working at the moment. I'll get the code if you want it, not too complicated. as i recal you have to load ansi.js to get the function. Maybe look there?

    Found the code:

    var Ansi = load({}, "ansiterm_lib.js");
    var cterm = load({}, "cterm_lib.js");

    // If the terminal is any version of SyncTERM
    if (typeof console.cterm_version != 'undefined') {
    Ansi.send("speed", "set", 8);
    // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
    // 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200

    // Reset to normal speed
    if (typeof console.cterm_version != 'undefined') {
    Ansi.send("speed", "clear");

    --
    Dunno if this will do it for you, it doesn't really slow down your bbs, just slows down the terminal.
    --
    Android8675@ShodansCore



    ... Alimony: Bounty after the mutiny

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
  • From Kirkman@GUARDIAN to Nightfox on Monday, May 21, 2018 12:20:44
    Re: Telnet/Rlogin speed?
    By: Nightfox to Kirkman on Fri May 18 2018 01:26 pm

    Is there a way in JS to detect the speed of a telnet or RLogin
    connection?

    I'm not sure if there's a way to detect the connection speed, but regarding SyncTerm, I would guess that its speed is just simulated in that it probably still sends and receives at full speed and just simulates displaying the data at a slower speed.

    Sure, I imagine both SyncTerm and a Lantronix box are probably simulating the slower speed in some way, but surely there's a way that could be
    measured or detected by the BBS, right?

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    ■ Synchronet
  • From Kirkman@GUARDIAN to Android8675 on Monday, May 21, 2018 13:00:25
    Re: Telnet/Rlogin speed?
    By: Android8675 to Kirkman on Mon May 21 2018 08:43 am

    // If the terminal is any version of SyncTERM
    if (typeof console.cterm_version != 'undefined') {
    Ansi.send("speed", "set", 8);
    // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
    // 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800,
    115200

    // Reset to normal speed
    if (typeof console.cterm_version != 'undefined') {
    Ansi.send("speed", "clear");
    --
    Dunno if this will do it for you, it doesn't really slow down your bbs, just slows down the terminal.

    This is not *quite* what I'm asking for, but it's in the right direction.

    I don't want to slow the terminal down, but instead to find out if
    the user's telnet connection is ALREADY slowed down either because the user changed the speed of SyncTerm, or they are using a Lantronix connected to a retrocomputer.

    Now that you've posted that code, I'm guessing the cterm library may have a method that returns the terminal's current speed?

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    ■ Synchronet
  • From Nightfox@DIGDIST to Kirkman on Monday, May 21, 2018 12:52:28
    Re: Telnet/Rlogin speed?
    By: Kirkman to Nightfox on Mon May 21 2018 12:20 pm

    Sure, I imagine both SyncTerm and a Lantronix box are probably simulating the slower speed in some way, but surely there's a way that could be measured or detected by the BBS, right?

    Possibly, if the terminal communicates to the BBS that it's simulating the speed.. I'm not sure if the terminals are currently doing that. If that feature exists, ideally I'd think it would be part of the protocol (Telnet, RLogin, SSH, etc.), but I'm not sure if that's true (and at this point I'm doubting it).

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Bill McGarrity@TEQUILAM to Kirkman on Monday, May 21, 2018 18:34:00
    Kirkman wrote to Android8675 on 05-21-18 13:00 <=-

    Re: Telnet/Rlogin speed?
    By: Android8675 to Kirkman on Mon May 21 2018 08:43 am

    // If the terminal is any version of SyncTERM
    if (typeof console.cterm_version != 'undefined') {
    Ansi.send("speed", "set", 8);
    // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
    // 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800,
    115200

    // Reset to normal speed
    if (typeof console.cterm_version != 'undefined') {
    Ansi.send("speed", "clear");
    --
    Dunno if this will do it for you, it doesn't really slow down your bbs, just slows down the terminal.

    This is not *quite* what I'm asking for, but it's in the right
    direction.

    I don't want to slow the terminal down, but instead to find out if
    the user's telnet connection is ALREADY slowed down either because the user changed the speed of SyncTerm, or they are using a Lantronix connected to a retrocomputer.

    Now that you've posted that code, I'm guessing the cterm library may
    have a method that returns the terminal's current speed?

    The only thing I could come up with is the following:

    system.node_list.connection which is the connection speed. I'm not sure if thats controlled by the client or the system itself.


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    ■ Synchronet ■ TequilaMockingbird Online - Toms River, NJ
  • From Digital Man to Kirkman on Monday, May 21, 2018 16:50:39
    Re: Telnet/Rlogin speed?
    By: Kirkman to All on Fri May 18 2018 01:31 pm

    Is there a way in JS to detect the speed of a telnet or RLogin connection?

    No. Unlike in the old days of the circuit-switched telephone network where you could get a guaranteed consistent rate, there's no equivalent over the Internet where through-put of an individual TCP session (e.g. Telnet, RLogin) can change at any time depending on an unbounded number of factors.

    So even if you could somehow test the connection and determine its speed upon connect, it would likely change (up and down) later. RLogin does include an optional terminal speed field, but its not really relevant or useful over the Internet.

    I see that there's system.node_list[0].connection, but this seems to always return 65534 if I connect by telnet, even if I set SyncTerm to 19,200bps.

    Yes. SyncTerm just emulates the speed (upon display of receive data), it still sends and receives at whatever the maximum through-put of the TCP/IP connection is.

    Same thing if I connect with an old Atari ST using a Lantronix telnet-to-serial device at 19.2.

    Point-to-point serial connections have a fixed maximum throughout (DCE rate) while packet connections of inter-connected WANs (the Internet) do not.

    digital man

    Synchronet/BBS Terminology Definition #15:
    DOS = Disk Operating System (as in PC-DOS and MS-DOS)
    Norco, CA WX: 62.3°F, 73.0% humidity, 10 mph E wind, 0.00 inches rain/24hrs
  • From Kirkman@GUARDIAN to Digital Man on Monday, May 21, 2018 21:21:31
    Re: Telnet/Rlogin speed?
    By: Digital Man to Kirkman on Mon May 21 2018 04:50 pm

    So even if you could somehow test the connection and determine its speed upon connect, it would likely change (up and down) later. RLogin does include an optional terminal speed field, but its not really relevant or useful over the Internet.

    I guess what I'm looking for is not necessarily an exact bits-per-second, but just the difference between someone who's connecting over telnet with a Lantronix at 57.6k or slower, versus someone using a plain terminal at normal telnet speeds.

    Is there an ANSI sequence I could send through Javascript that returns an automatic response from the remote terminal, and I could time that?

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    ■ Synchronet
  • From Android8675@SHODAN to Kirkman on Tuesday, May 22, 2018 11:44:25
    Re: Telnet/Rlogin speed?
    By: Kirkman to Android8675 on Mon May 21 2018 01:00 pm

    This is not *quite* what I'm asking for, but it's in the right direction.

    Now that you've posted that code, I'm guessing the cterm library may have a method that returns the terminal's current speed?

    Possibly? I'm sure someone could chime in, I just gather snippits of code from eC. Haven't gotten the stamina to actually learn proper js, but if I ever get a lot of free time, it's high on my list.

    -A.
    --
    Android8675@ShodansCore



    ... RAM = Rarely Adequate Memory

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
  • From Digital Man to Kirkman on Tuesday, May 22, 2018 15:56:33
    Re: Telnet/Rlogin speed?
    By: Kirkman to Nightfox on Mon May 21 2018 12:20 pm

    Re: Telnet/Rlogin speed?
    By: Nightfox to Kirkman on Fri May 18 2018 01:26 pm

    Is there a way in JS to detect the speed of a telnet or RLogin
    connection?

    I'm not sure if there's a way to detect the connection speed, but regarding SyncTerm, I would guess that its speed is just simulated in that it probably still sends and receives at full speed and just simulates displaying the data at a slower speed.

    Sure, I imagine both SyncTerm and a Lantronix box are probably simulating the slower speed in some way,

    I doubt that. Deuce created an ANSI-like escape sequence that the BBS sends to the terminal to control the display rate. It'd be quite a surprise if the Lantronix box used the same method.

    but surely there's a way that could be measured or detected by the BBS, right?

    We might be able to query the current emulated display rate in SyncTERM from the BBS, but that would only work with SyncTERM and only certain versions.

    digital man

    This Is Spinal Tap quote #38:
    Artie Fufkin: I'm not asking, I'm telling with this. Kick my ass.
    Norco, CA WX: 66.5°F, 63.0% humidity, 14 mph NE wind, 0.00 inches rain/24hrs
  • From Digital Man to Kirkman on Tuesday, May 22, 2018 16:02:43
    Re: Telnet/Rlogin speed?
    By: Kirkman to Digital Man on Mon May 21 2018 09:21 pm

    Re: Telnet/Rlogin speed?
    By: Digital Man to Kirkman on Mon May 21 2018 04:50 pm

    So even if you could somehow test the connection and determine its speed upon connect, it would likely change (up and down) later. RLogin does include an optional terminal speed field, but its not really relevant or useful over the Internet.

    I guess what I'm looking for is not necessarily an exact bits-per-second, but just the difference between someone who's connecting over telnet with a Lantronix at 57.6k or slower, versus someone using a plain terminal at normal telnet speeds.

    But there's no such thing as "normal telnet speeds". :-(

    Is there an ANSI sequence I could send through Javascript that returns an automatic response from the remote terminal, and I could time that?

    There's the ANSI cursor position report - but that's not a lot of data sent back by the client: http://ansi-bbs.org/ansi-bbs2/control_seqs/

    digital man

    Synchronet "Real Fact" #77:
    Rob Swindell still has dozens of BBS-related magazines in his possession. Norco, CA WX: 66.4°F, 63.0% humidity, 4 mph ESE wind, 0.00 inches rain/24hrs
  • From Vk3jed@FREEWAY to Digital Man on Tuesday, May 22, 2018 19:07:00
    Digital Man wrote to Kirkman <=-

    Is there a way in JS to detect the speed of a telnet or RLogin connection?

    No. Unlike in the old days of the circuit-switched telephone network
    where you could get a guaranteed consistent rate, there's no equivalent over the Internet where through-put of an individual TCP session (e.g. Telnet, RLogin) can change at any time depending on an unbounded number
    of factors.

    Even the endpoints are likely operating at different speeds - my fixed systems (including the BBSs) run at 100Mbps on the LAN, and my Internet speed is 100M down, 40 up. Each user will be running at different speeds, and on top of that, each path has an effective throughput that varies, depending on the path packets take and the amount of traffic at the time. It's quite instructive to do an Internet speed test at a server on the other side of the world. Ahile I may get up to 80 Mbps from the nearest servers, I only get 3-5Mbps from servers in continental Europe.

    So, that's a long winded way of backing up your comment DM. D


    ... Thesaurus: ancient reptile with an excellent vocabulary
    --- MultiMail/Win32 v0.49
    ■ Synchronet ■ Freeway BBS, Bendigo Australia. freeway.apana.org.au
  • From Kirkman@GUARDIAN to Vk3jed on Wednesday, May 23, 2018 09:52:16
    Re: Re: Telnet/Rlogin speed?
    By: Vk3jed to Digital Man on Tue May 22 2018 07:07 pm

    It's quite instructive to do an Internet speed test at a server on the other side of the world. Ahile I may get up to 80 Mbps from the nearest servers, I only get 3-5Mbps from servers in continental Europe.

    Fair point, but 3-5Mbps is still an order of magnitude beyond a
    retrocomputer on a Lantronix at 57.6 or 19.2 kbps.

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    ■ Synchronet
  • From Vk3jed@FREEWAY to Kirkman on Thursday, May 24, 2018 14:14:00
    Kirkman wrote to Vk3jed <=-

    It's quite instructive to do an Internet speed test at a server on the other side of the world. Ahile I may get up to 80 Mbps from the nearest servers, I only get 3-5Mbps from servers in continental Europe.

    Fair point, but 3-5Mbps is still an order of magnitude beyond a retrocomputer on a Lantronix at 57.6 or 19.2 kbps.

    True, but it's also conceivable that domestic - domestic paths are slower. Remember, that test was to a high bandwidth server, not a home DSL connection.


    ... A bird in the hand's better than one overhead.
    --- MultiMail/Win32 v0.49
    ■ Synchronet ■ Freeway BBS, Bendigo Australia. freeway.apana.org.au
  • From echicken@ECBBS to Android8675 on Saturday, June 02, 2018 01:08:08
    Re: Telnet/Rlogin speed?
    By: Android8675 to Kirkman on Mon May 21 2018 08:27:40

    So, eChicken gave me the .js code to change speeds. I modified my logon.js

    I'm late in replying to this, but FWIW there are now some JS libraries in CVS that will help with this. I believe the relevant stuff is in exec/load/ansiterm_lib.js.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From Android8675@SHODAN to echicken on Monday, June 04, 2018 08:00:32
    Re: Telnet/Rlogin speed?
    By: echicken to Android8675 on Sat Jun 02 2018 01:08 am

    So, eChicken gave me the .js code to change speeds. I modified my
    logon.js

    I'm late in replying to this, but FWIW there are now some JS libraries in CVS that will help with this. I believe the relevant stuff is in exec/load/ansiterm_lib.js.

    Weekend Project! (Or maybe slow workday project!)
    --
    Android8675@ShodansCore



    ... All right, so I like spending money! But name one other extravagance.

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com