CN111193665A - Docker-based realization of virtualized router and method thereof - Google Patents

Docker-based realization of virtualized router and method thereof Download PDF

Info

Publication number
CN111193665A
CN111193665A CN201911404779.2A CN201911404779A CN111193665A CN 111193665 A CN111193665 A CN 111193665A CN 201911404779 A CN201911404779 A CN 201911404779A CN 111193665 A CN111193665 A CN 111193665A
Authority
CN
China
Prior art keywords
flow
router
control plane
plane
docker
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
CN201911404779.2A
Other languages
Chinese (zh)
Other versions
CN111193665B (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.)
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 CN201911404779.2A priority Critical patent/CN111193665B/en
Publication of CN111193665A publication Critical patent/CN111193665A/en
Application granted granted Critical
Publication of CN111193665B publication Critical patent/CN111193665B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • 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]

Abstract

The invention relates to the technical field of routing switches, in particular to a router realizing virtualization based on docker and a method thereof. The system comprises a forwarding plane, a control plane and a resource management plane, and is characterized in that: the forwarding plane is used for preprocessing the data packet and forwarding the data; the control plane is responsible for the selection, updating and maintenance of a routing protocol; the resource management plane is used for management scheduling of the virtual router and configuration management of the virtual environment, and provides a user-oriented management interface. In the method for realizing the virtualized router based on the docker, the virtualized router control plane is realized by the docker, and the control plane and the forwarding plane are bound together by establishing a network bridge for realizing QoS on a physical machine, so that the functions of receiving and sending the flow of the control plane are realized.

Description

Docker-based realization of virtualized router and method thereof
Technical Field
The invention relates to the technical field of routing switches, in particular to a router realizing virtualization based on docker and a method thereof.
Background
A virtual router (vrouter) is a software function that replicates in software the functionality of hardware-based layer 3 internet protocol (ip) routing. Virtual routing is a form of network function virtualization (nfv) that translates the functionality of traditional hardware-based network devices into software, rather than running on standard commercial off-the-shelf (copies) hardware. This can reduce hardware costs and facilitate hardware interoperability without the need for a dedicated hardware platform.
Docker is an open source application container engine, so that developers can pack their applications and dependence packages into a portable container, and then distribute the container to any popular Linux machine or Windows machine, and can also realize virtualization, and the containers completely use a sandbox mechanism and do not have any interface.
The invention provides a new scheme for realizing a virtualized router by using a docker mode as a supplement to the existing scheme for realizing the virtualized router.
Disclosure of Invention
The invention aims to provide a docker-based virtualized router and a method thereof, so as to solve the problems in the background art.
In order to achieve the above object, in one aspect, the present invention provides a router for implementing virtualization based on docker, including a forwarding plane, a control plane, and a resource management plane, where the forwarding plane is mainly responsible for performing preprocessing and data forwarding operations on a data packet; the control plane is realized by docker, is isolated by using vlan and is mainly responsible for selection, updating and maintenance of routing protocols; the resource management plane is used for management scheduling of the virtual router and configuration management of the virtual environment, and provides a user-oriented management interface.
On the other hand, the invention provides a method for realizing a virtualized router based on docker, which comprises the following steps:
s1, receiving the flow of the control plane of the virtualized router, and sending the flow to a specified physical port according to the vlan tag;
s2, sending the flow to the port in the control plane of the virtualized router through the bridge realizing QoS;
s3, the control plane port of the virtualized router sends the flow, the flow will be sent to the physical port through the bridge realizing QoS too;
and S4, judging the destination of the flow by the physical port, and finally forwarding the flow.
Preferably, the method for receiving the traffic of the control plane of the virtualized router includes the following steps:
s1.1, judging a physical port to which the flow is to be sent according to the vlan tag of the flow when the flow is received;
s1.2, receiving flow by a physical port;
s1.3, before the flow goes out of the physical port, the vlan tag of the flow is stripped;
s1.4, the flow is sent to the port of the control plane of the virtualization router through the bridge realizing QoS.
Preferably, the method for sending traffic through the control plane port of the virtualized router includes the following steps:
s2.1, virtualizing a router control plane port to send flow;
s2.2, the flow enters a designated physical port through a network bridge for realizing QoS;
s2.3, before the flow goes out of the physical port, a vlan tag is marked;
s2.4, the physical port judges the final destination of the flow;
s2.5, forwarding the flow by the physical port.
Compared with the prior art, the invention has the beneficial effects that: in the method for realizing the virtualized router based on the docker, the virtualized router control plane is realized by the docker, and the control plane and the forwarding plane are bound together by establishing a network bridge for realizing QoS on a physical machine, so that the functions of receiving and sending the flow of the control plane are realized.
Drawings
FIG. 1 is a block diagram of a solution for implementing a virtualized router using docker according to the present invention;
FIG. 2 is a flow chart of a virtualized router control plane traffic receiving process of the present invention;
FIG. 3 is a flow chart of the virtualized router control plane send traffic 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.
Referring to fig. 1-3, the present invention provides a technical solution:
on one hand, the invention provides a router realizing virtualization based on docker, which comprises a forwarding plane, a control plane and a resource management plane, wherein the forwarding plane is mainly responsible for preprocessing a data packet and forwarding data; the control plane is realized by docker, is isolated by using vlan and is mainly responsible for the selection, updating and maintenance of routing protocols; the resource management plane is used for management scheduling of the virtual router and configuration management of the virtual environment, and provides a user-oriented management interface.
On the other hand, the invention provides a method for realizing a virtualized router based on docker, which comprises the following steps:
s1, receiving the flow of the control plane of the virtualized router, and sending the flow to a specified physical port according to the vlan tag;
s2, sending the flow to the port in the control plane of the virtualized router through the bridge realizing QoS;
s3, the control plane port of the virtualized router sends the flow, the flow will be sent to the physical port through the bridge realizing QoS too;
and S4, judging the destination of the flow by the physical port, and finally forwarding the flow.
Further, the method for receiving the traffic of the control plane of the virtualized router comprises the following steps:
s1.1, judging a physical port to which the flow is to be sent according to the vlan tag of the flow when the flow is received;
s1.2, receiving flow by a physical port;
s1.3, before the flow goes out of the physical port, the vlan tag of the flow is stripped;
s1.4, the flow is sent to the port of the control plane of the virtualization router through the bridge realizing QoS.
Still further, the method for virtualizing the router control plane port to send the traffic comprises the following steps:
s2.1, virtualizing a router control plane port to send flow;
s2.2, the flow enters a designated physical port through a network bridge for realizing QoS;
s2.3, before the flow goes out of the physical port, a vlan tag is marked;
s2.4, the physical port judges the final destination of the flow;
s2.5, forwarding the flow by the physical port.
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 (4)

