patch-2.4.27 linux-2.4.27/include/net/sock.h
Next file: linux-2.4.27/include/net/tcp.h
Previous file: linux-2.4.27/include/net/sctp/user.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
2004-08-07 16:26:06.493422342 -0700
- Orig file:
linux-2.4.26/include/net/sock.h
- Orig date:
2004-04-14 06:05:40.000000000 -0700
diff -urN linux-2.4.26/include/net/sock.h linux-2.4.27/include/net/sock.h
@@ -433,6 +433,20 @@
unsigned long last_synq_overflow;
+/* Receiver side RTT estimation */
+ struct {
+ __u32 rtt;
+ __u32 seq;
+ __u32 time;
+ } rcv_rtt_est;
+
+/* Receiver queue space */
+ struct {
+ int space;
+ __u32 seq;
+ __u32 time;
+ } rcvq_space;
+
/* TCP Westwood structure */
struct {
__u32 bw_ns_est; /* first bandwidth estimation..not too smoothed 8) */
@@ -445,6 +459,26 @@
__u32 rtt;
__u32 rtt_min; /* minimum observed RTT */
} westwood;
+
+/* Vegas variables */
+ struct {
+ __u32 beg_snd_nxt; /* right edge during last RTT */
+ __u32 beg_snd_una; /* left edge during last RTT */
+ __u32 beg_snd_cwnd; /* saves the size of the cwnd */
+ __u8 do_vegas; /* do vegas for this connection */
+ __u8 doing_vegas_now;/* if true, do vegas for this RTT */
+ __u16 cntRTT; /* # of RTTs measured within last RTT */
+ __u32 minRTT; /* min of RTTs measured within last RTT (in usec) */
+ __u32 baseRTT; /* the min of all Vegas RTT measurements seen (in usec) */
+ } vegas;
+
+ /* BI TCP Parameters */
+ struct {
+ __u32 cnt; /* increase cwnd by 1 after this number of ACKs */
+ __u32 last_max_cwnd; /* last maximium snd_cwnd */
+ __u32 last_cwnd; /* the last snd_cwnd */
+ __u32 last_stamp; /* time when updated last_cwnd */
+ } bictcp;
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)