In the BGP, the AS is an autonomous system, which means an address space. For routing, the AS signifies a router and the AS-path attribute lists all of the routers that a connection passed through. The next-hop attribute is the neighboring router that leads to the path list.