Hi all:
       I'm a new comer of NOX, and want to know the mechanism of NOX, so i see 
the codes of hub.cc at the beginning. There are some questions that  perplex me 
for a long time which i list as follows.
      1)  if (buffer_id == UINT32_MAX) {                          
            size_t data_len = pi.get_buffer()->size();
            size_t total_len = pi.total_len;
            if (total_len == data_len) {
                send_openflow_packet(pi.datapath_id, *pi.get_buffer(),
                        OFPP_FLOOD, pi.in_port, true);
            } else {
                /* Control path didn't buffer the packet and didn't send us
                 * the whole thing--what gives? */
                lg.dbg("total_len=%zu data_len=%zu\n", total_len, data_len);
            }tion
  There codes are in src/nox/coreapps/hub/hub.cc file. what is the function of 
them?do they effect the function of hub.cc if remove ?
   2) what is the difference between "int send_openflow_command()" and "int 
send_openflow_packet()" which defined in src/nox/component.hh. I know both are 
used for interacting with OF switch.
    3)The type of controller/switch message contains OFPT_PACKET_OUT and 
OFPT_FLOW_MOD. I think both of them are used to add/delete/modify flow table 
entry in OF switch, am i right? I don't know what is the difference even if 
refer to openflow-spec-1.0.0
   would you like to tell me? Thank you very much, look forward to hear from 
you~
 Best Wishes
                                                                                
                                                                  Wang Jian
                                                                                
                                                         Saturday, December 31, 
2011
   
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to