Method and Computing Device for Selecting Protocol Stack

US2016239337A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2016239337-A1
Application numberUS-201615139724-A
CountryUS
Kind codeA1
Filing dateApr 27, 2016
Priority dateOct 29, 2013
Publication dateAug 18, 2016
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and computing device for selecting a protocol stack for performing protocol processing on data is presented. The computing device is configured with a hypervisor for managing a first virtual machine. According to the method, when a socket creation instruction sent by the first virtual machine is received, a protocol stack instance is selected from the protocol stack instances provided by the computing device. Then, a socket is created in the selected protocol stack instance according to the socket creation instruction; and a creation result is transmitted to the first virtual machine. Therefore, in a virtualized environment, multiple virtual machines disposed in a same computing device can share a network protocol processing capability, and protocol stacks of the virtual machines achieve load balance.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method, performed by a computing device hosting a first virtual machine, the computing device configured with a hypervisor for managing the first virtual machine, the method comprising: receiving a socket creation instruction sent by the first virtual machine; selecting a protocol stack instance from a plurality of protocol stack instances provided by the computing device; creating a socket in the selected protocol stack instance according to the socket creation instruction; sending a correspondence between the created socket and an identifier of the protocol stack instance to the first virtual machine; and performing, according to the correspondence, data processing based on the created socket in the selected protocol stack instance for the first virtual machine. 2 . The method according to claim 1 , wherein the computing device further hosts a second virtual machine, and wherein the selected protocol stack instance is provided a protocol processing function for data of the second virtual machine. 3 . The method according to claim 1 , wherein selecting the protocol stack instance from the plurality of protocol stack instances provided by the computing device comprises selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to a load balance principle. 4 . The method according to claim 1 , wherein selecting the protocol stack instance from the plurality of protocol stack instances provided by the computing device comprises: determining an application process corresponding to the socket to be created according to the socket creation instruction; determining a service feature of the application process according to historical information about socket creation of the application process; and selecting a protocol stack instance from the plurality of protocol stack instance provided by the computing device according to the service feature of the application process. 5 . The method according to claim 1 , wherein selecting the protocol stack instance from the plurality of protocol stack instances provided by the computing device comprises selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to a prestored correspondence between a virtual machine identifier and a protocol stack instance identifier. 6 . The method according to claim 1 , wherein selecting the protocol stack instance from the plurality of protocol stack instances provided by the computing device comprises selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to attribute information of the socket to be created according to the socket creation instruction. 7 . The method according to claim 1 , wherein after sending the correspondence between the created socket and the identifier of the protocol stack instance to the first virtual machine, the method further comprises: receiving a control instruction, transmitted by the first virtual machine, for performing a control operation on the socket; determining, according to the correspondence between the socket and the identifier of the protocol stack instance, the protocol stack instance corresponding to the socket in the control instruction; performing the control operation on the socket in the protocol stack instance according to the control instruction; and transmitting an operation result of the control operation performed on the socket to the first virtual machine. 8 . The method according to claim 2 , further comprising: receiving a first data transmission instruction for transmitting data to the second virtual machine based on the socket; and transmitting, using the protocol stack instance, the data to be transmitted to the second virtual machine based on the socket to a protocol stack offload apparatus in the second virtual machine, wherein the protocol stack offload apparatus in the second virtual machine is configured to perform data transmission between the protocol stack instance and the second virtual machine and further configured to transmit the data to an application process in the second virtual machine. 9 . A computing device for hosting a first virtual machine and a second virtual machine, the computing device comprising: a non-transitory computer readable storage medium having stored thereon computer-executable instructions for the first virtual machine and a hypervisor for managing the first virtual machine; a processor configured to execute the instructions to perform steps including: sending, from the first virtual machine, a socket creation instruction to the hypervisor; receiving the socket creation instruction sent by the first virtual machine; selecting a protocol stack instance from a plurality of protocol stack instances provided by the computing device; creating a socket in the selected protocol stack instance according to the socket creation instruction; sending a correspondence between the created socket and an identifier of the protocol stack instance to the first virtual machine; and performing, according to the correspondence, data processing based on the created socket in the selected protocol stack instance for the first virtual machine. 10 . The computing device according to claim 9 , wherein the computing device further hosts a second virtual machine, and wherein the selected protocol stack instance is provided a protocol processing function for data of the second virtual machine. 11 . The computing device according to the claim 9 , wherein selecting the protocol stack instance comprises selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to a load balance principle. 12 . The computing device according to the claim 9 , wherein selecting the protocol stack instance comprises determining an application process corresponding to the socket to be created according to the socket creation instruction; determining a service feature of the application process according to historical information about socket creation of the application process; and selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to the service feature of the application process. 13 . The computing device according to the claim 9 , wherein selecting the protocol stack instance comprises selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to a prestored correspondence between a virtual machine identifier and a protocol stack instance identifier. 14 . The computing device according to the claim 9 , wherein selecting the protocol stack instance comprises selecting a protocol stack instance from the plurality of protocol stack instances provided by the computing device according to attribute information of the socket to be created according to the socket creation instruction. 15 . The computing device according to the claim 9 , wherein the processor is further configured to execute the instructions to perform steps including determining that a virtual device used for data transmission is not a virtual network interface card (virtual NIC) of the first virtual machine. 16 . The computing device according to the claim 15 , wherein determining that the virtual device used for data transmission is not a virtual NIC of the first virtual machine comprises: determining an application process corresp

Assignees

Inventors

Classifications

  • Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers · CPC title

  • Protocol engines · CPC title

  • Hypervisor-specific management and integration aspects · CPC title

  • G06F9/544Primary

    Buffers; Shared memory; Pipes · CPC title

  • Creating, deleting, cloning virtual machine instances · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2016239337A1 cover?
A method and computing device for selecting a protocol stack for performing protocol processing on data is presented. The computing device is configured with a hypervisor for managing a first virtual machine. According to the method, when a socket creation instruction sent by the first virtual machine is received, a protocol stack instance is selected from the protocol stack instances provided …
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F9/45558. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Aug 18 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).