CN111224871A - Method for realizing virtualized routing based on kvm and SRIOV and method thereof - Google Patents

Method for realizing virtualized routing based on kvm and SRIOV and method thereof Download PDF

Info

Publication number
CN111224871A
CN111224871A CN201911410449.4A CN201911410449A CN111224871A CN 111224871 A CN111224871 A CN 111224871A CN 201911410449 A CN201911410449 A CN 201911410449A CN 111224871 A CN111224871 A CN 111224871A
Authority
CN
China
Prior art keywords
control plane
kvm
iov
sriov
flow
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.)
Pending
Application number
CN201911410449.4A
Other languages
Chinese (zh)
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.)
Jiangsu Future Networks Innovation Institute
Original Assignee
Jiangsu Future Networks Innovation Institute
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 Jiangsu Future Networks Innovation Institute filed Critical Jiangsu Future Networks Innovation Institute
Priority to CN201911410449.4A priority Critical patent/CN111224871A/en
Publication of CN111224871A publication Critical patent/CN111224871A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of communication, in particular to a method for realizing virtualized routing based on kvm and SRIOV and a method thereof. Which includes a control plane, a forwarding plane, and a management plane. In the method for realizing the virtualized route based on the kvm and the SRIOV, the control planes realize complete isolation based on kvm full-scale virtualization, and different control planes can run different routing protocol stacks and different bottom operating systems. The forwarding plane is realized by adopting an SR-IOV technology, and the network card is divided into PF and a plurality of VFs. And the forwarding plane adds a virtual interface to each virtual router to serve as a management network of the virtual router. And creating a bridge on the physical machine, and adding the PF and the management interface of each virtual machine router into the bridge. Therefore, the function of mutually isolating the control planes of the virtualized router is achieved. The invention can be used in the communication field of the virtual router and has wide application prospect.

Description

Method for realizing virtualized routing based on kvm and SRIOV and method thereof
Technical Field
The invention relates to the technical field of communication, in particular to a method for realizing virtualized routing based on kvm and SRIOV and a method thereof.
Background
Due to the rapid development of the internet, the network link rate is continuously improved, and the traditional router has high-speed data packet forwarding capability, but the flexibility and the expandability are not sufficient. In order to solve the problem, the virtualization router adopts a structure that a data plane is separated from a control plane, and the flexible and extensible capability of the virtualization router is enhanced while efficient data packet processing is considered.
With the continuous improvement of the processing capability of the CPU, the conflict between the efficient packet processing and the flexible and extensible of the router is alleviated to some extent, but the virtualized router still faces new problems of how to support virtualization and the like. The current virtualization technology is mainly applied to general computer systems, and can support various applications across operating systems and heterogeneous platforms. However, the virtualization technology of general computer systems mainly performs computation and scheduling tasks, while the virtualization technology of routers requires performing packet lookup and forwarding tasks. In particular, in a router structure in which the data plane is separated from the control plane, the virtualization implementation of the control plane can adopt the virtualization technology of the current general-purpose computer system, and the virtualization implementation of the data plane requires a new virtualization technology.
In order to realize a virtualized router, the invention provides a method for realizing the virtualized router based on kvm and SRIOV and a method thereof.
Disclosure of Invention
The invention aims to provide a method for realizing virtualized routing based on kvm and SRIOV and a method thereof, so as to solve the problems in the background technology.
In order to achieve the above object, in one aspect, the present invention provides a method for implementing virtualized routing based on kvm and SRIOV, including a control plane, a forwarding plane, and a management plane, where the management plane is responsible for lifecycle management of the control plane and the forwarding plane, such as creation, deletion, and suspension of a control plane virtual machine; SR-IOV resource allocation release, SR-IOV forwarding configuration and the like; the control planes are completely isolated based on kvm full-scale virtualization, and different control planes can run different routing protocol stacks and different bottom operating systems; the forwarding plane is realized by adopting an SR-IOV technology, and a network card is divided into PF and VF; and the forwarding plane adds a virtual interface to each virtual router to serve as a management network of the virtual router. And creating a bridge on the physical machine, and adding the PF and the management interface of each virtual machine router into the bridge.
Preferably, the VF is directly bound into the control plane virtual machine by using a pci express technology, and is used as a forwarding interface for forwarding data traffic.
On the other hand, the invention provides a method for realizing a virtualized path based on kvm and SRIOV, which comprises any one of the above-mentioned method for realizing a virtualized path based on kvm and SRIOV, and the method comprises an SR-IOV initialization process, a control plane traffic receiving process and a control plane traffic sending process
Preferably, the method of the SR-IOV initialization procedure includes the steps of:
s1.1, starting the process;
s1.2, SR-IOV initialization: starting the SR-IOV function of the physical network card and the configuration of the network;
and S1.3, ending the process.
Preferably, the control plane initialization procedure includes the following steps:
s2.1, starting the process;
s2.2, creating a description language of the virtual machine router, wherein the description language comprises a control plane name, vlan id, VF and the like;
s2.3, establishing a control plane;
s2.4, interface binding and interface configuration of the control plane;
and S2.5, ending the process.
Preferably, the control plane traffic receiving process includes the following steps:
s3.1, starting the process;
s3.2, the SR-IOV physical network card receives the flow;
s3.3, the SR-IOV built-in switch sends the flow to the corresponding VF according to different vlans;
s3.4, the control plane virtual machine interface receives the flow;
and S3.5, ending the process.
Preferably, the control plane traffic flow process includes the following steps:
s4.1, starting the process;
s4.2, the virtual machine interface sends flow;
s4.3, the VF interface receives the flow, and prints a vlan id to send the flow into the SR-IOV network card;
s4.4, the SR-IOV network card sends the flow into a physical interface;
and S4.5, ending the process.
Compared with the prior art, the invention has the beneficial effects that: in the method for realizing the virtualized route based on the kvm and the SRIOV, the control planes realize complete isolation based on kvm full-scale virtualization, and different control planes can run different routing protocol stacks and different bottom operating systems. The forwarding plane is realized by adopting an SR-IOV technology, and the network card is divided into PF and a plurality of VFs. The VF is directly bound into a control plane virtual machine by adopting a pci direct connection technology and is used as a forwarding interface for forwarding data flow; and the forwarding plane adds a virtual interface to each virtual router to serve as a management network of the virtual router. And creating a bridge on the physical machine, and adding the PF and the management interface of each virtual machine router into the bridge. Therefore, the function of mutually isolating the control planes of the virtualized router is achieved. The invention can be used in the communication field of the virtual router and has wide application prospect.
Drawings
FIG. 1 is a diagram of a virtualized router architecture in accordance with the present invention;
FIG. 2 is a flow chart of SR-IOV initialization according to the present invention;
FIG. 3 is a flow chart of control plane initialization according to the present invention;
FIG. 4 is a control plane traffic flow process diagram of the present invention;
fig. 5 is a control plane traffic flow process diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the equipment or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Referring to fig. 1-5, the present invention provides a technical solution:
the invention provides a method for realizing virtualized routing based on kvm and SRIOV, which comprises a control plane, a forwarding plane and a management plane, wherein the management plane is responsible for the life cycle management of the control plane and the forwarding plane, such as the creation, deletion and suspension of a virtual machine of the control plane; SR-IOV resource allocation release, SR-IOV forwarding configuration and the like; the control planes are completely isolated based on kvm full-scale virtualization, and different control planes can run different routing protocol stacks and different bottom operating systems; the forwarding plane is realized by adopting an SR-IOV technology, and the network card is divided into PF and VF; and the forwarding plane adds a virtual interface to each virtual router to serve as a management network of the virtual router. And creating a bridge on the physical machine, and adding the PF and the management interface of each virtual machine router into the bridge.
The VF is directly bound into the control plane virtual machine by adopting a pci direct connection technology and is used as a forwarding interface for forwarding data flow.
On the other hand, the invention provides a method for realizing a virtual path based on kvm and SRIOV, which comprises any one of the above method for realizing the virtual path based on kvm and SRIOV, and the method comprises an SR-IOV initialization process, a control plane traffic receiving process and a control plane traffic sending process
Specifically, the management plane is responsible for initializing SR-IOVs, such as creating VFs, PFs, bridges; and configuring the network card, for example, the SR-IOV network card uses VLAN to distinguish VF traffic, and configures the VLAN corresponding to each VF. In addition, the management plane is responsible for creating a virtual router control plane according to a virtualized router description language (json format is adopted herein), and performing corresponding programming on the forwarding plane, such as assignment of VFs and binding of virtual machines of the control plane.
The method for the SR-IOV initialization process comprises the following steps:
s1.1, starting the process;
s1.2, SR-IOV initialization: starting the SR-IOV function of the physical network card and the configuration of the network;
and S1.3, ending the process.
The initialization process of the control plane comprises the following steps:
s2.1, starting the process;
s2.2, creating a description language of the virtual machine router, wherein the description language comprises a control plane name, vlan id, VF and the like;
s2.3, establishing a control plane;
s2.4, interface binding and interface configuration of the control plane;
and S2.5, ending the process.
As shown in fig. 1, the resource management plane creates two KVM control planes, each of which binds two VFs and a management interface connected to a br bridge to which a PF port is connected, and the VFs of the same control plane have the same vlan id. Fig. 4 and 5 are processes of controlling plane transceiving traffic.
The method comprises the following steps of controlling a plane traffic receiving process:
s3.1, starting the process;
s3.2, the SR-IOV physical network card receives the flow;
s3.3, the SR-IOV built-in switch sends the flow to the corresponding VF according to different vlans;
s3.4, the control plane virtual machine interface receives the flow;
and S3.5, ending the process.
The method comprises the following steps of controlling a plane flow sending process:
s4.1, starting the process;
s4.2, the virtual machine interface sends flow;
s4.3, the VF interface receives the flow, and prints a vlan id to send the flow into the SR-IOV network card;
s4.4, the SR-IOV network card sends the flow into a physical interface;
and S4.5, ending the process.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and the preferred embodiments of the present invention are described in the above embodiments and the description, and are not intended to limit the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (7)

1. Realize the virtualized route based on kvm and SRIOV, including control plane, forwarding plane and management plane, characterized by: the management plane is responsible for the life cycle management of the control plane and the forwarding plane, the SR-IOV resource allocation release and the SR-IOV forwarding configuration; the control plane realizes complete isolation based on kvm full-scale virtualization; the forwarding plane is realized by adopting an SR-IOV technology, and the network card is divided into PF and a plurality of VFs.
2. The kvm and SRIOV-based virtualized routing and method of claim 1, wherein: the VF is directly bound into a control plane virtual machine by adopting a pci direct connection technology and is used as a forwarding interface for forwarding data flow.
3. A method for implementing a virtualized path based on kvm and SRIOV, comprising the kvm and SRIOV implementation virtualized path according to any of the above claims 1-2, the method comprising an SR-IOV initialization procedure, a control plane traffic receiving procedure, and a control plane traffic sending procedure.
4. The kvm and SRIOV-based method of implementing a virtualized way according to claim 3, wherein: the SR-IOV initialization process method comprises the following steps:
s1.1, starting the process;
s1.2, SR-IOV initialization: starting the SR-IOV function of the physical network card and the configuration of the network;
and S1.3, ending the process.
5. The kvm and SRIOV-based method of implementing a virtualized way according to claim 3, wherein: the steps of the control plane initialization process are as follows:
s2.1, starting the process;
s2.2, creating a description language of the virtual machine router, wherein the description language comprises a control plane name, vlan id, VF and the like;
s2.3, establishing a control plane;
s2.4, interface binding and interface configuration of the control plane;
and S2.5, ending the process.
6. The kvm and SRIOV-based method of implementing a virtualized way according to claim 3, wherein: the steps of the flow receiving process of the control plane are as follows:
s3.1, starting the process;
s3.2, the SR-IOV physical network card receives the flow;
s3.3, the SR-IOV built-in switch sends the flow to the corresponding VF according to different vlans;
s3.4, the control plane virtual machine interface receives the flow;
and S3.5, ending the process.
7. The kvm and SRIOV-based method of implementing a virtualized way according to claim 3, wherein: the steps of the control plane traffic flow process are as follows:
s4.1, starting the process;
s4.2, the virtual machine interface sends flow;
s4.3, the VF interface receives the flow, and prints a vlan id to send the flow into the SR-IOV network card;
s4.4, the SR-IOV network card sends the flow into a physical interface;
and S4.5, ending the process.
CN201911410449.4A 2019-12-31 2019-12-31 Method for realizing virtualized routing based on kvm and SRIOV and method thereof Pending CN111224871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911410449.4A CN111224871A (en) 2019-12-31 2019-12-31 Method for realizing virtualized routing based on kvm and SRIOV and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911410449.4A CN111224871A (en) 2019-12-31 2019-12-31 Method for realizing virtualized routing based on kvm and SRIOV and method thereof

