A device receives first information from a first service gateway (SGW) and second information from a second SGW. The device further generates a rank of the first SGW and the second SGW based on the first information and the second information. The device also receives a request for a session from a user device, selects the first SGW or the second SGW based on the rank, and uses the selected SGW for the session.