If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:epi ttcp

From BoxMatrix


BoxMatrix >> Shell-Commands >> epi_ttcp @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Chipset-Command

Goto:   Examples  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

epi_ttcp is a tool to test TCP and UDP performance. Originally the project is called ttcp.

The source could not be located on the GPL-Browser but there's a Github repo contaiining it.

See also the ttcp(1) man page.

7581 fw 7.17:

root@fritz:/var/mod/root# epi_ttcp

  Usage: ttcp -t [-options] host [ < in ]    ttcp -r [-options > out]
Example: ttcp -t -s -v -n100 host            ttcp -r -s -v -n100

Common options:
    -V      prints version number and date of last modification
    -L      create and append all results to a file named ttcp_log
    -h      more help
    -l ##   length of bufs read from or written to network (default 8192,
            max 65535)
    -u      use UDP instead of TCP
    -p ##   port number to send to or listen at (default 5001)
    -P ##   link-layer priority (default 0)
    -s      (ttcp -t) : source a pattern to network
            (ttcp -r) : sink (discard) all data from network
    -A ##   align the start of buffers to this modulus (default 16384)
    -O ##   start buffers at this offset from the modulus (default 0)
    -v      verbose: print more statistics
    -d      set SO_DEBUG socket option
    -b ##   set socket buffer size (if supported)
    -f X    format for rate: b,B = bits, bytes k,K = kilo{bits,bytes};
                             m,M = mega{bits,bytes}; g,G = giga{bits,bytes}
    -w ##   set timeout value (in milliseconds) to exit if no receive data or tcp connect

Options specific to (ttcp -t) :
    -n ##   number of source bufs written to network (default 2048)
    -x      use random data in tcp/udp frames (-I provides seed)
    -D      don't buffer TCP writes (sets TCP_NODELAY socket option)
    -H      print hash marks to indicate progress, one per buffer
    -# ##   number of buffers to send between hash marks (implies -H)
    -I      init/seed value for RNG when sending random size bufs (default 1)
    -N ##   number of source bufs per burst, i.e between sleeps (default 1)
    -R ##   send random size buffers with minimum size specified, max size
            is value of -l option
    -S ##   millisecs between bursts (10ms resolution)

Options specific to (ttcp -r) :
    -B      for -s, only output full blocks as specified by -l (for TAR)
    -T      "touch": access each byte as it's read
    -i      report information on out of order sequence numbers

Examples

7581 fw 7.17:

Server (receiver):

root@fritz:/var/mod/root# epi_ttcp -r -s -v -n100000

ttcp-r: buflen=8192, nbuf=100000, align=16384/0, port=5010
ttcp-r: start time Sun Jan  4 02:40:38 1970
ttcp-r: File-Descriptor 0x3 Opened
sockbufsndsize=16384, sockbufrcvsize=87380, sockbufsize=51882, 
# tcp receiver #
ttcp-r: accept from 127.0.0.1

ttcp-r: 819200000 bytes in 2.867752 real seconds = 272.426 MB/sec +++
ttcp-r: 819200000 bytes in 2.851000 cpu  seconds = 274.027 MB/cpu sec
ttcp-r: 100059 I/O calls, 0.029 msec(real)/call, 0.028 msec(cpu)/call
ttcp-r: 0.054000user 2.797000sys 0:02real 99.4% 0i+0d 570maxrss 0+0pf 247+543csw
ttcp-r: buffer address 0x144c000
ttcp-r: File-Descriptor  fd 0x4 Closed
ttcp done.

root@fritz:/var/mod/root# epi_ttcp -r -s -v -n100000

ttcp-r: buflen=8192, nbuf=100000, align=16384/0, port=5010
ttcp-r: start time Sun Jan  4 02:42:45 1970
ttcp-r: File-Descriptor 0x3 Opened
sockbufsndsize=16384, sockbufrcvsize=87380, sockbufsize=51882, 
# tcp receiver #
ttcp-r: accept from 192.168.178.1

ttcp-r: 819200000 bytes in 6.079790 real seconds = 128.500 MB/sec +++
ttcp-r: 819200000 bytes in 5.989000 cpu  seconds = 130.447 MB/cpu sec
ttcp-r: 100002 I/O calls, 0.061 msec(real)/call, 0.060 msec(cpu)/call
ttcp-r: 0.061000user 5.928000sys 0:06real 98.5% 0i+0d 568maxrss 0+0pf 19+786csw
ttcp-r: buffer address 0x2b4000
ttcp-r: File-Descriptor  fd 0x4 Closed
ttcp done.

Client (sender):

root@fritz:/var/mod/root# epi_ttcp -t -s -v -n100000 localhost

ttcp-t: buflen=8192, nbuf=100000, align=16384/0, port=5010
ttcp-t: start time Sun Jan  4 02:40:48 1970
ttcp-t: File-Descriptor 0x3 Opened
sockbufsndsize=16384, sockbufrcvsize=87380, sockbufsize=51882, 
# tcp sender -> localhost #

ttcp-t: 819200000 bytes in 2.848991 real seconds = 274.220 MB/sec +++
ttcp-t: 819200000 bytes in 1.172000 cpu  seconds = 666.596 MB/cpu sec
ttcp-t: 100000 I/O calls, 0.028 msec(real)/call, 0.012 msec(cpu)/call
ttcp-t: 0.033000user 1.139000sys 0:02real 41.1% 0i+0d 730maxrss 0+0pf 443+550csw
ttcp-t: buffer address 0x2cc000
ttcp-t: File-Descriptor  fd 0x3 Closed
ttcp done.

root@fritz:/var/mod/root# epi_ttcp -t -s -v -n100000 192.168.178.1

ttcp-t: buflen=8192, nbuf=100000, align=16384/0, port=5010
ttcp-t: start time Sun Jan  4 02:43:05 1970
ttcp-t: File-Descriptor 0x3 Opened
sockbufsndsize=16384, sockbufrcvsize=87380, sockbufsize=51882, 
# tcp sender -> 192.168.178.1 #

ttcp-t: 819200000 bytes in 6.065381 real seconds = 128.805 MB/sec +++
ttcp-t: 819200000 bytes in 4.704000 cpu  seconds = 166.082 MB/cpu sec
ttcp-t: 100000 I/O calls, 0.061 msec(real)/call, 0.047 msec(cpu)/call
ttcp-t: 0.060000user 4.644000sys 0:06real 77.6% 0i+0d 672maxrss 0+0pf 339+1653csw
ttcp-t: buffer address 0x818000
ttcp-t: File-Descriptor  fd 0x3 Closed
ttcp done.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-03-28 07:36 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib libc.so 2 6.54 - 7.17 Standard C library Linux
1 dependency for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-03-28 15:46 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 7581 6.54 - 7.16 /bin 26.8k - 27.2k
FRITZ!Box 7582 6.83 - 7.17 /bin 26.8k - 27.2k
2 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-03-28 07:36 GMT.

Firmware Symbol
6.54 - 7.17 err
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.