The Serving Gateway (SGW) terminates the interface towards the E-UTRAN and handles mobility and data transfer between the UE and PDN Gateway. It maintains UE context and generates paging requests. The Packet Data Network Gateway (PGW) terminates the SGi interface towards the PDN and acts as an anchor for mobility between 3GPP and non-3GPP technologies, providing connectivity from the UE to external PDNs. It manages policy enforcement, packet filtering, charging support, and lawful interception. Both gateways handle functions like mobility anchoring, packet routing/forwarding, charging, and lawful interception.