17 September 2013, 01:48 | #1 |
Registered User
Join Date: May 2007
Location: winnipeg
Posts: 358
|
convert cps to kbps
Like the title says.. Is there a formula for it? Just wondering because i randomly tried a 3meg file off aminet and it was bouncing from 32000 cps to about 46000 cps in ibrowse.
lost |
17 September 2013, 09:56 | #2 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
|
presuming cps is characters per second and kbps is kilobits per second, that question is impossible to answer without knowing what protocol you're talking about.
|
23 September 2013, 22:18 | #3 | |
Registered User
Join Date: Jul 2007
Location: Earth
Posts: 199
|
Quote:
with transferspeeds 1 kilobit=1000 bits (with datastorage 1 kilobit=1024 bits). edit: so roughly you can say: (cps x 8) / 1000 = kbps Last edited by Mozzerfan; 23 September 2013 at 22:38. |
|
23 September 2013, 23:05 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Like hooverphonique wrote, you have to take protocol overhead into account. For http over TCP/IP through ADSL you may calculate ca. 10 bits per character. Therefore the right formula would be cps * 10 / 1000 = kbps. Or the other way round bps / 10 = cps.
|
24 September 2013, 01:40 | #5 | |
Registered User
Join Date: Jul 2007
Location: Earth
Posts: 199
|
Quote:
I just tested this on my a4000/060 with x-surf2 and adsl with 3 different downloads (I timed them with a stopwatch) , and my calculation was pretty close. edit: First I converted the cps average Ibrowse gave at the end of the download to kbps (by your calculation and my calculation). Then I calculated the filesize in kilobits and divided that by the calculated kbps. Then you have the number of seconds it takes to download the file. My calculation wasn't too far off. With your calculation, all 3 downloads were a few seconds off.IMHO tcp overhead in this case doesn't matter. The downloadspeed is already calculated by Ibrowse. It's only in cps. Lost_loven just wants to know what that is in kbps. With my calculation you get the downloadspeed Ibrowse calculated in kbps, without having to take tcp overhead into account. Last edited by Mozzerfan; 24 September 2013 at 06:16. |
|
24 September 2013, 08:32 | #6 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Ok, we are talking about apples and oranges.
Of course if you transfer a file, then the file will arrive at the same size. A file of 1024 bytes consists of 8192 bits and thus you transfer 8192 bits of user data. But the line needs some more capacity because of protocol overhead. If your ISP says your internet line is 16 MBit per second, then you get only ca. 1.6 MByte per second file download speed and not 2 MByte as your formula expects. In the same manner if you see a file transferred with 32 KByte per second, then you can expect your line to have 320 KBit per second and not 256 KBit per second as with your formula. The transmission size increases on the lower protocol levels. At the highest level (where you looked at) the file size certainly remains the same. But to transfer one byte user data the line has to carry ca. 10 bits. The additional 2 bits are filtered out by the protocol stack at the receiving side. They are used for error recognition, packet ordering and so on. |
24 September 2013, 09:14 | #7 |
Registered User
Join Date: Jul 2007
Location: Earth
Posts: 199
|
@Thomas
I understand, so when Ibrowse calculates the download speed, the tcp overhead is already included. It's just that the downloadspeed is expressed in cps. Or am I seeing it wrong? BTW:When using your formula, when converting the filesize to kilobits i have to take the extra 2 bits in account. That's what I didn't do the first time. Last edited by Mozzerfan; 24 September 2013 at 10:20. |
24 September 2013, 13:01 | #8 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Yes, but overhead is excluded. IBrowse only counts user data, it does not see protocol data. It only calls send and recv functions of bsdsocket.library. The library manages the protocol. There might be even more to add on the hardware side. For example a serial connection adds parity and stop bits. I am sure ethernet does something similar.
|
24 September 2013, 14:41 | #9 |
Registered User
Join Date: Dec 2011
Location: Northamptonshire, UK
Age: 42
Posts: 1,236
|
|
24 September 2013, 14:58 | #10 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
cps / 100 would suffice. cps / 10 is wrong.
cps * 10 / 1000 explains what is done: cps * 10 = bps bps / 1000 = kbps cps = characters (bytes) per second user data bps = bits per second raw transfer data (= user data + protocol overhead) kbps = kilo bits per second (1000 bits per second) Last edited by thomas; 24 September 2013 at 15:03. |
24 September 2013, 15:01 | #11 |
Registered User
Join Date: Dec 2011
Location: Northamptonshire, UK
Age: 42
Posts: 1,236
|
d'oh missed a zero!
|
25 September 2013, 01:39 | #12 |
Registered User
Join Date: May 2007
Location: winnipeg
Posts: 358
|
So then say in Ibrowse i download something in at in around 38000cps.
Then it would look like this. 38000 x10/1000=380. answer being 380kbs then lost |
25 September 2013, 03:38 | #13 | |||
Registered User
Join Date: Jul 2007
Location: Earth
Posts: 199
|
Quote:
If so, is it then correct to say that (cps ibrowse) + 25% overhead=(cps ibrowse) x 10 /1000 ? Edit: Because if that formula is correct, my formula (cps ibrowse)=(cps ibrowse) x 8 /1000 is correct. All one has to know is if speed from ibrowse is with or without overhead. So my formula always goes. Even when ibrowse would include the 25% overhead the formula goes, because the number of cps would be higher. That what I was trying to tell you in my previous post. So I guess I'm not the one talking apples and oranges, I'm just trying to do simple math. Quote:
Quote:
cps+ 12,5% overhead = cpsx9/1000. Tcp overhead percentage depends on all kinds of factors and could be different (like hooverphonique said). But let's say for your system Thomas' assumption was right and tcp overhead is 25% , then the REAL downloadspeed would be 380 kbps. But then the speed ibrowse reports should also be recalculated, because the REAL downloadspeed ibrowse should report would be: 38000 + (38000/4)=47500 cps. Last edited by Mozzerfan; 25 September 2013 at 21:52. |
|||
25 September 2013, 04:34 | #14 |
Registered User
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 74
|
Slightly off topic, but I downloaded a 2.3MB file from Aminet using may A4000T and my new X-Surf 100 card using A-WEB II. Once the transfer got going, A-WEB II reported speeds between 72,000 CPS and 79,000 CPS. I never got speeds that high with the original X-Surf card.
|
25 September 2013, 04:43 | #15 | |
Registered User
Join Date: Jul 2007
Location: Earth
Posts: 199
|
Quote:
Last edited by Mozzerfan; 27 September 2013 at 08:20. |
|
25 September 2013, 04:46 | #16 |
Registered User
Join Date: May 2007
Location: winnipeg
Posts: 358
|
|
25 September 2013, 04:47 | #17 | |
Registered User
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 74
|
Quote:
I'd have to download the same file in both Ibrowse and A-Web II to be sure they are reporting the same statistic. |
|
25 September 2013, 04:51 | #18 |
Registered User
Join Date: May 2007
Location: winnipeg
Posts: 358
|
nevermind.. didn't sink in xsurf 2 ... but still 555000 wow.. i better take a look at my set up again and see if something can be tweaked.
lost |
25 September 2013, 04:58 | #19 |
Registered User
Join Date: Jul 2007
Location: Earth
Posts: 199
|
@lost_loven
I have an 8 mbit adsl-connection. Try downloading something from os4depot.net. The speed is usually very good there. On aminet I'm not getting this speed with every download. With the xsurf2 I'm using the latest driver from Individual computers. edit: Forgot to mention I'm using Roadshow. Last edited by Mozzerfan; 25 September 2013 at 05:34. |
25 September 2013, 05:51 | #20 |
Registered User
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 74
|
I'm using MiamiDX.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to convert IPF to ADF? | caius | project.SPS (was CAPS) | 39 | 03 June 2014 15:51 |
copy protections hacking on CPS-1 hardware | dlfrsilver | Retrogaming General Discussion | 12 | 06 January 2013 14:16 |
[req] ECS EoB data (CPS etc) extractor on Windows | Marcuz | project.Amiga Game Factory | 18 | 25 August 2009 11:40 |
How to convert a 72 simm to 64 | Yoto | support.Hardware | 16 | 16 March 2009 20:24 |
Unpack/Convert DMF? | Photon | support.Demos | 8 | 21 November 2006 14:51 |
|
|