摘要:
A method and a terminal device for providing a suspend button display are disclosed in order to improve display flexibility of a suspend button. In the solutions, when a terminal device detects that a tap operation or a second touch and hold operation, the terminal device may the suspend button to present an effect that the graphic displayed in the suspend button is zoomed in or zoomed out, and then display the suspend button restored to the default state. Therefore, according to the method, the display flexibility of the suspend button can be improved, so that visual experience of a user is improved.
摘要:
A method for acquiring a physical address of a virtual machine includes acquiring, by a first switching endpoint, an address list of N switching endpoints from a centralized controller after receiving an address acquisition request sent by a first virtual machine, where the N switching endpoints include a second switching endpoint, sending, in a unicast manner according to the address list, the request to the N switching endpoints that include the second switching endpoint, and after receiving a second response sent by the second switching endpoint, sending the second response to the first virtual machine. The method may avoid the limitation on the quantity of created switching endpoints caused by the insufficient quantity of multicast groups of the switch in order to increase the quantity of created switching endpoints.
摘要:
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.
摘要:
A method and a terminal device for providing a suspend button display are disclosed in order to improve display flexibility of a suspend button. In the solutions, when a terminal device detects that a target object performs a sliding operation on a suspend button, the terminal device may control the suspend button to present an effect of a dynamic change. In this way, the suspend button may present a plurality of display forms. Therefore, according to the method, the display flexibility of the suspend button can be improved, so that visual experience of a user is improved.
摘要:
A method for acquiring a physical address of a virtual machine includes acquiring, by a first switching endpoint, an address list of N switching endpoints from a centralized controller after receiving an address acquisition request sent by a first virtual machine, where the N switching endpoints include a second switching endpoint, sending, in a unicast manner according to the address list, the request to the N switching endpoints that include the second switching endpoint, and after receiving a second response sent by the second switching endpoint, sending the second response to the first virtual machine. The method may avoid the limitation on the quantity of created switching endpoints caused by the insufficient quantity of multicast groups of the switch in order to increase the quantity of created switching endpoints.
摘要:
A communication method includes a transmit-end tunnel end points (VTEP) may intercept a broadcast packet that does not have a destination address and that is sent by a transmit-end virtual machine, acquire an Internet Protocol (IP) address list of a receive-end VTEP that belongs to same virtual extensible local area network (VXLAN) as the transmit-end VTEP, encapsulate the broadcast packet into a unicast packet according to an IP address of the receive-end VTEP, and send, in a form of the unicast packet, the original packet to another receive-end VTEP on the same VXLAN, where avoiding using a multicast manner to perform communication between VTEPs on the VXLAN such that construction of the VXLAN no longer depends on a multicast group quantity or capability of a tunnel end point, which extends application of the VXLAN.