An autonomous system is a set of routers under one technical administration, which uses its own routing protocol inside. In path-vector routing, each announcement of a prefix carries the list of autonomous systems it passed through, so that a system that finds itself in the list knows there is a loop and ignores the announcement.