CN111010457A - EIP classification method and system based on service types - Google Patents

EIP classification method and system based on service types Download PDF

Info

Publication number
CN111010457A
CN111010457A CN201911226893.0A CN201911226893A CN111010457A CN 111010457 A CN111010457 A CN 111010457A CN 201911226893 A CN201911226893 A CN 201911226893A CN 111010457 A CN111010457 A CN 111010457A
Authority
CN
China
Prior art keywords
eip
user
network
subnet
type
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
CN201911226893.0A
Other languages
Chinese (zh)
Other versions
CN111010457B (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.)
Unicloud Nanjing Digital Technology Co Ltd
Original Assignee
Unicloud Nanjing Digital Technology Co Ltd
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 Unicloud Nanjing Digital Technology Co Ltd filed Critical Unicloud Nanjing Digital Technology Co Ltd
Priority to CN201911226893.0A priority Critical patent/CN111010457B/en
Publication of CN111010457A publication Critical patent/CN111010457A/en
Application granted granted Critical
Publication of CN111010457B publication Critical patent/CN111010457B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Abstract

The invention discloses an EIP classification method and a classification system based on service types, wherein the classification method comprises the steps of establishing a subnet in a public network IP pool, and distributing the subnet according to an operator; according to an operator, a user applies for an appointed EIP type; neutron assigns EIP to the user in the responding subnet upon user request. After the EIP is subdivided by an operator, the user without using BGP can apply for the EIP with the required type according to the requirement.

Description

