Sponsored Content
Full Discussion: Help need a sample program
Top Forums Programming Help need a sample program Post 302361248 by magnetpest2k7 on Monday 12th of October 2009 06:27:13 PM
Old 10-12-2009
Help need a sample program

Hi all,

Can some one provide me a sample program which measures the performance (both latency and throughput) of TCP and UDP protocol
 

9 More Discussions You Might Find Interesting

1. Programming

How compile sample libxslt program?

What are the command I use to compile the sample program at the bottom of the page of http://xmlsoft.org/XSLT/tutorial/libxslttutorial.html? Here are my attempts: g++ -c libxslt_tutorial.cpp -I/usr/include/libxml2 g++ libxslt_tutorial.o -l xslt -l xml Here are the errors I get when I try... (1 Reply)
Discussion started by: siegfried
1 Replies

2. Shell Programming and Scripting

Sample FOR loop question

This sample script should obtain a list of files in my home directory: #!/bin/bash # Manipulate files and copy to my home directory # for FILE in $HOME/.bash* do cp $FILE ${HOME}/public_html chmod a+r ${HOME}/public_html/${FILE} done Unfortunately it only produces an error: ... (4 Replies)
Discussion started by: kp400sf
4 Replies

3. Shell Programming and Scripting

How do I do this: -$: sample.sh <INPUT>

I apologize for the confusing title .. What I want to do is write a script that pulls specific input from the command line (after the script name) rather than from within the script. Example: -$: howfarbetween.sh Montreal Chicago Where the script would run based on the inputs of the two... (3 Replies)
Discussion started by: jmvbxx
3 Replies

4. UNIX for Dummies Questions & Answers

Sample scripts

Hi All' I'm a newbe, and just is started to learn unix. Where can I find a complete sample scripts? I looking for a sample scripts which log in at another unix host and and execute another script server side. Any input welcome (5 Replies)
Discussion started by: ioniCoder
5 Replies

5. AIX

Sample C program to Send/Recieve a file using Socket

Hi All, I urgently need a Sample C program to Send/Recieve a file using Socket. Thanks Sara (1 Reply)
Discussion started by: saraperu
1 Replies

6. Shell Programming and Scripting

Sample Practical

Hello Today I had a beautiful test to write some commands using Ubuntu, now I want to make sure of my answers to be reassured, if I had a mistake please correct me List all files details under ubuntu Desktop. my answer: cd Desktop |ls -l Navigate to your Desktop directory and... (7 Replies)
Discussion started by: S4K
7 Replies

7. Shell Programming and Scripting

AWK sample variance

I would like to calculate 1/n In awk, I wrote the following line for the sigma summation: { summ+=($1-average)^2 } Full code: BEGIN { Print "This script calculate error estimates"; sum=0 } { sum+=$1; n++ } END { average = sum/n } BEGIN { summ=0 } { summ+=($1-average)^2 } END { print... (8 Replies)
Discussion started by: chrisjorg
8 Replies

8. Shell Programming and Scripting

Sample Script

Below is the code. Its the 1st line of a file. How can I remove the bracket and display like below. 123 web int 1 09:30:45 2013 I dont want to use AWK or SED or PERL. I need to use only the bash shell scripting commands to do it. (3 Replies)
Discussion started by: ghosh_tanmoy
3 Replies

9. Shell Programming and Scripting

Sample output

hi gurus , i want the command to get the output in the desired format . basically to convert columns to rows. please refer to the attachment. (3 Replies)
Discussion started by: r_t_1601
3 Replies
TTCP(1) 						      General Commands Manual							   TTCP(1)

NAME
ttcp - test TCP and UDP performance SYNOPSIS
ttcp -t [-u] [-s] [-p port] [-l buflen] [-b size] [-n numbufs] [-A align] [-O offset] [-f format] [-D] [-v] host [<in] ttcp -r [-u] [-s] [-p port] [-l buflen] [-b size] [-A align] [-O offset] [-f format] [-B] [-T] [-v] [>out] DESCRIPTION
Ttcp times the transmission and reception of data between two systems using the UDP or TCP protocols. It differs from common ``blast'' tests, which tend to measure the remote inetd as much as the network performance, and which usually do not allow measurements at the remote end of a UDP transmission. For testing, the transmitter should be started with -t and -s after the receiver has been started with -r and -s. Tests lasting at least tens of seconds should be used to obtain accurate measurements. Graphical presentations of throughput versus buffer size for buffers rang- ing from tens of bytes to several ``pages'' can illuminate bottlenecks. Ttcp can also be used as a ``network pipe'' for moving directory hierarchies between systems when routing problems exist or when the use of other mechanisms is undesirable. For example, on the destination machine, use: ttcp -r -B | tar xvpf - and on the source machine: tar cf - directory | ttcp -t dest_machine Additional intermediate machines can be included by: ttcp -r | ttcp -t next_machine OPTIONS
-t Transmit mode. -r Receive mode. -u Use UDP instead of TCP. -s If transmitting, source a data pattern to network; if receiving, sink (discard) the data. Without the -s option, the default is to transmit data from stdin or print the received data to stdout. -l length Length of buffers in bytes (default 8192). For UDP, this value is the number of data bytes in each packet. The system limits the maximum UDP packet length. This limit can be changed with the -b option. -b size Set size of socket buffer. The default varies from system to system. This parameter affects the maximum UDP packet length. It may not be possible to set this parameter on some systems (for example, 4.2BSD). -n numbufs Number of source buffers transmitted (default 2048). -p port Port number to send to or listen on (default 2000). On some systems, this port may be allocated to another network daemon. -D If transmitting using TCP, do not buffer data when sending (sets the TCP_NODELAY socket option). It may not be possible to set this parameter on some systems (for example, 4.2BSD). -B When receiving data, output only full blocks, using the block size specified by -l. This option is useful for programs, such as tar(1), that require complete blocks. -A align Align the start of buffers to this modulus (default 16384). -O offset Align the start of buffers to this offset (default 0). For example, ``-A8192 -O1'' causes buffers to start at the second byte of an 8192-byte page. -f format Specify, using one of the following characters, the format of the throughput rates as kilobits/sec ('k'), kilobytes/sec ('K'), megabits/sec ('m'), megabytes/sec ('M'), gigabits/sec ('g'), or gigabytes/sec ('G'). The default is 'K'. -T ``Touch'' the data as they are read in order to measure cache effects. -v Verbose: print more statistics. -d Debug: set the SO_DEBUG socket option. SEE ALSO
ping(1M), traceroute(1M), netsnoop(1M) local TTCP(1)
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy