A method for data migration, wherein the method comprises: receiving, by a Session Management Function, current location information of a terminal reported by the terminal, wherein the SMF is located at a core data management center, a first service and a service message are added in the SMF, the first service is configured to manage context of a business application, and the service message is configured to configure a communication link between the business application and the SMF for using the first service; determining, by the SMF, whether it is necessary to switch a path of a business service currently in use for the terminal on the basis of the current location information and original location information of the terminal; and when it is determined that it is necessary to switch the path of the business service currently in use for the terminal, migrating, by the SMF, path information of the business service from an original business application of an original edge data center to a target business application of a target edge data center, wherein the original business application corresponds to the original location information, and the target business application corresponds to the current location information; and the original business application and the target business application are both capable of providing the business service to the terminal, and both have subscribed to the first service; wherein before said migrating, by the SMF, the path information of the business service from the original business application of the original edge data center to the target business application of the target edge data center, the method further comprises: registering, by the SMF, the first service in an original UPF in the original edge data center and a target UPF in the target edge data center; and accepting, by the SMF, subscription of the original business application to the first service through the original UPF, and accepting, by the SMF, subscription of the target application to the first service through the target UPF. receiving, by a Session Management Function, current location information of a terminal reported by the terminal, wherein the SMF is located at a core data management center, a first service and a service message are added in the SMF, the first service is configured to manage context of a business application, and the service message is configured to configure a communication link between the business application and the SMF for using the first service; determining, by the SMF, whether it is necessary to switch a path of a business service currently in use for the terminal on the basis of the current location information and original location information of the terminal; and when it is determined that it is necessary to switch the path of the business service currently in use for the terminal, migrating, by the SMF, path information of the business service from an original business application of an original edge data center to a target business application of a target edge data center, wherein the original business application corresponds to the original location information, and the target business application corresponds to the current location information; and the original business application and the target business application are both capable of providing the business service to the terminal, and both have subscribed to the first service; wherein before said migrating, by the SMF, the path information of the business service from the original business application of the original edge data center to the target business application of the target edge data center, the method further comprises: registering, by the SMF, the first service in an original UPF in the original edge data center and a target UPF in the target edge data center; and accepting, by the SMF, subscription of the original business application to the first service through the original UPF, and accepting, by the SMF, subscription of the target application to the first service through the target UPF. registering, by the SMF, the first service in an original UPF in the original edge data center and a target UPF in the target edge data center; and accepting, by the SMF, subscription of the original business application to the first service through the original UPF, and accepting, by the SMF, subscription of the target application to the first service through the target UPF.