THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

SharkFest YouTube Query - TCP Stacks

I was watching a Chris Greer video and he often refers to stacks albeit IP or TCP or otherwise.

So my query is simple, are these 'stacks' lets say TCP, built by developers per application, or OS ..?

Thanks

(btw i'm hooked)

ajaznawaz's avatar
1
ajaznawaz
asked 2022-08-11 08:12:03 +0000
grahamb's avatar
23.8k
grahamb
updated 2022-08-11 08:15:35 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

Stack is rather what it means in the English language.

UDP or TCP lies on top of IP.

Hardly anyone writes IP, UDP or TCP code. Most use some API or socket touse it in their code. So it is usually part of the OS.

hugo.vanderkooij's avatar
76
hugo.vanderkooij
answered 2022-08-11 09:00:08 +0000
edit flag offensive 0 remove flag delete link

Comments

Thank you for clarifying - my query actually stemmed from looking for 'Timestamps' in one pcap. All the timestamps I see are in square brackets which of course means Wireshark did it.

RFC6191 addresses problems associated with TIME_WAIT which is something I am investigating atm. There is another thread I posted few days ago regarding port reuse.

Anyway, its early days but the problem seems to be connected with ISP, and enabling 'dual-stack' appears to have fixed the problem. Its early days, further testing is ongoing, stay tuned here for confirmation !

ajaznawaz's avatar ajaznawaz (2022-08-11 09:54:33 +0000) edit
add a comment see more comments
0

Even though not strictly required the so called network stack is usually provided as part of the Operating System. It's an highly integrated and optimized part using OS and sometimes network hardware features to provide a so called socket API. This socket API abstracts all details related to the network protocol handling (e.g., TCP/IP) , and makes it much easier for the application programmer to use.
Otoh, it is possible to program your own network protocol stack. Then you would need to use so-called raw sockets, which connect directly to the underlying data link layer, e.g., Ethernet. But then you would still compete with the OS based network stack, so integration into a system would not be easy. Therefore you hardly ever see network stacks outside the OS's being used.

Jaap's avatar
13.7k
Jaap
answered 2022-08-11 08:54:50 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer