CN111698141A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN111698141A
CN111698141A CN201910190568.7A CN201910190568A CN111698141A CN 111698141 A CN111698141 A CN 111698141A CN 201910190568 A CN201910190568 A CN 201910190568A CN 111698141 A CN111698141 A CN 111698141A
Authority
CN
China
Prior art keywords
message
network card
ethernet
iov network
vlan tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910190568.7A
Other languages
Chinese (zh)
Other versions
CN111698141B (en
Inventor
刘小飞
席媛媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201910190568.7A priority Critical patent/CN111698141B/en
Priority to BR112021018114A priority patent/BR112021018114A2/en
Priority to PCT/CN2019/130268 priority patent/WO2020181895A1/en
Publication of CN111698141A publication Critical patent/CN111698141A/en
Application granted granted Critical
Publication of CN111698141B publication Critical patent/CN111698141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes

Abstract

The invention provides a message forwarding method. Specifically, the method comprises the following steps: the SR-IOV network card carries out two-layer forwarding on the received Ethernet message to a corresponding port. The invention solves the problem of limitation of message forwarding between local virtual machines in the prior art, thereby effectively expanding the deployment and application scenes of the SR-IOV network card.

Description

Message forwarding method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for forwarding a packet.
Background
With the continuous development and wide application of virtualization technologies, the revolution of virtualization technologies in terms of I/O performance becomes more and more prominent. SR-IOV (Single Root I/O Virtualization) is more and more appearing in network function Virtualization schemes, and SR-IOV technology is a hardware-based Virtualization solution, which can significantly improve performance and scalability. The SR-IOV standard allows PCIe (Peripheral Component interconnect express) devices to be efficiently shared between virtual machines, and it is implemented in hardware, and can achieve I/O performance comparable to that using physical network card performance.
SR-IOV techniques are used to enable I/O device sharing in virtualized environments. It inherits the Intel VT-d technology and supports direct device allocation and DMA remapping. A Physical Function (PF) component is used to configure and manage all virtual Function components. A Virtual Function (VF) component is a lightweight PCIe feature. The PF drive operates in Domain0 and the VF drive operates in Domain u. The PF driver is a real PCIe device driver that has direct access to the PF and is responsible for creating, configuring, and managing all VFs. The VF driver is a real PCIe device driver and can directly access its corresponding VF.
The network card (hereinafter referred to as SR-IOV network card) using the SR-IOV technology can create a plurality of VFs from one PF, and each VF can be independently allocated to one virtual machine. The virtual machine can directly carry out data communication with the VF through the VF drive without passing through the Domain0 and the VMM, thereby avoiding data copy at the VMM in the traditional network mode and switching between a user mode and a core mode in the Domain0 and improving the network I/O performance.
As a network card supporting a virtualization technology, the SR-IOV network card may allocate corresponding different VF (Virtual function) network cards to a VM (Virtual Machine), so that messages can be sent and received between different Virtual machines.
However, when the existing SR-IOV technology implements packet forwarding between local virtual machines, at least the following problems exist, which greatly limit the deployment and application scenarios of the SR-IOV network card:
1. VLAN with the SR-IOV network card VF is not set, and the message with the VLAN TAG cannot be forwarded between the local virtual machines using the SR-IOV network card VF;
2. the VLAN of the SR-IOV network card VF is set, the messages with the multilayer VLAN TAGs cannot be forwarded between the local virtual machines using the SR-IOV network card VF, meanwhile, the VLAN TAG of the VF must be configured, and the VLAN TAG of the VF and the VLAN TAG of the messages must be the same.
Disclosure of Invention
The embodiment of the invention provides a message forwarding method and a message forwarding device, which are used for at least solving the problem of limitation when a local virtual machine forwards a message in the related art.
According to an embodiment of the present invention, a method for forwarding a packet is provided, including: the SR-IOV network card carries out two-layer forwarding on the received Ethernet message to a corresponding port.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, including: the SR-IOV network card is configured with a virtual local area network VLAN; after receiving the Ethernet message carrying the VLAN, the SR-IOV network card determines the message type of the Ethernet message according to the configured VLAN TAG parameter in the virtual function VF; and the SR-IOV network card carries out two-layer forwarding on the Ethernet message with the message type of the VLAN TAG message to the corresponding port.
Optionally, the VLAN TAG parameter at least includes a TAG protocol identifier TPID, and the SR-IOV network card determines a packet type of the ethernet packet according to the configured VLAN TAG parameter in the virtual function VF, including: the SR-IOV network card judges whether the TPID carried in the Ethernet message is the same as the TPID of the VLAN TAG message; if the judgment result is yes, determining that the Ethernet message is a VLAN TAG message; and under the condition that the judgment result is negative, determining that the Ethernet message is a non-VLAN TAG message.
Optionally, the two-layer forwarding, by the SR-IOV network card, the ethernet packet with the packet type of the VLAN TAG packet to the corresponding port includes: the SR-IOV network card configures a designated VLAN TAG parameter in the Ethernet message of which the message type is a non-VLAN TAG message, wherein the designated VLAN TAG parameter is used for indicating that the message type is a VLAN TAG message; and the SR-IOV network card carries out two-layer forwarding on the Ethernet message carrying the designated VLAN TAG parameter to the corresponding port.
Optionally, the configuring, by the SR-IOV network card, the designated VLAN TAG parameter in the non-VLAN TAG message, includes: and the SR-IOV network card attaches the TPID of the VLAN TAG message to the Ethernet message.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and further includes: and the SR-IOV network card forwards the Ethernet message to a corresponding port in two layers in the VLAN according to the set number of layers of the VLAN.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and further includes: after receiving the Ethernet message, the SR-IOV network card carries out two-layer forwarding on the Ethernet message to the corresponding port according to the address information in the Ethernet message.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and further includes: after receiving the Ethernet message, the SR-IOV network card carries out two-layer forwarding on the Ethernet message to the corresponding port according to the address information in the Ethernet message.
Optionally, the address information at least includes: a source MAC of the Ethernet, a target MAC of the Ethernet.
Optionally, the SR-IOV network card receives the ethernet packet from a physical port PF or a local virtual machine.
According to another embodiment of the present invention, a message forwarding apparatus is provided, which is located in an SR-IOV network card, and includes: and the forwarding module is used for carrying out two-layer forwarding on the received Ethernet message to a corresponding port.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the invention, the message received by the SR-IOV network card is forwarded by the two-layer VLAN instead of the one-layer VLAN, so that the problem of limitation of message forwarding between local virtual machines in the related technology can be solved, and the deployment and application scenes of the SR-IOV network card are effectively expanded.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a message forwarding method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a processing flow of a SR-IOV network card for determining a VLAN TAG message according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a flow of forwarding a VLAN non-VLAN TAG message set by an SR-IOV network card VF according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a flow of forwarding a VLAN TAG packet with a VLAN set by an SR-IOV network card VF according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a packet forwarding processing flow of an SR-IOV network card VF without setting a VLAN according to an embodiment of the present invention.
Fig. 6 is a block diagram of a forwarding apparatus for a packet according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
In this embodiment, a method for forwarding a packet is provided, and fig. 1 is a flowchart of a method for forwarding a packet according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, the SR-IOV network card carries out two-layer forwarding on the received Ethernet message to a corresponding port.
Specifically, the value of VLAN is a positive integer ranging from 1 to 4094 (inclusive of 1 and 4094).
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, including: the SR-IOV network card is configured with a virtual local area network VLAN; after receiving the Ethernet message carrying the VLAN, the SR-IOV network card determines the message type of the Ethernet message according to the configured VLAN TAG parameter in the virtual function VF; and the SR-IOV network card carries out two-layer forwarding on the Ethernet message with the message type of the VLAN TAG message to the corresponding port.
Optionally, the VLAN TAG parameter at least includes a TAG protocol IDentifier (TAG protocol IDentifier, TPID for short), and the SR-IOV network card determines a packet type of the ethernet packet according to the configured VLAN TAG parameter in the virtual function VF, including: the SR-IOV network card judges whether the TPID carried in the Ethernet message is the same as the TPID of the VLAN TAG message; if the judgment result is yes, determining that the Ethernet message is a VLAN TAG message; and under the condition that the judgment result is negative, determining that the Ethernet message is a non-VLAN TAG message.
Specifically, if the ethernet packet is a VLAN TAG packet, the TPID types carried in the TPID include, but are not limited to: 0 xabcd. For example, 0x8100, 0x88a8, 0x9100, 0x9200, 0x9300, and the like. And if the TPID is detected not to meet the form, the SR-IOV network card regards the Ethernet message as a non-Ethernet message.
It should be noted that the TPID indicates one of the VLAN TAG parameters listed in this embodiment for determining the identifier of the ethernet packet type, and other parameters capable of implementing the above functions, which are also within the protection scope of this embodiment, and are not described in detail herein.
Optionally, the two-layer forwarding, by the SR-IOV network card, the ethernet packet with the packet type of the VLAN TAG packet to the corresponding port includes: the SR-IOV network card configures a designated VLAN TAG parameter in the Ethernet message of which the message type is a non-VLAN TAG message, wherein the designated VLAN TAG parameter is used for indicating that the message type is a VLAN TAG message; and the SR-IOV network card carries out two-layer forwarding on the Ethernet message carrying the designated VLAN TAG parameter to the corresponding port.
Specifically, the designated VLAN TAG parameter is configured in at least one layer of non-VLAN TAG messages, so that the problem that only one layer can be forwarded at most between local virtual machines of the SR-IOV network card VF is solved, and the VLAN TAG of the VF and the VLAN TAG of the message do not need to be the same.
Optionally, the configuring, by the SR-IOV network card, the designated VLAN TAG parameter in the non-VLAN TAG message, includes: and the SR-IOV network card attaches the TPID of the VLAN TAG message to the Ethernet message.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and further includes: and the SR-IOV network card forwards the Ethernet message to a corresponding port in two layers in the VLAN according to the set number of layers of the VLAN.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and further includes: after receiving the Ethernet message, the SR-IOV network card carries out two-layer forwarding on the Ethernet message to the corresponding port according to the address information in the Ethernet message.
Specifically, the address information of the ethernet message is not the identification information of the VLAN TAG message. Therefore, even if the ethernet packet is a VLAN TAG packet, it is not discarded and cannot be forwarded. Therefore, the problem that the message with the VLAN TAG cannot be forwarded between the local virtual machines using the SR-IOV network card VF without setting the VLAN of the SR-IOV network card VF in the related technology can be solved.
Optionally, the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and further includes: after receiving the Ethernet message, the SR-IOV network card carries out two-layer forwarding on the Ethernet message to the corresponding port according to the address information in the Ethernet message.
Optionally, the address information at least includes: a source MAC of the Ethernet, a target MAC of the Ethernet.
Optionally, the SR-IOV network card receives the ethernet packet from a physical port PF or a local virtual machine.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In order to better understand the scheme described in the above embodiments, the following 4 scenarios are also provided for explanation:
scene 1: and the SR-IOV network card judges the VLAN TAG message.
Fig. 2 is a schematic diagram of a process flow of determining a VLAN TAG message by an SR-IOV network card according to an embodiment of the present invention.
As shown in fig. 2, the SR-IOV network card VF sets a VLAN and the TPID is 0xabcd, and determines whether the VLAN TAG message processing flow is as follows:
step S201: an SR-IOV network card driver is loaded on the host machine, a plurality of VF network cards are created based on the SR-IOV network card, an SR-IOV network card VLAN is set, and the TPID is 0xabcd, and the step S202 is carried out.
Step S202: and the SR-IOV network card receives the ethernet message from the physical port PF or VF network card, and goes to step S203.
Step S203: analyzing the Ethernet message, judging whether the Ethernet message is a VLAN TAG message according to whether the TPID is equal to 0xabcd or not, and turning to the step S204 if the Ethernet message is the VLAN TAG message; if not, go to step S205.
Step S204: and the SR-IOV network card analyzes the message and judges that the message is a VLAN TAG message, and a VLAN TAG message processing flow is carried out.
Step S205: and the SR-IOV network card analyzes the message and judges that the message is not a VLAN TAG message, and a non-VLAN TAG message processing flow is carried out.
The flow ends.
Scene 2: and the SR-IOV network card VF sets the forwarding process of the VLAN non-VLAN TAG message.
Fig. 3 is a schematic diagram of a flow of forwarding a VLAN non-VLAN TAG message set by an SR-IOV network card VF according to an embodiment of the present invention.
As shown in fig. 3, the SR-IOV network card VF sets VLAN X and TPID is 0xabcd, and the non-VLAN TAG packet forwarding process flow is as follows:
step S301: an SR-IOV network card driver is loaded on the host machine, a plurality of VF network cards are created based on the SR-IOV network card, the SR-IOV network card VLAN X is set, the TPID is 0xabcd, and the step S302 is carried out.
Step S302: and the SR-IOV network card receives the Ethernet message from the physical port PF or VF network card, and the step is switched to the step S303.
Step S303: and analyzing the Ethernet message, judging whether the Ethernet message is a VLAN TAG message according to whether the TPID is equal to 0xabcd or not, and turning to the step S304 if the Ethernet message is the VLAN TAG message.
Step S304: if not, the message is added with VF port VLAN id X, and TPID is 0xabcd, so that it becomes VLAN TAG message, go to step S305.
Step S305: the SR-IOV network card carries out two-layer forwarding on the Ethernet message in the VLAN X to a corresponding port to be sent out.
The flow ends.
Scene 3: and the SR-IOV network card VF sets a forwarding process of the VLAN TAG message.
Fig. 4 is a schematic diagram of a flow of forwarding a VLAN TAG packet with a VLAN set by an SR-IOV network card VF according to an embodiment of the present invention.
As shown in fig. 4, the SR-IOV network card VF sets VLAN X and TPID is 0xabcd, and the forwarding process of the packet with multiple layers of Yn VLAN TAG is as follows:
step S401: an SR-IOV network card driver is loaded on the host computer, a plurality of VF network cards are created based on the SR-IOV network card, the SR-IOV network card VLAN X is set, the TPID is 0xabcd, and the step S402 is executed.
Step S402: and the SR-IOV network card receives the ethernet packet from the physical port PF or VF network card, and then goes to step S403.
Step S403: and analyzing the Ethernet message, judging whether the Ethernet message is a VLAN TAG message according to whether the TPID is equal to 0xabcd or not, and turning to the step S404.
Step S404: if the VLAN TAG is provided, the SR-IOV network card carries out two-layer forwarding on the Ethernet message in the VLAN X to a corresponding port to be sent out.
The flow ends.
Scene 4: the SR-IOV network card VF does not set the packet forwarding process of the VLAN.
Fig. 5 is a schematic diagram of a packet forwarding processing flow of an SR-IOV network card VF without setting a VLAN according to an embodiment of the present invention.
As shown in fig. 5, the SR-IOV network card VF does not set a VLAN, and the two-layer forwarding processing flow of the non-VLAN TAG and VLAN TAG messages according to the source MAC and the destination MAC of the messages is as follows:
step S501: and loading an SR-IOV network card driver on the host, creating a plurality of VF network cards based on the SR-IOV network card, defaulting that the SR-IOV network card is not provided with a VLAN, and turning to step S502.
Step S502: and the SR-IOV network card receives the Ethernet message from the physical port PF or VF network card, and the step S503 is carried out.
Step S503: the Ethernet message is based on all VF network card ports of the SR-IOV network card, including a physical port PF, and is forwarded to a corresponding port in a two-layer mode based on a source MAC and a target MAC of the message.
The flow ends.
Example 2
In this embodiment, a message forwarding apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a structure of a forwarding apparatus for a packet according to an embodiment of the present invention, and as shown in fig. 6, the forwarding apparatus includes:
and a forwarding module 62, configured to perform two-layer forwarding on the received ethernet packet to a corresponding port.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, SR-IOV network card carries out two-layer forwarding to the corresponding port to the received Ethernet message.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
S1, SR-IOV network card carries out two-layer forwarding to the corresponding port to the received Ethernet message.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for forwarding a message is characterized by comprising the following steps:
the SR-IOV network card carries out two-layer forwarding on the received Ethernet message to a corresponding port.
2. The method of claim 1, wherein the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, and the method comprises:
the SR-IOV network card is configured with a virtual local area network VLAN;
after receiving the Ethernet message carrying the VLAN, the SR-IOV network card determines the message type of the Ethernet message according to the configured VLAN TAG parameter in the virtual function VF;
and the SR-IOV network card carries out two-layer forwarding on the Ethernet message with the message type of the VLAN TAG message to the corresponding port.
3. The method of claim 2, wherein the VLAN TAG parameter at least includes a TAG Protocol Identification (TPID), and the SR-IOV network card determines the packet type of the ethernet packet according to the configured VLAN TAG parameter in the Virtual Function (VF), including:
the SR-IOV network card judges whether the TPID carried in the Ethernet message is the same as the TPID of the VLAN TAG message;
if the judgment result is yes, determining that the Ethernet message is a VLAN TAG message;
and under the condition that the judgment result is negative, determining that the Ethernet message is a non-VLAN TAG message.
4. The method according to claim 3, wherein the SR-IOV network card layer-two forwards the ethernet packet with the packet type of VLANTAG packet to the corresponding port, including:
the SR-IOV network card configures a designated VLAN TAG parameter in the Ethernet message of which the message type is a non-VLAN TAG message, wherein the designated VLAN TAG parameter is used for indicating that the message type is a VLAN TAG message;
and the SR-IOV network card carries out two-layer forwarding on the Ethernet message carrying the designated VLAN TAG parameter to the corresponding port.
5. The method of claim 4, wherein the SR-IOV network card configures the designated VLAN TAG parameter in a non-VLAN TAG message, comprising:
and the SR-IOV network card attaches the TPID of the VLAN TAG message to the Ethernet message.
6. The method according to any one of claims 2-5, wherein the SR-IOV network card performs two-layer forwarding on the received ethernet packet to the corresponding port, further comprising:
and the SR-IOV network card forwards the Ethernet message to a corresponding port in two layers in the VLAN according to the set number of layers of the VLAN.
7. The method of claim 1, wherein the SR-IOV network card performs two-layer forwarding on the received ethernet packet to a corresponding port, further comprising:
after receiving the Ethernet message, the SR-IOV network card carries out two-layer forwarding on the Ethernet message to the corresponding port according to the address information in the Ethernet message.
8. The method of claim 7, wherein the address information comprises at least: a source MAC of the Ethernet, a target MAC of the Ethernet.
9. The method according to any one of claims 1-8, wherein the SR-IOV network card receives the ethernet packet from a physical port PF or a local virtual machine.
10. A message forwarding device is located in an SR-IOV network card, and comprises:
and the forwarding module is used for carrying out two-layer forwarding on the received Ethernet message to a corresponding port.
11. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1-9 when executed.
12. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1-9.
CN201910190568.7A 2019-03-13 2019-03-13 Message forwarding method and device Active CN111698141B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201910190568.7A CN111698141B (en) 2019-03-13 2019-03-13 Message forwarding method and device
BR112021018114A BR112021018114A2 (en) 2019-03-13 2019-12-31 Message forwarding method and device, storage medium and electronic device
PCT/CN2019/130268 WO2020181895A1 (en) 2019-03-13 2019-12-31 Message forwarding method and device, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910190568.7A CN111698141B (en) 2019-03-13 2019-03-13 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN111698141A true CN111698141A (en) 2020-09-22
CN111698141B CN111698141B (en) 2022-12-02

Family

ID=72427144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910190568.7A Active CN111698141B (en) 2019-03-13 2019-03-13 Message forwarding method and device

Country Status (3)

Country Link
CN (1) CN111698141B (en)
BR (1) BR112021018114A2 (en)
WO (1) WO2020181895A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895427A (en) * 2010-07-23 2010-11-24 中兴通讯股份有限公司 Stream-based virtual local area network processing method and system
CN103067473A (en) * 2012-12-21 2013-04-24 中标软件有限公司 Remote assistance transponding method and system
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN106982133A (en) * 2016-01-18 2017-07-25 中兴通讯股份有限公司 A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information
CN107278359A (en) * 2016-11-09 2017-10-20 华为技术有限公司 The method of Message processing, main frame and system in cloud computing system
CN107992352A (en) * 2016-10-26 2018-05-04 阿里巴巴集团控股有限公司 For virtualizing the data interactive method and equipment of scene
CN108092923A (en) * 2016-11-23 2018-05-29 阿里巴巴集团控股有限公司 Message processing method and device based on SR-IOV

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10949234B2 (en) * 2016-10-11 2021-03-16 Cisco Technology, Inc. Device pass-through for virtualized environments
AU2016414391B2 (en) * 2016-11-09 2019-01-17 Huawei Technologies Co., Ltd. Packet processing method in cloud computing system, host, and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895427A (en) * 2010-07-23 2010-11-24 中兴通讯股份有限公司 Stream-based virtual local area network processing method and system
CN103067473A (en) * 2012-12-21 2013-04-24 中标软件有限公司 Remote assistance transponding method and system
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN106982133A (en) * 2016-01-18 2017-07-25 中兴通讯股份有限公司 A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information
CN107992352A (en) * 2016-10-26 2018-05-04 阿里巴巴集团控股有限公司 For virtualizing the data interactive method and equipment of scene
CN107278359A (en) * 2016-11-09 2017-10-20 华为技术有限公司 The method of Message processing, main frame and system in cloud computing system
CN108092923A (en) * 2016-11-23 2018-05-29 阿里巴巴集团控股有限公司 Message processing method and device based on SR-IOV

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI LIN GUAY: "A Scalable Signalling Mechanism for VM Migration with SR-IOV over Infiniband", 《2012 IEEE 18TH INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS》 *
马金兰等: "IMS虚拟化网络性能提升方案探讨", 《移动通信》 *

Also Published As

Publication number Publication date
WO2020181895A1 (en) 2020-09-17
CN111698141B (en) 2022-12-02
BR112021018114A2 (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11893409B2 (en) Securing a managed forwarding element that operates within a data compute node
US10320674B2 (en) Independent network interfaces for virtual network environments
CN111490949B (en) Method, network card, host device and computer system for forwarding data packets
WO2017148249A1 (en) Resource configuration method and network device thereof
CN111800326B (en) Message transmission method and device, processing node and storage medium
CN109302466B (en) Data processing method, related device and computer storage medium
US9910687B2 (en) Data flow affinity for heterogenous virtual machines
CN104221331B (en) The 2nd without look-up table layer packet switch for Ethernet switch
US9614789B2 (en) Supporting multiple virtual switches on a single host
US10911405B1 (en) Secure environment on a server
CN109525515B (en) Management method and device for network card in cloud platform
CN102790777A (en) Network interface adapter register method as well as drive equipment and server
CN102413183B (en) Cloud intelligence switch and processing method and system thereof
CN111800523B (en) Management method, data processing method and system of virtual machine network
US9594584B2 (en) Apparatus and method for mapping of tenant based dynamic processor
WO2021120754A1 (en) Instruction writing method and apparatus, and network device
CN111262771B (en) Virtual private cloud communication system, system configuration method and controller
CN111698141B (en) Message forwarding method and device
CN106533882B (en) Message processing method and device
CN105939242B (en) Realize the method and device of virtual system
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
EP3308262A1 (en) Method or apparatus for flexible firmware image management in microserver
US10536383B2 (en) Attribute enhancement for handling network packet traffic between micro segmented guests
CN114416287A (en) Network card configuration method, device, equipment and storage medium
JP2015156624A (en) Specification of enforcement point in firewall rule

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant