uml_switch
Hi list..
I'm using UML to benchmark a distributed protocol (cluster membership service) on a virtual network. As a way of injecting faults, I thought about changing uml_switch so it would not forward every message it receives. Roughly speaking, it could deliver only a percentage of the messages.
I would like to know where in the uml_switch code is the best place to do that. Actually, I'd like to intercept those messages in a place where I could know the sender and recipient IP of each message.
Thanks,
Nelio
=====
+------------------------------------------------------------------------+
http://www.ime.usp.br/~nelio
Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
The code itself doesn't seem very complicated. I just would like to know how a message is transmited to its recipient, then I could intercept this message in the right place.
Nelio
--- Nuno Silva <[email protected]> escreveu: >
Quoted 28 lines
Quoted 1 line · Nelio Pereira
Hi list..
Hi!
Quoted 3 lines
I'm using UML to benchmark a distributed protocol (cluster membership service) on a virtual network.
As
Quoted 1 line
a way of injecting faults, I thought about
changing
Quoted 1 line
uml_switchso it would not forward every messageit
Quoted 1 line
receives. Roughly speaking, it could deliver only
a
Quoted 3 lines
percentage of the messages.
I would like to know where in the
uml_switchcodeis
Quoted 2 lines
the best place to do that. Actually, I'd like to
intercept those messages in a place where I couldknow
Quoted 2 lines
the sender and recipient IP of each message.
Quoted 15 lines
I remember seeing, here, that someone ported
uml_switchto python...
Maybe that's easier to hack?Hope this helps,
Nuno SilvaQuoted 6 lines
Thanks,
Nelio
=====
+------------------------------------------------------------------------+ > >
Quoted 8 lines
Quoted 6 lines
Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br
-------------------------------------------------------
Quoted 8 lines
Quoted 1 line
This SF.net email is sponsored by OSDN developer
relations
Quoted 1 line
Here's your chance to show off your extensive
product knowledge
Quoted 1 line
We want to know what you know. Tell us and you
have a chance to win $100
Quoted 1 line
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
Quoted 5 lines
Quoted 4 lines
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines
Quoted 1 line
=====
+------------------------------------------------------------------------+
http://www.ime.usp.br/~nelio
Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 3 lines · Nelio Pereira
I would like to know where in the
uml_switchcode is the best place to do that. Actually, I'd like to intercept those messages in a place where I could know the sender and recipient IP of each message.
I haven't checked the code, but I don't think that uml_switch decodes the IP header at all; it only deals with Ethernet frames.
Signature · 12 lines
- mdz ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 3 lines · [email protected] said:
The code itself doesn't seem very complicated. I just would like to know how a message is transmited to its recipient, then I could intercept this message in the right place.
As Matt said, this is an Ethernet switch, and as such, knows nothing about IP. The stuff inside the frames may not even be IP.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 1 line · Nelio Pereira
Hi list..
Hi!
Quoted 8 lines
I'm using UML to benchmark a distributed protocol (cluster membership service) on a virtual network. As a way of injecting faults, I thought about changing
uml_switchso it would not forward every message it receives. Roughly speaking, it could deliver only a percentage of the messages.
Quoted 5 lines
I would like to know where in the
uml_switchcode is the best place to do that. Actually, I'd like to intercept those messages in a place where I could know the sender and recipient IP of each message.
I remember seeing, here, that someone ported uml_switch to python... Maybe that's easier to hack?
Hope this helps,
Nuno Silva
Quoted 12 lines
Thanks,
Nelio
=====
+------------------------------------------------------------------------+http://www.ime.usp.br/~nelioYahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br
Quoted 10 lines
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Greetings,
Of course, UML itself 'just happens' to use the configured IP address (mildly mangled) as the MAC address for IP traffic.
However, it would be best to add functionality to parse the packet headers. Definatly NOT wanted for normal use due to efficiency issues. Perhaps a config option? compile time?
G'day,
sjames
Quoted 10 lines · Matt Zimmerman
Quoted 3 lines · Nelio Pereira
I would like to know where in the
uml_switchcode is the best place to do that. Actually, I'd like to intercept those messages in a place where I could know the sender and recipient IP of each message.I haven't checked the code, but I don't think that
uml_switchdecodes the IP header at all; it only deals with Ethernet frames.
Signature · 20 lines
-------------------------steven james, director of research, linux labs
... ........ ..... .... 230 peachtree st nw ste 2701
the original linux labs atlanta.ga.us 30303
-since 1995 http://www.linuxlabs.com
office 404.577.7747 fax 404.577.7743
-----------------------------------------------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-develQuoted 4 lines · steven james
Greetings,
Of course, UML itself 'just happens' to use the configured IP address (mildly mangled) as the MAC address for IP traffic.
Not for my setup. I set the mac address of my umls on the cmdline, they talk to a uml switch, which also happens to be configured to forward to the host. My umls then use dhcp to get their address.
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · steven james
Of course, UML itself 'just happens' to use the configured IP address (mildly mangled) as the MAC address for IP traffic.
...as a default if it isn't specified.
Quoted 3 lines
However, it would be best to add functionality to parse the packet headers. Definatly NOT wanted for normal use due to efficiency issues. Perhaps a config option? compile time?
I think it's probably not necessary for the purpose he mentioned; matching the MAC address is just as good (if not better). Of course, it would be even easier to use a tap device instead of uml_switch, and use iptables to do the matching, which will be much more flexible.
Signature · 12 lines
- mdz ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Alle 12:55, giovedì 23 ottobre 2003, Nelio Pereira ha scritto:
Quoted 8 lines
Hi list..
I'm using UML to benchmark a distributed protocol (cluster membership service) on a virtual network. As a way of injecting faults, I thought about changing
uml_switchso it would not forward every message it receives. Roughly speaking, it could deliver only a percentage of the messages.
Just use iptables. It's simpler. Download patch-o-matic: then use either base/nth.patch or base/random.patch(the second is maybe better) for the kernel that will have to support this new option. Then, to filter it, you must find a point where to apply the rule. I think the simpler one is to set up a bridge as specified for TUN/TAP in the networking page and then add the rule on the host FORWARD chain adding -i(or -o) br0. Or maybe, you should add it somewhere else(for instance, just use tap devices without a bridge, then add that rule with -i tap+ and -o tap+ on FORWARD: it will match packets being forwarded on the host between UML's).
Quoted 5 lines
I would like to know where in the
uml_switchcode is the best place to do that. Actually, I'd like to intercept those messages in a place where I could know the sender and recipient IP of each message.
Signature · 16 lines
cat <<EOSIGN Paolo Giarrusso, aka Blaisorblade Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729 EOSIGN ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel