1) Satellite AIS - paid supplement for MarineTraffic.com or VesselTracker.com.

2) There can be terrestrial repeaters, but I have not seen nor heard of ship-based repeaters. We generally see a range of 20-24 miles with our antenna at the top of a 58-foot mast.

https://www.navcen.uscg.gov/how-ais-works

Cheers, RickG