1. Yes, 2. Yes if you can make it work (if it works for you). E
Jing Yuan wrote: > Hi Eddie > > Thank you very much for your help. It is very useful for me. But I still > have some questions. maybe very naive, but I am a rookie in this filed. > Hope you can understand > > I have read the example given by you, but I am comfused with something. > > from_port0, from_port1 :: FromDevice...; > to_port0, to_port1 :: ToDevice...; > > span_tree :: EtherSpanTree(00-1f-29-4d-f8-31, in_supp, out_supp, switch); > switch :: EtherSwitch; > in_supp, out_supp :: Suppressor; > > from_port0 -> c0 :: Classifier(14/4242, -); > from_port1 -> c1 :: Classifier(14/4242, -); > > q0 :: Queue -> to_port0; > q1 :: Queue -> to_port1; > > c0 [0] -> [0] span_tree [0] -> q0; > c1 [0] -> [1] span_tree [1] -> q1; > > c0 [1] -> [0] in_supp [0] -> [0] switch [0] -> [0] out_supp [0] -> q0; > c1 [1] -> [1] in_supp [1] -> [1] switch [1] -> [1] out_supp [1] -> q1; > > 1 In this example, the switch has two ports. This means switch has two > NICs, right? If I want to use one PC as a switch and suppose this > switch has 8 ports, Does the PC I used actually need 8 NICs? > > 2 Can I use these ethernet switch relational elements on userlevel to > implement some protocols designed by myself? > > Thanks very much. I do need help and appreciate your answers a lot. > > Looking forward to your help. > > -Jing > > 2010-03-26 > ------------------------------------------------------------------------ > Jing Yuan > ------------------------------------------------------------------------ > *发件人:* Eddie Kohler > *发送时间:* 2010-02-16 17:45:45 > *收件人:* Jing Yuan > *抄送:* Beyers Cronje; click > *主题:* Re: [Click] Question about Ethernet Switch Configuration > Hi Jing, > This element wasn't ever documented, but I've just added some documentation. > Hopefully you will find it useful. > http://read.cs.ucla.edu/gitweb?p=click;a=blob;f=elements/etherswitch/spantree.hh > Eddie > Jing Yuan wrote: > > Thank Beyers for your quick help. > > > > I still have some problems. > > > > 1 For example, when I want to build a spanning tree among many(more than > 2)switches based on Click. How can I generate the BPDU packet? Does the > Switch still get the packet from the device and modify it to BPDU frame > format and then broadcast the modified packet(BPDU)? I have no clear idea to > configure this work. How does the EtherSpanTree element work when switch is > building a spanning tree among themselves? When configure a Ethernet Switch, > does each switch need an EtherSpanTree element? I have little knowledge on > Click and I am totally confused. > > > > 2 I still do not know the exact meanings of the parameter in > EtherSpanTree. Can anybody give me a detailed discription about this element? > For example, in st::EtherSpanTree(00:02:03:04:05:06, in, out, s), Does > "00:02:03:04:05:06"represent the MAC address of the switch? > > > > Best regards! > Looking forward to your reply. I do appreciate your help very much! > > > > -Jing > > > > 2010-01-18 > > > > > > > > Jing Yuan > > > > > > > > 发件人: Beyers Cronje > > 发送时间: 2010-01-18 01:12:01 > > 收件人: Jing Yuan > > 抄送: click > > 主题: Re: [Click] Question about Ethernet Switch Configuration > > > > Hi Jing, > > > > Look on page 69/70 of > http://pdos.csail.mit.edu/papers/click:kohler-phd/thesis.pdf for an > explanation and example of a Ethernet Switch configuration that includes > EtherSpanTree. There's also an example in click/conf directory called > kswitch.ipb > > > > Hope that helps. > > > > Beyers Cronje > > > > > > On Mon, Jan 18, 2010 at 7:04 AM, Jing Yuan <[email protected]> > wrote: > > > > Dear Click developers and users > > > > As I am familiarizing myself with Click and using Click worked as Ethernet > Switch to implement a protocol like SPT(Spanning Tree Protocol), I have some > questions about Click > > > > 1 I have designed a protocol and want to implement it on switch. So > should I install Click in some PCs (more than two) and use Click to configure > them as switch respectively? > > > > 2 My protocol is similar to STP. So I think maybe I can modify the > EtherSpanTree element, but there is no description about this element. Does > anybody have some experiences or examples about this element or some > instances of Ethernet switch which is configured with elements, such as > Supperssor, EtherSwitch and EtherSpanTree. > > > > I do need some detailed introductions and examples about EtherSpanTree > element. Can anybody help me and give me a > > clear explanation on these questions? Thanks very much! > > > > All the best wishes for you! > > Looking forward to your reply! > > > > -Jing > > > > 2010-01-17 > > > > > > > > Jing Yuan > > _______________________________________________ > > click mailing list > > [email protected] > > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > > _______________________________________________ > > click mailing list > > [email protected] > > https://amsterdam.lcs.mit.edu/mailman/listinfo/click _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
