CN109995641A - A kind of information processing method, calculate node and storage medium - Google Patents
A kind of information processing method, calculate node and storage medium Download PDFInfo
- Publication number
- CN109995641A CN109995641A CN201910218672.2A CN201910218672A CN109995641A CN 109995641 A CN109995641 A CN 109995641A CN 201910218672 A CN201910218672 A CN 201910218672A CN 109995641 A CN109995641 A CN 109995641A
- Authority
- CN
- China
- Prior art keywords
- agent
- container
- processed
- network
- sent
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
- H04L12/4645—Details on frame tagging
- H04L12/465—Details on frame tagging wherein a single frame includes a plurality of VLAN tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/59—Network arrangements, protocols or services for addressing or naming using proxies for addressing
Abstract
The embodiment of the present application provides a kind of information processing method, calculate node and storage medium, Plugin and Agent are deployed in calculate node, Plugin and Agent network interworking, SDN controller in Agent and networking passes through Restful API network interworking, Agent receives the network information for the container to be processed that Plugin is sent, and the network information is sent to SDN controller, the network information for the container to be processed that the available Agent of SDN controller is sent, and according to the network information, the access information of the hardware switch of SDN controller management is updated.Based on above-mentioned processing, the Agent of calculate node can directly send the network information of container to SDN controller, without avoiding the network service as caused by management node failure from interrupting by management node, and then the probability that the network service that can reduce networking is interrupted.
Description
Technical field
This application involves Internet technical fields, are situated between more particularly to a kind of information processing method, calculate node and storage
Matter.
Background technique
As the core technology of cloud computing of new generation, container technique has been increasingly becoming the development priority of each cloud computing enterprise.
In the related technology, in order to realize the large scale deployment of container, usually capacitor network can be accessed by SDN using Kubernetes
The hardware switch of (Soft Define Network, software defined network) controller management.For example, Contiv can be combined
With CNI as defined in Kubernetes (Container Network Interface, capacitor network interface) plug-in unit, by container net
The hardware switch of network access SDN controller management.
Networking generally includes a management node (Master) and multiple calculate nodes (Node), when the container of deployment occurs
When variation, calculate node is needed the network information synchronization of changed container to SDN controller through management node.It is a kind of
In implementation, when user passes through Kubernetes API (Applicat ion Programming Interface, using journey
Sequence programming interface) in a certain calculate node container is created, and when the container parameters of the container are set, disposed in the calculate node
Kubelet (Ku Beilai) can obtain the container parameters of the container by Kubernetes API, and the container of the container is joined
Number is sent to pipe by the Contiv CNI Plugin (plug-in unit) and Contiv Agent (agency) that dispose in the calculate node
The Contiv Master disposed in reason node.Contiv Master can be container allocation IP (Internet
Protocol, Internet protocol) address, and the network information of the container (including container parameters and IP address) is sent to SDN
Controller.SDN controller then can access according to the network information of the container, to the hardware switch of SDN controller management
Information is updated.
As it can be seen that each calculate node requires that the network information of container is sent to SDN controller by management node, and
Management node is single node, and the probability that management node breaks down is larger.Management node breaks down, then will lead to whole network
Service disconnection, that is, in the related technology, the probability that the network service of networking is interrupted is larger.
Summary of the invention
The embodiment of the present application is designed to provide a kind of information processing method, calculate node and storage medium, can drop
The probability that the network service of low networking is interrupted.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the present application discloses a kind of information processing method, the method
Applied to the calculate node in networking, plug-in unit Plugin is deployed in the calculate node and acts on behalf of Agent, the Plugin with
Software defined network SDN controller in the Agent network interworking, the Agent and the networking passes through declarative state
Shift application programming interfaces Restful API network interworking, which comprises
The Agent receives the network information for the container to be processed that the Plugin is sent;
The network information is sent to the SDN controller by the Agent, so that the SDN controller is according to
The network information is updated the access information of the hardware switch of the SDN controller management.
Optionally, the container to be processed is newly-increased container;
After the network information is sent to the SDN controller by the Agent, the method also includes:
When the Agent receives the Internet protocol IP address that the SDN controller is the container allocation to be processed,
The IP address is sent to the Plugin by the Agent;
When the Plugin receives the IP address, the Plugin is for the container configuration to be processed IP
Location.
Optionally, the container to be processed is newly-increased container, and the network information includes that the container to be processed is corresponding
Virtual extended local area network VXLAN mark;
After the network information that the Agent receives the container to be processed that the Plugin is sent, the method is also wrapped
It includes:
The Agent is that VXLAN mark distributes corresponding virtual LAN VLAN mark;
The corresponding relationship of VXLAN mark and VLAN mark is sent to the SDN controller by the Agent.
Optionally, open virtual switch OVS, the Agent and the OVS network are also deployed in the calculate node
Intercommunication;
After the Agent is the corresponding VLAN mark of VXLAN mark distribution, the method also includes:
The Agent sends flow table and the VLAN to the OVS and identifies corresponding VLAN tag Tag, and will it is described to
Process container accesses the OVS;
The OVS carries out at business the data message received according to the Agent flow table sent and VLAN Tag
Reason.
Second aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of information processing method, the method
Applied to the software defined network SDN controller in networking, affixed one's name in the middle part of calculate node in the SDN controller and the networking
It acts on behalf of Agent and application programming interfaces Restful API network interworking is shifted by declarative state, which comprises
Obtain the network information for the container to be processed that the Agent is sent, wherein the network information is calculating section
What the plug-in unit Plugin disposed in point was sent to the Agent;
According to the network information, the access information of the hardware switch of the SDN controller management is updated.
Optionally, the container to be processed is newly-increased container;
After the network information for obtaining the container to be processed that the Agent is sent, the method also includes:
For the container allocation Internet protocol IP address to be processed, and the IP address is sent to the Agent.
Optionally, after the network information for obtaining the container to be processed that the Agent is sent, the method is also wrapped
It includes:
It is identified and virtual LAN VLAN mark when receiving the virtual extended local area network VXLAN that the Agent is sent
When corresponding relationship, the mapping relations of VXLAN and VLAN are determined according to the corresponding relationship.
The third aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of calculate node, the calculate node
In be deployed with plug-in unit Plugin and act on behalf of Agent, the Plugin and the Agent network interworking, the Agent and the meter
Software defined network SDN controller in the affiliated networking of operator node shifts application programming interfaces Restful by declarative state
API network interworking, in which:
The Agent, for receiving the network information for the container to be processed that the Plugin is sent;
The Agent is also used to for the network information to be sent to the SDN controller, so that the SDN controller root
It is updated according to access information of the network information to the hardware switch of the SDN controller management.
Optionally, the container to be processed is newly-increased container;
The Agent is also used to as the Internet protocol IP for receiving the SDN controller as the container allocation to be processed
When address, the IP address is sent to the Plugin;
The Plugin, for configuring the IP address for the container to be processed when receiving the IP address.
Optionally, the container to be processed is newly-increased container, and the network information includes that the container to be processed is corresponding
Virtual extended local area network VXLAN mark;
The Agent is also used to identify for the VXLAN and distributes corresponding virtual LAN VLAN mark;
The Agent is also used to identifying the VXLAN into the corresponding relationship with VLAN mark, is sent to the SDN
Controller.
Optionally, open virtual switch OVS, the Agent and the OVS network are also deployed in the calculate node
Intercommunication;
The Agent, is also used to send flow table to the OVS and the VLAN identifies corresponding VLAN tag Tag, and will
The container to be processed accesses the OVS;
The OVS, flow table and VLAN Tag for being sent according to the Agent carry out the data message received
Business processing.
Fourth aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of information processing unit, described device
Applied to the software defined network SDN controller in networking, affixed one's name in the middle part of calculate node in the SDN controller and the networking
It acts on behalf of Agent and application programming interfaces Restful API network interworking is shifted by declarative state, described device includes:
Module is obtained, for obtaining the network information for the container to be processed that the Agent is sent, wherein the network letter
Breath is what the plug-in unit Plugin disposed in the calculate node was sent to the Agent;
Update module, for believing the access of the hardware switch of the SDN controller management according to the network information
Breath is updated.
Optionally, the container to be processed is newly-increased container;
Described device further include:
Sending module for being the container allocation Internet protocol IP address to be processed, and the IP address is sent to
The Agent.
Optionally, described device further include:
Processing module, for when the virtual extended local area network VXLAN mark and virtual local area for receiving the Agent transmission
When netting the corresponding relationship of VLAN mark, the mapping relations of VXLAN and VLAN are determined according to the corresponding relationship.
5th aspect, in order to achieve the above object, the embodiment of the present application discloses a kind of machine readable storage medium, storage
There is machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing
Any method and step of second aspect.
The embodiment of the present application provides a kind of information processing method, be deployed in the calculate node in networking Plug in and
SDN controller in Agent, Plugin and Agent network interworking, Agent and networking passes through Restful API network interworking,
Agent receives the network information for the container to be processed that Plugin is sent, and the network information is sent to SDN controller;SDN control
The network information for the container to be processed that the available Agent of device is sent, and according to the network information, to the hard of SDN controller management
The access information of part interchanger is updated.Based on above-mentioned processing, calculate node can be directly to SDN controller by Agent
The network information for sending container, without avoiding in the network service as caused by management node failure by management node
It is disconnected, and then the probability that the network service that can reduce networking is interrupted.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach above all advantages.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of architecture diagram of networking provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of information processing method provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of information processing method provided by the embodiments of the present application;
Fig. 4 is a kind of exemplary flow chart of information processing method provided by the embodiments of the present application;
Fig. 5 is a kind of structure chart of calculate node provided by the embodiments of the present application;
Fig. 6 is a kind of structure chart of information processing unit provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
In the related technology, the calculate node in networking needs that the network information of container is sent to SDN by management node
Controller, and management node is single node, the probability that management node breaks down is larger.Management node breaks down, then can lead
Cause whole network service disconnection, that is, the probability that the network service of networking is interrupted is larger.
To solve the above-mentioned problems, a kind of information processing method provided by the embodiments of the present application, can be applied in networking
Calculate node and SDN controller, with reduce networking network service interrupt probability.
Referring to Fig. 1, Fig. 1 is a kind of architecture diagram of networking provided by the embodiments of the present application, and networking includes calculate node 1, meter
Operator node 2, calculate node 3 and SDN controller.Can be deployed in each calculate node Kubelet (Ku Beilai),
Plugin, Agent and OVS (Open Virtual Switch, open virtual switch), Plugin can be sdn-cni-
Plugin (software defined network-capacitor network interface-plug-in unit), Agent can be sdn-net-agent (software defined network-
Network-agency).OVS can be used for accessing container.
For each calculate node, sdn-cni-plugin and sdn-net-agent network interworking in the calculate node,
SDN controller in sdn-net-agent and networking by Restful (Representational State Transfer,
Declarative state transfer) API network interworking.
The network information of the available container to be processed of Kubelet, and the network information is issued to sdn-cni-plugin;
The available network information of sdn-cni-plugin, and the network information is sent to sdn-net-agent;sdn-net-
The network information that the available sdn-cni-plugin of agent is sent, and the network information is sent to SDN controller.Correspondingly,
The network information for the container to be processed that the available sdn-net-agent of SDN controller is sent, and according to the network information, to SDN
The access information of the hardware switch of controller management is updated.
As it can be seen that calculate node can directly send the network information of container to SDN controller, without passing through management section
The network service that point avoids the interruption of the network service as caused by management node failure, and then can reduce networking is interrupted general
Rate.
Referring to fig. 2, Fig. 2 is a kind of flow chart of information processing method provided by the embodiments of the present application, and this method can answer
For the calculate node in networking, Plugin and Agent, Plugin and Agent network interworking are deployed in calculate node,
By Restful API network interworking, this method may comprise steps of SDN controller in Agent and networking:
S201:Agent receives the network information for the container to be processed that Plugin is sent.
Wherein, container to be processed can be the container that user increases newly, be also possible to the container that user needs to delete.
If container to be processed is the container that user increases newly, the network information of container to be processed may include appearance to be processed
The mark of the corresponding tenant of device (Tenant) and the mark of network, the corresponding network of container can be VLAN (Virtual Local
Area Network, virtual LAN), or VXLAN (Virtual Extensible LAN, virtual extended local
Net).
In addition, if container to be processed is that user needs the container deleted, the network information of container to be processed can be with
IP address including container to be processed.
In application embodiment, Agent that the Plugin being deployed in calculate node can be disposed into the calculate node
The network information of container to be processed is sent, correspondingly, the Agent can receive the network letter of the container to be processed of Plugin transmission
Breath.
In a kind of implementation, user creates container by Kubernetes API in calculate node, and specifies the appearance
The corresponding tenant of device and network.Kubelet in the calculate node can obtain the net of the container by Kubernetes API
Network information (mark of mark and network including the corresponding tenant of the container), and the network information of the container is sent to sdn-
cni-plugin.The network information of the container received can be sent to sdn-net-agent by sdn-cni-plugin, accordingly
, sdn-net-agent then can receive the network information of container to be processed.
User can also select the container for needing to delete by Kubernetes API in calculate node.The calculate node
In Kubelet the network information of the container can be obtained by Kubernetes API (including the corresponding tenant's of the container
The IP address of mark, the mark of network and the container), and the network information of the container is sent to sdn-cni-plugin.
The network information of the container received can be sent to sdn-net-agent by sdn-cni-plugin, correspondingly, sdn-net-
Agent then can receive the network information of container to be processed.
In addition, the network information of container to be processed is sent to sdn-net- in sdn-cni-plugin according to CNI
Before agent, sdn-cni-plugin can also generate the network interface of container to be processed, and by network interface access for wait locate
The network namespace (Network Namespace) of container creation is managed,
The network information is sent to SDN controller by S202:Agent, so that SDN controller controls SDN according to the network information
The access information of the hardware switch of device management processed is updated.
In application embodiment, in Agent after the network information that Plugin receives container to be processed, Agent can be with
The network information of container to be processed is sent to SDN controller, correspondingly, SDN controller can be according to the appearance to be processed received
The network information of device is updated the access information of the hardware switch of self-management.
In a kind of implementation, when sdn-net-agent receives the container to be processed of sdn-cni-plugin transmission
When the network information, sdn-net-agent can send the network information of container to be processed to SDN controller.
Optionally, calculate node can also configure IP address for newly-increased container, that is, container to be processed is newly-increased appearance
Device, after S202, this method may also comprise the following steps::
Step 1, when Agent receives the IP address that SDN controller is container allocation to be processed, Agent is by IP address
It is sent to Plugin.
In application embodiment, if container to be processed is newly-increased container, when SDN controller receives container to be processed
The network information when, SDN controller can also be container allocation IP address to be processed, and the IP address of distribution is sent to
Agent.Correspondingly, Agent can be by the IP when Agent receives the IP address that SDN controller is container allocation to be processed
Address is sent to Plugin.
Step 2, when Plugin receives IP address, Plugin is that container to be processed configures IP address.
In application embodiment, when Plugin receives the IP address of Agent transmission, Plugin can be appearance to be processed
Device configures the IP address.
In a kind of implementation, when SDN controller receives the network information of container to be processed, SDN controller can be with
For container allocation IP address to be processed, and the IP address of distribution is sent to sdn-net-agent.Correspondingly, working as sdn-net-
When agent receives the IP address that SDN controller is container allocation to be processed, sdn-net-agent can be sent out the IP address
It send to sdn-cni-plugin.When sdn-cni-plugin receives the IP address of sdn-net-agent transmission, sdn-cni-
Plugin can configure the IP address for container to be processed.
Optionally, based on the information processing method of the application, networking can also support VXLAN network, that is, container to be processed
For newly-increased container, the network information may include the corresponding VXLAN mark of container to be processed, correspondingly, after S202, the party
Method can with the following steps are included:
Step 1, Agent are that VXLAN mark distributes corresponding VLAN mark.
Wherein, VXLAN mark can be VNI (VXLAN Network Identifier, virtual extended LAN ID
Symbol).VLAN mark can be VLAN ID (Identifier, identifier).
It, can in the network information of container to be processed if container to be processed is newly-increased container in application embodiment
To include container to be processed corresponding VXLAN mark, the corresponding VXLAN mark of the available container to be processed of Agent, and for should
VXLAN mark distributes a VLAN mark.
In a kind of implementation, if container to be processed is first container of the VXLAN in current calculate node,
Sdn-net-agent can be one new VLAN ID of the corresponding VXLAN mark distribution of container to be processed.
Step 2, the corresponding relationship that Agent identifies VXLAN mark with VLAN, is sent to SDN controller.
In application embodiment, after distributing a VLAN mark for VXLAN mark, Agent can also mark VXLAN
Know the corresponding relationship with VLAN mark, SDN controller is sent to, correspondingly, SDN controller can be according to the corresponding relationship, really
Determine the mapping relations of VXLAN and VLAN.
In addition, calculate node needs support LLDP (Link Layer Discovery Protocol, link layer discovery association
View) so that VXLAN network is supported in networking.
Optionally, newly-increased container can also be accessed OVS by calculate node, that is, can also be deployed in calculate node
OVS, Agent and OVS network interworking, after S202, this method may also comprise the following steps:: Agent sends flow table to OVS
Corresponding VLAN Tag is identified with VLAN, and container to be processed is accessed into OVS;OVS is according to the Agent flow table sent and VLAN
Tag carries out business processing to the data message received.
In application embodiment, Agent can also generate flow table, and flow table and VLAN are identified corresponding VLAN Tag and sent out
It send to OVS, in addition, container to be processed can also be accessed OVS by Agent.For example, Agent can configure the inside of the bridge of OVS
The IP address of interface IP address and container to be processed belongs to same subnet, and container to be processed is accessed OVS.
Correspondingly, OVS can receive the flow table of Agent transmission and VLAN identifies corresponding VLAN Tag, OVS can basis
Flow table and VLAN Tag carry out business processing to the data message received.For example, OVS can correspond to for data message addition
VALN Tag, and the processing according to defined in flow table act, processing is forwarded to the data message for having added VLAN Tag.
Referring to Fig. 3, Fig. 3 is a kind of flow chart of information processing method provided by the embodiments of the present application, and this method can answer
For the SDN controller in networking, the Agent affixed one's name in the middle part of calculate node in SDN controller and networking passes through Restful API net
Network intercommunication, this method may comprise steps of:
S301: the network information for the container to be processed that Agent is sent is obtained.
Wherein, the network information is what the Plugin disposed in calculate node was sent to Agent.
In application embodiment, Plugin and Agent, Plugin and Agent net are deployed in the calculate node in networking
Network intercommunication, SDN controller pass through Restful API and Agent network interworking.Plugin can be sdn-cni-plugin,
Agent can be sdn-net-agent.
When Agent receives the network information of the container to be processed of Plugin transmission, Agent can be to SDN controller
The network information of container to be processed is sent, correspondingly, SDN controller can receive the net of the container to be processed of Agent transmission
Network information.
In a kind of implementation, when the sdn-net-agent in calculate node receives sdn-cni-plugin transmission
When the network information of container to be processed, sdn-net-agent can send the network information of container to be processed to SDN controller,
Correspondingly, SDN controller can receive the network information of the container to be processed of sdn-net-agent transmission.
S302: according to the network information, the access information of the hardware switch of SDN controller management is updated.
In application embodiment, after receiving the network information of container to be processed, SDN controller can be according to be processed
The network information of container is updated the access information of the hardware switch of self-management.Wherein, SDN controller is to itself
The method that the access information of the hardware switch of management is updated is consistent with the prior art, and details are not described herein again.
Optionally, SDN controller can also be container allocation IP address to be processed, that is, container to be processed is newly-increased appearance
Device, after S301, this method may also comprise the following steps:: for container allocation IP address to be processed, and IP address being sent
To Agent.
In application embodiment, if container to be processed is newly-increased container, in the network letter for receiving container to be processed
After breath, SDN controller can also be container allocation IP address to be processed, and the IP address of distribution is sent to Agent, accordingly
, Agent available is container allocation IP address to be processed, and the IP address is sent to Plugin.Plugin can connect
The IP address is received, and configures the IP address for container to be processed.
Optionally, after S301, this method may also comprise the following steps:: when the VXLAN mark for receiving Agent transmission
When knowing the corresponding relationship with VLAN mark, the mapping relations of VXLAN and VLAN are determined according to corresponding relationship.
It, can in the network information of container to be processed if container to be processed is newly-increased container in application embodiment
To include container to be processed corresponding VXLAN mark, the corresponding VXLAN mark of the available container to be processed of Agent, and for should
VXLAN mark distributes a VLAN mark.
After distributing a VLAN mark for VXLAN mark, Agent can also be identified VXLAN and VLAN mark
Corresponding relationship is sent to SDN controller, correspondingly, the available corresponding relationship of SDN controller, and according to the corresponding relationship,
Determine the mapping relations of VXLAN and VLAN.
Referring to fig. 4, Fig. 4 is a kind of exemplary flow chart of information processing method provided by the embodiments of the present application, and method is to answer
For being illustrated for calculate node and SDN controller, be deployed in calculate node Kubelet, sdn-cni-plugin and
In sdn-net-agent, sdn-cni-plugin and sdn-net-agent network interworking, sdn-net-agent and networking
SDN controller may comprise steps of by Restful API network interworking, method:
S401: software defined network-capacitor network interface-plug-in unit receives the network letter for the newly-increased container that Ku Beilai is issued
Breath.
S402: the network information is sent to software defined network-net by software defined network-capacitor network interface-plug-in unit
Network-agency.
S403: software defined network-network-act on behalf of in the network information virtual extended LAN ID distribution it is corresponding
VLAN ID.
S404: software defined network-network-agency is corresponding with VLAN ID by virtual extended LAN ID
Relationship and the network information are sent to software defined network controller.
S405: software defined network controller is the container allocation internet protocol address, is handed over the hardware of itself device management
The access information changed planes is updated, and according to corresponding relationship, determines that the mapping of virtual extended local area network and virtual LAN is closed
System.
S406: the internet protocol address of distribution is sent to software defined network-network-generation by software defined network controller
Reason.
S407: the internet protocol address of distribution is sent to software defined network-appearance by software defined network-network-agency
Device network interface-plug-in unit.
S408: software defined network-capacitor network interface-plug-in unit is that the container configures the internet protocol address received.
Based on information processing method provided by the embodiments of the present application, calculate node, which can directly be sent to SDN controller, to be held
The network information of device, without avoiding the network service as caused by management node failure from interrupting, in turn by management node
The probability that the network service of networking is interrupted can be reduced.
In addition, since calculate node and SDN controller are distributed arrangement, so that there is no single for the business of entire networking
Point failure, that is, single-point performance pressures are not present in entire networking.
Corresponding with the embodiment of the method for Fig. 2, referring to Fig. 5, Fig. 5 is a kind of calculate node provided by the embodiments of the present application
Structure chart is deployed with Plugin (plug-in unit) 501 and Agent (agency) 502, Plugin501 and Agent502 net in calculate node
SDN controller in network intercommunication, Agent502 and the affiliated networking of calculate node passes through Restful API network interworking, in which:
The Agent502, for receiving the network information for the container to be processed that the Plugin501 is sent;
The Agent502 is also used to for the network information to be sent to the SDN controller, so that the SDN is controlled
Device is updated according to access information of the network information to the hardware switch of the SDN controller management.
Optionally, the container to be processed is newly-increased container;
The Agent502 is also used to when the internet association for receiving the SDN controller as the container allocation to be processed
When discussing IP address, the IP address is sent to the Plugin501;
The Plugin501, for when receiving the IP address, with configuring the IP for the container to be processed
Location.
Optionally, the container to be processed is newly-increased container, and the network information includes that the container to be processed is corresponding
Virtual extended local area network VXLAN mark;
The Agent502 is also used to identify for the VXLAN and distributes corresponding virtual LAN VLAN mark;
The Agent502 is also used to identifying the VXLAN into the corresponding relationship with VLAN mark, be sent to described
SDN controller.
Optionally, open virtual switch OVS, the Agent502 and the OVS are also deployed in the calculate node
Network interworking;
The Agent502 is also used to send flow table to the OVS and the VLAN identifies corresponding VLAN tag Tag,
And the container to be processed is accessed into the OVS;
The OVS, flow table and VLAN Tag for being sent according to the Agent502, to the data message received into
Row business processing.
Corresponding with the embodiment of the method for Fig. 3, referring to Fig. 6, Fig. 6 is a kind of information processing apparatus provided by the embodiments of the present application
The structure chart set, device are applied to the SDN controller in networking, the Agent affixed one's name in the middle part of calculate node in SDN controller and networking
By Restful API network interworking, described device includes:
Module 601 is obtained, for obtaining the network information for the container to be processed that the Agent is sent, wherein the network
Information is what the plug-in unit Plugin disposed in the calculate node was sent to the Agent;
Update module 602, for according to the network information, to connecing for the hardware switch of the SDN controller management
Enter information to be updated.
Optionally, the container to be processed is newly-increased container;
Described device further include:
Sending module for being the container allocation Internet protocol IP address to be processed, and the IP address is sent to
The Agent.
Optionally, described device further include:
Processing module, for when the virtual extended local area network VXLAN mark and virtual local area for receiving the Agent transmission
When netting the corresponding relationship of VLAN mark, the mapping relations of VXLAN and VLAN are determined according to the corresponding relationship.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described information processing when being executed by processor
The step of method.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any information processing method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For calculate node, computer readable storage medium and computer program product embodiments, since it is substantially similar to method
Embodiment, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (12)
1. a kind of information processing method, which is characterized in that the method is applied to the calculate node in networking, the calculate node
In be deployed with plug-in unit Plugin and act on behalf of Agent, the Plugin and the Agent network interworking, the Agent with described group
Software defined network SDN controller in net shifts application programming interfaces Restful API network interworking by declarative state,
The described method includes:
The Agent receives the network information for the container to be processed that the Plugin is sent;
The network information is sent to the SDN controller by the Agent, so that the SDN controller is according to the network
Information is updated the access information of the hardware switch of the SDN controller management.
2. the method according to claim 1, wherein the container to be processed is newly-increased container;
After the network information is sent to the SDN controller by the Agent, the method also includes:
It is described when the Agent receives the Internet protocol IP address that the SDN controller is the container allocation to be processed
The IP address is sent to the Plugin by Agent;
When the Plugin receives the IP address, the Plugin is that the container to be processed configures the IP address.
3. the method according to claim 1, wherein the container to be processed is newly-increased container, the network
Information includes the corresponding virtual extended local area network VXLAN mark of the container to be processed;
After the network information that the Agent receives the container to be processed that the Plugin is sent, the method also includes:
The Agent is that VXLAN mark distributes corresponding virtual LAN VLAN mark;
The corresponding relationship of VXLAN mark and VLAN mark is sent to the SDN controller by the Agent.
4. according to the method described in claim 3, it is characterized in that, being also deployed with open virtual switch in the calculate node
OVS, the Agent and the OVS network interworking;
After the Agent is the corresponding VLAN mark of VXLAN mark distribution, the method also includes:
The Agent sends flow table to the OVS and the VLAN identifies corresponding VLAN tag Tag, and will be described to be processed
Container accesses the OVS;
The OVS carries out business processing according to the Agent flow table sent and VLAN Tag, to the data message received.
5. a kind of information processing method, which is characterized in that the method is applied to the software defined network SDN control in networking
That affixes one's name in the middle part of calculate node in device, the SDN controller and the networking acts on behalf of Agent by the transfer of declarative state using journey
Sequence interface Restful API network interworking, which comprises
Obtain the network information for the container to be processed that the Agent is sent, wherein the network information is in the calculate node
What the plug-in unit Plugin of deployment was sent to the Agent;
According to the network information, the access information of the hardware switch of the SDN controller management is updated.
6. according to the method described in claim 5, it is characterized in that, the container to be processed is newly-increased container;
After the network information for obtaining the container to be processed that the Agent is sent, the method also includes:
For the container allocation Internet protocol IP address to be processed, and the IP address is sent to the Agent.
7. according to the method described in claim 5, it is characterized in that, in the container to be processed for obtaining the Agent and sending
The network information after, the method also includes:
When receive the virtual extended local area network VXLAN that the Agent is sent identify identified with virtual LAN VLAN it is corresponding
When relationship, the mapping relations of VXLAN and VLAN are determined according to the corresponding relationship.
8. a kind of calculate node, which is characterized in that it is deployed with plug-in unit Plugin in the calculate node and acts on behalf of Agent, it is described
Software defined network SDN in Plugin and the Agent network interworking, the Agent and the affiliated networking of the calculate node
Controller shifts application programming interfaces Restful API network interworking by declarative state, in which:
The Agent, for receiving the network information for the container to be processed that the Plugin is sent;
The Agent is also used to for the network information to be sent to the SDN controller, so that the SDN controller is according to institute
The network information is stated to be updated the access information of the hardware switch of the SDN controller management.
9. calculate node according to claim 8, which is characterized in that the container to be processed is newly-increased container;
The Agent is also used to when the Internet protocol IP address for receiving the SDN controller as the container allocation to be processed
When, the IP address is sent to the Plugin;
The Plugin, for configuring the IP address for the container to be processed when receiving the IP address.
10. calculate node according to claim 8, which is characterized in that the container to be processed is newly-increased container, described
The network information includes the corresponding virtual extended local area network VXLAN mark of the container to be processed;
The Agent is also used to identify for the VXLAN and distributes corresponding virtual LAN VLAN mark;
The Agent is also used to identifying the VXLAN into the corresponding relationship with VLAN mark, is sent to the SDN control
Device.
11. calculate node according to claim 10, which is characterized in that be also deployed in the calculate node open virtual
Interchanger OVS, the Agent and the OVS network interworking;
The Agent, is also used to send flow table to the OVS and the VLAN identifies corresponding VLAN tag Tag, and will be described
Container to be processed accesses the OVS;
The OVS, flow table and VLAN Tag for being sent according to the Agent carry out business to the data message received
Processing.
12. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and
When execution, the machine-executable instruction promotes the processor: realizing any method and step of claim 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910218672.2A CN109995641B (en) | 2019-03-21 | 2019-03-21 | Information processing method, computing node and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910218672.2A CN109995641B (en) | 2019-03-21 | 2019-03-21 | Information processing method, computing node and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109995641A true CN109995641A (en) | 2019-07-09 |
CN109995641B CN109995641B (en) | 2021-05-28 |
Family
ID=67130741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910218672.2A Active CN109995641B (en) | 2019-03-21 | 2019-03-21 | Information processing method, computing node and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109995641B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110601949A (en) * | 2019-09-10 | 2019-12-20 | 中国人民解放军国防科技大学 | Multi-virtual equipment container networking method |
CN110635987A (en) * | 2019-09-09 | 2019-12-31 | 新华三信息安全技术有限公司 | Message transmission method, device, equipment and machine readable storage medium |
CN111432042A (en) * | 2020-03-02 | 2020-07-17 | 平安科技(深圳)有限公司 | Network address processing method, computer device and storage medium |
CN111628944A (en) * | 2020-05-25 | 2020-09-04 | 深圳市信锐网科技术有限公司 | Switch and switch system |
CN112104499A (en) * | 2020-09-14 | 2020-12-18 | 浪潮思科网络科技有限公司 | Container network model construction method, device, equipment and medium |
CN112241293A (en) * | 2019-07-19 | 2021-01-19 | 北京东土科技股份有限公司 | Application management method, device, equipment and medium for industrial internet cloud platform |
CN112910685A (en) * | 2021-01-13 | 2021-06-04 | 新华三大数据技术有限公司 | Method and device for realizing unified management of container network |
CN114172905A (en) * | 2021-12-09 | 2022-03-11 | 新华三大数据技术有限公司 | Method and device for cluster network networking, computer equipment and storage medium |
CN114172802A (en) * | 2021-12-01 | 2022-03-11 | 百果园技术(新加坡)有限公司 | Container network configuration method and device, computing node, main node and storage medium |
CN114172802B (en) * | 2021-12-01 | 2024-04-26 | 百果园技术(新加坡)有限公司 | Container network configuration method, device, computing node, master node and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150263894A1 (en) * | 2014-03-14 | 2015-09-17 | Avni Networks Inc. | Method and apparatus to migrate applications and network services onto any cloud |
CN105791402A (en) * | 2016-03-02 | 2016-07-20 | 付宏伟 | Network virtualization realization method of cloud computing platform and corresponding plug-in and agent |
CN105900518A (en) * | 2013-08-27 | 2016-08-24 | 华为技术有限公司 | System and method for mobile network function virtualization |
CN106130802A (en) * | 2016-08-30 | 2016-11-16 | 杭州华三通信技术有限公司 | A kind of configuration smoothing method and device |
CN106411750A (en) * | 2015-08-03 | 2017-02-15 | 华为技术有限公司 | Data distribution method and system thereof |
CN106850304A (en) * | 2017-02-15 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind of gateway group method and system based on SDN frameworks |
CN107124364A (en) * | 2017-06-30 | 2017-09-01 | 广州市品高软件股份有限公司 | The complete Proxy Methods of network A RP and system based on software defined network controller |
CN107135121A (en) * | 2017-04-28 | 2017-09-05 | 新华三技术有限公司 | The switching method and device of a kind of network node |
CN107257295A (en) * | 2017-06-14 | 2017-10-17 | 广州市品高软件股份有限公司 | A kind of dispatching method of distributed structure/architecture software defined network controller |
CN107896195A (en) * | 2017-11-16 | 2018-04-10 | 锐捷网络股份有限公司 | Service chaining method of combination, device and service chaining topological structure |
CN107947961A (en) * | 2017-10-17 | 2018-04-20 | 上海数讯信息技术有限公司 | Kubernetes Network Management System and method based on SDN |
CN108616386A (en) * | 2018-03-29 | 2018-10-02 | 西安交通大学 | A kind of construction method and SDN virtual network environments of SDN virtual network environments |
CN108737272A (en) * | 2017-04-19 | 2018-11-02 | 江南大学 | High-performance routing conversion in a kind of cloud computing |
-
2019
- 2019-03-21 CN CN201910218672.2A patent/CN109995641B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105900518A (en) * | 2013-08-27 | 2016-08-24 | 华为技术有限公司 | System and method for mobile network function virtualization |
US20150263894A1 (en) * | 2014-03-14 | 2015-09-17 | Avni Networks Inc. | Method and apparatus to migrate applications and network services onto any cloud |
CN106411750A (en) * | 2015-08-03 | 2017-02-15 | 华为技术有限公司 | Data distribution method and system thereof |
CN105791402A (en) * | 2016-03-02 | 2016-07-20 | 付宏伟 | Network virtualization realization method of cloud computing platform and corresponding plug-in and agent |
CN106130802A (en) * | 2016-08-30 | 2016-11-16 | 杭州华三通信技术有限公司 | A kind of configuration smoothing method and device |
CN106850304A (en) * | 2017-02-15 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind of gateway group method and system based on SDN frameworks |
CN108737272A (en) * | 2017-04-19 | 2018-11-02 | 江南大学 | High-performance routing conversion in a kind of cloud computing |
CN107135121A (en) * | 2017-04-28 | 2017-09-05 | 新华三技术有限公司 | The switching method and device of a kind of network node |
CN107257295A (en) * | 2017-06-14 | 2017-10-17 | 广州市品高软件股份有限公司 | A kind of dispatching method of distributed structure/architecture software defined network controller |
CN107124364A (en) * | 2017-06-30 | 2017-09-01 | 广州市品高软件股份有限公司 | The complete Proxy Methods of network A RP and system based on software defined network controller |
CN107947961A (en) * | 2017-10-17 | 2018-04-20 | 上海数讯信息技术有限公司 | Kubernetes Network Management System and method based on SDN |
CN107896195A (en) * | 2017-11-16 | 2018-04-10 | 锐捷网络股份有限公司 | Service chaining method of combination, device and service chaining topological structure |
CN108616386A (en) * | 2018-03-29 | 2018-10-02 | 西安交通大学 | A kind of construction method and SDN virtual network environments of SDN virtual network environments |
Non-Patent Citations (2)
Title |
---|
刘瑛: "SDN在Openstack云数据中心的技术研究", 《移动通信》 * |
蒋暕青: "OpenStack与SDN控制器的集成", 《SDNLAB》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112241293A (en) * | 2019-07-19 | 2021-01-19 | 北京东土科技股份有限公司 | Application management method, device, equipment and medium for industrial internet cloud platform |
CN110635987B (en) * | 2019-09-09 | 2021-11-02 | 新华三信息安全技术有限公司 | Message transmission method, device, equipment and machine readable storage medium |
CN110635987A (en) * | 2019-09-09 | 2019-12-31 | 新华三信息安全技术有限公司 | Message transmission method, device, equipment and machine readable storage medium |
CN110601949A (en) * | 2019-09-10 | 2019-12-20 | 中国人民解放军国防科技大学 | Multi-virtual equipment container networking method |
CN111432042A (en) * | 2020-03-02 | 2020-07-17 | 平安科技(深圳)有限公司 | Network address processing method, computer device and storage medium |
WO2021174730A1 (en) * | 2020-03-02 | 2021-09-10 | 平安科技(深圳)有限公司 | Network address processing method, computer device, and storage medium |
CN111628944A (en) * | 2020-05-25 | 2020-09-04 | 深圳市信锐网科技术有限公司 | Switch and switch system |
CN111628944B (en) * | 2020-05-25 | 2022-03-25 | 深圳市信锐网科技术有限公司 | Switch and switch system |
CN112104499A (en) * | 2020-09-14 | 2020-12-18 | 浪潮思科网络科技有限公司 | Container network model construction method, device, equipment and medium |
CN112104499B (en) * | 2020-09-14 | 2023-05-02 | 浪潮思科网络科技有限公司 | Container network model construction method, device, equipment and medium |
CN112910685A (en) * | 2021-01-13 | 2021-06-04 | 新华三大数据技术有限公司 | Method and device for realizing unified management of container network |
CN112910685B (en) * | 2021-01-13 | 2022-04-01 | 新华三大数据技术有限公司 | Method and device for realizing unified management of container network |
CN114172802A (en) * | 2021-12-01 | 2022-03-11 | 百果园技术(新加坡)有限公司 | Container network configuration method and device, computing node, main node and storage medium |
CN114172802B (en) * | 2021-12-01 | 2024-04-26 | 百果园技术(新加坡)有限公司 | Container network configuration method, device, computing node, master node and storage medium |
CN114172905A (en) * | 2021-12-09 | 2022-03-11 | 新华三大数据技术有限公司 | Method and device for cluster network networking, computer equipment and storage medium |
CN114172905B (en) * | 2021-12-09 | 2024-03-26 | 新华三大数据技术有限公司 | Cluster network networking method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109995641B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109995641A (en) | A kind of information processing method, calculate node and storage medium | |
CN103026660B (en) | Network policy configuration method, management equipment and network management centre device | |
US9999030B2 (en) | Resource provisioning method | |
US6347336B1 (en) | Automatic discovery and positioning method of the network elements in the network management system in case that the network topology is configured | |
US11240152B2 (en) | Exposing a subset of hosts on an overlay network to components external to the overlay network without exposing another subset of hosts on the overlay network | |
US9674045B2 (en) | Methods, systems, and computer readable media for modeling packet technology services using a packet virtual network (PVN) | |
CN110086640B (en) | Service enabling method and device | |
CN108667638A (en) | A kind of network service configuration method and network management device | |
US11601365B2 (en) | Wide area networking service using provider network backbone network | |
KR20180103975A (en) | Method and system for managing resource objects | |
US20210092616A1 (en) | Automated access point mapping systems and methods | |
US9985840B2 (en) | Container tracer | |
CN110224917A (en) | Data transmission method, apparatus and system, server | |
US20220350637A1 (en) | Virtual machine deployment method and related apparatus | |
US11184242B2 (en) | System and method for automating the discovery process | |
US11824773B2 (en) | Dynamic routing for peered virtual routers | |
CN105493444A (en) | Fault management apparatus, device and method for network function virtualization (nfv) | |
US8812635B2 (en) | Apparatus and method providing unified network management | |
CN110851186B (en) | Network equipment restarting method and device, electronic equipment and readable storage medium | |
EP4191907A1 (en) | Vnf instantiation method and apparatus | |
JP5782393B2 (en) | Network resource distributed management method and program | |
US20030074359A1 (en) | Network management unit | |
US20230409371A1 (en) | Method for creating network service ns and related apparatus | |
JP5594131B2 (en) | Network management device | |
US20230275814A1 (en) | User interface for 5g network slice provisioning |
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 |