Commit graph

1422 commits

Author SHA1 Message Date
Stephen Birarda
988bd226ca change SendQueue timing to use usleep and std::chrono 2015-07-28 17:16:20 -07:00
Stephen Birarda
05d9845077 add counting of total control packets sent/received 2015-07-28 17:01:13 -07:00
Stephen Birarda
74b0fa7e87 use microseconds for intervals, setup timeout NAKs 2015-07-28 16:43:21 -07:00
Stephen Birarda
09a497a59b add default interval values for PacketTimeWindow 2015-07-28 16:23:10 -07:00
Stephen Birarda
13568d3d69 add constants for RTT estimation calculations 2015-07-28 15:59:13 -07:00
Stephen Birarda
a49ad92d87 use a constant for the bounds for median filtering 2015-07-28 15:55:18 -07:00
Stephen Birarda
cfba300786 send an unreliable sequence number from Socket 2015-07-28 15:51:50 -07:00
Stephen Birarda
ba226d168d remove SeqNum since it is replaced by SequenceNumber 2015-07-28 15:48:37 -07:00
Stephen Birarda
65fa4c4e6d add the periodic rate control packet sending 2015-07-28 15:47:36 -07:00
Atlante45
ffdd54d41f Make sendUnreliable take a non const 2015-07-28 15:42:53 -07:00
Atlante45
121b9738a1 Merge branch 'atp' of https://github.com/birarda/hifi into protocol 2015-07-28 15:33:42 -07:00
Atlante45
24520c5856 LNL send cleanup / Added connection hash 2015-07-28 15:32:00 -07:00
Stephen Birarda
b0147144cb fix for comment for PacketTimeWindow 2015-07-28 15:25:08 -07:00
Stephen Birarda
cf30426636 add a PacketTimeWindow to estimate bandwidth and report speed 2015-07-28 15:21:17 -07:00
Stephen Birarda
937e46abf2 add path to header for LossList 2015-07-28 14:28:19 -07:00
Stephen Birarda
e3e8219c11 add some comments to help understand the RTT calculation 2015-07-28 14:20:51 -07:00
Atlante45
f53637f19e Added SendQueue::getNextSeqNum 2015-07-28 14:16:09 -07:00
Stephen Birarda
b6bdcadd33 make updateRTT take an int 2015-07-28 14:02:13 -07:00
Atlante45
8a474ac20a Merge branch 'atp' of https://github.com/birarda/hifi into protocol 2015-07-28 14:01:21 -07:00
Atlante45
ca99699674 Implement Packet::setSequenceNumber 2015-07-28 14:00:59 -07:00
Stephen Birarda
c17f4b8991 add a missing bracket, comment for processACK 2015-07-28 13:58:21 -07:00
Atlante45
71004ef519 Merge branch 'atp' of https://github.com/birarda/hifi into protocol 2015-07-28 13:50:15 -07:00
Stephen Birarda
f885fbad8c remove sequence numbers from _naks in SendQueue 2015-07-28 13:49:11 -07:00
Atlante45
f0bb71b519 Change Packet read/write fcts 2015-07-28 13:48:20 -07:00
Stephen Birarda
00fdcf3133 fix a comment that reference SequenceNumber 2015-07-28 13:44:26 -07:00
Stephen Birarda
f45b36c9ec resolve conflicts on merge with clement/protocol 2015-07-28 13:40:50 -07:00
Stephen Birarda
606356cdcf rename SeqNum to SequenceNumber 2015-07-28 13:39:19 -07:00
Stephen Birarda
45f6a984af add a comment to SendQueue ack 2015-07-28 13:28:58 -07:00
Stephen Birarda
a8371cc3ed send the actual sequence number being ACKed 2015-07-28 13:28:01 -07:00
Stephen Birarda
0b8feed327 add a map of sentACKs for ACK2 processing 2015-07-28 13:01:35 -07:00
Stephen Birarda
155d339c2f remove RTT variance that isn't handled 2015-07-28 11:53:40 -07:00
Stephen Birarda
c7ae4d5e59 implement more of processACK in Connection 2015-07-28 11:47:57 -07:00
Atlante45
c3995a6e23 Fix LossList length not cumputed 2015-07-28 11:30:50 -07:00
Atlante45
cc4347ef6e Merge branch 'atp' of https://github.com/birarda/hifi into protocol 2015-07-28 10:37:53 -07:00
Atlante45
b25d860be4 Remove seqcmp 2015-07-28 10:36:19 -07:00
Atlante45
8b71462dc1 Remove unnecessary headers 2015-07-28 10:36:00 -07:00
Stephen Birarda
c32c95c707 complete implementation of processLightACK 2015-07-28 10:33:07 -07:00
Stephen Birarda
1c6b14d17c add file path to clement's header 2015-07-28 10:24:56 -07:00
Stephen Birarda
17d8085ab5 add process methods for control packet types 2015-07-28 10:01:38 -07:00
Stephen Birarda
c14fee2ee8 remove initialization of rtt and rttVariance 2015-07-28 09:56:31 -07:00
Stephen Birarda
3efd1be3d6 resolve conflicts for removal of ACK2 process 2015-07-28 09:54:46 -07:00
Atlante45
6577845d3f Merge branch 'atp' of https://github.com/birarda/hifi into protocol 2015-07-27 20:45:47 -07:00
Atlante45
89a53886cb Read ACK, NAK control packet 2015-07-27 20:44:12 -07:00
Atlante45
5833cea29d Send out NAK packets 2015-07-27 18:51:17 -07:00
Stephen Birarda
f176c45a61 return an ACK2 from processControl 2015-07-27 17:48:38 -07:00
Atlante45
2ecb445ce9 Merge branch 'atp' of https://github.com/birarda/hifi into protocol 2015-07-27 17:45:31 -07:00
Atlante45
c4f88a0f53 Added loss list to connections 2015-07-27 17:41:15 -07:00
Stephen Birarda
75765d02e4 correct sizeof ACK_PACKET_PAYLOAD_BYTES in Connection 2015-07-27 17:40:32 -07:00
Stephen Birarda
d2c5e79ac2 add writing of control bit and type to ControlPacket 2015-07-27 17:38:10 -07:00
Stephen Birarda
52411bb8ba pack ACK sub sequence number manually for control 2015-07-27 17:23:39 -07:00