abstraction for ubiquitous computing. The key to service modeling of SOA-based systems is in classifying services into business, application, and orchestration layers. However, service modeling techniques for SOA cannot be directly applied to a ubiquitous computing environment, which is dynamic, autonomous, and largely affected by run-time context. We have mainly focused on establishing the service layer to allow users to specify the computing goal using abstract description, detailed description, or both. The layered service abstraction also supports dynamic service composition and alternative service discovery to achieve the goal. Experiments show that the proposed metaservice provides a 49%-81% improvement in completing the execution of services over composition using none-layered services and a 30%-47% reduction in binding time by facilitating alternative service discovery.