Re: Simulating Communications Links

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Op zo, 09-10-2005 te 15:40 +0000, schreef Ian Wright:
> I'm wondering if anyone can give me a little advice. I'm fairly new to 
> network programming, and completely new to linux, yet it looks like I'm 
> going to have to use both for my final year project at university.
> 
> The requirement that I've been given is basically to delay and drop packets 
> randomly to simulate a communications link. The probability of dropping or 
> delaying a packet will depend on certain variables set by a user (in a GUI 
> if possible) indicating the length of the physical link and the % of network 
> load to network capacity. My project supervisor wants these delayed and 
> dropped packets to occur at the MAC level, and someone suggested using 
> ebtables which I'd never heard of before.
> 
> I'm just wondering how difficult it is to start using ebtables, and how 
> difficult would it be to modify it to create random drops/delays?

It's simple, you don't need much knowledge about the inner working, just
start from a module that is already written, any target module should
do. This could be helpful too:
http://ebtables.sourceforge.net/ebtables-hacking/ebtables-hacking-HOWTO.html


To use ebtables on a non-bridge, see
http://ebtables.sourceforge.net/examples.html#ex_nobridge

cheers,
Bart




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.