Publications (1)

Publication Number Publication Date
CN111224871A true CN111224871A (en) 2020-06-02

Family

ID=70829280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911410449.4A Pending CN111224871A (en) 2019-12-31 2019-12-31 Method for realizing virtualized routing based on kvm and SRIOV and method thereof

Country Status (1)

Country Link
CN (1) CN111224871A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671561A (en) * 2020-12-11 2021-04-16 苏州浪潮智能科技有限公司 Network card configuration method and equipment of cloud host
CN112671578A (en) * 2020-12-23 2021-04-16 北京浪潮数据技术有限公司 SRIOV virtual network configuration method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084487A1 (en) * 2010-10-01 2012-04-05 Futurewei Technologies, Inc. System and Method for Controlling the Input/Output of a Virtualized Network
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN106250211A (en) * 2016-08-05 2016-12-21 浪潮(北京)电子信息产业有限公司 A kind of virtualization implementation method based on SR_IOV
CN108964959A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of network interface card direct communication system and data packet monitoring and managing method for virtual platform
CN110113184A (en) * 2019-04-17 2019-08-09 中国科学院深圳先进技术研究院 KVM virtual machine network optimization method and device under SR-IOV environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084487A1 (en) * 2010-10-01 2012-04-05 Futurewei Technologies, Inc. System and Method for Controlling the Input/Output of a Virtualized Network
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN106250211A (en) * 2016-08-05 2016-12-21 浪潮(北京)电子信息产业有限公司 A kind of virtualization implementation method based on SR_IOV
CN108964959A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of network interface card direct communication system and data packet monitoring and managing method for virtual platform
CN110113184A (en) * 2019-04-17 2019-08-09 中国科学院深圳先进技术研究院 KVM virtual machine network optimization method and device under SR-IOV environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李坤丽: "虚拟路由器管控平面的设计与实现", 《计算机工程》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671561A (en) * 2020-12-11 2021-04-16 苏州浪潮智能科技有限公司 Network card configuration method and equipment of cloud host
CN112671561B (en) * 2020-12-11 2022-05-17 苏州浪潮智能科技有限公司 Network card configuration method and equipment of cloud host
CN112671578A (en) * 2020-12-23 2021-04-16 北京浪潮数据技术有限公司 SRIOV virtual network configuration method and related device

Similar Documents

Publication Publication Date Title
US10757072B2 (en) Packet transmission method, apparatus, and system
CN108475244B (en) Accelerating network packet processing
CN110099014B (en) Message processing method and host in cloud computing system
KR101951273B1 (en) Steering of virtualized resources
US9176767B2 (en) Network interface card device pass-through with multiple nested hypervisors
CN105706043B (en) The list handling capacity of push type link
CN111800326B (en) Message transmission method and device, processing node and storage medium
US9692706B2 (en) Virtual enhanced transmission selection (VETS) for lossless ethernet
EP3176979A1 (en) Information processing method and device
US20170161090A1 (en) Communication control program, communication control method, and information processing device
US20100287262A1 (en) Method and system for guaranteed end-to-end data flows in a local networking domain
US8095661B2 (en) Method and system for scaling applications on a blade chassis
CN102195803B (en) Data communication method and system
WO2018019092A1 (en) Method for allocating vlan id in network, and controller
CN111224871A (en) Method for realizing virtualized routing based on kvm and SRIOV and method thereof
CN111371694B (en) Shunting method, device and system, processing equipment and storage medium
CN105429811A (en) Network management system and method
JP7443549B2 (en) Dynamic cellular connectivity between hypervisor and virtual machines
CN109756419B (en) Routing information distribution method and device and RR
WO2021135792A1 (en) Data forwarding method, forwarding device, system, server, and storage medium
WO2018057165A1 (en) Technologies for dynamically transitioning network traffic host buffer queues
CN110086676B (en) Configuration method of distributed router and related equipment
US9996335B2 (en) Concurrent deployment in a network environment
WO2022166465A1 (en) Message processing method and related apparatus
KR102174979B1 (en) Method for controlling transsion of packet in virtual switch

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602