Method and device for controlling connection number of virtual machine

A technology for controlling virtual machines and virtual machines, applied in the field of communication, can solve problems such as difficult code maintenance, code redundancy, server performance loss, etc., and achieve the effect of improving server performance and avoiding code redundancy

Active Publication Date: 2016-11-23
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] During the research and practice of the existing technology, the inventors of the present invention found that since the system kernel of the server has already implemented a set

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for controlling connection number of virtual machine
  • Method and device for controlling connection number of virtual machine
  • Method and device for controlling connection number of virtual machine

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0026] see figure 1 , figure 1 It is a schematic flowchart of the method for controlling the number of virtual machine connections provided by the first embodiment of the present invention. The methods include:

[0027] In step S101, the Internet protocol IP address of the received or sent data packet is acquired.

[0028] In step S102, if it is determined according to the IP address that the data packet belongs to a virtual machine on the server, a warning identifier is obtained.

[0029] Wherein, the steps S101 and S102 may specifically be:

[0030] The method for controlling the number of virtual machine connections can be based on running on a terminal server. When the server determines that the data message belongs to a virtual machine on the server according to the IP address of the data message, it obtains the current connection tracking method used to indicate the virtual machine. Whether the number exceeds the warning flag of the number of connection traces that c...

no. 2 example

[0038] see Figure 2a , Figure 2a It is a schematic flowchart of the method for controlling the number of virtual machine connections provided by the second embodiment of the present invention. Wherein, the method for controlling the number of virtual machine connections is based on running on a terminal server. When the server determines that the data message belongs to a virtual machine on the server according to the IP address of the data message, it obtains the information used to indicate the current connection of the virtual machine. A warning flag indicating whether the number of traces exceeds the number of connection traces that can be owned. If yes, the virtual machine is allowed to establish connection traces, thereby controlling the number of connections of the virtual machine.

[0039] Different from the first embodiment, this embodiment mainly describes in detail the calculation of the number of connection tracking that a virtual machine can have and the initia...

no. 3 example

[0079] In order to better implement the method for controlling the number of virtual machine connections provided by the embodiment of the present invention, the embodiment of the present invention further provides a device based on the above method for controlling the number of virtual machine connections. The meanings of the nouns are the same as those in the above method for controlling the number of virtual machine connections, and for specific implementation details, please refer to the description in the method embodiments.

[0080] see image 3 , image 3 A schematic structural diagram of a device for controlling the number of virtual machine connections provided by an embodiment of the present invention, wherein the device for controlling the number of virtual machine connections can run on a terminal server, and the server determines the data packet according to the IP address of the data packet When the packet belongs to a virtual machine on the server, a warning fl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for controlling the connection number of a virtual machine. The method comprises the following steps: acquiring the Internet protocol IP address of a received or sent data message; if that the data message belongs to a virtual machine on a server is determined according to the IP address, acquiring a warning label; and when the warning label indicates that the current connection tracking number of the virtual machine does not exceed the connection tracking number which can be owned by the virtual machine, allowing the virtual machine to establish connection tracking. According to the embodiment of the invention, before the virtual machine goes into a connection tracking module, whether the virtual machine is allowed to establish connection tracking is decided according to the connection tracking number which can be owned by the virtual machine, and the connection tracking number of the server can be allocated reasonably and the connection number of each virtual machine can be limited. Meanwhile, compared with a mode in which a connection tracking mechanism is established for a data message based on quintuple in the system kernel of the server, the problem of code redundancy is avoided, and the performance of the server is improved.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a method and a device for controlling the connection number of a virtual machine. Background technique [0002] A virtual machine (VM, Virtual Machine) refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. When the user accesses the server through remote access technology (RDP, Remote Desktop Protocol), he usually enters the Internet Protocol (IP, Internet Protocol) address of the remote virtual machine. If the verification is passed, the virtual machine can be connected. The number of connection traces is limited. In the current solution, a set of connection tracking mechanism based on quintuples for data packets is implemented in the system kernel of the server where the virtual machine is located, so that it can be used to monitor and count the number of IP...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08G06F9/455
CPCH04L67/1046G06F9/45504G06F9/45533G06F2009/45591
Inventor 何冠森
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products