Hello, I am a university student and a newbie of Ryu. I am trying to send Ethernet packets with a timestamp on them to monitor latency, but it doesn't work. I wrote the description shown below, but could not get the payload. I could not understand it even after reading the text, so I would like to know more about it.
req = parser.OFPFlowStatsRequest(datapath) datapath.send_msg(req) req = parser.OFPPortStatsRequest(datapath, 0, ofproto.OFPP_ ANY) datapath.send_msg(req) pkt = packet.Packet() pkt.add_protocol(ethernet.ethernet(ethertype=0x5577, dst='00:01:00:00:00:01', src='00:01:00:00:00:02')) pkt.data = int(time.time()*1000 - start_time) pkt.serialize() actions = [parser.OFPActionOutput(port=2)] out = parser.OFPPacketOut(datapath=datapath, buffer_id=ofproto.OFP_NO_BUFFER, in_port=ofproto.OFPP_CONTROLLER, actions=actions, data=pkt.data) datapath.send_msg(out) self.logger.info("packet-out %s" % (pkt,)) Regards, Hideya Masaki _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel