google / transperf Goto Github PK
View Code? Open in Web Editor NEWa tool for testing transport protocol performance over emulated network scenarios
License: Apache License 2.0
a tool for testing transport protocol performance over emulated network scenarios
License: Apache License 2.0
python transperf.zip -v -x -c sample_config/4bbr_50M_40ms_BDP.py --virtcleanup --ssrv host1 root@rcv root@snd1 root@snd2
When run in single-server mode, does transperf handle the creation of rcv, snd1 and sn2 namespaces too or do they have to be created by the user?
I was trying Setup local machine and all worked fine except that I got one Error:
$ sudo apt install python-scapy wireshark tcptrace autoconf texinfo git build-essential rsync
python3-scapy
E: Package 'python-scapy' has no installation candidate
After that I got the the build failed.
rohit@rohit:~/netperf$ sudo make install
Making install in src
make[1]: Entering directory '/home/rohit/netperf/src'
Making install in missing
make[2]: Entering directory '/home/rohit/netperf/src/missing'
Making install in m4
make[3]: Entering directory '/home/rohit/netperf/src/missing/m4'
make[4]: Entering directory '/home/rohit/netperf/src/missing/m4'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/rohit/netperf/src/missing/m4'
make[3]: Leaving directory '/home/rohit/netperf/src/missing/m4'
make[3]: Entering directory '/home/rohit/netperf/src/missing'
make[4]: Entering directory '/home/rohit/netperf/src/missing'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/rohit/netperf/src/missing'
make[3]: Leaving directory '/home/rohit/netperf/src/missing'
make[2]: Leaving directory '/home/rohit/netperf/src/missing'
make[2]: Entering directory '/home/rohit/netperf/src'
gcc -DHAVE_CONFIG_H -I. -I.. -MT netlib.o -MD -MP -MF .deps/netlib.Tpo -c -o netlib.o netlib.c
netlib.c: In function ‘netperf_sendfile’:
netlib.c:806:11: warning: implicit declaration of function ‘sendfile’ [-Wimplicit-function-declaration]
806 | len=sendfile(send_socket,
| ^~~~~~~~
netlib.c: In function ‘bind_to_specific_processor’:
netlib.c:2344:9: warning: implicit declaration of function ‘sched_setaffinity’; did you mean ‘SYS_sched_setaffinity’? [-Wimplicit-function-declaration]
2344 | if (sched_setaffinity(getpid(), len, &netperf_cpu_set)) {
| ^~~~~~~~~~~~~~~~~
| SYS_sched_setaffinity
netlib.c: In function ‘get_id’:
netlib.c:3457:10: warning: ‘%-15s’ directive output may be truncated writing between 15 and 64 bytes into a region of size between 16 and 65 [-Wformat-truncation=]
3457 | "%-15s%-15s%-15s%-15s%-15s",
| ^~~~~
3458 | system_name.sysname,
3459 | system_name.nodename,
| ~~~~~~~~~~~~~~~~~~~~
netlib.c:3447:2: note: ‘snprintf’ output between 76 and 321 bytes into a destination of size 80
3447 | snprintf(id_string, sizeof(id_string),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3448 | #ifdef WIN32
| ~~~~~~~~~~~~
3449 | "%-15s%-15s%d.%d%d",
| ~~~~~~~~~~~~~~~~~~~~
3450 | "Windows NT",
| ~~~~~~~~~~~~~
3451 | system_name ,
| ~~~~~~~~~~~~~
3452 | GetVersion() & 0xFF ,
| ~~~~~~~~~~~~~~~~~~~~~
3453 | GetVersion() & 0xFF00 ,
| ~~~~~~~~~~~~~~~~~~~~~~~
3454 | SystemInfo.dwProcessorType
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
3455 |
|
3456 | #else
| ~~~~~
3457 | "%-15s%-15s%-15s%-15s%-15s",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3458 | system_name.sysname,
| ~~~~~~~~~~~~~~~~~~~~
3459 | system_name.nodename,
| ~~~~~~~~~~~~~~~~~~~~~
3460 | system_name.release,
| ~~~~~~~~~~~~~~~~~~~~
3461 | system_name.version,
| ~~~~~~~~~~~~~~~~~~~~
3462 | system_name.machine
| ~~~~~~~~~~~~~~~~~~~
3463 | #endif /* WIN32 */
| ~~~~~~~~~~~~~~~~~~
3464 | );
| ~
mv -f .deps/netlib.Tpo .deps/netlib.Po
gcc -DHAVE_CONFIG_H -I. -I.. -MT netsh.o -MD -MP -MF .deps/netsh.Tpo -c -o netsh.o netsh.c
mv -f .deps/netsh.Tpo .deps/netsh.Po
gcc -o netperf netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o nettest_omni.o net_uuid.o dscp.o netcpu_procstat.o -lm
/usr/bin/ld: nettest_omni.o:(.bss+0x0): multiple definition ofinterval_count'; nettest_bsd.o:(.bss+0x4c): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x20): multiple definition of
signal_set'; nettest_bsd.o:(.bss+0x60): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x2a8): multiple definition ofloc_nodelay'; nettest_bsd.o:(.bss+0x20): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2ac): multiple definition of
rem_nodelay'; nettest_bsd.o:(.bss+0x24): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x2b0): multiple definition ofloc_sndavoid'; nettest_bsd.o:(.bss+0x30): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2b4): multiple definition of
loc_rcvavoid'; nettest_bsd.o:(.bss+0x34): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x2b8): multiple definition ofrem_sndavoid'; nettest_bsd.o:(.bss+0x38): first defined here /usr/bin/ld: nettest_omni.o:(.bss+0x2bc): multiple definition of
rem_rcvavoid'; nettest_bsd.o:(.bss+0x3c): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:420: netperf] Error 1
make[2]: Leaving directory '/home/rohit/netperf/src'
make[1]: *** [Makefile:474: install-recursive] Error 1
make[1]: Leaving directory '/home/rohit/netperf/src'
make: *** [Makefile:375: install-recursive] Error 1
I encountered some problems when installing Transperf on Ubuntu 20.04.
What should I do if there is no 90-google.conf in etc/ rsyslog.d and no sshd_config in /etc/ssh/.
If I look at Quick start - Multi server mode
example from readme
$ python transperf.zip -v -x -c sample_config root@host1 root@host2 root@host3
which node is sender vs which one is receiver our of host1, host2 and host3?
I assume sender nodes are the ones we are testing from transport protocol performance pov.
A little more clarity in documentation could help. :-)
It'd be useful to explain the need of a bonding device on the receiver.
Where is traffic shaping with netem being done if I have a client and a server?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.