EIP classification method and system based on service types
Technical Field
The invention relates to the field of cloud computing, in particular to an EIP classification method and system based on service types.
Background
With the rapid development of cloud computing, many enterprise data are migrated to the most basic cloud computing cloud server, and with the encouragement of cloud policies of government departments to the enterprises, the cloud of the enterprises has a great tendency, and the cloud server cancels hardware cost for the enterprises, reduces operation and maintenance cost of the enterprises, has strong expansibility and extensibility, and is just the reason that the enterprises cloud the dispute.
By purchasing a cloud server (ECS), a user avoids the early preparation of purchasing IT hardware, and the user can conveniently and efficiently use the server as common resources such as water, electricity, natural gas and the like, so that the computing resources can be opened and used and elastically stretched.
An Elastic IP Address (EIP) is a public IP Address resource that can be purchased and held independently. The EIP may be bound to gateways for ECS instances, private network SLB instances, and NAT instances of the proprietary network type. The EIP is an NAT IP which is actually positioned on a public gateway, is mapped to the bound resources in an NAT mode, and can be communicated with the public network through the EIP after being bound with the cloud resources.
The working schematic diagram of the EIP in the prior art is shown in fig. 1, and the EIP is used as a NAT IP to configure SNAT and DNAT rules. DNAT rule: the external request destination address is the data of the port 2, and the destination address is converted into a VM address; SNAT rule: the VM sends a request to the public network to change the source address to the address of port 2. Floating point IP is set on external gateway port 2.
At present, most public cloud manufacturers are realized based on openstack, network components neutron in openstack do not classify EIP when EIP is realized, such as telecom EIP, Unicom EIP, BGP EIP and the like, all use BGP mode, and the mode increases operation cost for customers only using EIP of certain operator.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an EIP classification method and a classification system based on service types, which are used to solve the problems that the EIP is not classified and the operation cost is high in the prior art.
In order to achieve the above object, the present invention provides an EIP classification method based on service types, comprising the steps of:
establishing a subnet in a public network IP pool, and distributing the subnet according to an operator;
according to an operator, a user applies for an appointed EIP type;
neutron assigns EIP to the user in the responding subnet upon user request.
Optionally, the parameter attribute values of the API interface of Neutron are extended.
Optionally, when creating the subnet in the public network pool, the parameter for creating the subnet API interface is multiplexed, and the parameter attribute value is extended to indicate the operator information to which the subnet belongs.
Optionally, when creating the EIP, an extended parameter of the floating IP is used, and an attribute value of the extended parameter is modified to indicate the EIP of the desired operator.
The invention also provides an EIP classification system based on service types, which comprises:
the control node receives the EIP type requested by the user, creates the EIP and processes the service logic;
the network node sets a corresponding EIP according to the EIP established by the control node, so as to be used for three-layer intercommunication and outer network communication of a bearing tenant network;
and the computer node is used for creating a cloud server and providing the cloud server for a user, and the user is communicated with the external network through the EIP set by the network node.
Optionally, the user creates an EIP on the Web page and binds the host; and the Dashboard at the front end of the control node sends the user request to the Neutron server, and the Neutron server creates a corresponding EIP according to the user request.
Optionally, the network node configures a corresponding EIP at an external gateway on the virtual router according to the user request.
Optionally, the user creates a virtual server and communicates with the extranet through EIP binding to the host
Compared with the prior art, the technical scheme of the invention has the following advantages:
the invention expands the operator attribute of the EIP and subdivides the EIP into different types. BGP types of EIP are more costly and single line EIP is less costly. After the EIP is subdivided according to the operators, users without BGP can apply for the EIP with the required type according to the requirements, and the cost of the users is effectively reduced.
The invention increases the attribute information of EIP and provides better compatibility on the basis of not changing the original interface of neutron. When the cloud manufacturer docks the neutron, the interface of the cloud manufacturer does not need to be modified, and the development difficulty is effectively reduced.
Drawings
FIG. 1 is a diagram of the working principle of EIP of the prior art;
FIG. 2 is a flow chart of EIP classification according to the present invention;
FIG. 3 is a block diagram of an EIP classification system of the present invention;
Detailed Description
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, but the present invention is not limited to only these embodiments. The invention is intended to cover alternatives, modifications, equivalents and alternatives which may be included within the spirit and scope of the invention.
In the following description of the preferred embodiments of the present invention, specific details are set forth in order to provide a thorough understanding of the present invention, and it will be apparent to those skilled in the art that the present invention may be practiced without these specific details.
The invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. It should be noted that the drawings are in simplified form and are not to precise scale, which is only used for convenience and clarity to assist in describing the embodiments of the present invention.
Referring to fig. 2, there is shown an EIP classification flow chart of the present invention, according to the following steps: s101: firstly, establishing a subnet in a public network IP pool, and distributing the subnet according to an operator; s102: then according to the operator type, the user applies for the EIP type appointed for use; s103: neutron then assigns EIP to the user in the responding subnet upon user request.
In order to be compatible with the native API of Neutron and be convenient for a third party to use, on the basis of not changing the native API of Neutron, the attribute values of the existing parameters are expanded to implement the function change, and the specific example is as follows:
A. when a public network subnet is created, multiplexing a parameter service _ type of create _ subnet api, and using the parameter to mark the operator information to which the subnet belongs.
B. When creating the EIP, the extended parameter extra of create _ flowing ip is used to indicate in the parameter which operator's EIP (telecom, unicom, BGP) is needed.
C. Neutron distributes EIP in the appointed sub-network according to the received user request and the operator for the user to use.
Referring to fig. 3, a block diagram of the EIP classification system of the present invention is shown, which includes three nodes, respectively: the control node receives the user request and processes the service logic; the computing node is used for creating an ECS and providing a cloud server for the tenant; and the network node is used for carrying three-layer intercommunication and outer network communication of the tenant network. The specific work flow is as follows:
a. a user creates an EIP on a web page and binds a host;
b. the Dashborad at the front end of the control node sends the request to the neutron-server;
c. the neutron-server creates a corresponding EIP according to the request parameters and sends the EIP to the l3-agent of the network node;
d. the network node configures an EIP (enhanced Internet protocol) at an external gateway on the Router of the virtual Router according to the request, and provides the capability of accessing an external network for the user;
e. and the virtual server VM created by the user can access the extranet or provide network services for the extranet through the bound EIP.
Although the embodiments have been described and illustrated separately, it will be apparent to those skilled in the art that some common techniques may be substituted and integrated between the embodiments, and reference may be made to one of the embodiments not explicitly described, or to another embodiment described.
The above-described embodiments do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the above-described embodiments should be included in the protection scope of the technical solution.

Claims (8)

1. An EIP classification method based on service types comprises the following steps:
establishing a subnet in a public network IP pool, and distributing the subnet according to an operator;
according to the sub-networks corresponding to different operators, a user applies for an EIP type which is appointed to be used;
according to the user application, Neutron allocates EIP to the user in the sub-network of response.
2. The EIP classification method based on service type according to claim 1, wherein: and expanding the parameter attribute values of the API of Neutron.
3. The EIP classification method based on service type according to claim 2, wherein: when the subnet in the public network pool is created, the parameters of the API interface of the created subnet are multiplexed, and the attribute value of the parameters is expanded to indicate the operator information to which the subnet belongs.
4. The EIP classification method based on service type according to claim 3, characterized in that: when the EIP is created, the extended parameters of the floating IP are used, and the attribute values of the extended parameters are modified to indicate the EIP of the required operator.
5. An EIP classification system based on service type comprising:
the control node receives the EIP type requested by the user, creates the EIP and processes the service logic;
the network node sets a corresponding EIP according to the EIP established by the control node, so as to be used for three-layer intercommunication and outer network communication of a bearing tenant network;
and the computer node is used for creating a cloud server and providing the cloud server for a user, and the user is communicated with the external network through the EIP set by the network node.
6. The type of service based EIP classification system according to claim 5, wherein: a user creates an EIP on a Web page and binds a host; and the Dashboard at the front end of the control node sends the user request to the Neutron server, and the Neutron server creates a corresponding EIP according to the user request.
7. The type of service based EIP classification system according to claim 6, wherein: and the network node configures corresponding EIP at the external gateway on the virtual router according to the user request.
8. The type of service based EIP classification system of claim 7, wherein: the user creates a virtual server and communicates with the extranet through the EIP of the bound host.
CN201911226893.0A 2019-12-04 2019-12-04 Service type-based elastic public network IP classification method Active CN111010457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911226893.0A CN111010457B (en) 2019-12-04 2019-12-04 Service type-based elastic public network IP classification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911226893.0A CN111010457B (en) 2019-12-04 2019-12-04 Service type-based elastic public network IP classification method

