How can I run multiple components on nox? => You can do it by calling the components you want to run, for instance, if you want to run a learning switch with a firewall, you can execute nox this way: ./nox_core -v -i ptcp:6633 switch firewall. This command tells nox to execute both switch component and firewall component at the same time.
how can prriority of component execution be set? => you can do it by using wild cards. Here is a little explanation about wildcards: "OpenFlow 1.0 uses a 32-bit wildcards field that has binary flags for most fields in the match. E.g., you can decide to match on or wildcard dl_src, dl_dst, dl_type, in_port etc." (source: http://www.openflowhub.org/display/floodlightcontroller/Wildcards+Mini-Tutorial ) To use wildcards in nox, you have to open the component's source file. After it, you need to find in the code where you are creating an ofp_match, so you can set this ofp_match to work with wildcard (by default, ofp_match work with exact match). Example: v1::ofp_match flow; flow.from_packet(pi.in_port(),pi.packet()); flow.wildcards(v1::OFPFW_DL_SRC); // <---- this way you set ofp_match to work with wildcards. "v1::OFPFW_DL_SRC" means that this wildcard is a src mac address. you can find it the following link (every wildcard has its own value, which can be found on the link): http://www.noxrepo.org/_/nox-doxygen/openflow-1_80_8hh_source.html You have to do it because the only way to set priority is to use wildcards (otherwise, the flow rule will be set on the flow table with the default priority). After you choose the wildcard, you can change the priority. You can do it in the part of code where the flow rule is being created, for instance: .... .hard_timeout(v1::OFP_FLOW_PERMANENT) .priority(0x7000) <----- here you can set the priority level (in hexdecimal) .... And...it's done, worked for me. 2014-12-01 20:25 GMT-04:00 <[email protected]>: > Send nox-dev mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.noxrepo.org/listinfo.cgi/nox-dev-noxrepo.org > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of nox-dev digest..." > > > Today's Topics: > > 1. How to run multimple component on new NOX (Muhammad Imran) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 1 Dec 2014 19:26:57 +0000 (UTC) > From: Muhammad Imran <[email protected]> > To: "[email protected]" <[email protected]> > Subject: [nox-dev] How to run multimple component on new NOX > Message-ID: > < > 1296321765.3376198.1417462017539.javamail.ya...@jws106109.mail.bf1.yahoo.com > > > > Content-Type: text/plain; charset="utf-8" > > Deal All,How can? I run multiple components on nox??Moreover how can > prriority of component execution be set?Regard > ??? ? ?? ???? Muhammad IMRAN > ??? Center for Advance?Studies in Engineering, > ??? Islamabad > ??? +923126212041 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.noxrepo.org/pipermail/nox-dev-noxrepo.org/attachments/20141201/df877d50/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > nox-dev mailing list > [email protected] > http://lists.noxrepo.org/listinfo.cgi/nox-dev-noxrepo.org > > > ------------------------------ > > End of nox-dev Digest, Vol 27, Issue 1 > ************************************** > -- Atenciosamente, Jordan de Sá Queiroz
