[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Real Ping!



Hello!

I 'm trying to make a remote ping with Ping classes.  When I run in machine A 
antsvm edu.utah.... teste.config  18.31.12.1 (with debug flags) it's displayed this:

IP_A - IP real da maquina A
IP_B - IP real da maquina B

Janos Java NodeOS v1.1.5
Parsing config file teste.config
Parsing command node
ANTS v2.0

Parsing command channel
Proxy addr: (null ; null)
Phys addr: (if/ipv4/udp ; *:8004:IP_A)

Parsing command application
Creating app cfg apps.ping.PingApplication with args.length=13; argsStart=3

Parsing command connect
Config file command parsing complete.

Reading route table 'teste.routes' for node 18.31.12.1 Adding route

18.31.12.1 -> 18.31.12.2 via 18.31.12.2(IP_B:8005) Adding neighbor 18.31.12.2

link=Address[anAddr=18.31.12.2;
ProtocolSpec=if/ipv4/udp;AddressSpec=*:8005:IP_B] Got update op=CSE[CommSpaceElement[170]] 
kicking listeners Synchronize with updater 
Update complete 18.31.12.2

link=Address[anAddr=18.31.12.2; ProtocolSpec=if/ipv4/udp; AddressSpec=*:8005:IP_B] 
Adding route 18.31.12.2 -> 18.31.12.1 via 18.31.12.1(IP_A:8004) 
Installing ants.core.DLProtocol[(builtin)] 
Installing protocol ants.core.DLProtocol[(builtin)](with princial=Principal[RemoteUsers]) 

CodeGroup for gid 177487.. -> null publishing
CodeGroup[gid=177487..; ct=0; cmask=0; builtin] publishing
CapsuleClass[ants.core.DLRequestCapsule; mid=abe1a9..] publishing
CapsuleClass[ants.core.DLResponseCapsule; mid=54d682..] publishing
CapsuleClass[ants.core.MIDIDRequestCapsule; mid=94f763..] Registering
CodeGroup[gid=177487..; ct=0; cmask=0; builtin] in Flow[name=Primoridal ANTS Flow;objid=0x291aff] 
Added class ants.core.DLRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask=0; builtin] 
Added class ants.core.DLResponseCapsule to CodeGroup[gid=177487..; ct=0; cmask=0; builtin]   
Added class ants.core.MIDIDRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask=0; builtin] 

CodeGroup for gid 4df792.. -> null publishing CodeGroup[gid=4df792..; ct=0; cmask=0; builtin] publishing 
CapsuleClass[ants.core.MIDIDResponseCapsule; mid=a20a2f..] Registering 
CodeGroup[gid=4df792..; ct=0; cmask=0; builtin] in Flow[name=Primoridal ANTS Flow;objid=0x291aff]
Added class ants.core.MIDIDResponseCapsule to CodeGroup[gid=4df792..; ct=0; cmask=0; builtin]
Installing ants.core.DataProtocol[(builtin)]  
Installing protocol ants.core.DataProtocol[(builtin)](with princial=Principal[RemoteUsers])

CodeGroup for gid 7aca17.. -> null publishing CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin] publishing 
CapsuleClass[ants.core.DataCapsule; mid=fc109d..] Registering
CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin] in Flow[name=Primoridal ANTS Flow;objid=0x291aff] 
Added class ants.core.DataCapsule to CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin] Starting unknown protocol.  

flow=Flow[name=Protocol <unknown>;objid=0x60be38] 
Unknown protocol on its way! 
flow=Flow[name=Protocol <unknown>;objid=0x60be38] 
ProtocolBooster.java: LOCAL_PROTOCOL ants.core.DLProtocol in Flow[name=Protocol <unknown>;objid=0x60be38] 
Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38] 

loading LOCAL_PROTOCOL

ants.core.DLProtocol AppBooster: Exception starting app apps.ping.PingApplication:  
java.lang.ClassNotFoundException: 
Could not find bytecode for apps.ping.PingApplication. 
at edu.utah.janos.nodeos.FlowClassLoader.readLocalBytecode(FlowClassLoader.java:222)
at edu.utah.janos.nodeos.FlowClassLoader.readLocalClass(FlowClassLoader.java:240)
at edu.utah.janos.nodeos.FlowClassLoader.loadClass(FlowClassLoader.java:376)
at edu.utah.janos.nodeos.FlowClassLoader.loadClass(FlowClassLoader.java:253)
at edu.utah.janos.nodeos.Flow.loadClass(Flow.java:304) 	
at ants.core.AppBooster.run(AppBooster.java:100) 	
at edu.utah.janos.nodeos.FlowInitializer.startInitialClass(FlowInitializer.java:107)
at edu.utah.janos.nodeos.FlowInitializer.run(FlowInitializer.java:71)
at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run(pj_Thread.java:71)

Created InChan for unknown packets: 
pj_InChannel[flow=Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38];
handler=PacketHandler[source=pj_PortAddressMask[srcAddrMask=pj_InetAddressMask[*.*.*.*]; 
srcPort=-1; destPort=8004; destAddrMask=pj_InetAddressMask[IP_A]]];

classifier=
	pj_DemultiplexKey[totalLength=32;
	segments={pj_DemultiplexKey.ANEPHeader[offset=0;
		headerMask=pj_DemultiplexKey.ByteMask[offset=0; length=4;
			sequence='01 XX 00 02 '; mask=[Z@578ceb]
			]
		}
	];

threadPool=edu.utah.janos.nodeos.pj_ThreadPool@64cbc4;
deliverFunc=UnknownPacketHandler for Node[a=18.31.12.1]] 

