
tcp.c文件的tcp_retransmit函数 978计划工作组 2009-8-12 1函数源码 /* * A timer event has trigger a tcp retransmit timeout. The * socket xmit queue is ready and set up to send. Because * the ack receive code keeps the queue straight we do * nothing clever here. */ static void tcp_retransmit(struct sock *sk, int all) { if (all) { tcp_retransmit_time(sk,...
本帖最后由 jiufei19 于 2013-01-06 16:59 编辑 大家好,我在阅读tcp_retransmit_skb函数(V2.6.23版本),其中有段代码不明白其作用,希望大家能解惑 int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb) { ... /* Some Solaris stacks overoptimize and ignore the FIN on a * retransmit when old data is attached. So strip it off * since it is cheap to do so and saves bytes on ...
tcp.c文件的retransmit_timer函数 978计划工作组 2009-8-18 1函数源码 /* * The tcp retransmit timer. This lacks a few small details. * * 1. An initial rtt timeout on the probe0 should cause what we can * of the first write queue buffer to be split and sent. * 2. On a 'major timeout' as defined by RFC1122 we shouldn't report * ETIMEDOUT if we know an additional...
tcp.c文件的tcp_retransmit_time函数 978计划工作组 2009-8-12 1函数源码 /* * This is the normal code called for timeouts. It does the retransmission * and then does backoff. tcp_do_retransmit is separated out because * tcp_ack needs to send stuff from the retransmit queue without * initiating a backoff. */ void tcp_retransmit_time(struct sock *sk, int all) { tcp_do_retransmit(s...
tcp.c文件的tcp_do_retransmit函数 978计划工作组 2009-8-6 1函数源码 /* * A socket has timed out on its send queue and wants to do a * little retransmitting. Currently this means tcp. */ void tcp_do_retransmit(struct sock *sk, int all) { struct sk_buff * skb; struct proto *prot; struct device *dev; int ct=0; prot = sk->prot; skb = sk->send_head;...
在对盘阵写操作时分为这两种方式: fast write :A fast write occurs when the percentage of modified data in global memory is less than the fast write threshold. Delayed fast write: A delayed fast write occurs only when the fast write threshold has been exceeded. That is, the percentage of global memory containing modified data is higher than the fast write threshold. 对于modified data (指哪些数据?...
面向连接: 何谓连接? 如何保持? tcp通过下列方式来提供可靠性: 应用数据被分割成tcp认为最适合发送的数据块。这和UDP完全不同,应用程序产生的数据报长度将保持不变。由tcp传递给IP的信息单位称为报文段或段(segment)。当tcp发出一个段后,它启动一个定时器,等待目的端确认收到这个报文段。如果不能及时收到一个确认,将重发这个报文段。当tcp收到发自tcp连接另一端的数据,它将发送一个确认。这个确认不是...
tcp到底有多少个定时器阿 他们分别起什么作用阿;我在网上查到以下资料不知道符合RFC 1)“连接建立”定时器,在发送SYN报文段建立一条新的连接时启动。如果没有在75秒内收到响应,连接建立将中止。 2)“重传”定时器,在发送数据时设定。如果定时器已超时而对端的确认还未到达,将重传数据。重传定时器的值是动态计算的,取决来RTT与该报文段被重传的次数。 3)“延迟ACK”定时器,收到必须确认但无需马上发出确认的数据时设定...
tcp到底有多少个定时器阿\r\n他们分别起什么作用阿;我在网上查到以下资料不知道符合RFC\r\n1)“连接建立”定时器,在发送SYN报文段建立一条新的连接时启动。如果没有在75秒内收到响应,连接建立将中止。\r\n 2)“重传”定时器,在发送数据时设定。如果定时器已超时而对端的确认还未到达,将重传数据。重传定时器的值是动态计算的,取决来RTT与该报文段被重传的次数。\r\n 3)“延迟ACK”定时器,收到必须确认但无需马上发出确认...