Networking Forums

Networking Forums > Computer Networking > Linux Networking > Send custom TCP packets

Reply
Thread Tools Display Modes

Send custom TCP packets

 
 
Ishwar
Guest
Posts: n/a

 
      07-14-2003, 07:04 PM
Hi,

I'm trying to do a performance evaluation on a NIC. What I want to do
is to be able to send custom TCP packets from a linux machine to a
remote host's discard server. Ideally, I would like to be able to
specify the size and the data in the packet and I would like to blitz
thousands of such custom pre-made packets to get a feel for the
throughput.
Is there any linux application which would allow me to do this? Is
there a workaround for this? I would appreciate any help.

Thanks in advance,
Ishwar Agarwal
 
Reply With Quote
 
 
 
 
Barry Margolin
Guest
Posts: n/a

 
      07-14-2003, 07:34 PM
In article <(E-Mail Removed) >,
Ishwar <(E-Mail Removed)> wrote:
>I'm trying to do a performance evaluation on a NIC. What I want to do
>is to be able to send custom TCP packets from a linux machine to a
>remote host's discard server. Ideally, I would like to be able to
>specify the size and the data in the packet and I would like to blitz
>thousands of such custom pre-made packets to get a feel for the
>throughput.
>Is there any linux application which would allow me to do this? Is
>there a workaround for this? I would appreciate any help.


Look for "ttcp".

--
Barry Margolin, (E-Mail Removed)
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
 
Reply With Quote
 
Fernando Gont
Guest
Posts: n/a

 
      07-15-2003, 12:04 AM
On 14 Jul 2003 12:04:10 -0700, (E-Mail Removed) (Ishwar) wrote:

>I'm trying to do a performance evaluation on a NIC.


Is it the NIC itself that you want to test?
What type of "performance avaluation" are you trying to do?


>Is there any linux application which would allow me to do this?


Netperf? I don't remember whether it has been ported to Linux or not.

--
Fernando Gont
e-mail: (E-Mail Removed)

[To send a personal reply, please remove the ANTISPAM tag]
 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      07-15-2003, 10:51 PM
In comp.protocols.tcp-ip Fernando Gont <(E-Mail Removed)> wrote:
> On 14 Jul 2003 12:04:10 -0700, (E-Mail Removed) (Ishwar) wrote:
>>Is there any linux application which would allow me to do this?


> Netperf? I don't remember whether it has been ported to Linux or not.


Actually, netperf is not setup to be able to send to a remote discard
port, only a remote netserver. It would be a SMOP to allow one to
change that, but I've not done so thusfar on the premis that if one is
doing performance testing it is best to have access to both ends, and
when using the remote discard port one cannot directly control things
like the TCP window.

Also, much as I like to promote netperf it cannot build "custom"
TCP segments - at least if that means direct control over what is in
the TCP header. Netperf TCP_STREAM will call send with a specified
buffer size over and over until test completion. TCP_RR will do
something similar. There is no distribution of send sizes within a
given netperf session (if that is the right term).

However, I can say with confidence that netperf has been ported to
Linux and works just fine.

rick jones
--
portable adj, code that compiles under more than one compiler
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to raj in cup.hp.com but NOT BOTH...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to send packets kernel.lover Linux Networking 0 02-05-2005 12:19 PM
I can send packets but I receive nothing, routing problem riviereg Linux Networking 8 09-06-2004 12:49 PM
I can send packets but I receive nothing, routing problem riviereg Linux Networking 0 09-03-2004 09:44 AM
How to send packets out and come back ? frank19991@hotmail.com Linux Networking 10 05-07-2004 03:46 PM
How can I send and recieve packets of data using TAPI to_rachit@rediffmail.com Windows Networking 0 01-30-2004 04:58 PM



1 2 3 4 5 6 7 8 9 10 11