Abstract:
A packet forwarding method and a VXLAN gateway. A VXLAN packet is received. The VXLAN packet includes a communication packet that is sent from a first VM to a second VM; a second VNI of a subnet in which a next-hop device of the communication packet is located is determined according to a first VNI of the VXLAN packet and an IP address of the second VM of the VXLAN packet; the communication packet is encapsulated according to the second VNI; and then an encapsulated VXLAN packet is forwarded to the next-hop device through a tunnel corresponding to the second VNI, to avoid that the VXLAN gateway can implement forwarding of the VXLAN packet only after the VXLAN gateway modifies the communication packet in the payload of the VXLAN packet, and improve efficiency of forwarding the VXLAN packet.
Abstract:
This application provides a method for managing a resource in a computer system and a terminal device. The method includes: obtaining data, where the data includes application sequence feature data related to a current foreground application, and the data further includes at least one of the following real-time data: a system time of the computer system, current status data of the computer system, and current location data of the computer system; selecting, from a plurality of machine learning models based on at least one of the real-time data, a target machine learning model that matches the real-time data; inputting the obtained data into the target machine learning model to rank importance of a plurality of applications installed in the computer system; and performing resource management based on a result of the importance ranking.
Abstract:
This application provides a method for managing a resource in a computer system and a terminal device. The method includes: obtaining data, where the data includes application sequence feature data related to a current foreground application, and the data further includes at least one of the following real-time data: a system time of the computer system, current status data of the computer system, and current location data of the computer system; selecting, from a plurality of machine learning models based on at least one of the real-time data, a target machine learning model that matches the real-time data; inputting the obtained data into the target machine learning model to rank importance of a plurality of applications installed in the computer system; and performing resource management based on a result of the importance ranking.
Abstract:
A method for presenting a custom content in a set top box and a set top box are disclosed. The method includes checking a display cache and a flash memory of a set top box after the set top box is powered on, writing a custom content in the flash memory into the display cache if the display cache and the flash memory of the set top box are checked correct, controlling the custom content written into the display cache to be presented to a user on a video terminal, and, after the custom content written into the display cache is controlled to be presented to the user on the video terminal, checking a hardware device other than the display cache and the flash memory in the set top box, starting an operating system of the set top box, and performing network authentication.
Abstract:
A method for presenting a custom content in a set top box and a set top box are disclosed. The method includes checking a display cache and a flash memory of a set top box after the set top box is powered on, writing a custom content in the flash memory into the display cache if the display cache and the flash memory of the set top box are checked correct, controlling the custom content written into the display cache to be presented to a user on a video terminal, and, after the custom content written into the display cache is controlled to be presented to the user on the video terminal, checking a hardware device other than the display cache and the flash memory in the set top box, starting an operating system of the set top box, and performing network authentication.