LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2020, 01:15 PM   #1
donpauly
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Question Question related to TCP/IP buffering in linux


I have been trying very hard to find about buffers used in TCP/IP as part of packet transfer in linux. More i read, more i get confused. Below given are questions i have. Can someone help me figure it out?

1)Is the driver queue which is implemented as a ring buffer with descriptors pointing to skbs, same as receive and send buffers of TCP? If not when does receive/send buffers of TCP comes to picture in the packet travel?

2)Is TCP connection backlog queue totally different queue from accept/receive queue? Where does backlog queue fit in the packet travel? I understand backlog queue is for pending connections.

3)Is there a separate buffer area for each socket to which data is transferred from TCP accept/send buffers?

4)For incoming connections is the correct flow? NIC -> Kernel Ring buffer(skb) -> IP stack -> TCP accept/receive buffers -> Qdisc layer -> socket buffer for connection.
 
Old 02-19-2020, 10:05 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,357
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
TCP is an internet standard, not a Linux standard. Accordingly, for TCP buffering to work, Linux must comply with the internet standard. https://en.wikipedia.org/wiki/Transm...ntrol_Protocol

If you want to learn how precisely it is handled in Linux, you might want to start here.
 
1 members found this post helpful.
Old 02-22-2020, 04:56 AM   #3
shreekavi
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Hi all,

Thanks for explain this.... It is very useful
 
  


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
Question regarding TCP coding and TCP header in ns2 bsyew Linux - Newbie 0 04-13-2011 12:08 PM
pipe buffering/blocked write caching question genmaicha Programming 2 04-04-2010 05:51 PM
TCP Related question pwnthis Linux - Networking 0 12-05-2008 08:02 AM
Triple buffering question Belegdol Linux - Hardware 1 07-01-2005 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:45 AM.

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