Hi. I don't really know shit, but last time I educated myself a little about the topic (and forgot most of it, R.I.P. piece of knowledge),
pretty much that's it I guess.. routers route traffic incoming say from a modem and the port is important, because I guess that's how the router decides what computer the data packet goes to.. Each computer has it's MAC address (which can be fooled, of course), and it is assigned an local IP address, say 192.168.1.2, which expires I believe, so to not run out of IP addresses to give, I believe that this is called DCHP, and when I asked around how I can connect computers together (say for SSH access) without a router, say just trough a switch, I got a "you need a DHCP server" (and OpenBSD comes with one, yay), and after finding out that after ssh-ing and plugging out my router connection - my SSH connection is alive and well after being established, this further prooved my understanding of it (which is probably easier if you have time and health and patience to read manuals and wikipedia a little) This sounds very simple, of course, but commerical routers usually come with lots more, havin not only wired communcation handling but also wireless ones.. then there's NAT, port forwarding, port triggering, and other features that routers are, which might not be required, but are there to please a wider range of customers, be them normies or tech-savy users. In theory it shouldn't be too complicated, but I guess there ought to be security measures as well? And if working with WiFi, I guess it also has to handle some sort of encryption? I also heard that router chips are ASIC arm ones? Don't trust anything I just wrote, verify it.. I believe it's the truth, but I might be wrong.. I am barely a dev, 0 successful/finished projects (mostly due to health reasons now :( )