Giammarco Zacheo wrote: > Dear all, > > we are trying to do some simple testing in order to verify RtNET > performances over a wired network. Right now we are working on a single > machine with two network adapters and Rtnet over a Xenomai 2.2 installation > (the system is a x86-based machine with Debian Sarge 3.1r3). The adapters > are connected with a patch cable, and our goal is to make them communicate > avoding the local routing (i.e. using the patch cable, as they were > installed on different machines). We already did this with the standard > TCP/IP stack by patching the kernel with the send2self patch (available at > http://www.ssi.bg/~ja/). Is it possible to do the same thing under Rtnet > (with or without patching the kernel)? We will start our testing as soon as > possible, in the while we wait for an answer.
No need for patches with RTnet, it already comes with explicit routing (see also Documentation/README.routing). First, there will be no local loopback at all when rt_loopback is not loaded. Second, the routing decision of RTnet is straightforward: look at the table (=>rtroute), apply the first rule that matches and transmit on the given device to the given MAC. I've done such "wired" loopback test before as well, works as expected. But keep in mind for your test that the worst-case result is slightly better then a real transmission from A to B. Because B is now A, so the code of A's network stack may still be present in the cache when the packet is delivered, giving an advantage over B which may first need to reload it. Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users