Why Nostr? What is Njump?
2024-04-02 19:42:04
in reply to

ChipTuner on Nostr: Yes and no. TCP is a transport protocol that sits on top of IP. All of the ...

Yes and no. TCP is a transport protocol that sits on top of IP. All of the specifications are public domain RFCs. TCP just needs a network layer to function. IP is the modern network layer (layer 3) that all routers use to communicate. I have very little experience with this layer, but I do believe routing equipment would be mostly "hard-coded" to use the IP protocol.

That being said a modern networking stack is usually built directly into the hardware. Intel and Broadcom networking controllers defer TCP to the controller itself rather than the OS or even driver code. This is called TCP offloading. Most (if not all) offloading code would run locally to the network controller and likely closed source.

In embedded applications, source code usually needs to be available to the system building it but often have proprietary licensing.

Here is the Linux IPV4 stack source code if you are so inclined.
https://github.com/torvalds/linux/tree/master/net/ipv4

To further your point, unless we move networking into user-space which is a very dumb idea for many reasons imo, we will need to "rely" on proprietary IP hardware stacks if we want performance. As far as DNS goes, yeah that's actually centralized and "controlled" by the state. However I believe we should do whatever bitcoin does. TMK bitcoin primarily relies on DNS for node discovery and some basic security.

If anyone sees this and wants to contribute to open hardware and operating systems the Redbean project could use your help I'm sure, I could get you in touch!
Author Public Key
npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7