Configure network with openflow-switch

18 views
Skip to first unread message

Thai Duong

unread,
Jul 6, 2015, 12:04:33 PM7/6/15
to ns-3-...@googlegroups.com
Hello,

I'm new at ns-3 and my english is not really good so that I hope you can understand and help me. Any help is useful.

I started with example of openflow-switch but I didn't understand how it works.

1. With network topology:
// Network topology

//
//        n0     n1
//        |      |
//       ----------
//       | Switch |
//       ----------
//        |      |
//        n2     n3
//
//
// - CBR/UDP flows from n0 to n1 and from n3 to n0
// - DropTail queues
// - Tracing of queues and packet receptions to file "openflow-switch.tr"
// - If order of adding nodes and netdevices is kept:
//      n0 = 00:00:00;00:00:01, n1 = 00:00:00:00:00:03, n3 = 00:00:00:00:00:07
//    and port number corresponds to node number, so port 0 is connected to n0, for example.

I see MAC address, right? But I don't know where they were defined? How can I configure them? Does it only create a link between devices to test the packet transmission or it should be defined somewhere?
I can understand the creation of nodes, switch, csma device...

2. When I try to change something, exemples:
Delete some rows:
    terminals.Create (4);
    NS_LOG_INFO ("Build Topology");
    csma.EnablePcapAll ("openflow-switch", false);
Change parameter:
    app = sink.Install (terminals.Get (1));   --> app = sink.Install (terminals.Get (2)); (I wanna get n2 for test)

But nothing changes in log file (by using ./waf --run "openflow-switch -v"), file pcap and openflow-switch.tr are always created, content of openflow-switch.tr (save the traces, I think) doesn't change in comparison with the default source.

3. I have to test some scenarios with multiple openflow switches. I hope that you have something likes this and I can learn from you.

I'm waiting for your answers as soon as posible :)
Thanks in advance.
Reply all
Reply to author
Forward
0 new messages