1e41f4b71Sopenharmony_ci# Hopping Overview
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## When to Use
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciAs the all-scenario, multi-device lifestyle becomes popular, users have an increasing number of devices. Each device provides users with what they need in a certain scenario. For example, watches allow users to view information in a timely manner, and smart TVs deliver an immersive watching experience. However, each device has its limitations. For example, typing text on a smart TV is frustrating as it is much more difficult than on a mobile device. If multiple devices can sense each other through a distributed OS and together form a super device, the strengths of each device can be fully exerted, thereby providing a more natural and smoother distributed experience for users.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciDistributed operations across devices are called hopping, which is further classified into [cross-device migration](hop-cross-device-migration.md) and [multi-device collaboration](hop-multi-device-collaboration.md).
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## Basic Concepts
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci- **Hopping**
14e41f4b71Sopenharmony_ci  
15e41f4b71Sopenharmony_ci  Hopping refers to distributed operations across devices. It breaks device boundaries and makes applications modular. For example, a user can edit the same email, carry out fitness, or play a game across devices. Hopping provides broad application scenarios, innovative product perspectives, enhanced product advantages, and superior experience.  
16e41f4b71Sopenharmony_ci  
17e41f4b71Sopenharmony_ci- **Cross-device migration**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci  When the environment changes, for example, when a user goes outdoors or when a more appropriate device is detected, the user can migrate an ongoing mission to another device for better experience. The application on the original device can automatically exit, depending on the setting. A typical cross-device migration scenario is as follows: You migrate a video playback task from a tablet to a smart TV. The video application on the tablet exits. From the perspective of application development, cross-device migration enables the UIAbility component running on device A to migrate to device B. After the migration is complete, the UIAbility component on device B continues the mission, whereas that on device A automatically exits (depending on the setting).
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci- **Multi-device collaboration**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci  Multi-device collaboration provides users with more efficient and immersive experience than with a single device. Multi-device collaboration is used in the following typical scenarios:
24e41f4b71Sopenharmony_ci  
25e41f4b71Sopenharmony_ci  - Scenario 1: You open the same note on devices A and B. On device A, you select images from the local Gallery, insert them to the note, and edit them. On device B, you edit the text.
26e41f4b71Sopenharmony_ci  - Scenario 2: : You are chatting with a customer on device A, and the customer asks for a file, which is stored on device B. You can use the chat software to open the file application on device B, select the required file, and send it back to device A. Then, you use the chat software to send it to the customer. From the perspective of application development, multi-device collaboration enables different UIAbility or ServiceExtensionAbility components to run simultaneously or alternately on multiple devices to provide a complete service, or enables the same UIAbility and ServiceExtensionAbility component to run simultaneously on multiple devices to provide a complete service.
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci## Hopping Architecture
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciThe system provides APIs for you to implement application hopping. The hopping architecture has the following advantages:
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci- Capabilities such as remote service invocation to facilitate service design
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci- Simultaneous hopping of multiple applications
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci- Different device forms supported, such as tablets, smart TVs, and watches
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ciThe following figure shows the hopping architecture.
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci  **Figure 1** Hopping architecture
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci ![hop-structure](figures/hop-structure.png)  
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci- Cross-device migration mission management: The initiator accepts a migration request from the user, provides a migration entry, and displays the migration result.
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci- Multi-device collaboration mission management: The initiator accepts an application registration request and provides management capabilities such as starting or stopping collaboration and status display.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci- Distributed component management: provides capabilities such as remote service startup, remote service connection, and remote migration, and provides applications with cross-device migration or multi-device collaboration based on a combination of these capabilities.
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci- Distributed security authentication: provides an E2E encrypted channel for cross-device transmission between applications to ensure that the right person uses the right data through the right device.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci- DSoftBus: functions as a unified communication base for a wide range of devices, such as tablets, wearables, and smart TVs, and enables unified distributed communication between these devices.
54