A non-transitory computer readable medium storing a program that causes a computer to execute a process of controlling connection switch of a mobile station from a first base station to a second base station, the non-transitory computer readable medium storing a program that, when the connection of the mobile station is switched from the first base station to the second base station, selects the second base station from a plurality of base stations according to connection history information indicating a success or a failure of past switching of the connection from the first base station to at least one of the plurality of base stations.