LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2006, 05:48 AM   #1
Mr.Bloom
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Linux TCP/IP Stack: meaning of some fields


Hello,

May someone help me in understanding the meaning of the following fields of
the Liunx Kernel TCP/IP stack?

-for the struct sock:
use_write_queue /*is it set to 1 for TCP sockets and to 0 for the UDP ones ? */
-for the struct tcp opt:
frto_counter
frto_highmark

i did read the comments in the kernel code but any further description will be welcome!

thanks you

Mr.Bloom
 
Old 04-11-2006, 01:45 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i hope i get at least some of theis right

use_write_queue is a flag that esentially is used to distinguish between UDP and TCP

see for instance the function sock_wfree()
when it attempts to wake up possible sleepers on the socket it checks
use_write_queue
Code:
if (!sk->use_write_queue)
  sk->write_space(sk);
basically UDP packets don't use the que to the sk_buffs.
they just either can transmit and do or fail.
i think blocking UDP packets do go in the wait cue with the longest possible wait (when memory if full) for the sk_buffs but then again either transmit or fail. they never get into the linked lists called buffer queues that exist for each buffer don't get priority set and like that.
see include/linux/skbuff.h


all i know about the others is RTO is Retransmission
Time Out
see /include/linux/tcp.h
http://www.faqs.org/rfcs/rfc2988.html
 
Old 04-11-2006, 03:18 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DG/UX and RedHat Linux Having TCP/IP Stack Issues TonyBerry Linux - Networking 2 01-25-2006 05:55 PM
TCP cannections in TCP stack hegdeshashi Linux - Networking 1 01-04-2006 07:24 PM
getting new tcp/ip stack on linux cdp Linux - Networking 7 06-29-2005 12:50 PM
TCP/IP stack source code tarazan Linux - Networking 3 05-11-2005 02:56 PM
TCP/IP Stack on Linux? Rossak Linux - Networking 2 07-27-2003 06:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration