摘要:
Embodiments of the present invention disclose a flow entry configuration method, apparatus, and system. The method includes: reporting, by a switch, a flow table structure to a controller, where an intersection of match fields and actions of multiple OpenFlow flow tables included in the flow table structure includes a match field and an action that are used to implement a first service supported by a hardware flow table; receiving a flow entry that is generated according to the flow table structure and sent by the controller; determining, when a first flow entry matching a first data packet of the first service is found in the software flow table, a first target service path matching the first flow entry, and further determining a corresponding first hardware flow table; and configuring a flow entry of the first hardware flow table according to the first flow entry. By using this method, no matter to which controller the switch is connected, the switch can successfully configure, in the hardware flow table, the flow entry used to implement the first service, so as to successfully process the first service, thereby reducing a probability of failure in service processing.
摘要:
A method for silently starting an application in background includes: monitoring running statuses of applications on a terminal (S101); and when it is detected that a first application exits running, determining whether the first application is a silently started application; and if yes, intercepting prompt information for the first application, where the first application is any one of the applications on the terminal, and the silently started application is an application recorded in a silent application list (S103). According to this method, the prompt information for the first application of the silently started application is intercepted, so that a problem that it takes an excessively long time to cold start an application and a problem of unnecessary interference caused by the prompt information to a user are resolved, thereby improving user experience.
摘要:
Embodiments of the present invention disclose a memory reclaiming method and a terminal. The method includes: determining, by a terminal according to a preset rule, a target application program in application programs run on a background, where the target application program is an application program that needs to be cleaned; freezing, by the terminal, the target application program, and reclaiming data generated during running of a process of the target application program in memory; and unfreezing, by the terminal when receiving an input triggering instruction for the target application program, the target application program, and running the target application program. Using the embodiments of the present invention can improve a memory reclaiming effect.
摘要:
An application start method and apparatus relate to the field of wireless communications technologies, so as to improve user experience. The method includes: obtaining, by a terminal, a target application list when a size of free memory is greater than a preset threshold, where the target application list is used to store an identifier of an application whose memory is released last time, and the identifier of the application is used to uniquely identify the application; and starting, in the background, a process of an application identified by at least one identifier in the target application list. In this technical solution, when the size of the free memory is greater than the preset threshold, the terminal starts, in the background, the process of the application according to the target application list, and therefore a problem that the terminal repeatedly restarts and closes, in the background, the process of the application when memory needed for running, in the background, the application cannot be satisfied is avoided, so that user experience is improved.
摘要:
The present invention provides a method for constructing a multipath forwarding rule, an apparatus, and a system. A controller invokes a multipath algorithm to generate multiple paths for a data stream; the controller generates a multiport rule of each forwarding device according to the multiple paths; the controller generates metadata according to the multiport rule of each forwarding device, where the metadata includes information for indicating at least one forwarding port of the forwarding device; the controller generates a flow entry establishment indication; the controller sends the flow entry establishment indication to each forwarding device, so that each forwarding device selects the at least one forwarding port of the forwarding device according to the metadata and according to the flow entry establishment indication, to forward the data stream. Because a forwarding device may reuse a port combination according to metadata, after generating a flow entry, a controller does not need to query an already used group, and directly sends the flow entry to each forwarding device, thereby shortening a decision time of the controller.
摘要:
The present invention provides a method for constructing a multipath forwarding rule, an apparatus, and a system. A controller invokes a multipath algorithm to generate multiple paths for a data stream; the controller generates a multiport rule of each forwarding device according to the multiple paths; the controller generates metadata according to the multiport rule of each forwarding device, where the metadata includes information for indicating at least one forwarding port of the forwarding device; the controller generates a flow entry establishment indication; the controller sends the flow entry establishment indication to each forwarding device, so that each forwarding device selects the at least one forwarding port of the forwarding device according to the metadata and according to the flow entry establishment indication, to forward the data stream. Because a forwarding device may reuse a port combination according to metadata, after generating a flow entry, a controller does not need to query an already used group, and directly sends the flow entry to each forwarding device, thereby shortening a decision time of the controller.
摘要:
Embodiments of the present invention disclose a method for acquiring, by an SDN switch, an exact flow entry, applied to an SDN network, where the SDN network includes an SDN controller and multiple SDN switches, the SDN controller communicates with each SDN switch in an inband communication manner, and the method includes: first establishing, by a first SDN switch, a reliable connection to the SDN controller; then, sending a first control message based on a packet corresponding to a protocol for the reliable connection; adding path information of the first SDN switch to the control message; and subsequently, also adding, by each SDN switch that receives the first control message, path information of each SDN switch to the first control message, so that finally, the SDN controller knows an entire path, so as to deliver a flow table to the first SDN switch.