From: Pradeep Anbumani <pradeepdreams@gmail.com>
To: linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: ACK Flooding
Date: Tue, 23 Nov 2004 09:42:18 +0530 [thread overview]
Message-ID: <19f134cc04112220125461595d@mail.gmail.com> (raw)
I wanna analyse how the Linux Kernel reacts for the change I've made.
I've changed the tcp_input.c file and the function is
"__tcp_ack_snd_check()" function.........and added a loop of 100
acks.....generation .....The behavior of TCP is not as expected after
adding this piece of code....
If anybody could tell me what changes had to be made to get the
desired output..the desired output is TCP as per the conventional
behaviour has to increase the transmission rate as it gets more
duplicate acknowledgements....
static __inline__ void __tcp_ack_snd_check(struct sock *sk, int ofo_possible)
{ int i=0;
struct tcp_opt *tp = &(sk->tp_pinfo.af_tcp);
3009 /* More than one full frame received... */
3010 if (((tp->rcv_nxt - tp->rcv_wup) > tp->ack.rcv_mss
3011 /* ... and right edge of window advances far enough.
3012 * (tcp_recvmsg() will send ACK otherwise). Or...
3013 */
3014 && __tcp_select_window(sk) >= tp->rcv_wnd) ||
3015 /* We ACK each frame or... */
3016 tcp_in_quickack_mode(tp) ||
3017 /* We have out of order data. */
3018 (ofo_possible &&
3019 skb_peek(&tp->out_of_order_queue) != NULL)) {
3020 /* Then ack it now */
for(i=0;i<100;i++){ /* My CHANGES ONLY THIS FOR LOOP
tcp_send_ack(sk);
}
3022 } else {
3023 /* Else, send delayed ack. */
3024 tcp_send_delayed_ack(sk);
3025 }
3026 }
Pradeep
next reply other threads:[~2004-11-23 4:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 4:12 Pradeep Anbumani [this message]
2004-11-23 4:40 ` ACK Flooding David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2004-11-18 6:29 Ack Flooding Srinivas Naga Vutukuri
2004-11-18 3:53 Pradeep Anbumani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19f134cc04112220125461595d@mail.gmail.com \
--to=pradeepdreams@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.