Hi zaheernew,
AS is an autonomous system.
BGP is a dynamic routing protocol used between autonomous systems (ASs).
BGP is an exterior gateway protocol (EGP). It focuses not on route discovery and calculation, but on selecting optimal routes between ASs and controlling route propagation.
When BGP runs in the same AS, it is called IBGP. When BGP runs between different ASs, it is called EBGP.
For more information, you can refer to
https://support.huawei.com/hedex/hdx.do?docid=EDOC1100168821&id=EN-US_CONCEPT_0172354361&lang=enI hope it helps!