Publications (2)

Publication Number Publication Date
CN111010457A true CN111010457A (en) 2020-04-14
CN111010457B CN111010457B (en) 2022-07-15

Family

ID=70115479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911226893.0A Active CN111010457B (en) 2019-12-04 2019-12-04 Service type-based elastic public network IP classification method

Country Status (1)

Country Link
CN (1) CN111010457B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572867A (en) * 2021-09-26 2021-10-29 北京海誉动想科技股份有限公司 Communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024095A (en) * 2012-11-23 2013-04-03 北京百度网讯科技有限公司 Data center system and data center service providing method
CN107769938A (en) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 The system and method that a kind of Openstack platforms support Multi net voting region
CN109743415A (en) * 2019-02-27 2019-05-10 上海浪潮云计算服务有限公司 A kind of public cloud network resilience IP realization method and system
CN110198231A (en) * 2018-05-08 2019-09-03 腾讯科技(深圳)有限公司 Capacitor network management method and system and middleware for multi-tenant

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024095A (en) * 2012-11-23 2013-04-03 北京百度网讯科技有限公司 Data center system and data center service providing method
CN107769938A (en) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 The system and method that a kind of Openstack platforms support Multi net voting region
CN110198231A (en) * 2018-05-08 2019-09-03 腾讯科技(深圳)有限公司 Capacitor network management method and system and middleware for multi-tenant
CN109743415A (en) * 2019-02-27 2019-05-10 上海浪潮云计算服务有限公司 A kind of public cloud network resilience IP realization method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张忠琳: ""【neutron源码分析】create_network/create_subnet/create_port源码分析"", 《HTTPS://BLOG.CSDN.NET/ZHONGLINZHANG/ARTICLE/DETAILS/75559735》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572867A (en) * 2021-09-26 2021-10-29 北京海誉动想科技股份有限公司 Communication method and device

Also Published As

Publication number Publication date
CN111010457B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
US11218420B2 (en) Virtual network interface objects
US10601705B2 (en) Failover of centralized routers in public cloud logical networks
CN108989091B (en) Tenant network isolation method based on Kubernetes network, storage medium and electronic equipment
US10862753B2 (en) High availability for stateful services in public cloud logical networks
US8484353B1 (en) Resource placement templates for virtual networks
US11570244B2 (en) Mirroring network traffic of virtual networks at a service provider network
WO2021135344A1 (en) Virtual private cloud and non-public cloud data center communication method, virtual private cloud and non-public cloud data center communication configuration method, and related apparatuses
CN106953788B (en) virtual network controller and control method
US10129201B2 (en) Management of domain name systems in a large-scale processing environment
EP3669504B1 (en) High availability for stateful services in public cloud logical networks
CN102664972B (en) Method and device for mapping address in virtual network
US11509581B2 (en) Flow-based local egress in a multisite datacenter
CN101197856A (en) IP address space planning-free and private domain name access method in VPN network
CN104270464A (en) Cloud computing virtualized network architecture and optimization method
CN105635332A (en) Method for multiple virtual machines to share IP of single external network
CN111010457B (en) Service type-based elastic public network IP classification method
CN106059803A (en) Method for realizing southbound and northbound communication of virtual machines on computing nodes
CN105357332B (en) A kind of method for network address translation and device
US11831511B1 (en) Enforcing network policies in heterogeneous systems
CN107124411A (en) Virtual private cloud implementation method, device and system under classic network environment
JP7483074B2 (en) Method and apparatus for implementing and managing a virtual switch - Patents.com
CN117950794A (en) Service arrangement system based on Kubernetes
Yakhlef et al. Simulation of Routing in NAT, PAT and Inter_VLAN Networks
CN104104529A (en) Network management method and system based on common information model

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