1. Realize the virtualized router based on docker, including transmitting the plane, control plane, resource management plane, characterized by: the forwarding plane is used for preprocessing the data packet and forwarding the data; the control plane is responsible for the selection, updating and maintenance of a routing protocol; the resource management plane is used for management scheduling of the virtual router and configuration management of the virtual environment, and provides a user-oriented management interface.
2. A method for implementing a virtualized router based on docker, comprising the step of implementing a virtualized router based on docker as claimed in claim 1, the method comprising the steps of:
s1, receiving the flow of the control plane of the virtualized router, and sending the flow to a specified physical port according to the vlan tag;
s2, sending the flow to the port in the control plane of the virtualized router through the bridge realizing QoS;
s3, the virtual router control plane port sends flow, the flow is sent to the physical port through the bridge realizing QoS;
and S4, judging the destination of the flow by the physical port, and finally forwarding the flow.
3. The docker-based method for implementing a virtualized router according to claim 2, wherein: the method for receiving the traffic of the control plane of the virtualized router comprises the following steps:
s1.1, judging a physical port to which the flow is to be sent according to the vlan tag of the flow when the flow is received;
s1.2, receiving flow by a physical port;
s1.3, stripping off a vlan tag from the flow before the flow goes out of the physical port;
s1.4, the flow is sent to the port of the control plane of the virtualization router through the bridge realizing QoS.
4. The docker-based method for implementing a virtualized router according to claim 2, wherein: the method for sending the flow by the control plane port of the virtualization router comprises the following steps:
s2.1, virtualizing a router control plane port to send flow;
s2.2, the flow enters a designated physical port through a network bridge for realizing QoS;
s2.3, punching a vlan tag on the flow before the flow goes out of the physical port;
s2.4, the physical port judges the final destination of the flow;
s2.5, forwarding the flow by the physical port.
CN201911404779.2A 2019-12-31 2019-12-31 Docker-based realization of virtualized router and method thereof Active CN111193665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911404779.2A CN111193665B (en) 2019-12-31 2019-12-31 Docker-based realization of virtualized router and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911404779.2A CN111193665B (en) 2019-12-31 2019-12-31 Docker-based realization of virtualized router and method thereof