CodeGroup for gid 177487.. -> null publishing 
CodeGroup[gid=177487..; ct=0; cmask=0; builtin] publishing 
CapsuleClass[ants.core.DLRequestCapsule; mid=abe1a9..] publishing 
CapsuleClass[ants.core.DLResponseCapsule; mid=54d682..] publishing 
CapsuleClass[ants.core.MIDIDRequestCapsule; mid=94f763..] Activating 
CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin] in Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38] Registering 
CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin] in Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38] 
Added class ants.core.DLRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin] 
Added class ants.core.DLResponseCapsule to CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin]  
Added class ants.core.MIDIDRequestCapsule to CodeGroup[gid=177487..; ct=0; cmask=ffffffff; builtin] 

CodeGroup for gid 4df792.. -> null publishing CodeGroup[gid=4df792..; ct=0; cmask=0; builtin] publishing 
CapsuleClass[ants.core.MIDIDResponseCapsule; mid=a20a2f..] Activating 
CodeGroup[gid=4df792..; ct=0; cmask=ffffffff; builtin] in Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38] Registering 
CodeGroup[gid=4df792..; ct=0; cmask=ffffffff; builtin] in Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38] 
Added class ants.core.MIDIDResponseCapsule to CodeGroup[gid=4df792..; ct=0; cmask=ffffffff; builtin] 

new capsule channel: class=class ants.core.MIDIDResponseCapsule;

classifier=
	pj_DemultiplexKey[totalLength=52;
	segments={pj_DemultiplexKey.ANEPHeader[offset=0;
		headerMask=pj_DemultiplexKey.ByteMask[offset=0; length=4;
			sequence='01 XX 00 02 '; mask=[Z@578ceb]
			]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='f2 0a 0f f5 0f 0e 00 f3 0c 0b 09 fc fa 07 0e 02 '; mask=null]}]

Starting unknown protocol. 

flow=Flow[name=Protocol <unknown>;objid=0x24bbbf]
Flow[name=Protocol ants.core.DLProtocol;objid=0x60be38] 

loading LOCAL_PROTOCOL

ants.core.DLProtocol Unknown protocol on its way! 
flow=Flow[name=Protocol <unknown>;objid=0x24bbbf] 
ProtocolBooster.java: LOCAL_PROTOCOL ants.core.DataProtocol in Flow[name=Protocol <unknown>;objid=0x24bbbf]
Flow[name=Protocol ants.core.DataProtocol;objid=0x24bbbf]

loading LOCAL_PROTOCOL ants.core.DataProtocol 

CodeGroup for gid 7aca17.. -> null publishing 
CodeGroup[gid=7aca17..; ct=0; cmask=0; builtin] publishing 
CapsuleClass[ants.core.DataCapsule; mid=fc109d..] Activating
CodeGroup[gid=7aca17..; ct=0; cmask=ffffffff; builtin] in Flow[name=Protocol ants.core.DataProtocol;objid=0x24bbbf] Registering 
CodeGroup[gid=7aca17..; ct=0; cmask=ffffffff; builtin] in Flow[name=Protocol ants.core.DataProtocol;objid=0x24bbbf] 
Added class ants.core.DataCapsule to CodeGroup[gid=7aca17..; ct=0; cmask=ffffffff; builtin]

new capsule channel: class=class ants.core.DataCapsule;

classifier=
	pj_DemultiplexKey[totalLength=52;
	segments={pj_DemultiplexKey.ANEPHeader[offset=0;
		headerMask=pj_DemultiplexKey.ByteMask[offset=0; length=4;
			sequence='01 XX 00 02 '; mask=[Z@578ceb]
			]+pj_DemultiplexKey.ByteMask[offset=4; length=16; sequence='fc 00 fd 05 0e 02 0b 0a 0f 0c 05 fc f8 09 0c 06 '; mask=null]}]

Flow[name=Protocol ants.core.DataProtocol;objid=0x24bbbf] 
loading  LOCAL_PROTOCOL ants.core.DataProtocol

and stop...

My config file is...

node 18.31.12.1 -routes teste.routes -log 255 -consoleport 2050
channel 18.31.12.1 IP_A:8004 -log 255 
application 18.31.12.1 apps.ping.PingApplication -target 18.31.12.2 -iter 20 -interv 300 -lossage 1 -prime 1000

node 18.31.12.2 -routes teste.routes -log 255 -consoleport 2051
channel 18.31.12.2 IP_B:8005 -log 255 

connect 18.31.12.1 18.31.12.2 


My route file is 

18.31.12.1	18.31.12.2	18.31.12.2	IP_B:8005	
18.31.12.2	18.31.12.1	18.31.12.1	IP_A:8004	

The CLASSPATH is 
CLASSPATH=:/activenets/ants-2.0.0/src/ants.jar:/activenets/ants-2.0.0/src/apps.jar:/activenets/ants-2.0.0/src/tests.jar:/activenets/ants-2.0.0/lib/emuJanosVM.jar:/activenets/ants-2.0.0/lib/:/activenets/ants-2.0.0/lib/jnodeos-pj-debug.zip:jnodeos-pj-optimized.zip:.:


Please What did I do wrong ?

Thank's in advance.
Ricardo.







[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah