Normalize port naming (tids_, trps_, and mons_port) and use signed int