A service processing method of a service-based architecture of a 5G network, comprising: • receiving, by a network element repository function entity, NRF, a service query request sent by a service customer, wherein the NRF provides a service registration function and a service discovery function for a core network of the 5G network (S 205); and • determining, by the NRF, a service address of a service proxy that matches a service requested by the service query request, and sending the service address of the service proxy to the service customer, wherein a service proxied by the service proxy comprises the service requested by the service query request (S 206), wherein before the sending, by the NRF, the service address of the service proxy to the service customer, the method further comprises: • receiving, by the NRF using a service proxy registration interface, a registration request sent by the service proxy, wherein the registration request comprises a service name of the service proxied by the service proxy, and the service proxy registration interface is a service-based interface different from a service provider registration interface (S 202); and • verifying, by the NRF based on the service name of the service proxied by the service proxy, legality of the service proxied by the service proxy, and storing the service address of the service proxy when the service is verified to be legal (S 203). • receiving, by a network element repository function entity, NRF, a service query request sent by a service customer, wherein the NRF provides a service registration function and a service discovery function for a core network of the 5G network (S 205); and • determining, by the NRF, a service address of a service proxy that matches a service requested by the service query request, and sending the service address of the service proxy to the service customer, wherein a service proxied by the service proxy comprises the service requested by the service query request (S 206), wherein before the sending, by the NRF, the service address of the service proxy to the service customer, the method further comprises: • receiving, by the NRF using a service proxy registration interface, a registration request sent by the service proxy, wherein the registration request comprises a service name of the service proxied by the service proxy, and the service proxy registration interface is a service-based interface different from a service provider registration interface (S 202); and • verifying, by the NRF based on the service name of the service proxied by the service proxy, legality of the service proxied by the service proxy, and storing the service address of the service proxy when the service is verified to be legal (S 203). • receiving, by the NRF using a service proxy registration interface, a registration request sent by the service proxy, wherein the registration request comprises a service name of the service proxied by the service proxy, and the service proxy registration interface is a service-based interface different from a service provider registration interface (S 202); and • verifying, by the NRF based on the service name of the service proxied by the service proxy, legality of the service proxied by the service proxy, and storing the service address of the service proxy when the service is verified to be legal (S 203).