摘要 |
The present invention discloses a method and an apparatus for connection establishment, where the method includes: receiving a registration request and a connection request that are sent by a client based on a service; when the service is registered successfully according to the registration request, generating a policy instruction for the service according to service information that is of the service and carried in the registration request, where the policy instruction is used to instruct to adjust an on-off state of a connection that is between a server and the client and established for the service; feeding back the policy instruction to the client, and instructing the client to adjust, according to the policy instruction, the on-off state of the connection that is between the server and the client and established for the service; establishing, based on the connection request, the connection between the server and the client for the service, and adjusting, based on the policy instruction, the on-off state of the connection, so as to solve a problem in the prior art that a large amount of electricity is consumed by the client. |