Publications (2)

Publication Number Publication Date
CN111193665A true CN111193665A (en) 2020-05-22
CN111193665B CN111193665B (en) 2022-02-15

Family

ID=70709712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911404779.2A Active CN111193665B (en) 2019-12-31 2019-12-31 Docker-based realization of virtualized router and method thereof

Country Status (1)

Country Link
CN (1) CN111193665B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988330A (en) * 2021-03-24 2021-06-18 江苏天翼安全技术有限公司 Method and system for establishing virtual machine by designating ip address

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752199A (en) * 2012-06-21 2012-10-24 中国科学院计算技术研究所 Method and system for constructing data forwarding plane of virtual router
US20170093754A1 (en) * 2015-09-30 2017-03-30 Nicira, Inc. Virtual network abstraction
CN107770066A (en) * 2017-10-20 2018-03-06 成都精灵云科技有限公司 It is a kind of across main frame, travelling across VLAN, the Docker container methods of river diversion across cluster
CN107947961A (en) * 2017-10-17 2018-04-20 上海数讯信息技术有限公司 Kubernetes Network Management System and method based on SDN

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752199A (en) * 2012-06-21 2012-10-24 中国科学院计算技术研究所 Method and system for constructing data forwarding plane of virtual router
US20170093754A1 (en) * 2015-09-30 2017-03-30 Nicira, Inc. Virtual network abstraction
CN107947961A (en) * 2017-10-17 2018-04-20 上海数讯信息技术有限公司 Kubernetes Network Management System and method based on SDN
CN107770066A (en) * 2017-10-20 2018-03-06 成都精灵云科技有限公司 It is a kind of across main frame, travelling across VLAN, the Docker container methods of river diversion across cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李剑锋等: "面向IaaS 云平台的路由转发优化 研究与实现", 《NETINFO SECURITY 优秀论文》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988330A (en) * 2021-03-24 2021-06-18 江苏天翼安全技术有限公司 Method and system for establishing virtual machine by designating ip address

Also Published As

Publication number Publication date
CN111193665B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
US10880216B2 (en) Generic communication channel for information exchange between a hypervisor and a virtual machine
US8964600B2 (en) Methods of forming virtual network overlays
US7797460B2 (en) Enhanced network system through the combination of network objects
US9497125B2 (en) Congestion control enforcement in a virtualized environment
US8174984B2 (en) Managing traffic on virtualized lanes between a network switch and a virtual machine
US10212022B2 (en) Enhanced network virtualization using metadata in encapsulation header
EP2690552B1 (en) Method and device for migrating virtual machine parameters and virtual machine server
US9774710B2 (en) System and method for network protocol offloading in virtual networks
US8478853B2 (en) Handling of multiple MAC unicast addresses with virtual machines
US10541842B2 (en) Methods and apparatus for enhancing virtual switch capabilities in a direct-access configured network interface card
CN105939356B (en) A kind of virtual firewall division methods and device
WO2015121750A1 (en) System and method for data communication between virtual interfaces
CN111193665B (en) Docker-based realization of virtualized router and method thereof
CN106961487A (en) Data stream self-adapting adjustment system and method for adjustment during live migration of virtual machine
CN105391647A (en) Method and system for flow control
CN105284083A (en) OpenFlow device and IP network device communication method, device and system
EP4047876A1 (en) Method for network slices to share uplink port, apparatus, and storage medium
CN101621528A (en) Conversation system based on Ethernet switch cluster management and method for realizing conversation passage
Wen et al. Network virtualization technologies and techniques
Bukhanov et al. WEB Platform for Modeling Network Activity Based on Docker Container Virtualization Technology
CN116828076A (en) Communication method, system and application based on turn IP gateway server
CN106357710A (en) TCP (transmission control protocol) bonding system and TCP bonding method on basis of multi-core network processors

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