技术领域technical field
本申请涉及计算机技术领域,尤其涉及一种应用业务的迁移方法及系统、网络设备和存储介质。The present application relates to the field of computer technology, and in particular to a method and system for migrating application services, network equipment and storage media.
背景技术Background technique
计算机应用软件(简称应用)是提供业务的程序,服务器通过运行应用可以为终端提供相应业务。随着计算机被普遍应用于各行各业,应用为终端提供的业务涉及工程、金融和服务等诸多行业,许多通用应用也逐渐成为人们日常生活和社会交流中不可或缺的工具。应用迁移也称主机迁移,用于将某个应用(称作目标应用)从一个服务器(称作第一服务器)移动到另一个服务器(称作第二服务器),从而使得第二服务器在运行目标应用的过程中为终端提供相应的业务。第一服务器和第二服务器可以为相同类型的服务器或者为不同类型的服务器。例如,应用迁移可以将应用从一个物理服务器迁移到另一个物理服务器,或者,将应用从物理服务器迁移到虚拟服务器,或者,将应用从一个虚拟服务器迁移到另一个虚拟服务器。Computer application software (abbreviated as application) is a program that provides services, and the server can provide corresponding services for the terminal by running the application. As computers are widely used in all walks of life, the services provided by applications for terminals involve many industries such as engineering, finance, and services. Many general-purpose applications have gradually become indispensable tools in people's daily life and social communication. Application migration, also known as host migration, is used to move an application (called the target application) from one server (called the first server) to another server (called the second server), so that the second server is running on the target During the application process, corresponding services are provided for the terminal. The first server and the second server may be the same type of server or different types of servers. For example, application migration can migrate an application from one physical server to another physical server, or migrate an application from a physical server to a virtual server, or migrate an application from one virtual server to another virtual server.
随着信息技术和企业业务的快速发展,应用迁移的频率不断增高。为了简化运维人员实施应用迁移的操作步骤,迁移服务中心应运而生。其中,参考图1,迁移服务中心是用于为用户(例如运维人员)提供应用迁移服务的服务器。用户可以通过配置迁移服务中心来向第一服务器发送迁移指令,以通知第一服务器向第二服务器迁移目标应用。With the rapid development of information technology and enterprise business, the frequency of application migration is increasing. In order to simplify the operation steps for operation and maintenance personnel to implement application migration, the Migration Service Center came into being. Wherein, referring to FIG. 1 , the migration service center is a server for providing application migration services for users (such as operation and maintenance personnel). The user can configure the migration service center to send a migration instruction to the first server, so as to notify the first server to migrate the target application to the second server.
为了将目标应用的部分或全部业务迁移至第二服务器,用户还需要对终端访问目标应用的通信网络进行改造(参考图1)或者对目标应用的客户端进行升级,以将终端访问目标应用的部分或全部流量迁移至第二服务器。可见,目前应用业务的迁移过程对用户的技术要求仍然较高,不利于降低应用业务迁移的成本。In order to migrate some or all of the services of the target application to the second server, the user also needs to modify the communication network through which the terminal accesses the target application (refer to FIG. 1 ) or upgrade the client of the target application so that the Some or all of the traffic is migrated to the second server. It can be seen that the current application service migration process still has high technical requirements for users, which is not conducive to reducing the cost of application service migration.
发明内容Contents of the invention
本申请实施例提供了一种应用业务的迁移方法及系统、网络设备和存储介质,用于为用户提供目标应用的数据迁移服务和流量迁移服务,以实现目标应用的业务迁移,降低应用业务的迁移过程对用户的技术要求,从而有利于降低应用业务迁移的成本。The embodiment of the present application provides a method and system for migrating application services, a network device, and a storage medium, which are used to provide users with data migration services and traffic migration services of target applications, so as to realize service migration of target applications and reduce the cost of application services. Migration process requires technical requirements for users, which helps to reduce the cost of application business migration.
本申请实施例第一方面提供一种应用业务的迁移方法,该方法可以包括:网络设备获取来自用户的配置信息,所述配置信息指示将第一服务器中目标应用的目标业务迁移至第二服务器,所述第一服务器的地址和所述第二服务器的地址不同。所述网络设备根据所述配置信息向所述第一服务器发送迁移指令,所述迁移指令用于通知所述第一服务器向所述第二服务器迁移所述目标应用。所述网络设备根据所述配置信息接收并向所述第二服务器转发访问所述目标业务的第一流量。The first aspect of the embodiments of the present application provides a method for migrating application services, the method may include: the network device acquires configuration information from the user, the configuration information indicates that the target service of the target application in the first server is migrated to the second server , the address of the first server is different from the address of the second server. The network device sends a migration instruction to the first server according to the configuration information, and the migration instruction is used to notify the first server to migrate the target application to the second server. The network device receives and forwards the first traffic for accessing the target service to the second server according to the configuration information.
用户向网络设备下达配置信息后,网络设备便可以根据配置信息为用户提供目标应用的应用迁移服务和流量迁移服务,以完成目标应用的业务迁移。可见,本申请第一方面提供的应用业务的迁移过程对用户的技术要求较低,有利于降低应用业务迁移成本。After the user sends the configuration information to the network device, the network device can provide the user with the application migration service and traffic migration service of the target application according to the configuration information, so as to complete the service migration of the target application. It can be seen that the application service migration process provided by the first aspect of the present application has relatively low technical requirements for users, which is beneficial to reduce application service migration costs.
可选的,所述配置信息包括迁移策略,所述第一流量为根据所述迁移策略确定的,其中,所述迁移策略指示向所述第二服务器迁移所述目标业务的方式。Optionally, the configuration information includes a migration policy, and the first traffic is determined according to the migration policy, wherein the migration policy indicates a manner of migrating the target service to the second server.
本申请方法实施例中,基于配置信息中的迁移策略实现全流程自动化应用迁移,自动化效率更高。In the method embodiment of the present application, the entire process of automatic application migration is realized based on the migration strategy in the configuration information, and the automation efficiency is higher.
可选的,目标应用可以包括一个或多个应用。用户向网关输入迁移策略,可以支持每应用每策略或多应用同策略,迁移驱动策略配置可动态调整。例如,用户可以在配置信息中输入多个应用的标识,并且可以为多个应用配置相同或不同的迁移策略。Optionally, the target application may include one or more applications. The user inputs the migration strategy to the gateway, which can support each application, each strategy or multiple applications with the same strategy, and the configuration of the migration-driven strategy can be dynamically adjusted. For example, the user can input the identifiers of multiple applications in the configuration information, and can configure the same or different migration policies for the multiple applications.
可选的,所述迁移策略为搬迁驱动策略,所述搬迁驱动策略指示使用所述第二服务器代替所述第一服务器提供所述目标业务。所述第一流量为所述网络设备在将所述目标应用迁移至所述第二服务器后所接收到的访问所述目标业务的全部流量。Optionally, the migration policy is a migration-driven policy, and the migration-driven policy indicates that the second server is used instead of the first server to provide the target service. The first traffic is all traffic for accessing the target service received by the network device after migrating the target application to the second server.
本申请方法实施例中,用户输入配置信息后,目标应用可以免监管的自动化完成迁移,相比传统方案减少了人工操作的复杂度,提升迁移效率,降低迁移成本。In the method embodiment of this application, after the user enters the configuration information, the target application can be automatically migrated without supervision, which reduces the complexity of manual operations compared to traditional solutions, improves migration efficiency, and reduces migration costs.
可选的,所述迁移策略为流量驱动策略,所述流量驱动策略指示采用负载均衡方式向所述第二服务器迁移所述目标业务。所述第一流量为根据所述负载均衡方式从全部流量中确定的,所述全部流量为所述网络设备在将所述目标应用迁移至所述第二服务器后所接收到的访问所述目标业务的全部流量。Optionally, the migration policy is a traffic-driven policy, and the traffic-driven policy indicates that the target service is migrated to the second server in a load balancing manner. The first traffic is determined from all traffic according to the load balancing method, and the all traffic is the access to the target received by the network device after migrating the target application to the second server. All business flows.
由于可以根据目标业务的流量来启动目标应用的迁移,有利于根据第一服务器运行的多个应用的业务流量来自动选择需要迁移的应用。由于可以根据用户的配置信息负载均衡的向第一服务器和第二服务器转发流量,有利于减轻第一服务器或第二服务器的业务压力。Since the migration of the target application can be started according to the traffic of the target business, it is beneficial to automatically select the application to be migrated according to the business traffic of multiple applications running on the first server. Since traffic can be load-balanced forwarded to the first server and the second server according to the configuration information of the user, it is beneficial to reduce the business pressure of the first server or the second server.
可选的,所述迁移策略为主备驱动策略,所述主备驱动策略指示在所述第一服务器发生故障后向所述第二服务器迁移所述目标业务。所述第一流量为所述网络设备在所述第一服务器发生故障后所接收到的访问所述目标业务的流量。Optionally, the migration policy is an active-standby driving policy, and the active-standby driving policy indicates that the target service is migrated to the second server after the first server fails. The first traffic is the traffic received by the network device for accessing the target service after the first server fails.
由于可以根据用户的配置信息在第一服务器发生故障之后向第二服务器转发流量,有利于保证目标业务的可靠性。Since traffic can be forwarded to the second server after the first server fails according to the configuration information of the user, it is beneficial to ensure the reliability of the target service.
可选的,所述配置信息还包括迁移所述目标应用的前提条件。所述网络设备根据所述配置信息向所述第一服务器发送迁移指令,包括:所述网络设备接收并向所述第一服务器转发访问所述目标业务的第二流量;在满足所述前提条件后,所述网络设备向所述第一服务器发送所述迁移指令。Optionally, the configuration information further includes prerequisites for migrating the target application. The network device sending a migration instruction to the first server according to the configuration information includes: the network device receiving and forwarding the second traffic for accessing the target service to the first server; Afterwards, the network device sends the migration instruction to the first server.
用户可以在配置信息中设置前提条件,网关可以基于用户意图实现源端和目的端的远程协作。应用迁移的完成时间弹性灵活,提升应用迁移的灵活性和便利性。Users can set preconditions in the configuration information, and the gateway can realize remote collaboration between the source and destination based on user intentions. The completion time of application migration is flexible and flexible, which improves the flexibility and convenience of application migration.
可选的,所述迁移条件包括所述第二流量的统计值超过阈值。支持根据流量负载动态触发应用迁移,例如,基于对第一服务器中运行的各应用流量进行统计监控,自动将流量较大的应用迁移至第二服务器,而对于流量较小的应用可以不迁移至第二服务器,有利于节约在第一服务器和第二服务器之间迁移应用所占用的网络资源和硬件资源,提升应用服务可靠性和可用性。Optionally, the migration condition includes that the statistical value of the second traffic exceeds a threshold. Supports dynamic triggering of application migration based on traffic load. For example, based on the statistical monitoring of the traffic of each application running on the first server, the application with large traffic will be automatically migrated to the second server, while the application with small traffic may not be migrated to the second server. The second server is beneficial to save the network resources and hardware resources occupied by migrating applications between the first server and the second server, and improve the reliability and availability of application services.
可选的,所述第一流量的目的地址为所述第一服务器的地址。终端访问目标应用的服务器地址不需要改变,访问应用的终端不需要感知服务器地址的改变,相应的,也无需调整相应配置,有利于降低应用业务迁移的成本。Optionally, the destination address of the first traffic is the address of the first server. The server address of the terminal accessing the target application does not need to be changed, and the terminal accessing the application does not need to perceive the change of the server address, and correspondingly, there is no need to adjust the corresponding configuration, which is beneficial to reduce the cost of application service migration.
本申请实施例第二方面提供一种网络设备,该网络设备可以包括:配置模块,用于获取来自用户的配置信息,所述配置信息指示将第一服务器所提供的目标应用的目标业务迁移至第二服务器,所述第一服务器的地址和所述第二服务器的地址不同。指令发送模块,用于根据所述配置信息向所述第一服务器发送迁移指令,所述迁移指令用于通知所述第一服务器向所述第二服务器迁移所述目标应用。流量转发模块,用于根据所述配置信息接收并向所述第二服务器转发访问所述目标业务的第一流量。The second aspect of the embodiment of the present application provides a network device, which may include: a configuration module, configured to obtain configuration information from a user, the configuration information indicating that the target service of the target application provided by the first server is migrated to For the second server, the address of the first server is different from the address of the second server. An instruction sending module, configured to send a migration instruction to the first server according to the configuration information, and the migration instruction is used to notify the first server to migrate the target application to the second server. A traffic forwarding module, configured to receive and forward the first traffic for accessing the target service to the second server according to the configuration information.
可选的,所述配置信息包括迁移策略,所述第一流量为根据所述迁移策略确定的,其中,所述迁移策略指示向所述第二服务器迁移所述目标业务的方式。Optionally, the configuration information includes a migration policy, and the first traffic is determined according to the migration policy, wherein the migration policy indicates a manner of migrating the target service to the second server.
可选的,所述迁移策略为搬迁驱动策略,所述搬迁驱动策略指示使用所述第二服务器代替所述第一服务器提供所述目标业务。所述第一流量为将所述目标应用迁移至所述第二服务器后所述流量转发模块所接收到的访问所述目标业务的全部流量。Optionally, the migration policy is a migration-driven policy, and the migration-driven policy indicates that the second server is used instead of the first server to provide the target service. The first traffic is all traffic for accessing the target service received by the traffic forwarding module after the target application is migrated to the second server.
可选的,所述迁移策略为流量驱动策略,所述流量驱动策略指示采用负载均衡方式向所述第二服务器迁移所述目标业务。所述第一流量为根据所述负载均衡方式从全部流量中确定的,所述全部流量为将所述目标应用迁移至所述第二服务器后所述流量转发模块所接收到的访问所述目标业务的全部流量。Optionally, the migration policy is a traffic-driven policy, and the traffic-driven policy indicates that the target service is migrated to the second server in a load balancing manner. The first traffic is determined from all the traffic according to the load balancing method, and the all traffic is the access to the target received by the traffic forwarding module after the target application is migrated to the second server. All business flows.
可选的,所述流量分担策略为主备驱动策略,所述主备驱动策略指示在所述第一服务器发生故障后向所述第二服务器迁移所述目标业务。所述第一流量为在所述第一服务器发生故障后所述流量转发模块所接收到的访问所述目标业务的流量。Optionally, the traffic sharing policy is an active-standby driving policy, and the active-standby driving policy indicates that the target service is migrated to the second server after the first server fails. The first traffic is traffic for accessing the target service received by the traffic forwarding module after the first server fails.
可选的,所述配置信息还包括迁移所述目标应用的前提条件。所述指令发送模块,具体用于在满足所述前提条件后,向所述第一服务器发送所述迁移指令。所述流量转发模块,还用于在所述指令发送模块向所述第一服务器发送所述迁移指令之前,接收并向所述第一服务器转发访问所述目标业务的第二流量。Optionally, the configuration information further includes prerequisites for migrating the target application. The instruction sending module is specifically configured to send the migration instruction to the first server after the precondition is met. The traffic forwarding module is further configured to receive and forward the second traffic for accessing the target service to the first server before the instruction sending module sends the migration instruction to the first server.
可选的,所述迁移条件包括所述第二流量的统计值超过阈值。Optionally, the migration condition includes that the statistical value of the second traffic exceeds a threshold.
可选的,所述第一流量的目的地址为所述第一服务器的地址。Optionally, the destination address of the first traffic is the address of the first server.
本申请实施例第三方面提供一种计算设备,包括存储器和处理器,所述处理器执行存储器存储的计算机指令,使得所述网络设备执行上述第一方面及第一方面中任一项可能实现方式所述的步骤。The third aspect of the embodiment of the present application provides a computing device, including a memory and a processor, and the processor executes computer instructions stored in the memory, so that the network device executes any one of the first aspect and the possible implementation of the first aspect The steps described in the method.
本申请实施例第四方面提供一种应用业务的迁移系统,包括第一服务器、第二服务器和用于执行上述第一方面及第一方面中任一项可能实现方式所述的步骤的网络设备。The fourth aspect of the embodiment of the present application provides an application service migration system, including a first server, a second server, and a network device for performing the steps described in any one of the first aspect and the possible implementation of the first aspect .
本申请实施例第五方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序被处理器执行时,所述处理器执行上述第一方面及第一方面中任一项可能实现方式所述的步骤。The fifth aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the first aspect and the second aspect above. Any one of the aspects may implement the steps described in the manner.
本申请第六方面提供了一种芯片系统,该芯片系统包括处理器和接口电路,该处理器通过该接口电路与存储器耦合,该处理器用于执行该存储器中的程序代码,以执行第一方面或第一方面的任意一种可能的实现方式所描述的方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。The sixth aspect of the present application provides a chip system, the chip system includes a processor and an interface circuit, the processor is coupled to the memory through the interface circuit, and the processor is used to execute the program code in the memory to implement the first aspect Or the method described in any possible implementation manner of the first aspect. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.
本申请第七方面提供一种计算机程序产品,该计算机程序产品包含的程序代码被计算机设备执行时,以实现如本申请能够执行第一方面或第一方面的任意一种可能的实现方式所描述的方法。The seventh aspect of the present application provides a computer program product. When the program code contained in the computer program product is executed by a computer device, it can implement the description of the first aspect or any possible implementation manner of the first aspect of the present application. Methods.
由于本申请提供的各装置可用于执行前述对应的方法,因此本申请各装置所能获得到的技术效果可参考前述对应的方法所获得的技术效果,此处不再赘述。Since each device provided in this application can be used to execute the above-mentioned corresponding method, the technical effect obtained by each device of this application can refer to the technical effect obtained by the above-mentioned corresponding method, and will not be repeated here.
附图说明Description of drawings
图1示例性示出了现有应用业务的迁移方法对应的网络架构;FIG. 1 exemplarily shows a network architecture corresponding to a migration method of an existing application service;
图2示例性示出了本申请应用业务的迁移方法对应的网络架构;Figure 2 exemplarily shows the network architecture corresponding to the migration method of application services in this application;
图3、图4、图6和图7分别示例性示出了本申请应用业务的迁移方法可能的流程;Fig. 3, Fig. 4, Fig. 6 and Fig. 7 respectively schematically show the possible flow of the migration method of the application business in this application;
图5示例性示出了本申请实施例方法中网关所提供的配置界面一种可能的示意图;FIG. 5 exemplarily shows a possible schematic diagram of a configuration interface provided by the gateway in the method of the embodiment of the present application;
图8示例性示出了本申请实施例提供的网络设备一种可能的结构;FIG. 8 exemplarily shows a possible structure of a network device provided by an embodiment of the present application;
图9示例性示出了本申请实施例提供的计算设备一种可能的结构。FIG. 9 exemplarily shows a possible structure of a computing device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本发明实施例中的附图对本发明实施例进行描述。本发明的实施方式部分使用的术语仅用于对本发明的具体实施例进行解释,而非旨在限定本发明。Embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention. The terms used in the embodiments of the present invention are only used to explain specific examples of the present invention, and are not intended to limit the present invention.
下面结合附图,对本申请的实施例进行描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。Embodiments of the present application are described below in conjunction with the accompanying drawings. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, and this is merely a description of the manner in which objects with the same attribute are described in the embodiments of the present application. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, product, or apparatus comprising a series of elements is not necessarily limited to those elements, but may include elements not expressly included. Other elements listed explicitly or inherent to the process, method, product, or apparatus.
随着信息技术和企业业务的快速发展,应用迁移的频率不断增高。为了降低应用业务的迁移过程对用户的技术要求,本申请实施例提供一种应用迁移方法。With the rapid development of information technology and enterprise business, the frequency of application migration is increasing. In order to reduce the technical requirements on the user during the application service migration process, an embodiment of the present application provides an application migration method.
图2示例性示出本申请实施例适用的网络架构。参考图2,图2对应的网络架构包括终端、转发网络、第一服务器和第二服务器。FIG. 2 exemplarily shows a network architecture applicable to this embodiment of the present application. Referring to FIG. 2 , the network architecture corresponding to FIG. 2 includes a terminal, a forwarding network, a first server, and a second server.
其中,第一服务器和/或第二服务器可以为物理服务器或虚拟服务器,其中,虚拟服务器可以例如为虚拟机或容器或裸金属服务器。第一服务器和第二服务器可以为同种类型的服务器或不同类型的服务器。当第一服务器和第二服务器均为虚拟服务器时,第一服务器和第二服务器可以均部署在私有云或公有云上,或者,第一服务器和第二服务器中的一方部署在私有云,另一方部署在公有云。图2仅以第一服务器和第二服务器分别部署在本地和云环境为例。可选的,第一服务器和第二服务器可以部署在同一子网或不同子网中。本申请实施例不限定第一服务器或第二服务器对应的物理服务器的数量。Wherein, the first server and/or the second server may be a physical server or a virtual server, wherein the virtual server may be, for example, a virtual machine or a container or a bare metal server. The first server and the second server may be the same type of server or different types of servers. When both the first server and the second server are virtual servers, both the first server and the second server may be deployed on a private cloud or a public cloud, or one of the first server and the second server may be deployed on a private cloud, and the other may be deployed on a private cloud. One party is deployed on the public cloud. FIG. 2 only takes an example where the first server and the second server are respectively deployed in local and cloud environments. Optionally, the first server and the second server may be deployed in the same subnet or in different subnets. The embodiment of the present application does not limit the number of physical servers corresponding to the first server or the second server.
可选的,第一服务器和第二服务器为地址不同的两个服务器。其中,第一服务器中部署有待迁移的应用(称作目标应用),目标应用为计算机应用软件,是可以提供业务的程序。本申请实施例不限定目标应用的类型。可选的,目标应用可以为软件即服务(software-as-a-service,SAAS)类型的应用,终端可以通过浏览器访问目标应用。或者,终端可以部署目标应用对应的客户端,终端通过客户端访问目标应用。Optionally, the first server and the second server are two servers with different addresses. Wherein, an application to be migrated (called a target application) is deployed in the first server, and the target application is computer application software, which is a program that can provide services. The embodiment of this application does not limit the type of target application. Optionally, the target application may be a software-as-a-service (software-as-a-service, SAAS) application, and the terminal may access the target application through a browser. Alternatively, the terminal may deploy a client corresponding to the target application, and the terminal accesses the target application through the client.
本申请实施例将目标应用所提供的业务称作目标业务。第一服务器通过运行目标应用可以为终端提供相应业务。并且,第一服务器可以根据用户的迁移指令向其他服务器(例如第二服务器)迁移目标应用。第二服务器中未部署目标应用,但是具有运行目标应用所需的环境。当第二服务器接收到迁移的目标应用后,可以安装并运行目标应用,以提供目标业务。In this embodiment of the present application, the service provided by the target application is called the target service. The first server can provide corresponding services for the terminal by running the target application. In addition, the first server may migrate the target application to another server (eg, the second server) according to a user's migration instruction. The target application is not deployed in the second server, but has the environment required to run the target application. After receiving the migrated target application, the second server can install and run the target application to provide the target service.
终端可以是用户设备(user equipment,UE),终端可以通过浏览器或客户端等方式向运行目标应用的服务器发送访问目标业务的流量。其中,UE包括具有无线通信功能的手持式设备、车载设备、可穿戴设备或计算设备。示例性地,UE可以是手机(mobile phone)、平板电脑或带无线收发功能的电脑。终端设备还可以是虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制中的无线终端、无人驾驶中的无线终端、远程医疗中的无线终端、智能电网中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。The terminal may be a user equipment (user equipment, UE), and the terminal may send traffic for accessing a target service to a server running a target application through a browser or a client. Wherein, the UE includes a handheld device, a vehicle device, a wearable device or a computing device with a wireless communication function. Exemplarily, the UE may be a mobile phone (mobile phone), a tablet computer or a computer with a wireless transceiver function. The terminal device can also be a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a smart Wireless terminals in power grids, wireless terminals in smart cities, wireless terminals in smart homes, and so on.
转发网络用于接收来自终端的流量,并向第一服务器或第二服务器转发流量。可选的,转发网络可以包括一个或多个网关,网关可以接收来自终端的流量,并向第一服务器或第二服务器转发流量。例如,网关可以接收来自终端的访问目标业务的流量,之后可以根据流量的目的地址将流量转发到第一服务器。本申请实施例不限定转发网络中网络设备的形态。可选的,转发网络可以包括物理网络设备和/或虚拟网络设备。The forwarding network is used to receive the traffic from the terminal and forward the traffic to the first server or the second server. Optionally, the forwarding network may include one or more gateways, and the gateways may receive the traffic from the terminal and forward the traffic to the first server or the second server. For example, the gateway may receive the traffic from the terminal to access the target service, and then forward the traffic to the first server according to the destination address of the traffic. The embodiment of the present application does not limit the form of the network device in the forwarding network. Optionally, the forwarding network may include physical network devices and/or virtual network devices.
转发网络中的至少一个网络设备可以向用户提供配置接口,用户可以通过该配置接口输入配置信息。可选的,该至少一个网络设备可以通过与其相连的输出设备(例如显示器)向用户提供配置接口,用户可以通过与该至少一个网络设备相连的输入设备(例如键盘和鼠标)向该配置接口输入配置信息。或者,可选的,该至少一个网络设备可以向带有输入设备和输出设备的计算设备(例如UE)发送配置接口,用户可以通过该计算设备向该配置接口输入配置信息。At least one network device in the forwarding network can provide a user with a configuration interface through which the user can input configuration information. Optionally, the at least one network device may provide a configuration interface to the user through an output device (such as a display) connected to it, and the user may input to the configuration interface through an input device (such as a keyboard and a mouse) connected to the at least one network device. configuration information. Or, optionally, the at least one network device may send a configuration interface to a computing device (such as a UE) with an input device and an output device, and a user may input configuration information to the configuration interface through the computing device.
图2所示的设备间的连接关系可以参考图2所示的连接线。例如,网关可以分别与终端、第一服务器和第二服务器通信相连,第一服务器和第二服务器之间可以通信相连。本申请实施例不限定设备间通信连接的方式,只要能够彼此通信即可。For the connection relationship between devices shown in FIG. 2 , reference may be made to the connection lines shown in FIG. 2 . For example, the gateway may be communicatively connected to the terminal, the first server, and the second server, respectively, and the first server and the second server may be communicatively connected. The embodiment of the present application does not limit the way of communication connection between devices, as long as they can communicate with each other.
图2对应的网络架构可以包括更多设备,图2仅示例性示出相应网络架构中的部分设备。例如,图2对应的网络架构可以包括更多终端,图2所示的转发网络可以包括更多网络设备,该更多网络设备可以为网关和/或网关以外的其他网络设备(例如路由器、集线器等)。The network architecture corresponding to FIG. 2 may include more devices, and FIG. 2 only exemplarily shows some devices in the corresponding network architecture. For example, the network architecture corresponding to FIG. 2 may include more terminals, and the forwarding network shown in FIG. 2 may include more network devices, which may be gateways and/or other network devices (such as routers, hubs) wait).
图1示出了现有应用业务迁移方案所适用的网络架构。和图2相比,图1对应的网络架构额外设置了迁移服务中心,迁移服务器中心用于在用户的指示下向第一服务器发送迁移指令,以实现应用迁移。此外,为了完成目标应用的业务迁移,用户需要对转发网络进行改造,以实现目标应用的流量迁移。FIG. 1 shows a network architecture applicable to an existing application service migration solution. Compared with FIG. 2 , the network architecture corresponding to FIG. 1 is additionally equipped with a migration service center, and the migration server center is used to send a migration instruction to the first server under the instruction of the user, so as to realize application migration. In addition, in order to complete the service migration of the target application, the user needs to transform the forwarding network to realize the traffic migration of the target application.
用户可以通过二层网络扩展方案或分布式网关方案对转发网络进行改造。其中,二层网络扩展方案是指,被迁移主机(例如第一服务器)保持互联网协议(internetprotocol,IP)地址和物理地址不变,但是需要源端的二层广播域扩展到目的端,源端出口与目的端出口需支持建立二层隧道。被迁移主机的网关保持不变,与外部的互访都需要绕行到源端网关,即使跟它在同一个数据中心的主机。其中,分布式网关方案是指,被迁移主机保持IP地址和物理地址不变,同时在目的端部署和源端一样网关,这种网关通常称为分布式任播网关,主机可以在分布式网关部署站点任意移动。这个方案关键点是目的端网关能够将去往源端的流量转发到源端网关,目前技术是通过网关之间主机路由同步或在网关配置策略路由。Users can transform the forwarding network through the Layer 2 network expansion solution or the distributed gateway solution. Among them, the Layer 2 network expansion scheme refers to that the migrated host (such as the first server) keeps the Internet protocol (internet protocol, IP) address and physical address unchanged, but the Layer 2 broadcast domain at the source end needs to be extended to the destination end, and the source end exits The egress with the destination end needs to support the establishment of a layer 2 tunnel. The gateway of the migrated host remains unchanged, and all external visits need to bypass the source gateway, even if it is a host in the same data center as it. Among them, the distributed gateway solution means that the migrated host keeps the IP address and physical address unchanged, and at the same time deploys the same gateway as the source at the destination. This kind of gateway is usually called a distributed anycast gateway. The deployment site can be moved freely. The key point of this solution is that the destination gateway can forward the traffic to the source gateway to the source gateway. The current technology is to synchronize host routes between gateways or configure policy routing on the gateway.
无论是二层网络扩展方案还是分布式网关方案,现有的应用业务迁移方案需要用户对转发网络进行改造,以在源端与目的端之间建立直连网络或运营商专线,并且,终端访问目标应用的服务器地址需要改变,访问应用的终端和终端所在的网络均需要感知地址的改变并调整相应配置。可见,目前应用业务的迁移过程对用户的技术要求仍然较高,不利于降低应用业务迁移的成本。Whether it is a Layer 2 network expansion solution or a distributed gateway solution, the existing application service migration solution requires the user to modify the forwarding network to establish a direct network or operator dedicated line between the source end and the destination end, and the terminal access The server address of the target application needs to be changed, and both the terminal accessing the application and the network where the terminal is located need to sense the change of the address and adjust the corresponding configuration. It can be seen that the current application service migration process still has high technical requirements for users, which is not conducive to reducing the cost of application service migration.
为了降低应用业务迁移服务的成本,在本申请实施例中,由网关为用户提供应用迁移服务,将目标业务迁移至第二服务器。一方面,图1对应的网络架构中无需额外设置迁移服务中心,而是由网关根据用户的配置信息向第一服务器发送迁移指令,以将目标应用从第一服务器迁移至第二服务器,实现应用迁移。另一方面,网关可以根据用户的配置信息将访问目标业务的全部或部分流量转发到第二服务器,实现访问目标业务的流量迁移。In order to reduce the cost of the application business migration service, in the embodiment of the present application, the gateway provides the application migration service for the user, and migrates the target business to the second server. On the one hand, in the network architecture corresponding to Figure 1, there is no need to additionally set up a migration service center, but the gateway sends a migration command to the first server according to the user's configuration information to migrate the target application from the first server to the second server, realizing application migrate. On the other hand, the gateway can forward all or part of the traffic of the access target service to the second server according to the configuration information of the user, so as to realize the traffic migration of the access target service.
下面结合图2对应的网络架构介绍本申请实施例提供的应用业务的迁移方法。The method for migrating application services provided by the embodiment of the present application is introduced below in conjunction with the network architecture corresponding to FIG. 2 .
图3为本申请实施例提供的应用业务的迁移方法一种可能的流程图,图3对应的方法实施例应用于网络设备,用于将第一服务器提供的全部或部分目标业务迁移至第二服务器。可选的,该网络设备、第一服务器和第二服务器可以分别例如为图2对应的网络架构中的网关、第一服务器和第二服务器。图3对应的实施例以网络设备为网关为例进行介绍,图3对应的实施例中的网关也可以根据实际需要替换为其他网络设备。Figure 3 is a possible flow chart of the migration method of application services provided by the embodiment of the present application. server. Optionally, the network device, the first server, and the second server may be, for example, the gateway, the first server, and the second server in the network architecture corresponding to FIG. 2 , respectively. The embodiment corresponding to FIG. 3 is introduced by taking the network device as a gateway as an example. The gateway in the embodiment corresponding to FIG. 3 may also be replaced with other network devices according to actual needs.
参考图3,本申请实施例应用业务的迁移方法可以包括步骤S301至S304。Referring to FIG. 3 , the method for migrating application services in this embodiment of the present application may include steps S301 to S304.
S301、网关获取来自用户的配置信息;S301. The gateway acquires configuration information from the user;
当用户希望将第一服务器所提供的目标业务部分或全部迁移至第二服务器,用户可以向网关输入配置信息,网关可以获取来自用户的配置信息,例如参考图2。该配置信息可以指示将第一服务器中目标应用的目标业务迁移至第二服务器。When the user wants to migrate part or all of the target service provided by the first server to the second server, the user can input configuration information to the gateway, and the gateway can obtain the configuration information from the user, for example, refer to FIG. 2 . The configuration information may indicate to migrate the target service of the target application in the first server to the second server.
本申请实施例不限定用户向网关输入配置信息的方式。可选的,网关可以提供用于获取配置信息的配置接口,该配置接口可以包括配置界面、应用程序编程接口和输入模板中的至少一种。用户可以在配置接口中输入配置信息。可选的,用户可以向其他设备提供的配置接口输入配置信息,网关可以从该其他设备获取用户输入的配置信息。The embodiment of the present application does not limit the manner in which the user inputs configuration information to the gateway. Optionally, the gateway may provide a configuration interface for acquiring configuration information, and the configuration interface may include at least one of a configuration interface, an application programming interface, and an input template. Users can input configuration information in the configuration interface. Optionally, the user may input configuration information to a configuration interface provided by other devices, and the gateway may obtain the configuration information input by the user from the other devices.
本申请实施例不限定配置信息的具体内容和格式,只要网关可以根据配置信息确定需要将第一服务器中的目标应用的目标业务迁移至第二服务器即可。The embodiment of the present application does not limit the specific content and format of the configuration information, as long as the gateway can determine that the target service of the target application in the first server needs to be migrated to the second server according to the configuration information.
可选的,配置信息可以包括用于确定第一服务器的标识和用于确定第二服务器的标识。可选的,本申请实施例中,用于确定服务器的标识可以包括服务器的IP地址和/或物理地址。Optionally, the configuration information may include an identifier for determining the first server and an identifier for determining the second server. Optionally, in this embodiment of the present application, the identifier used to determine the server may include an IP address and/or a physical address of the server.
目标应用可以为第一服务器中部署的全部或部分应用。可选的,配置信息还可以包括用于确定目标应用的标识。The target application may be all or part of the applications deployed in the first server. Optionally, the configuration information may also include an identifier used to determine the target application.
服务器通过运行目标应用可以处理来自终端的流量,从而为终端提供相应业务。目标业务可以为服务器通过运行目标应用所能提供的全部或部分业务。可选的,配置信息还可以包括目标业务的标识。The server can process the traffic from the terminal by running the target application, so as to provide corresponding services for the terminal. The target service may be all or part of the services that the server can provide by running the target application. Optionally, the configuration information may also include the identification of the target service.
网关根据配置信息确定需要将第一服务器中的目标业务迁移至第二服务器后,可以通过执行步骤S302来将目标应用从第一服务器迁移至第二服务器,通过执行步骤S303来将访问目标业务的全部或部分流量迁移至第二服务器。下面分别介绍步骤S302和步骤S303。After the gateway determines that the target service in the first server needs to be migrated to the second server according to the configuration information, it can perform step S302 to migrate the target application from the first server to the second server, and perform step S303 to transfer the target application to the target service. All or part of the traffic is migrated to the second server. Step S302 and step S303 are respectively introduced below.
S302、网关根据配置信息向第一服务器发送迁移指令;S302. The gateway sends a migration instruction to the first server according to the configuration information;
网关获取到配置信息后,可以根据配置信息向第一服务器发送迁移指令,该迁移指令用于通知第一服务器向第二服务器迁移目标应用。After acquiring the configuration information, the gateway may send a migration instruction to the first server according to the configuration information, where the migration instruction is used to notify the first server to migrate the target application to the second server.
可选的,网关在获取到配置信息后可以立即向第一服务器发送迁移指令。例如,用户在确认第一服务器和第二服务器均具备迁移目标应用的条件后,向网关输入配置信息。Optionally, the gateway may send a migration instruction to the first server immediately after obtaining the configuration information. For example, the user inputs configuration information to the gateway after confirming that both the first server and the second server meet the conditions for migrating the target application.
或者,可选的,网关在获取到配置信息后,可以在满足迁移目标应用的前提条件后向第一服务器发送迁移指令,以实现对目标应用的异步迁移。例如,用户无需确认第一服务器和第二服务器是否具备目标应用的迁移条件,便可以向网关输入配置信息,网关在满足迁移目标应用的前提条件后向第一服务器发送迁移指令。Or, optionally, after obtaining the configuration information, the gateway may send a migration instruction to the first server after satisfying a prerequisite for migrating the target application, so as to realize asynchronous migration of the target application. For example, the user can input configuration information to the gateway without confirming whether the first server and the second server meet the migration conditions of the target application, and the gateway will send a migration instruction to the first server after satisfying the prerequisites for migrating the target application.
为了在获取配置信息之后、在迁移目标应用之前,终端能够访问目标业务,可选的,S302可以具体包括步骤S3021和S3022。In order for the terminal to access the target service after acquiring the configuration information and before migrating the target application, optionally, S302 may specifically include steps S3021 and S3022.
S3021、网络设备接收并向第一服务器转发访问目标业务的第二流量;S3021. The network device receives and forwards the second traffic for accessing the target service to the first server;
在步骤S301之后,在步骤S3022之前,网络设备可以接收并向第一服务器转发访问目标业务的第二流量。可选的,第二流量可以指网络设备在步骤S301之后并且在S3022之前接收到的访问目标业务的全部或部分流量。After step S301 and before step S3022, the network device may receive and forward the second flow of accessing the target service to the first server. Optionally, the second flow may refer to all or part of the flow of the access target service received by the network device after step S301 and before S3022.
S3022、在满足前提条件后,网络设备向第一服务器发送迁移指令;S3022. After satisfying the precondition, the network device sends a migration instruction to the first server;
网络设备在判定满足迁移目标应用的前提条件后,可以向第一服务器发送迁移指令。可选的,该前提条件可以为预先配置在网络设备中的。或者,可选的,配置信息可以包括该前提条件,例如,用户可以通过配置接口自定义该前提条件,或者,通过配置接口从预设的多个前提条件中选择一个前提条件。The network device may send a migration instruction to the first server after determining that the prerequisite for migrating the target application is satisfied. Optionally, the precondition may be pre-configured in the network device. Or, optionally, the configuration information may include the precondition. For example, the user may customize the precondition through the configuration interface, or select a precondition from multiple preset preconditions through the configuration interface.
下面举例而非限定的介绍迁移目标应用的前提条件。The following describes the prerequisites for migrating target applications by way of example but not limitation.
可选的,迁移目标应用的前提条件可以包括前提条件a,其中前提条件a为第二服务器具备目标应用的接收条件。第二服务器具备接收条件可以指第二服务器准备好接收目标应用。可选的,接收条件可以包括:第二服务器开机,和/或,第二服务器开启应用迁移服务。其中,第二服务器可以通过安装并运行迁移代理软件程序来开启应用迁移服务,以接收并安装目标应用。Optionally, the precondition for migrating the target application may include precondition a, where the precondition a is that the second server has a receiving condition of the target application. The fact that the second server has the receiving condition may mean that the second server is ready to receive the target application. Optionally, the receiving condition may include: the second server is powered on, and/or the second server starts the application migration service. Wherein, the second server can start the application migration service by installing and running the migration agent software program, so as to receive and install the target application.
可选的,迁移目标应用的前提条件可以包括前提条件b,其中前提条件b为第一服务器具备目标应用的发送条件。第一服务器具备发送条件可以指第一服务器准备好发送目标应用。可选的,发送条件可以包括:第一服务器开机,和/或,第一服务器开启应用迁移服务。其中,第一服务器可以通过安装并运行迁移代理来开启应用迁移服务,以根据秦阿姨指令向第二服务器发送目标应用。Optionally, the precondition for migrating the target application may include precondition b, where the precondition b is that the first server has the sending condition of the target application. The fact that the first server has the sending condition may mean that the first server is ready to send the target application. Optionally, the sending condition may include: the first server is powered on, and/or the first server starts the application migration service. Wherein, the first server can start the application migration service by installing and running the migration agent, so as to send the target application to the second server according to Aunt Qin's instruction.
可选的,迁移目标应用的前提条件可以包括前提条件c,其中前提条件c为第一服务器或第一服务器对应的通信链路的可用资源小于阈值。可选的,第一服务器的可用资源可以包括第一服务器的可用存储资源和/或可用计算资源。第一服务器对应的通信链路的可用资源可以包括相应通信链路的可用带宽。Optionally, the precondition for migrating the target application may include precondition c, where the precondition c is that the first server or the available resources of the communication link corresponding to the first server are less than a threshold. Optionally, the available resources of the first server may include available storage resources and/or available computing resources of the first server. The available resources of the communication link corresponding to the first server may include the available bandwidth of the corresponding communication link.
可选的,迁移目标应用的前提条件可以包括前提条件d,其中前提条件d为根据第二流量确定的。可选的,前提条件d可以为第二流量的统计值超过阈值。网关可以对第二流量进行流量统计,得到第二流量的统计值。本申请实施例不限定网关执行流量统计的方式和第二流量的统计值的类型。可选的,第二流量的统计值可以为第二流量中报文的数目或者为第二流量中所有报文的总长度。Optionally, the precondition of the migration target application may include a precondition d, where the precondition d is determined according to the second traffic. Optionally, the precondition d may be that the statistical value of the second traffic exceeds a threshold. The gateway may perform traffic statistics on the second traffic to obtain a statistical value of the second traffic. The embodiment of the present application does not limit the manner in which the gateway performs traffic statistics and the type of the statistical value of the second traffic. Optionally, the statistical value of the second flow may be the number of packets in the second flow or the total length of all packets in the second flow.
可选的,用户可以在配置信息中设置前提条件,网关可以基于用户意图实现源端和目的端的远程协作。应用迁移的完成时间弹性灵活,提升应用迁移的灵活性和便利性。Optionally, the user can set preconditions in the configuration information, and the gateway can realize remote collaboration between the source end and the destination end based on user intentions. The completion time of application migration is flexible and flexible, which improves the flexibility and convenience of application migration.
本申请实施例不限定迁移指令的具体内容和格式,只要第一服务器可以根据迁移指令向第二服务器迁移目标应用即可。可选的,迁移指令可以包括迁移目的端的标识。本申请实施例中,即迁移指令可以包括第二服务器的标识。可选的,本申请实施例中,第二服务器的标识可以包括第二服务器的IP地址和/或物理地址。可选的,迁移指令中第二服务器的标识可以与配置信息中第二服务器的标识(若携带)相同或不同。可选的,迁移指令还可以包括迁移源端的标识。本申请实施例中,即迁移指令可以包括第一服务器的标识。可选的,本申请实施例中,第一服务器的标识可以包括第一服务器的IP地址和/或物理地址。可选的,迁移指令中第一服务器的标识可以与配置信息中第一服务器的标识(若携带)相同或不同。目标应用可以为第一服务器中部署的全部或部分应用。可选的,迁移指令还可以包括用于确定目标应用的标识。可选的,迁移指令中目标应用的标识可以与配置信息中目标应用的标识(若携带)相同或不同。可选的,目标业务可以为服务器通过运行目标应用所能提供的全部或部分业务。可选的,迁移指令还可以包括目标业务的标识。可选的,迁移指令中目标业务的标识可以与配置信息中目标业务的标识(若携带)相同或不同。The embodiment of the present application does not limit the specific content and format of the migration instruction, as long as the first server can migrate the target application to the second server according to the migration instruction. Optionally, the migration instruction may include an identifier of the migration destination. In this embodiment of the present application, that is, the migration instruction may include the identifier of the second server. Optionally, in this embodiment of the present application, the identifier of the second server may include an IP address and/or a physical address of the second server. Optionally, the identifier of the second server in the migration instruction may be the same as or different from the identifier of the second server in the configuration information (if carried). Optionally, the migration instruction may also include an identifier of the migration source. In this embodiment of the present application, that is, the migration instruction may include the identifier of the first server. Optionally, in this embodiment of the present application, the identifier of the first server may include an IP address and/or a physical address of the first server. Optionally, the identifier of the first server in the migration instruction may be the same as or different from the identifier of the first server in the configuration information (if carried). The target application may be all or part of the applications deployed in the first server. Optionally, the migration instruction may also include an identifier for determining the target application. Optionally, the identifier of the target application in the migration instruction may be the same as or different from the identifier of the target application in the configuration information (if carried). Optionally, the target service may be all or part of the services that the server can provide by running the target application. Optionally, the migration instruction may also include the identification of the target service. Optionally, the identifier of the target service in the migration instruction may be the same as or different from the identifier of the target service in the configuration information (if carried).
S303、第一服务器可以根据迁移指令向第二服务器迁移目标应用;S303. The first server may migrate the target application to the second server according to the migration instruction;
网关向第一服务器发送迁移指令后,第一服务器可以根据迁移指令向第二服务器迁移目标应用。本申请实施例不限定第一服务器向第二服务器迁移目标应用的具体方式。后文将举例而非限定的介绍第一服务器向第二服务器迁移目标应用的可能流程,此处暂不展开介绍。After the gateway sends the migration instruction to the first server, the first server may migrate the target application to the second server according to the migration instruction. The embodiment of the present application does not limit the specific manner of migrating the target application from the first server to the second server. A possible process of migrating the target application from the first server to the second server will be described later by way of example but not limitation, and the introduction will not be made here.
S304、网关根据配置信息接收并向第二服务器转发访问目标业务的第一流量。S304. The gateway receives and forwards the first traffic for accessing the target service to the second server according to the configuration information.
网关获取配置信息后,网关可以根据配置信息接收并向第二服务器转发访问目标业务的第一流量。第一流量是指网关在获取到配置信息后接收到的访问目标业务的全部或部分流量。After the gateway acquires the configuration information, the gateway may receive and forward the first traffic for accessing the target service to the second server according to the configuration information. The first traffic refers to all or part of the traffic for accessing the target service received by the gateway after obtaining the configuration information.
可选的,步骤S304可以在步骤S302之后执行,相应的,第一流量为网关发送迁移指令后接收到的访问目标业务的全部或部分流量。Optionally, step S304 may be performed after step S302. Correspondingly, the first flow is all or part of the flow of accessing the target service received after the gateway sends the migration instruction.
可选的,网关可以在步骤S303之后执行。例如,可选的,网关可以在第一服务器向第二服务器迁移完目标应用后执行步骤S304,相应的,第一流量为目标应用迁移完成后网关所接收到的访问目标业务的全部或部分流量。例如,可选的,网关可以在第二服务器运行目标应用后执行步骤S304,相应的,第一流量为第二服务器运行目标应用后网关所接收到的访问目标业务的全部或部分流量。Optionally, the gateway may be executed after step S303. For example, optionally, the gateway may execute step S304 after the target application is migrated from the first server to the second server. Correspondingly, the first traffic is all or part of the traffic received by the gateway to access the target service after the migration of the target application is completed. . For example, optionally, the gateway may execute step S304 after the second server runs the target application. Correspondingly, the first traffic is all or part of the traffic received by the gateway for accessing the target service after the second server runs the target application.
以下分别介绍网关根据配置信息接收第一流量和转发第一流量的过程。The process of receiving the first traffic and forwarding the first traffic by the gateway according to the configuration information is respectively introduced below.
一、网关根据配置信息接收第一流量1. The gateway receives the first traffic according to the configuration information
步骤S304中网关根据配置信息接收第一流量可以指,网关可以根据配置信息从接收到的所有流量中识别出第一流量。可选的,网关可以根据配置信息确定流量选择条件,之后,网关可以从接收到的流量中识别出满足该流量选择条件的流量(即第一流量)。In step S304, the gateway receiving the first traffic according to the configuration information may refer to that the gateway can identify the first traffic from all received traffic according to the configuration information. Optionally, the gateway may determine the traffic selection condition according to the configuration information, and then, the gateway may identify the traffic (that is, the first traffic) that satisfies the traffic selection condition from the received traffic.
可选的,网关可以根据配置信息确定目标应用的应用标识符,相应的,网关可以根据该应用标识符流量确定流量选择条件中的第一条件。其中第一条件用于识别访问目标业务的流量。可选的,第一条件为报文携带目标应用的应用标识符。Optionally, the gateway may determine the application identifier of the target application according to the configuration information, and correspondingly, the gateway may determine the first condition in the flow selection conditions according to the flow of the application identifier. The first condition is used to identify traffic accessing the target service. Optionally, the first condition is that the packet carries the application identifier of the target application.
可选的,配置信息可以包括迁移策略,用户通过迁移策略可以指示向第二服务器迁移目标业务的方式。可选的,网关可以根据配置信息中的迁移策略确定流量选择条件中的第二条件。Optionally, the configuration information may include a migration policy, through which the user may indicate a manner of migrating the target service to the second server. Optionally, the gateway may determine the second condition in the traffic selection condition according to the migration policy in the configuration information.
下面举例而非限定的介绍几种可能的迁移策略和相应的第二条件。The following introduces several possible migration strategies and corresponding second conditions by way of example and without limitation.
1、该迁移策略可以为搬迁驱动策略,搬迁驱动策略指示使用第二服务器代替第一服务器提供目标业务。相应的,第二条件可以为网关在将目标应用迁移至第二服务器后所接收到的流量。可选的,网关识别出的第一流量可以满足上述第一条件和/或第二条件。以流量选择条件包括上述第一条件和搬迁驱动策略对应的第二条件为例,第一流量可以为网关在将目标应用迁移至第二服务器后所接收到的访问目标业务的全部流量。1. The migration policy may be a relocation-driven policy, and the relocation-driven policy indicates that the second server is used instead of the first server to provide the target service. Correspondingly, the second condition may be the traffic received by the gateway after the target application is migrated to the second server. Optionally, the first traffic identified by the gateway may satisfy the foregoing first condition and/or second condition. Taking the traffic selection condition as an example including the above first condition and the second condition corresponding to the relocation driving strategy, the first traffic may be all traffic received by the gateway to access the target service after the target application is migrated to the second server.
2、迁移策略可以为流量分担策略,流量分担策略指示将第一服务器的部分业务迁移至第二服务器。相应的,第二条件用于从访问目标业务的全部流量中确定第二服务器对应的部分流量。下面结合2.1和2.2的内容举例而非限定的介绍几种可能的流量分担策略。2. The migration policy may be a traffic sharing policy, and the traffic sharing policy indicates to migrate part of the services of the first server to the second server. Correspondingly, the second condition is used to determine the part of the traffic corresponding to the second server from all the traffic of accessing the target service. The following introduces several possible traffic sharing strategies by combining the contents of 2.1 and 2.2 by way of example but not limitation.
2.1、迁移策略可以为流量驱动策略,流量驱动策略指示采用负载均衡方式向第二服务器迁移目标业务。相应的,第二条件可以为满足负载均衡策略。可选的,该负载均衡策略可以为迁移策略所指示的,或者为网关默认设置的。若迁移策略可以指示负载均衡策略,该负载均衡策略可以为用户在配置信息中自定义的,或者为用户从配置接口提供的多个预设负载均衡策略中选择的。以流量选择条件包括上述第一条件和流量驱动策略对应的第二条件为例,第一流量可以为根据负载均衡方式(对应于负载均衡策略)从全部流量中确定的,全部流量为网关在将目标应用迁移至第二服务器后所接收到的访问目标业务的全部流量。网关可以向第一服务器转发该全部流量中除第一流量以外的流量,以实现在目标应用迁移至第二服务器后将访问目标业务的流量负载均衡的转发给第一服务器和第二服务器。2.1. The migration policy may be a traffic-driven policy, and the traffic-driven policy indicates that the target service is migrated to the second server in a load balancing manner. Correspondingly, the second condition may be to satisfy a load balancing policy. Optionally, the load balancing policy may be indicated by the migration policy, or set by default by the gateway. If the migration policy can indicate a load balancing policy, the load balancing policy can be customized by the user in the configuration information, or selected by the user from multiple preset load balancing policies provided by the configuration interface. Take the traffic selection condition including the above first condition and the second condition corresponding to the traffic driving strategy as an example, the first traffic can be determined from all the traffic according to the load balancing method (corresponding to the load balancing strategy), and all the traffic is determined by the gateway in the future All traffic for accessing the target service received after the target application is migrated to the second server. The gateway may forward all the traffic except the first traffic to the first server, so that after the target application is migrated to the second server, the traffic for accessing the target service is load-balanced and forwarded to the first server and the second server.
2.2、该迁移策略可以为主备驱动策略,主备驱动策略指示在第一服务器发生故障后向第二服务器迁移目标业务。相应的,第二条件可以为第一服务器发生故障。以流量选择条件包括上述第一条件和流量驱动策略对应的第二条件为例,第一流量可以为网关在第一服务器发生故障后所接收到的访问目标业务的流量。在目标应用迁移至第二服务器后,在第一服务器发生故障前,网关可以继续向第一服务器转发接收到的访问目标业务的流量。2.2. The migration strategy may be an active/standby driving strategy, and the active/standby driving strategy indicates to migrate the target service to the second server after the first server fails. Correspondingly, the second condition may be that the first server fails. Taking the traffic selection condition including the above first condition and the second condition corresponding to the traffic driving policy as an example, the first traffic may be the traffic received by the gateway to access the target service after the first server fails. After the target application is migrated to the second server, before the first server fails, the gateway can continue to forward the received traffic for accessing the target service to the first server.
以上举例而非限定的介绍了第一流量所需满足的第一条件和第二条件,第一流量可以满足第一条件和/或第二条件,可选的,网络设备还可以确定第一流量所需满足的第一条件和第二条件以外的其他条件。The above describes the first condition and the second condition that the first flow needs to satisfy by way of example but not limitation. The first flow can satisfy the first condition and/or the second condition. Optionally, the network device can also determine the first flow Conditions other than the first condition and the second condition that need to be satisfied.
二、网关根据配置信息转发第一流量2. The gateway forwards the first traffic according to the configuration information
步骤S304中网关根据配置信息向第二服务器转发第一流量可以指,网关可以根据配置信息确定第一流量的目的地址指向第二服务器。可选的,网关根据配置信息确定第一流量的目的地址后,可以向该目的地址指向的设备(即第二服务器)发送第一流量。In step S304, forwarding the first traffic to the second server by the gateway according to the configuration information may mean that the gateway may determine that the destination address of the first traffic is directed to the second server according to the configuration information. Optionally, after the gateway determines the destination address of the first traffic according to the configuration information, it may send the first traffic to the device (that is, the second server) pointed to by the destination address.
可选的,配置信息可以携带目标业务的迁移目的端(即第二服务器)的地址,网关可以将配置信息中迁移目的端的地址作为第一流量的目的地址。Optionally, the configuration information may carry the address of the migration destination of the target service (that is, the second server), and the gateway may use the migration destination address in the configuration information as the destination address of the first traffic.
本申请实施例不限定网关所接收到的第一流量的目的地址所指向的设备。可选的,网关所接收到的第一流量的目的地址可以指向第一服务器或第二服务器。The embodiment of the present application does not limit the device to which the destination address of the first traffic received by the gateway points. Optionally, the destination address of the first traffic received by the gateway may point to the first server or the second server.
若网关所接收到的第一流量的目的地址指向第一服务器,本申请实施例不限定网关将第一流量转发给第二服务器的实现方式。作为举例而非限定,网关可以根据配置信息生成并保存重定向映射表。作为举例,该重定向映射表所表示的含义可以参考表1,表1是以网际协议版本4(internet protocol version 4,IPv4)网络举例说明,其他类型网络的处理逻辑可以参考IPv4网络的举例来理解,此处不再赘述。If the destination address of the first traffic received by the gateway points to the first server, this embodiment of the present application does not limit the implementation manner in which the gateway forwards the first traffic to the second server. As an example but not a limitation, the gateway may generate and save a redirection mapping table according to configuration information. As an example, the meaning represented by the redirection mapping table can refer to Table 1. Table 1 is an example of an Internet protocol version 4 (internet protocol version 4, IPv4) network, and the processing logic of other types of networks can refer to the example of an IPv4 network. Understood, no more details here.
表1Table 1
表1中,原始目的IP地址可以对应于配置信息所指示的迁移源端(即第一服务器)的地址,映射目的IP地址可以对应于配置信息所指示的迁移目的端(即第二服务器)的地址。网络设备根据配置信息生成并保存例如表1所示的重定向映射表后,可以按照双向替换原理对识别的第一流量进行转发,以保证第一流量转发的对称性。In Table 1, the original destination IP address may correspond to the address of the migration source (ie, the first server) indicated by the configuration information, and the mapped destination IP address may correspond to the address of the migration destination (ie, the second server) indicated by the configuration information. address. After the network device generates and saves the redirection mapping table shown in Table 1 according to the configuration information, it can forward the identified first traffic according to the bidirectional replacement principle, so as to ensure the symmetry of the first traffic forwarding.
表1中,“内层头”和“外层头”分别对应“隧道转发”和“非隧道转发”两种场景。In Table 1, "inner header" and "outer header" correspond to two scenarios of "tunnel forwarding" and "non-tunnel forwarding" respectively.
以网络设备接收到通过隧道转发技术发送的第一流量中的报文1和相应的回应报文2为例,如表1所示,假设原始目的IP地址和映射目的IP地址分别为“1.1.1.1”和“2.2.2.2”,由于目的地址和源地址封装在报文的内层头中,网络设备可以在接收到报文1后,解析报文1的内层头,将内层头中的目的地址(即“1.1.1.1”)替换为“2.2.2.2”,之后,在接收到报文2后解析报文2的内层头,将内层头中的目的地址(即“2.2.2.2”)替换为“1.1.1.1”。Taking the packet 1 and the corresponding response packet 2 received by the network device in the first traffic sent through the tunnel forwarding technology as an example, as shown in Table 1, it is assumed that the original destination IP address and the mapped destination IP address are "1.1. 1.1" and "2.2.2.2", since the destination address and source address are encapsulated in the inner header of the packet, the network device can parse the inner header of packet 1 after receiving packet 1, and The destination address (namely "1.1.1.1") is replaced with "2.2.2.2". After receiving message 2, the inner layer header of message 2 is parsed, and the destination address in the inner layer header (ie "2.2. 2.2") to "1.1.1.1".
以网络设备接收到通过非隧道转发技术发送的第一流量中的报文1和相应的回应报文2为例,如表1所示,假设原始目的IP地址和映射目的IP地址分别为“3.3.3.3”和“4.4.4.4”,由于目的地址和源地址封装在报文的外层头中,网络设备可以在接收到报文1后,解析报文1的外层头,将外层头中的目的地址(即“3.3.3.3”)替换为“4.4.4.4”,之后,在接收到报文2后解析报文2的外层头,将外层头中的目的地址(即“4.4.4.4”)替换为“3.3.3.3”。Taking the packet 1 and the corresponding response packet 2 received by the network device in the first traffic sent through the non-tunnel forwarding technology as an example, as shown in Table 1, it is assumed that the original destination IP address and the mapped destination IP address are respectively "3.3 .3.3" and "4.4.4.4", since the destination address and source address are encapsulated in the outer header of the packet, the network device can parse the outer header of packet 1 after receiving packet 1, and convert the outer header The destination address (namely "3.3.3.3") in the . .4.4") with "3.3.3.3".
就是说,网关可以根据配置信息生成重定向映射表,之后根据重定向映射表自动改写报文目的地址并自动转发。终端访问目标应用的服务器地址不需要改变,访问应用的终端不需要感知服务器地址的改变,相应的,也无需调整相应配置,有利于降低应用业务迁移的成本。That is to say, the gateway can generate a redirection mapping table according to the configuration information, and then automatically rewrite the destination address of the message according to the redirection mapping table and automatically forward it. The server address of the terminal accessing the target application does not need to be changed, and the terminal accessing the application does not need to perceive the change of the server address, and correspondingly, there is no need to adjust the corresponding configuration, which is beneficial to reduce the cost of application service migration.
在图3对应的方法实施例中,用户向网络设备下达配置信息后,网络设备便可以根据配置信息为用户提供目标应用的应用迁移服务和流量迁移服务,以完成目标应用的业务迁移。可见,图3对应的方法实施例所提供的应用业务的迁移过程对用户的技术要求较低,有利于降低应用业务迁移成本。In the method embodiment corresponding to FIG. 3 , after the user sends configuration information to the network device, the network device can provide the user with application migration service and traffic migration service of the target application according to the configuration information, so as to complete the service migration of the target application. It can be seen that the migration process of the application service provided by the method embodiment corresponding to FIG. 3 has relatively low technical requirements for the user, which helps reduce the cost of migration of the application service.
前文作为举例而非限定的介绍了配置信息可以包括迁移策略和前提条件。在一种可能的实现方式中,配置信息中的迁移策略可以为用户从配置接口所提供的多个预设迁移策略中选择的。可选的,每个预设迁移策略可以关联一个前提条件,用户选择一个迁移策略后,便同时选择了该迁移策略所关联的前提条件。或者,可选的,配置信息中的前提条件也可以为用户从配置接口所提供的多个前提条件中选择的。The above mentioned configuration information may include migration policies and preconditions by way of example and not limitation. In a possible implementation manner, the migration strategy in the configuration information may be selected by the user from multiple preset migration strategies provided by the configuration interface. Optionally, each preset migration strategy can be associated with a precondition, and after the user selects a migration strategy, the precondition associated with the migration strategy is selected at the same time. Or, optionally, the preconditions in the configuration information may also be selected by the user from multiple preconditions provided by the configuration interface.
为了便于理解图3对应的方法实施例,以下结合具体应用场景举例介绍图3对应的方法实施例可能的具体流程。In order to facilitate understanding of the method embodiment corresponding to FIG. 3 , the following describes a possible specific process of the method embodiment corresponding to FIG. 3 in combination with specific application scenarios.
图4、图6和图7分别示例性示出本申请方法一种可能的流程。可选的,图4或图6或图7对应的方法流程可以应用于图2所示的网络架构中。可选的,图4或图6或图7对应的实施例中的网关可以具有执行图3对应的方法实施例的功能,以执行图4对应的方法流程中网关所执行的全部或部分步骤。可选的,图4或图6或图7对应的实施例中的第一服务器和第二服务器可以通过安装并运行迁移代理软件程序以执行图4或图6或图7对应的方法流程中相应服务器所执行的全部或部分步骤。终端可以访问目标应用,例如,可以通过目标应用的客户端或者通过浏览器客户端发送访问目标业务的流量。本申请实施例不限定目标应用的客户端运行在终端,可选的,目标应用的客户端可以运行在终端或服务器。FIG. 4 , FIG. 6 and FIG. 7 exemplarily show a possible flow of the method of the present application. Optionally, the method flow corresponding to FIG. 4 or FIG. 6 or FIG. 7 may be applied to the network architecture shown in FIG. 2 . Optionally, the gateway in the embodiment corresponding to FIG. 4 or FIG. 6 or FIG. 7 may have the function of executing the method embodiment corresponding to FIG. 3 , so as to execute all or part of the steps performed by the gateway in the method flow corresponding to FIG. 4 . Optionally, the first server and the second server in the embodiment corresponding to FIG. 4 or FIG. 6 or FIG. 7 can install and run a migration agent software program to execute corresponding All or part of the steps performed by the server. The terminal can access the target application, for example, can send traffic for accessing the target service through the client of the target application or through the browser client. This embodiment of the present application does not limit that the client of the target application runs on a terminal. Optionally, the client of the target application may run on a terminal or a server.
参考图4,本申请应用业务的迁移方法另一种可能的实施例可以包括步骤S401至S412。Referring to FIG. 4 , another possible embodiment of the application service migration method of this application may include steps S401 to S412.
S401、网关接收并根据转发表向第一服务器转发流量0;S401. The gateway receives and forwards traffic 0 to the first server according to the forwarding table;
网关可以接收流量,根据流量的目的地址和转发表项对流量进行转发。假设终端向网关发送访问目标应用的目标业务的流量0,并且,流量0的目的地址指向第一服务器,网关可以根据转发表向第一服务器转发流量0。The gateway can receive traffic and forward the traffic according to the destination address of the traffic and forwarding table entries. Assuming that the terminal sends traffic 0 for accessing the target service of the target application to the gateway, and the destination address of the traffic 0 points to the first server, the gateway can forward the traffic 0 to the first server according to the forwarding table.
S402、用户向网关提供的配置接口输入配置信息;S402. The user inputs configuration information to the configuration interface provided by the gateway;
网关可以向用户提供配置接口,该配置接口可以参考图3对应的实施例中的配置接口进行理解。作为举例而非限定,假设网关可以向用户提供例如图5所示的配置界面5。该配置界面5包括源端地址的输入窗口51、目的端地址的输入窗口52和应用标识的输入窗口53,假设用户希望将第一服务器中目标应用的目标业务迁移至第二服务器,用户可以在这三个窗口分别输入第一服务器的地址、第二服务器的地址和目标应用的标识。相应的,网关可以通过配置界面5获取到配置信息,确定该配置信息指示将第一服务器中目标应用的目标业务迁移至第二服务器。The gateway may provide a configuration interface to the user, and the configuration interface may be understood with reference to the configuration interface in the embodiment corresponding to FIG. 3 . As an example without limitation, it is assumed that the gateway can provide the user with a configuration interface 5 as shown in FIG. 5 . The configuration interface 5 includes an input window 51 for the source address, an input window 52 for the destination address, and an input window 53 for the application identification. Assuming that the user wishes to migrate the target business of the target application in the first server to the second server, the user can These three windows respectively input the address of the first server, the address of the second server and the identification of the target application. Correspondingly, the gateway can obtain configuration information through the configuration interface 5, and determine that the configuration information indicates that the target service of the target application in the first server is migrated to the second server.
可选的,配置界面5还可以包括迁移策略的输入窗口54。图5以迁移策略的输入窗口54包括三个迁移策略对应的选项为例,用户可以从搬迁驱动策略、流量驱动策略和主备驱动策略中选择一个迁移策略,本申请实施例以用户选择搬迁驱动策略为例。相应的,网关可以确定配置信息包括搬迁驱动策略。Optionally, the configuration interface 5 may also include an input window 54 for the migration strategy. In Fig. 5, the input window 54 of the migration strategy includes three options corresponding to the migration strategy as an example. The user can select a migration strategy from the migration-driven strategy, the flow-driven strategy, and the active-standby driver strategy. In the embodiment of the present application, the user selects the migration-driven strategy as an example. Correspondingly, the gateway can determine that the configuration information includes the relocation driving policy.
可选的,用户可以通过配置界面5输入前提条件。本申请实施例中以每个迁移策略关联一个前提条件为例,用户选择迁移策略的同时便相当于输入了相关联的前提条件。网关确定配置信息携带的搬迁驱动策略后,可以确定该搬迁驱动策略所关联的迁移条件。可选的,该迁移条件可以包括图3对应的实施例中的迁移条件a~迁移条件d中的任意一个迁移条件。本申请实施例以搬迁驱动策略所关联的迁移条件为目的端(即第二服务器)的迁移代理在线为例。目的端的迁移代理在线可以理解为目的端已启动或正在运行迁移代理软件。Optionally, the user may input preconditions through the configuration interface 5 . In this embodiment of the present application, each migration strategy is associated with a precondition as an example. When a user selects a migration strategy, it is equivalent to inputting the associated precondition. After the gateway determines the relocation driving policy carried in the configuration information, it can determine the relocation condition associated with the relocation driving policy. Optionally, the migration condition may include any one of migration conditions a to d in the embodiment corresponding to FIG. 3 . In the embodiment of the present application, the migration condition associated with the migration driving policy is that the migration agent of the destination end (that is, the second server) is online as an example. The fact that the migration agent at the destination end is online can be understood as the migration agent software has been started or is running at the destination end.
S403、网关分别与第一服务器和第二服务器协商迁移参数;S403. The gateway negotiates migration parameters with the first server and the second server respectively;
步骤S401后,网关可以根据配置信息检查第二服务器中的迁移代理是否在线,若在线则执行步骤S403,若不在线,可以继续实时或周期性检测第二服务器中迁移代理是否在线。After step S401, the gateway can check whether the migration agent in the second server is online according to the configuration information, and if it is online, execute step S403; if it is not online, it can continue to detect whether the migration agent in the second server is online in real time or periodically.
假设第二服务器中的迁移代理代理软件在线,网关可以分别与第一服务器和第二服务器协商迁移参数。迁移参数用于保证第一服务器能够向第二服务器正确发送目标业务迁移所需的数据,并且,第二服务器能够正确接收来自第一服务器的数据。本申请实施例不限定迁移参数的具体内容,可选的,该迁移参数可以包括计算机系统的版本号,作为迁移源端的服务器的标识或地址(例如第一服务器的地址),作为迁移目的端的服务器的标识或地址(例如第二服务器的地址),待迁移的应用的标识(例如目标应用的标识)。Assuming that the migration agent software in the second server is online, the gateway can negotiate migration parameters with the first server and the second server respectively. The migration parameters are used to ensure that the first server can correctly send data required for target service migration to the second server, and that the second server can correctly receive data from the first server. The embodiment of the present application does not limit the specific content of the migration parameters. Optionally, the migration parameters may include the version number of the computer system, the identification or address of the server as the migration source (such as the address of the first server), and the server as the migration destination. The identifier or address of the application (for example, the address of the second server), the identifier of the application to be migrated (for example, the identifier of the target application).
步骤S403为图4对应的实施例中的可选步骤。可选的,用户可以自行在第一服务器和第二服务器中配置迁移参数,或者,该迁移参数可以携带于步骤S404中的迁移指令1和迁移指令2中。Step S403 is an optional step in the embodiment corresponding to FIG. 4 . Optionally, the user can configure the migration parameters in the first server and the second server by himself, or the migration parameters can be carried in the migration instruction 1 and the migration instruction 2 in step S404.
S404、网关分别向第一服务器和第二服务器发送迁移指令1和迁移指令2;S404. The gateway sends migration instruction 1 and migration instruction 2 to the first server and the second server respectively;
满足迁移目标应用的前提条件后,网关可以向第一服务器发送迁移指令1。可选的,网关还可以向第二服务器发送迁移指令2。若图4对应的实施例包括步骤S403,网关可以在步骤S403后执行步骤S404。After satisfying the precondition of migrating the target application, the gateway may send a migration instruction 1 to the first server. Optionally, the gateway may also send the migration instruction 2 to the second server. If the embodiment corresponding to FIG. 4 includes step S403, the gateway may execute step S404 after step S403.
迁移指令1可以指示第一服务器向第二服务器迁移目标应用。以配置信息包括搬迁驱动策略为例,为了节约第一服务器的资源,可选的,迁移指令1还可以指示第一服务器在完成迁移后停止运行目标应用。Migration instruction 1 may instruct the first server to migrate the target application to the second server. Taking the configuration information including the relocation driving policy as an example, in order to save resources of the first server, optionally, the migration instruction 1 may also instruct the first server to stop running the target application after the migration is completed.
迁移指令2可以指示第二服务器接收并保存来自第一服务器的目标应用的相关数据。Migration instruction 2 may instruct the second server to receive and store relevant data of the target application from the first server.
可选的,在步骤S404之前,网关可以检查目标应用的迁移可行性。可选的,网关可以根据步骤S403的协商结果判断第一服务器和第二服务器是否具备迁移目标应用的条件。Optionally, before step S404, the gateway may check the migration feasibility of the target application. Optionally, the gateway may determine whether the first server and the second server meet the conditions for migrating the target application according to the negotiation result in step S403.
S405、第一服务器向第二服务器发送目标应用的系统数据;S405. The first server sends the system data of the target application to the second server;
第一服务器接收到迁移指令1后,可以根据迁移指令1的指示向第二服务器发送目标应用的系统数据。After receiving the migration instruction 1, the first server may send the system data of the target application to the second server according to the instruction of the migration instruction 1.
S406、第一服务器关闭目标应用;S406. The first server closes the target application;
第一服务器发完目标应用的系统数据后,可以根据迁移指令1的指示关闭目标应用。After sending the system data of the target application, the first server may close the target application according to the instruction of migration instruction 1.
步骤S406为可选步骤。在一种可能的实现方式中,图4对应的实施例中,第一服务器可以不关闭目标应用。Step S406 is an optional step. In a possible implementation manner, in the embodiment corresponding to FIG. 4 , the first server may not close the target application.
S407、第一服务器向第二服务器发送目标应用的用户数据;S407. The first server sends the user data of the target application to the second server;
第一服务器发完目标应用的系统数据后,可以根据迁移指令1的指示向第二服务器发送目标应用的用户数据,以期在将目标业务由第一服务器切换至由第二服务器提供的过程中,终端用户对该迁移过程无感知。After the first server sends the system data of the target application, it can send the user data of the target application to the second server according to the instruction of the migration instruction 1, so that in the process of switching the target service from the first server to being provided by the second server, End users are unaware of the migration process.
S408、第一服务器和第二服务器分别向网关上报迁移状态1和迁移状态2;S408. The first server and the second server respectively report migration status 1 and migration status 2 to the gateway;
可选的,第一服务器在向第二服务器发完系统数据和用户数据后,可以向网关上报迁移状态1,迁移状态1用于通知网关第一服务器已发完迁移目标业务所需的相关数据。Optionally, after sending the system data and user data to the second server, the first server can report the migration status 1 to the gateway. The migration status 1 is used to notify the gateway that the first server has sent the relevant data required for the migration target business .
可选的,第二服务器在接收完来自第一服务器的系统数据和用户数据后,可以向网关上报迁移状态2,迁移状态2用于通知网关第二服务器已接收完成目标业务所需的相关数据。Optionally, after receiving the system data and user data from the first server, the second server can report the migration state 2 to the gateway, and the migration state 2 is used to notify the gateway that the second server has received relevant data required to complete the target business .
S409、网关向第二服务器发送应用启动指令;S409. The gateway sends an application start instruction to the second server;
第二服务器接收完成目标业务所需的相关数据后,网关可以向第二服务器发送应用启动指令,应用启动指令用于通知第二服务器根据来自第一服务器的系统数据和用户数据启动目标应用。After the second server receives relevant data required to complete the target service, the gateway can send an application start instruction to the second server, and the application start instruction is used to notify the second server to start the target application according to the system data and user data from the first server.
本申请实施例不限定网关确定第二服务器接收完成目标业务所需数据的方式。可选的,网关在接收到迁移状态1和迁移状态2后确定第二服务器接收完成目标业务所需数据。或者,可选的,网关在接收到迁移状态1或迁移状态2后便可以确定第二服务器接收完成目标业务所需数据。或者,可选的,网关可以在步骤S404后开启定时器,若定时器超时,网关可以确定第二服务器接收完成目标业务所需数据。The embodiment of the present application does not limit the manner in which the gateway determines that the second server receives the data required to complete the target service. Optionally, after receiving the migration state 1 and the migration state 2, the gateway determines that the second server receives the data required to complete the target service. Or, optionally, after receiving the migration state 1 or the migration state 2, the gateway can determine that the second server receives the data required to complete the target service. Or, optionally, the gateway may start a timer after step S404, and if the timer expires, the gateway may determine that the second server receives data required to complete the target service.
S410、网关根据配置信息生成重定向映射表;S410. The gateway generates a redirection mapping table according to the configuration information;
可选的,在满足搬迁驱动策略关联的前提条件后,网关可以根据配置信息生成重定向映射表,以根据重定向映射表将访问目标业务的流量中目的地址改为第二服务器的地址。Optionally, after satisfying the precondition associated with the relocation driver policy, the gateway can generate a redirection mapping table according to the configuration information, so as to change the destination address in the traffic accessing the target service to the address of the second server according to the redirection mapping table.
本申请实施例不限定步骤S410的具体执行时机,只要在满足配置信息所指示的前提条件之后执行步骤S410即可。可选的,网关可以在步骤S409之后执行步骤S410。在S410之前,网关可以根据原转发表进行流量转发,例如将目的地址指向第一服务器的访问目标业务的流量转发给第一服务器。The embodiment of the present application does not limit the specific execution timing of step S410, as long as step S410 is executed after the precondition indicated by the configuration information is met. Optionally, the gateway may perform step S410 after step S409. Before S410, the gateway may perform traffic forwarding according to the original forwarding table, for example, forward the traffic of the access target service whose destination address points to the first server to the first server.
S411、网关接收来自终端的流量1;S411. The gateway receives traffic 1 from the terminal;
网关可以接收来自终端的流量,并且可以识别出访问目标业务的流量。本申请实施例将步骤S410之后网关所接收到的访问目标业务的流量称作流量1。可选的,流量1的目的地址指向第一服务器。该流量1可以参考图3对应的实施例中的第一流量进行理解。The gateway can receive the traffic from the terminal, and can identify the traffic that accesses the target service. In this embodiment of the present application, the flow of accessing the target service received by the gateway after step S410 is called flow 1 . Optionally, the destination address of traffic 1 points to the first server. The flow 1 can be understood with reference to the first flow in the embodiment corresponding to FIG. 3 .
S412、网关根据重定向映射表向第二服务器转发流量1。S412. The gateway forwards the traffic 1 to the second server according to the redirection mapping table.
网关可以根据配置信息中的搬迁驱动策略向第二服务器转发流量1。可选的,网关根据配置信息向第二服务器转发流量1的过程可以参考图3对应的实施例中所介绍的转发第一流量的过程进行理解。例如,可选的,网关可以根据步骤S410中生成的重定向映射表将访问目标业务的流量1的目的地址改为第二服务器的地址,进而向第二服务器转发流量1。The gateway may forward traffic 1 to the second server according to the relocation driving policy in the configuration information. Optionally, the process of the gateway forwarding the traffic 1 to the second server according to the configuration information can be understood with reference to the process of forwarding the first traffic introduced in the embodiment corresponding to FIG. 3 . For example, optionally, the gateway may change the destination address of the traffic 1 accessing the target service to the address of the second server according to the redirection mapping table generated in step S410, and then forward the traffic 1 to the second server.
在目标业务的迁移过程中,用户通过配置接口输入配置信息便可以将目标业务对应的目标应用和流量迁移至第二服务器,这个应用业务的迁移过程对用户的技术要求较低,有利于降低应用业务迁移成本。并且,终端访问目标应用的服务器地址不需要改变,访问应用的终端不需要感知服务器地址的改变,相应的,也无需调整相应配置,有利于降低应用业务迁移的成本。During the migration process of the target business, the user can migrate the target application and traffic corresponding to the target business to the second server by inputting the configuration information through the configuration interface. Business migration costs. Moreover, the server address of the terminal accessing the target application does not need to be changed, and the terminal accessing the application does not need to perceive the change of the server address, and correspondingly, there is no need to adjust the corresponding configuration, which is beneficial to reduce the cost of application service migration.
可见,本申请实施例有利于实现人工触发应用迁移的自动化、策略触发应用迁移的自动化和终端免感知的已迁移应用的流量动态分发。It can be seen that the embodiment of the present application is beneficial to realize the automation of manually triggered application migration, the automation of policy-triggered application migration, and the dynamic distribution of traffic of migrated applications without terminal perception.
本申请方法实施例中,用户输入配置信息后,目标应用可以免监管的自动化完成迁移,相比传统方案减少了人工操作的复杂度,提升迁移效率,降低迁移成本。In the method embodiment of this application, after the user enters the configuration information, the target application can be automatically migrated without supervision, which reduces the complexity of manual operations compared to traditional solutions, improves migration efficiency, and reduces migration costs.
图4对应的实施例可以理解为图3对应的实施例的一种可能的具体实现方式。例如,步骤S402可以理解为步骤S301一种可能的实现方式。例如,S403、S404和S409中的全部或部分步骤可以理解为步骤S302一种可能的实现方式。例如,S405、S406、S407和S408中的全部或部分步骤可以理解为步骤S303一种可能的实现方式.例如,S410至S412中的全部或部分步骤可以理解为步骤S304一种可能的实现方式。例如,搬迁驱动策略可以理解为步骤S304中介绍的搬迁驱动策略。The embodiment corresponding to FIG. 4 may be understood as a possible specific implementation manner of the embodiment corresponding to FIG. 3 . For example, step S402 can be understood as a possible implementation manner of step S301. For example, all or part of steps in S403, S404 and S409 can be understood as a possible implementation manner of step S302. For example, all or part of the steps in S405, S406, S407 and S408 can be understood as a possible implementation of step S303. For example, all or part of the steps in S410 to S412 can be understood as a possible implementation of step S304. For example, the relocation driving strategy may be understood as the relocation driving strategy introduced in step S304.
参考图6,本申请应用业务的迁移方法另一种可能的实施例可以包括步骤S601至S616。Referring to FIG. 6 , another possible embodiment of the application service migration method of this application may include steps S601 to S616 .
S601、网关接收并根据转发表向第一服务器转发流量0;S601. The gateway receives and forwards traffic 0 to the first server according to the forwarding table;
步骤S601可以参考步骤S401进行理解,此处不再赘述。Step S601 can be understood with reference to step S401, and will not be repeated here.
S602、用户向网关提供的配置接口输入配置信息;S602. The user inputs configuration information to the configuration interface provided by the gateway;
步骤S602可以参考步骤S401进行理解。例如,网关可以提供例如图5所示的配置界面5。和步骤S401不同的,假设用户从搬迁驱动策略、流量驱动策略和主备驱动策略中选择流量驱动策略。相应的,网关可以确定配置信息包括流量驱动策略。Step S602 can be understood with reference to step S401. For example, the gateway may provide a configuration interface 5 such as shown in FIG. 5 . Different from step S401, it is assumed that the user selects a traffic-driven strategy from a relocation-driven strategy, a traffic-driven strategy, and an active/standby-driven strategy. Correspondingly, the gateway can determine that the configuration information includes traffic driving policies.
本申请实施例中继续以每个迁移策略关联一个迁移条件为例。网关确定配置信息携带的流量驱动策略后,可以确定该流量驱动策略所关联的迁移条件。本申请实施例以流量驱动策略所关联的迁移条件为目的端(即第二服务器)的迁移代理在线,并且,访问目标业务的流量中统计值超过阈值。可选的,阈值可以为网关中预设的或者为用户自定义的。In the embodiment of this application, continue to take each migration policy associated with a migration condition as an example. After the gateway determines the traffic driving policy carried in the configuration information, it can determine the migration condition associated with the traffic driving policy. In this embodiment of the present application, the migration condition associated with the traffic driving policy is that the migration agent at the destination end (that is, the second server) is online, and the statistical value of the traffic accessing the target service exceeds a threshold. Optionally, the threshold may be preset in the gateway or user-defined.
S603、网关接收流量1;S603. The gateway receives traffic 1;
流量1可以指网关在步骤S602之后、在步骤S614之前接收到的任意一个流量。可选的,流量1的目的地址指向第一服务器。该流量1可以参考图3对应的实施例中的第二流量进行理解。Flow 1 may refer to any flow received by the gateway after step S602 and before step S614. Optionally, the destination address of traffic 1 points to the first server. The flow 1 can be understood with reference to the second flow in the embodiment corresponding to FIG. 3 .
S604、网关根据转发表向第一服务器转发流量1;S604. The gateway forwards traffic 1 to the first server according to the forwarding table;
假设流量1的目的地址指向第一服务器,网关可以根据转发表向第一服务器转发流量1。Assuming that the destination address of traffic 1 points to the first server, the gateway can forward traffic 1 to the first server according to the forwarding table.
S605、网关对流量1进行统计;S605. The gateway performs statistics on the traffic 1;
网关在获取到配置信息后可以对访问目标业务的流量(即流量1)进行统计,判断流量1的统计值是否达到阈值。基于流量1的统计值到达阈值,可以开始目标业务的迁移流程(即步骤S605之后的流程),例如执行步骤S606。基于流量1的统计值未达到阈值,则继续执行步骤S605。After obtaining the configuration information, the gateway can collect statistics on the traffic (namely, traffic 1) for accessing the target service, and judge whether the statistical value of traffic 1 reaches a threshold. Based on the statistical value of traffic 1 reaching the threshold, the migration process of the target service (that is, the process after step S605) can be started, for example, step S606 is executed. If the statistical value based on traffic 1 does not reach the threshold, continue to execute step S605.
流量1的统计值到达阈值为步骤S601中介绍的前提条件中的部分条件,因此,在流量1的统计值达到阈值后,网关可以在目的端(即第二服务器)的迁移代理在线后开始目标业务的迁移流程。The statistical value of traffic 1 reaching the threshold is part of the preconditions introduced in step S601. Therefore, after the statistical value of traffic 1 reaches the threshold, the gateway can start the target Business migration process.
S606、网关分别与第一服务器和第二服务器协商迁移参数;S606. The gateway negotiates migration parameters with the first server and the second server respectively;
步骤S606可以参考步骤S403中的内容进行理解。Step S606 can be understood with reference to the content in step S403.
S607、网关分别向第一服务器和第二服务器发送迁移指令1和迁移指令2;S607. The gateway sends migration instruction 1 and migration instruction 2 to the first server and the second server respectively;
步骤S607可以参考步骤S404中的内容进行理解。和步骤S404不同的,由于流量驱动策略需要第一服务器和第二服务器共同提供目标业务,因此,迁移指令1不再指示第一服务器在完成迁移后停止运行目标应用。Step S607 can be understood with reference to the content in step S404. Different from step S404, since the traffic driving policy requires the first server and the second server to provide the target service together, the migration instruction 1 no longer instructs the first server to stop running the target application after the migration is completed.
S608、第一服务器向第二服务器发送目标应用的系统数据;S608. The first server sends the system data of the target application to the second server;
S609、第一服务器向第二服务器发送目标应用的用户数据;S609. The first server sends the user data of the target application to the second server;
S610、第一服务器和第二服务器分别向网关上报迁移状态1和迁移状态2;S610. The first server and the second server respectively report migration status 1 and migration status 2 to the gateway;
S611、网关向第二服务器发送应用启动指令;S611. The gateway sends an application start instruction to the second server;
步骤S608、S609、S610和S611可以分别参考步骤S405、S407、S408和S409中的内容进行理解。Steps S608, S609, S610 and S611 can be understood with reference to the content in steps S405, S407, S408 and S409 respectively.
S612、网关分别向第一服务器和第二服务器发送同步指令1和同步指令2;S612. The gateway sends synchronization instruction 1 and synchronization instruction 2 to the first server and the second server respectively;
由于流量驱动策略需要第一服务器和第二服务器共同提供目标业务,为在将目标业务在第一服务器和第二服务器之间切换的过程中,终端用户对该迁移过程无感知,可选的,网关可以分别向第一服务器和第二服务器发送同步指令1和同步指令2。其中,同步指令1用于通知第一服务器将目标应用的用户数据在本地的更新数据发送给第二服务器,同步指令2用于通知第二服务器将目标应用的用户数据在本地的更新数据发送给第一服务器。Since the traffic driving strategy requires the first server and the second server to provide the target service together, in order to make the end user unaware of the migration process during the process of switching the target service between the first server and the second server, optionally, The gateway may send synchronization instruction 1 and synchronization instruction 2 to the first server and the second server respectively. Wherein, the synchronization instruction 1 is used to notify the first server to send the local update data of the user data of the target application to the second server, and the synchronization instruction 2 is used to notify the second server to send the local update data of the user data of the target application to the second server. first server.
S613、第一服务器和第二服务器实时同步用户数据;S613. The first server and the second server synchronize user data in real time;
可选的,第一服务器可以根据同步指令1将目标应用的用户数据在本地的更新数据发送给第二服务器。第二服务器可以根据同步指令2将目标应用的用户数据在本地的更新数据发送给第一服务器。Optionally, the first server may send the local update data of the user data of the target application to the second server according to the synchronization instruction 1 . The second server may send the local update data of the user data of the target application to the first server according to the synchronization instruction 2 .
S614、网关根据配置信息生成重定向映射表;S614. The gateway generates a redirection mapping table according to the configuration information;
可选的,在满足流量驱动策略关联的前提条件后,网关可以根据配置信息生成重定向映射表,进而将访问目标业务的流量中目的地址改为第二服务器的地址。Optionally, after meeting the prerequisites associated with the traffic-driven policy, the gateway can generate a redirection mapping table according to the configuration information, and then change the destination address in the traffic accessing the target service to the address of the second server.
本申请实施例不限定步骤S614的具体执行时机,只要在满足配置信息所指示的前提条件之后执行步骤S614即可。可选的,网关可以在步骤S611之后执行步骤S614。The embodiment of the present application does not limit the specific execution timing of step S614, as long as step S614 is executed after the precondition indicated by the configuration information is met. Optionally, the gateway may perform step S614 after step S611.
S615、网关接收来自终端的流量2;S615. The gateway receives traffic 2 from the terminal;
网关可以接收来自终端的流量,并且可以识别出访问目标业务的流量。本申请实施例将步骤S614之后网关所接收到的访问目标业务的流量称作流量2。可选的,流量2的目的地址指向第一服务器。The gateway can receive the traffic from the terminal, and can identify the traffic that accesses the target service. In this embodiment of the present application, the flow of accessing the target service received by the gateway after step S614 is called flow 2. Optionally, the destination address of traffic 2 points to the first server.
S616、网关分别向第一服务器和第二服务器转发流量2中的流量2_1和流量2_2。S616. The gateway respectively forwards traffic 2_1 and traffic 2_2 in traffic 2 to the first server and the second server.
网关可以根据配置信息中的流量驱动策略向第二服务器转发流量2。可选的,网关根据配置信息向第二服务器转发流量2的过程可以参考图3对应的实施例中所介绍的转发第一流量的过程进行理解。例如,网关可以根据负载均衡策略从流量2中确定第一服务器对应的流量2_1和第二服务器对应的流量2_2,之后,根据原转发表(不包括重定向映射表)转发流量2_1,根据重定向映射表将访问目标业务的流量2_2的目的地址改为第二服务器的地址,以向第二服务器转发流量2_2。该流量2_2可以参考图3对应的实施例中的第一流量进行理解。The gateway can forward the traffic 2 to the second server according to the traffic driving policy in the configuration information. Optionally, the process of the gateway forwarding the traffic 2 to the second server according to the configuration information can be understood with reference to the process of forwarding the first traffic introduced in the embodiment corresponding to FIG. 3 . For example, the gateway can determine the traffic 2_1 corresponding to the first server and the traffic 2_2 corresponding to the second server from the traffic 2 according to the load balancing policy, and then forward the traffic 2_1 according to the original forwarding table (excluding the redirection mapping table), and forward the traffic 2_1 according to the redirection table The mapping table changes the destination address of the traffic 2_2 accessing the target service to the address of the second server, so as to forward the traffic 2_2 to the second server. The flow 2_2 can be understood with reference to the first flow in the embodiment corresponding to FIG. 3 .
在目标业务的迁移过程中,用户通过配置接口输入配置信息便可以将目标业务对应的目标应用和流量迁移至第二服务器。这个应用业务的迁移过程对用户的技术要求较低,有利于降低应用业务迁移成本。并且,终端访问目标应用的服务器地址不需要改变,访问应用的终端不需要感知服务器地址的改变,相应的,也无需调整相应配置,有利于降低应用业务迁移的成本。During the migration process of the target service, the user can migrate the target application and traffic corresponding to the target service to the second server by inputting configuration information through the configuration interface. The migration process of the application business has lower technical requirements for users, which is beneficial to reduce the migration cost of the application business. Moreover, the server address of the terminal accessing the target application does not need to be changed, and the terminal accessing the application does not need to perceive the change of the server address, and correspondingly, there is no need to adjust the corresponding configuration, which is beneficial to reduce the cost of application service migration.
并且,由于可以根据目标业务的流量来启动目标应用的迁移,有利于根据第一服务器运行的多个应用的业务流量来自动选择需要迁移的应用。由于可以根据用户的配置信息负载均衡的向第一服务器和第二服务器转发流量,有利于减轻第一服务器或第二服务器的业务压力。Moreover, since the migration of the target application can be started according to the traffic of the target business, it is beneficial to automatically select the application to be migrated according to the business traffic of multiple applications running on the first server. Since traffic can be load-balanced forwarded to the first server and the second server according to the configuration information of the user, it is beneficial to reduce the business pressure of the first server or the second server.
流量驱动策略对应的迁移方案支持根据流量负载动态触发应用迁移,例如,基于对第一服务器中运行的各应用流量进行统计监控,自动将流量较大的应用迁移至第二服务器,而对于流量较小的应用可以不迁移至第二服务器,有利于节约在第一服务器和第二服务器之间迁移应用所占用的网络资源和硬件资源,提升应用服务可靠性和可用性。The migration solution corresponding to the traffic-driven strategy supports dynamic triggering of application migration according to the traffic load. For example, based on statistical monitoring of the traffic of each application running on the first server, the application with large traffic is automatically migrated to the second server. Small applications may not be migrated to the second server, which is beneficial to save the network resources and hardware resources occupied by migrating applications between the first server and the second server, and improve the reliability and availability of application services.
图6对应的实施例可以理解为图3对应的实施例的一种可能的具体实现方式。例如,步骤S602可以理解为步骤S301一种可能的实现方式。例如,S603至S607、S611和S612中的全部或部分步骤可以理解为步骤S302一种可能的实现方式。具体的,S603至S604可以理解为步骤S3021,S605、S606、S607中的全部或部分步骤可以理解为步骤S3022一种可能的实现方式。例如,S608至S610、S613中的全部或部分步骤可以理解为步骤S303一种可能的实现方式。例如,S614至S616中的全部或部分步骤可以理解为步骤S304一种可能的实现方式。例如,流量驱动策略可以理解为步骤S304中介绍的流量驱动策略。The embodiment corresponding to FIG. 6 may be understood as a possible specific implementation manner of the embodiment corresponding to FIG. 3 . For example, step S602 can be understood as a possible implementation manner of step S301. For example, all or part of steps in S603 to S607, S611 and S612 can be understood as a possible implementation manner of step S302. Specifically, S603 to S604 can be understood as step S3021, and all or part of steps in S605, S606, and S607 can be understood as a possible implementation manner of step S3022. For example, all or part of steps in S608 to S610 and S613 can be understood as a possible implementation manner of step S303. For example, all or part of steps in S614 to S616 can be understood as a possible implementation manner of step S304. For example, the traffic driving policy can be understood as the traffic driving policy introduced in step S304.
参考图7,本申请应用业务的迁移方法另一种可能的实施例可以包括步骤S701至S716。Referring to FIG. 7 , another possible embodiment of the application service migration method of this application may include steps S701 to S716.
S701、网关接收并根据转发表向第一服务器转发流量0;S701. The gateway receives and forwards traffic 0 to the first server according to the forwarding table;
步骤S701可以参考步骤S401进行理解,此处不再赘述。Step S701 can be understood with reference to step S401, and will not be repeated here.
S702、用户向网关提供的配置接口输入配置信息;S702. The user inputs configuration information to the configuration interface provided by the gateway;
步骤S702可以参考步骤S401进行理解。例如,网关可以提供例如图5所示的配置界面5。和步骤S401不同的,假设用户从搬迁驱动策略、流量驱动策略和主备驱动策略中选择主备驱动策略。相应的,网关可以确定配置信息包括主备驱动策略。Step S702 can be understood with reference to step S401. For example, the gateway may provide a configuration interface 5 such as shown in FIG. 5 . Different from step S401, it is assumed that the user selects an active/standby driving strategy from a relocation driving strategy, a flow driving strategy, and an active/standby driving strategy. Correspondingly, the gateway can determine that the configuration information includes active and standby driver policies.
本申请实施例中继续以每个迁移策略关联一个迁移条件为例。网关确定配置信息携带的流量驱动策略后,可以确定该流量驱动策略所关联的迁移条件。本申请实施例以主备驱动策略所关联的迁移条件为目的端(即第二服务器)的迁移代理在线为例。In the embodiment of this application, continue to take each migration policy associated with a migration condition as an example. After the gateway determines the traffic driving policy carried in the configuration information, it can determine the migration condition associated with the traffic driving policy. In this embodiment of the present application, the migration condition associated with the master-slave drive policy is taken as an example where the migration agent of the destination end (that is, the second server) is online.
S703、网关分别与第一服务器和第二服务器协商迁移参数;S703. The gateway negotiates migration parameters with the first server and the second server respectively;
步骤S703可以参考步骤S403中的内容进行理解。Step S703 can be understood with reference to the content in step S403.
S704、网关分别向第一服务器和第二服务器发送迁移指令1和迁移指令2;S704. The gateway sends migration instruction 1 and migration instruction 2 to the first server and the second server respectively;
步骤S704可以参考步骤S404中的内容进行理解。和步骤S404不同的,由于主备驱动策略仍然需要第一服务器提供目标业务,因此,迁移指令1不再指示第一服务器在完成迁移后停止运行目标应用。Step S704 can be understood with reference to the content in step S404. Different from step S404, since the active-standby driving strategy still requires the first server to provide the target service, the migration instruction 1 no longer instructs the first server to stop running the target application after the migration is completed.
S705、第一服务器向第二服务器发送目标应用的系统数据;S705. The first server sends the system data of the target application to the second server;
S706、第一服务器向第二服务器发送目标应用的用户数据;S706. The first server sends the user data of the target application to the second server;
S707、第一服务器和第二服务器分别向网关上报迁移状态1和迁移状态2;S707. The first server and the second server respectively report migration status 1 and migration status 2 to the gateway;
S708、网关向第二服务器发送应用启动指令;S708. The gateway sends an application start instruction to the second server;
步骤S705、S706、S707和S708可以分别参考步骤S405、S407、S408和S409中的内容进行理解。Steps S705, S706, S707 and S708 can be understood with reference to the content in steps S405, S407, S408 and S409 respectively.
S709、网关分别向第一服务器和第二服务器发送同步指令1和同步指令2;S709. The gateway sends synchronization instruction 1 and synchronization instruction 2 to the first server and the second server respectively;
S710、第一服务器和第二服务器实时同步用户数据;S710, the first server and the second server synchronize user data in real time;
步骤S709和S710可以分别参考步骤S612和S613中的内容进行理解。Steps S709 and S710 can be understood with reference to the content in steps S612 and S613 respectively.
S711、网关根据配置信息生成重定向映射表;S711. The gateway generates a redirection mapping table according to the configuration information;
可选的,在满足主备驱动策略关联的前提条件后,网关可以根据配置信息生成重定向映射表,进而将访问目标业务的流量中目的地址改为第二服务器的地址。Optionally, after satisfying the preconditions of active-standby driver policy association, the gateway can generate a redirection mapping table according to the configuration information, and then change the destination address in the traffic accessing the target service to the address of the second server.
本申请实施例不限定步骤S711的具体执行时机,只要在满足配置信息所指示的前提条件之后执行步骤S711即可。可选的,网关可以在步骤S708之后执行步骤S711。The embodiment of the present application does not limit the specific execution timing of step S711, as long as step S711 is executed after the precondition indicated by the configuration information is met. Optionally, the gateway may execute step S711 after step S708.
S712、网关监测第一服务器的健康状态,若第一服务器未发生故障,则执行步骤S713,若第一服务器发生故障,则执行步骤S715;S712. The gateway monitors the health status of the first server. If the first server does not fail, execute step S713. If the first server fails, execute step S715;
本申请实施例不限定网关监测第一服务器的健康状态的方法,可选的,第一服务器可以设置有健康状态的检测与上报装置,该检测与上报装置用于检测第一服务器的健康状态,并在第一服务器发生故障时通知网关。The embodiment of the present application does not limit the method for the gateway to monitor the health status of the first server. Optionally, the first server may be provided with a health status detection and reporting device, and the detection and reporting device is used to detect the health status of the first server. And notify the gateway when the first server fails.
S713、网关接收来自终端的流量1;S713. The gateway receives traffic 1 from the terminal;
网关可以接收来自终端的流量,并且可以识别出访问目标业务的流量。本申请实施例将步骤S711之后、在第一服务器发生故障之前网关所接收到的访问目标业务的流量称作流量1。可选的,流量1的目的地址指向第一服务器。The gateway can receive the traffic from the terminal, and can identify the traffic that accesses the target service. In this embodiment of the present application, the traffic of accessing the target service received by the gateway after step S711 and before the failure of the first server is referred to as traffic 1 . Optionally, the destination address of traffic 1 points to the first server.
S714、网关向第一服务器转发流量1;S714. The gateway forwards traffic 1 to the first server;
在步骤S713之后,由于第一服务器未发生故障,网关可以根据主备驱动策略继续向第一服务器转发流量1。例如,网关可以根据原转发表(不包括重定向映射表)转发流量1,以将目的地址指向第一服务器的流量1转发至第一服务器。After step S713, since the first server does not fail, the gateway can continue to forward traffic 1 to the first server according to the active/standby driving strategy. For example, the gateway may forward the traffic 1 according to the original forwarding table (excluding the redirection mapping table), so as to forward the traffic 1 whose destination address points to the first server to the first server.
S715、网关接收来自终端的流量2;S715. The gateway receives traffic 2 from the terminal;
网关可以接收来自终端的流量,并且可以识别出访问目标业务的流量。本申请实施例将步骤S711之后、在第一服务器发生故障之后网关所接收到的访问目标业务的流量称作流量2。可选的,流量2的目的地址指向第一服务器。The gateway can receive the traffic from the terminal, and can identify the traffic that accesses the target service. In the embodiment of the present application, the traffic of accessing the target service received by the gateway after step S711 and after the failure of the first server is referred to as traffic 2 . Optionally, the destination address of traffic 2 points to the first server.
S716、网关向第二服务器转发流量2。S716. The gateway forwards the traffic 2 to the second server.
在步骤S713之后,由于第一服务器未发生故障,网关可以根据主备驱动策略向第二服务器转发流量1。例如,网关可以根据重定向映射表将访问目标业务的流量2的目的地址改为第二服务器的地址,以将目的地址指向第一服务器的流量2转发至第二服务器。该流量2可以参考图3对应的实施例中的第一流量进行理解。After step S713, since the first server does not fail, the gateway can forward traffic 1 to the second server according to the active/standby driving strategy. For example, the gateway can change the destination address of the traffic 2 accessing the target service to the address of the second server according to the redirection mapping table, so as to forward the traffic 2 whose destination address points to the first server to the second server. The flow 2 can be understood with reference to the first flow in the embodiment corresponding to FIG. 3 .
在目标业务的迁移过程中,用户通过配置接口输入配置信息便可以将目标业务对应的目标应用和流量迁移至第二服务器。这个应用业务的迁移过程对用户的技术要求较低,有利于降低应用业务迁移成本。并且,终端访问目标应用的服务器地址不需要改变,访问应用的终端不需要感知服务器地址的改变,相应的,也无需调整相应配置,有利于降低应用业务迁移的成本。During the migration process of the target service, the user can migrate the target application and traffic corresponding to the target service to the second server by inputting configuration information through the configuration interface. The migration process of the application business has lower technical requirements for users, which is beneficial to reduce the migration cost of the application business. Moreover, the server address of the terminal accessing the target application does not need to be changed, and the terminal accessing the application does not need to perceive the change of the server address, and correspondingly, there is no need to adjust the corresponding configuration, which is beneficial to reduce the cost of application service migration.
并且,由于可以根据用户的配置信息在第一服务器发生故障之后向第二服务器转发流量,有利于保证目标业务的可靠性。Moreover, since the traffic can be forwarded to the second server after the first server fails according to the configuration information of the user, it is beneficial to ensure the reliability of the target service.
图7对应的实施例可以理解为图3对应的实施例的一种可能的具体实现方式。例如,步骤S702可以理解为步骤S301一种可能的实现方式。例如,S703、S704、S708至S710中的全部或部分步骤可以理解为步骤S302一种可能的实现方式。例如,S705、S706、S707和S710中的全部或部分步骤可以理解为S303一种可能的实现方式。例如,S711至S716中的全部或部分步骤可以理解为步骤S304一种可能的实现方式。例如,主备驱动策略可以理解为步骤S304中介绍的主备驱动策略。The embodiment corresponding to FIG. 7 may be understood as a possible specific implementation manner of the embodiment corresponding to FIG. 3 . For example, step S702 can be understood as a possible implementation manner of step S301. For example, all or part of steps in S703, S704, S708 to S710 can be understood as a possible implementation manner of step S302. For example, all or part of the steps in S705, S706, S707 and S710 can be understood as a possible implementation manner of S303. For example, all or part of steps in S711 to S716 can be understood as a possible implementation manner of step S304. For example, the active/standby drive strategy can be understood as the active/standby drive strategy introduced in step S304.
以上介绍了本申请提供的实施例方法。在以上实施例方法中,可选的,用户可以指目标应用和/或转发网络的管理者,具备应用软件系统和/或网络的配置管理权限和能力;第一服务器(即迁移源端)是被迁移软件初始部署位置,可以是本地部署服务器或云端部署的服务器;第二服务器(即迁移目的端)是被迁移软件的目标部署位置;网关可以是迁移业务的管理中心,也可以是应用流量必经节点,同时和迁移源端、迁移目的端网络可达,用户可以根据需要在转发网络中选择一个或多个网关,向其输入配置信息。The above describes the embodiment method provided by the present application. In the methods of the above embodiments, optionally, the user may refer to the administrator of the target application and/or the forwarding network, who has the configuration management rights and capabilities of the application software system and/or network; the first server (i.e., the migration source) is The initial deployment location of the migrated software can be a local deployment server or a server deployed in the cloud; the second server (i.e., the migration destination) is the target deployment location of the migrated software; the gateway can be the management center of the migration business, or it can be the application traffic It must pass through the node, and at the same time, it is reachable to the migration source and migration destination networks. Users can select one or more gateways in the forwarding network according to their needs, and input configuration information to them.
本申请方法实施例中,可选的,用户通过人机接口(图2以笔记本电脑为例)向网关输入迁移策略,支持每应用每策略或多应用同策略,迁移驱动策略配置可动态调整。也就是说,目标应用可以包括一个或多个应用。例如,网关可以支持在例如图5所示的配置界面中的窗口3中获取用户输入的多个应用,用户可以在图5所示的配置界面中为多个应用配置相同或不同的迁移策略。In the method embodiment of the present application, optionally, the user inputs the migration strategy to the gateway through the man-machine interface (a notebook computer is used as an example in FIG. 2 ), which supports each strategy per application or the same strategy for multiple applications, and the configuration of the migration-driven strategy can be dynamically adjusted. That is, the target application may include one or more applications. For example, the gateway can support multiple applications that obtain user input in window 3 in the configuration interface shown in FIG. 5 , and the user can configure the same or different migration policies for multiple applications in the configuration interface shown in FIG. 5 .
本申请方法实施例中,基于配置信息中的迁移策略实现全流程自动化应用迁移,自动化效率更高。网络设备(例如网关)作为迁移管理中心,自动协调迁移源端、目的端完成迁移参数协商和数据复制动作,自动化程度高,并且,无需额外引入迁移服务中心,有利于降低网络架构的复杂度和成本。In the method embodiment of the present application, the entire process of automatic application migration is realized based on the migration strategy in the configuration information, and the automation efficiency is higher. As the migration management center, the network device (such as a gateway) automatically coordinates the migration source end and the destination end to complete the migration parameter negotiation and data replication actions. The degree of automation is high, and there is no need to introduce an additional migration service center, which is conducive to reducing the complexity and complexity of the network architecture. cost.
上述详细阐述了本申请实施例的方法,为了便于更好的实施本申请实施例的上述方案,相应地,下面还提供用于配合实施上述方案的相关设备。The method of the embodiment of the present application has been described in detail above. In order to facilitate better implementation of the above-mentioned solution of the embodiment of the present application, correspondingly, related equipment for cooperating with implementing the above-mentioned solution is also provided below.
参见图8,图8是本申请实施例提供的一种网络设备的结构示意图,该网络设备可以是上述图2所示的转发网络中的一个网络设备(例如网关),或,该网络设备可以是上述图3或图4或图6或图7的方法实施例中的网关,可以执行相应附图对应的方法实施例中以网关为执行主体的方法和步骤。如图8所示,该网络设备800包括配置模块810、指令发送模块820和流量转发模块830。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a network device provided by an embodiment of the present application. The network device may be a network device (such as a gateway) in the forwarding network shown in FIG. 2 above, or the network device may It is the gateway in the method embodiment in FIG. 3 or FIG. 4 or FIG. 6 or FIG. 7 above, and can execute the method and steps in the method embodiment corresponding to the corresponding drawing with the gateway as the execution subject. As shown in FIG. 8 , the network device 800 includes a configuration module 810 , an instruction sending module 820 and a traffic forwarding module 830 .
其中,可选的,配置模块810,用于获取来自用户的配置信息,配置信息指示将第一服务器所提供的目标应用的目标业务迁移至第二服务器,第一服务器的地址和第二服务器的地址不同。指令发送模块820,用于根据配置信息向第一服务器发送迁移指令,迁移指令用于通知第一服务器向第二服务器迁移目标应用。流量转发模块830,用于根据配置信息接收并向第二服务器转发访问目标业务的第一流量。Wherein, optionally, the configuration module 810 is configured to obtain configuration information from the user, the configuration information indicates that the target service of the target application provided by the first server is migrated to the second server, the address of the first server and the address of the second server The address is different. The instruction sending module 820 is configured to send a migration instruction to the first server according to the configuration information, and the migration instruction is used to notify the first server to migrate the target application to the second server. The traffic forwarding module 830 is configured to receive and forward the first traffic for accessing the target service to the second server according to the configuration information.
可选的,配置信息包括迁移策略,第一流量为根据迁移策略确定的,其中,迁移策略指示向第二服务器迁移目标业务的方式。Optionally, the configuration information includes a migration strategy, and the first traffic is determined according to the migration strategy, where the migration strategy indicates a manner of migrating the target service to the second server.
可选的,迁移策略为搬迁驱动策略,搬迁驱动策略指示使用第二服务器代替第一服务器提供目标业务。第一流量为将目标应用迁移至第二服务器后流量转发模块所接收到的访问目标业务的全部流量。Optionally, the migration strategy is a migration-driven strategy, and the migration-driven strategy indicates that the second server is used instead of the first server to provide the target service. The first traffic is all traffic for accessing the target service received by the traffic forwarding module after the target application is migrated to the second server.
可选的,迁移策略为流量驱动策略,流量驱动策略指示采用负载均衡方式向第二服务器迁移目标业务。第一流量为根据负载均衡方式从全部流量中确定的,全部流量为将目标应用迁移至第二服务器后流量转发模块所接收到的访问目标业务的全部流量。Optionally, the migration policy is a traffic-driven policy, and the traffic-driven policy indicates that the target service is migrated to the second server in a load balancing manner. The first flow is determined from all flows according to the load balancing manner, and all flows are all flows of accessing target services received by the flow forwarding module after the target application is migrated to the second server.
可选的,流量分担策略为主备驱动策略,主备驱动策略指示在第一服务器发生故障后向第二服务器迁移目标业务。第一流量为在第一服务器发生故障后流量转发模块所接收到的访问目标业务的流量。Optionally, the traffic sharing policy is an active-standby driving policy, and the active-standby driving policy indicates that the target service is migrated to the second server after the first server fails. The first traffic is the traffic for accessing the target service received by the traffic forwarding module after the first server fails.
可选的,配置信息还包括迁移目标应用的前提条件。指令发送模块820,具体用于在满足前提条件后,向第一服务器发送迁移指令。流量转发模块830,还用于在指令发送模块向第一服务器发送迁移指令之前,接收并向第一服务器转发访问目标业务的第二流量。Optionally, the configuration information also includes prerequisites for migrating the target application. The instruction sending module 820 is specifically configured to send the migration instruction to the first server after the precondition is satisfied. The traffic forwarding module 830 is further configured to receive and forward the second traffic for accessing the target service to the first server before the instruction sending module sends the migration instruction to the first server.
可选的,迁移条件包括第二流量的统计值超过阈值。Optionally, the migration condition includes that the statistical value of the second traffic exceeds a threshold.
可选的,第一流量的目的地址为第一服务器的地址。Optionally, the destination address of the first traffic is the address of the first server.
具体地,配置模块810可以用于执行前述步骤S301,且可选的,可以执行S301的可选方法。指令发送模块820可以用于执行前述步骤S302,且可选的,可以执行S302的可选方法。流量转发模块830可以用于执行前述步骤S304,且可选的执行S304的可选方法。Specifically, the configuration module 810 may be used to execute the foregoing step S301, and optionally, an optional method of S301 may be executed. The instruction sending module 820 may be configured to execute the foregoing step S302, and optionally, an optional method of S302 may be executed. The traffic forwarding module 830 may be configured to perform the foregoing step S304, and may optionally perform an optional method of S304.
上述两个模块之间互相可以通过通信通路进行数据传输,应理解,网络设备800包括的各模块可以软件模块、也可以为硬件模块、或部分为软件模块部分为硬件模块。The above two modules can perform data transmission with each other through a communication path. It should be understood that the modules included in the network device 800 can be software modules, hardware modules, or partly software modules and partly hardware modules.
关于网络设备的可能实现方式及有益效果可以参考前文方法实施例的相关内容,此处不再赘述。Regarding possible implementation manners and beneficial effects of the network device, reference may be made to relevant content of the foregoing method embodiments, and details are not repeated here.
需要说明的是,上述网络设备的结构仅仅作为一种示例,不应构成具体限定,可以根据需要对该网络设备中的各个模块进行增加、减少或合并。此外,该网络设备中的各个模块的操作和/或功能是为了实现上述方法实施例所描述的方法的相应流程,为了简洁,在此不再赘述。It should be noted that the above structure of the network device is merely an example and should not be construed as a specific limitation, and various modules in the network device can be added, reduced or combined as required. In addition, the operation and/or function of each module in the network device is to implement the corresponding process of the method described in the above method embodiment, and for the sake of brevity, details are not repeated here.
参见图9,图9是本申请实施例提供的一种计算设备的结构示意图。如图9所示,该计算设备9包括:处理器91、通信接口92以及存储器93,处理器91、通信接口92以及存储器93通过内部总线94相互连接。应理解,可选的,该计算设备9可以是私有云或公有云中的计算设备。Referring to FIG. 9, FIG. 9 is a schematic structural diagram of a computing device provided by an embodiment of the present application. As shown in FIG. 9 , the computing device 9 includes: a processor 91 , a communication interface 92 and a memory 93 , and the processor 91 , the communication interface 92 and the memory 93 are connected to each other through an internal bus 94 . It should be understood that, optionally, the computing device 9 may be a computing device in a private cloud or a public cloud.
处理器91可以由一个或者多个通用处理器构成,例如中央处理器(centralprocessing unit,CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC)、可编程逻辑器件(programmablelogic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complexprogrammable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gatearray,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 91 may be composed of one or more general-purpose processors, such as a central processing unit (central processing unit, CPU), or a combination of a CPU and a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
总线94可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线94可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但不表示仅有一根总线或一种类型的总线。The bus 94 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like. The bus 94 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 9 , but it does not mean that there is only one bus or one type of bus.
存储器93可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM);存储器93也可以包括非易失性存储器(non-volatilememory),例如只读存储器(read-only memory,ROM)、快闪存储器(flash memory)、硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器93还可以包括上述种类的组合。The memory 93 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 93 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); the memory 93 may also include a combination of the above types.
需要说明的是,计算设备9的存储器93中存储了网络设备800的各个模块对应的代码,处理器91执行这些代码实现了网络设备800的各个模块的功能,即执行了S301、S302和S304的方法,或执行了相应步骤的可选方法。It should be noted that the memory 93 of the computing device 9 stores codes corresponding to each module of the network device 800, and the processor 91 executes these codes to realize the functions of each module of the network device 800, that is, executes the steps of S301, S302 and S304. method, or an optional method that performs the corresponding steps.
本申请还提供一种应用业务的迁移系统,该迁移系统可以包括但不限于第一服务器、第二服务器和网络设备。该网络设备可以为前文介绍的网络设备800,用于执行S301、S302和S304的方法,或执行了相应步骤的可选方法。该第一服务器和第二服务器可以为前文介绍的实施例方法中所提到的相应服务器,可以执行相应服务器在前文实施例方法所介绍的步骤。The present application also provides a migration system for application services, and the migration system may include but not limited to a first server, a second server, and a network device. The network device may be the network device 800 described above, configured to perform the methods of S301, S302, and S304, or an optional method that has performed corresponding steps. The first server and the second server may be the corresponding servers mentioned in the above-mentioned embodiment methods, and may execute the steps described by the corresponding servers in the above-mentioned embodiment methods.
本申请还提供一种计算机可读存储介质,其中,计算机可读存储介质存储有计算机程序,当该计算机程序被处理器执行时,可以实现上述方法实施例中记载的任意一种的部分或全部步骤。The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, part or all of any one of the above-mentioned method embodiments can be realized. step.
本发明实施例还提供一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行任意一种方法实施例的部分或全部步骤。An embodiment of the present invention also provides a computer program, the computer program includes instructions, and when the computer program is executed by a computer, the computer can execute some or all of the steps of any method embodiment.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可能可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。本申请实施例涉及的“A和/或B”可以理解为包括“A和B”以及“A或B”这两种方案。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application. The "A and/or B" mentioned in the embodiment of the present application can be understood as including "A and B" and "A or B".
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210121289.7ACN116614548A (en) | 2022-02-09 | 2022-02-09 | Application service migration method and system, network equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210121289.7ACN116614548A (en) | 2022-02-09 | 2022-02-09 | Application service migration method and system, network equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN116614548Atrue CN116614548A (en) | 2023-08-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210121289.7APendingCN116614548A (en) | 2022-02-09 | 2022-02-09 | Application service migration method and system, network equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN116614548A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118612223A (en)* | 2024-02-26 | 2024-09-06 | 腾讯科技(深圳)有限公司 | Data processing method, device, system, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118612223A (en)* | 2024-02-26 | 2024-09-06 | 腾讯科技(深圳)有限公司 | Data processing method, device, system, computer equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN106686070B (en) | Database data migration method, device, terminal and system | |
| CN107508795B (en) | Cross-container cluster access processing device and method | |
| CN106452857B (en) | Method for generating configuration information and network control unit | |
| CN108347493B (en) | Hybrid cloud management method, apparatus and computing device | |
| EP2800308B1 (en) | Tunnel failover | |
| US9584369B2 (en) | Methods of representing software defined networking-based multiple layer network topology views | |
| CN109728962B (en) | Method and equipment for sending message | |
| CN112291079B (en) | Network service configuration method and network management equipment | |
| EP3637687B1 (en) | Method for orchestrating software defined network, and sdn controller | |
| CN106034077A (en) | A dynamic routing configuration method, device and system | |
| JP2019525604A (en) | Network function NF management method and NF management apparatus | |
| CN104394080A (en) | Method and device for achieving function of security group | |
| US20120226793A1 (en) | System and method for describing network components and their associations | |
| CN106953945A (en) | Domain name intelligent resolution method, device, and server based on SDN | |
| US12323293B2 (en) | Method, apparatus, and system for sending control request based on key value configuration | |
| CN113872799A (en) | Method, node and system for managing node | |
| CN104683130B (en) | A kind of method and apparatus of configuring stacking port | |
| CN116614548A (en) | Application service migration method and system, network equipment and storage medium | |
| CN103765819B (en) | A data configuration method and network management server | |
| JP2004306200A (en) | Robot control system | |
| CN106230980A (en) | A kind of address configuration method, Apparatus and system | |
| JPWO2016068238A1 (en) | NETWORK CONTROL SYSTEM, CONTROL DEVICE, NETWORK INFORMATION MANAGEMENT METHOD, AND PROGRAM | |
| CN110830598A (en) | Method and network device for establishing BGP session, sending interface address and alias | |
| CN114302411A (en) | Wireless local area network system and network data processing method | |
| CN105100296A (en) | Controller address configuration method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |