[javasim-general] Injecting Packets directly into CSL
REDIMERIO, Joseph
joseph.redimerio@baesystems.com.au
Wed, 8 May 2002 10:48:21 +0930
Hung-ying,
I'm a little confused with this bit ...
java::call drcl.inet.InetUtil createTrafficSource $packetTrain
"source" [! h0] [! h1] 1111 100 ##### What is the protocol ID for ?
##### is 100 = TCP ?
Regards,
Joseph.
-----Original Message-----
From: Hung-ying Tyan [mailto:tyanh@fla.fujitsu.com]
Sent: Tuesday, 7 May 2002 12:46
To: 'REDIMERIO, Joseph'; 'JavaSim (E-mail)'
Subject: RE: [javasim-general] Injecting Packets directly into CSL
Joseph,
I assume you are doing this in the GUI. Unfortunately, this scenario is
more complicated than the GUI can handle because we need to have the
traffic generator to generate packets that CSL can understand (traffic
generators generate packets in a general format while CSL only
recognizes drcl.inet.InetPacket).
In Tcl, this is easy to solve by drcl.inet.InetUtil.createTrafficSource
(TrafficModel trafficModel_, String id_, Node src_, Node dest_, long
tos_, int protocol_).
For example, the script below creates h0/source based on the traffic
model and then connects the component to h0/csl/100@up. And all the
packets generated by the generator will be destined to h1 with source h0
and ToS 1111, and be delivered to h1/csl/100@up.
Set packetTrain [java::new drcl.net.traffic.traffic_PacketTrain
...]
java::call drcl.inet.InetUtil createTrafficSource $packetTrain
"source" [! h0] [! h1] 1111 100
The reason that the current GUI cannot handle this is because it can
handle only properties of primitive types. If you look at the
properties panel of the packet train in the GUI, you would see "N/A" in
the "packetWrapper" property but you cannot edit/modify it simply
because it is an object. When the future GUI can handle editing
objects, you will be able to do the above configuration in the GUI.
Hung-ying Tyan
Member of Research Staff
IP Networking Research
Fujitsu Labs. of America, Inc.
595 Lawrence Expressway
Sunnyvale, CA 94085
Tel: (408) 530-4622 Fax: (408) 530-4515
> -----Original Message-----
> From: javasim-announce-admin@cs.uiuc.edu [mailto:javasim-announce-
> admin@cs.uiuc.edu] On Behalf Of REDIMERIO, Joseph
> Sent: Monday, May 06, 2002 5:51 PM
> To: JavaSim (E-mail)
> Subject: [javasim-general] Injecting Packets directly into CSL
>
>
> Hi again,
>
> I'm trying to use the packet train generator to generate traffic from
one
> node, and set up the
> other node to receive it.
>
> I currently have this configuration :
>
> Host1 [ PktTrain --> (up)CSL(down) --> 0@down] ==> router [ 0@down
-->
> (0@down)CSL(1@down) --> 1@down] ==> Host2 [ 0@down --> (down)CSL(up)
-->
> Traffic Monitor --> 1@down ] ==> Plotter
>
> That's right, I'm injecting the packets directly into the CSL,
bypassing
> the
> TCP layer.
> I tried it and it doesn't seem to work ... any suggestions ?
>
> Regards,
> Joseph.
> _______________________________________________
> javasim-announce mailing list
> javasim-announce@cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/javasim-announce