The king/emperor was the supreme commander of all the military forces including the navy.
The navy is organized mostly on role based squadrons & divisions, containing various types of ships assigned for a specific role and home-ported in an associated base/port.