Shogun describes the period just before the establishment of the Tokugawa shogunate. This article describes the system that developed after that, under the Shoguns.
Loved that show. There is a fairly recent "Last Samurai Standing" fictional series that portrays the desperation of the Samurai after the end of the Edo era. It's a bit Squid Game-ish, but I enjoyed it immensely.