Re: [pox-dev] Create TCP packet

2013-11-26 Thread Murphy McCauley
On Nov 26, 2013, at 6:53 AM, Silvia Fichera wrote: > You are right! I want to pretend that a connection is open. > I've done this: > > def send_tcp(seqNum, srcMAC, dstMAC,srcIP,dstIP,srcPort,dstPort,inport): >tcp_packet = tcp() >tcp_packet.srcport = dstPort >tcp_packet.dstport = src

Re: [pox-dev] Create TCP packet

2013-11-26 Thread Silvia Fichera
You are right! I want to pretend that a connection is open. I've done this: def send_tcp(seqNum, srcMAC, dstMAC,srcIP,dstIP,srcPort,dstPort,inport): tcp_packet = tcp() tcp_packet.srcport = dstPort tcp_packet.dstport = srcPort tcp_packet.len = tcp.MIN_LEN+20 tcp_packet.win=1 tcp_p

Re: [pox-dev] Create TCP packet

2013-11-25 Thread Murphy McCauley
The .win attribute of the TCP class should be an integer, and it's just put into the 16-bit window field verbatim. IIRC, in the absence of window scaling, this is just the number of bytes (beyond whatever is being ACKed) that you're willing to receive. (If you're just trying to get a client to

[pox-dev] Create TCP packet

2013-11-25 Thread Silvia Fichera
Hi all, I would like send a TCP - SYN/ACK packet from the controller to one host. I already know how to buid UDP packet and send it in flooding, so I think I can follow the same way with TCP fields. I need to set a minimal congestion window as I can receive only the ACK. Is it measured in bit? How