https://cseweb.ucsd.edu/classes/wi21/cse123-a/project.html
We use this book and its amazing:
https://book.systemsapproach.org/index.html
Section 3.5 covers router implementation details.