CN112688917A - Network access method, device, electronic equipment and storage medium - Google Patents

Network access method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112688917A
CN112688917A CN202011440730.5A CN202011440730A CN112688917A CN 112688917 A CN112688917 A CN 112688917A CN 202011440730 A CN202011440730 A CN 202011440730A CN 112688917 A CN112688917 A CN 112688917A
Authority
CN
China
Prior art keywords
cloud host
internet
floating
ips
intranet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011440730.5A
Other languages
Chinese (zh)
Inventor
陈海峰
靳国杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp 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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN202011440730.5A priority Critical patent/CN112688917A/en
Publication of CN112688917A publication Critical patent/CN112688917A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a network access method, a network access device, electronic equipment and a storage medium. The method comprises the following steps: receiving a network access request, wherein the network access request comprises a port address of an internet IP corresponding to a cloud host to be accessed; determining a floating IP address corresponding to the cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses. By constructing the mapping relation between the plurality of ports of the internet IP and the plurality of floating IPs, the cloud host corresponding to different floating IPs can be reached when different ports of the internet IP are accessed. Therefore, the method can realize that one internet IP corresponds to a plurality of cloud hosts. A large amount of internet IP resources can be saved.

Description

Network access method, device, electronic equipment and storage medium
Technical Field
The present application relates to internet technologies, and in particular, to a network access method, apparatus, electronic device, and storage medium.
Background
With the advent of big data age, the data volume is more and more abundant, and the network flow is more and more big. Many users who carry out network activities are equipped with a plurality of cloud hosts at the same time to provide network services.
Generally, a cloud host needs to have an internet IP, and a client can access the cloud host when accessing the internet IP. However, the Internet IP is paid and supplied by an Internet Service Provider (ISP) and is limited in number.
Therefore, allocating one internet IP for each cloud host consumes a large amount of internet IP resources, and is costly.
Disclosure of Invention
The application provides a network access method, a network access device, electronic equipment and a storage medium, which are used for distributing an internet IP for a plurality of cloud hosts, reducing the occupation of internet IP resources and reducing the use cost.
In a first aspect, the present application provides a network access method, including: receiving a network access request, wherein the network access request comprises a port address of an internet IP corresponding to a cloud host to be accessed; determining a floating IP address corresponding to the cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
Optionally, the method further includes: allocating a first intranet IP to each cloud host in the cluster as a fixed IP of the cloud host; and allocating a second intranet IP as a floating IP for each cloud host in the cluster which needs to provide services to the outside through the Internet.
Optionally, the allocating a first intranet IP to each cloud host in the cluster as a fixed IP of the cloud host includes: allocating a first intranet IP for each cloud host in the cluster; and binding the first intranet IP with the cloud host to serve as a fixed IP of the cloud host.
Optionally, the allocating a second intranet IP as a floating IP for each cloud host in the cluster that needs to provide service to the outside through the internet includes: allocating a second intranet IP for each cloud host in the cluster which needs to provide services to the outside through the Internet; and associating the second intranet IP with the fixed IP of the cloud host to serve as the floating IP of the cloud host.
Optionally, the method further includes: acquiring an Internet Protocol (IP) of a cluster; and establishing a mapping relation between a plurality of floating IPs and a plurality of ports of the Internet IPs.
Optionally, the method further includes: and storing the mapping relation between the plurality of floating IPs and the plurality of ports of the Internet IP.
Optionally, the method further includes: constructing a Virtual Local Area Network (VLAN) for a plurality of cloud hosts in a cluster; and acquiring a plurality of first intranet IPs and a plurality of second intranet IPs from the VLAN pool.
In a second aspect, the present application provides a network access device, comprising: the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a network access request which comprises a port address of an internet IP corresponding to a cloud host to be accessed; the determining module is used for determining a floating IP address corresponding to the cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
Optionally, the apparatus further comprises: the distribution module is used for distributing a first intranet IP for each cloud host in the cluster as a fixed IP of the cloud host; and allocating a second intranet IP as a floating IP for each cloud host in the cluster which needs to provide services to the outside through the Internet.
Optionally, when the allocation module allocates one first intranet IP to each cloud host in the cluster as the fixed IP of the cloud host, the allocation module is specifically configured to: allocating a first intranet IP for each cloud host in the cluster; and binding the first intranet IP with the cloud host to serve as a fixed IP of the cloud host.
Optionally, when the allocation module allocates a second intranet IP as a floating IP to each cloud host in the cluster that needs to provide services to the outside through the internet, the allocation module is specifically configured to: allocating a second intranet IP for each cloud host in the cluster which needs to provide services to the outside through the Internet; and associating the second intranet IP with the fixed IP of the cloud host to serve as the floating IP of the cloud host.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring the Internet IP of the cluster; and the establishing module is used for establishing the mapping relation between the plurality of floating IPs and the plurality of ports of the Internet IP.
Optionally, the apparatus further comprises: and the storage module is used for storing the mapping relation between the plurality of floating IPs and the plurality of ports of the Internet IP.
Optionally, the apparatus further comprises: the system comprises a construction module, a configuration module and a management module, wherein the construction module is used for constructing a Virtual Local Area Network (VLAN) for a plurality of cloud hosts in a cluster; the obtaining module is further configured to obtain a plurality of first intranet IPs and a plurality of second intranet IPs from the VLAN pool.
In a third aspect, the present application provides an electronic device, comprising: a memory for storing program instructions; a processor for calling and executing the program instructions in the memory to perform the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method according to the first aspect.
In a fifth aspect, the present application provides a program product comprising a computer program stored in a readable storage medium, the computer program being readable from the readable storage medium by a processor of an electronic device, the processor executing the computer program to cause the electronic device to carry out the method according to the first aspect.
The application provides a network access method, a network access device, electronic equipment and a storage medium. The method comprises the following steps: receiving a network access request, wherein the network access request comprises a port address of an internet IP corresponding to a cloud host to be accessed; determining a floating IP address corresponding to the cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses. By constructing the mapping relation between the plurality of ports of the internet IP and the plurality of floating IPs, the cloud host corresponding to different floating IPs can be reached when different ports of the internet IP are accessed. Therefore, the method can realize that one internet IP corresponds to a plurality of cloud hosts. Compared with the condition that one internet IP corresponds to one host in the prior art, a large amount of internet IP resources can be saved, and meanwhile, the cluster construction cost is also reduced.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an application scenario provided in the present application;
fig. 2 is a flowchart of a network access method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an IP address mapping relationship according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a network access device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. 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 application.
The internet IP is an IP address of a device in the internet, through which other devices connected to the internet can be accessed. Internet IP requires paid provisioning by an Internet Service Provider (ISP).
Vendors providing cloud platform services typically purchase a certain number of internet IPs, which are rented to users of the cloud platform services along with the cloud services.
In the design of the existing cloud platform, only an external network (public network) is created. In this way, when creating a virtual machine, in order to implement internet access, only one external network IP (also internet IP) address can be allocated to the cloud host as a fixed IP, so that other devices in the internet can access the cloud host by routing to the fixed IP. Other terminal equipment can directly access the cloud host by accessing the internet IP address.
In fact, although the manner of accessing the cloud host through the fixed IP directly solves the problem that the external user accesses the cloud host through the internet, the method may cause waste of IP resources for the cluster user. For example, for a certain integrator user who uses a plurality of cloud hosts as a cluster, there is only one cloud host in the cluster that provides an external access function. Then, the internet IP used as the fixed IP in the other cloud hosts is actually idle and does not perform the function of providing internet access. At this level, a lot of internet IP resources are wasted. Moreover, the user himself also incurs high costs.
The method aims to provide a scheme, so that the total number of internet IPs in the cluster is reduced as much as possible, and meanwhile, normal internet service is not influenced.
The floating IP is an IP address which does not target a specific cloud host, does not bind a certain cloud host, and corresponds to the cloud host one to one.
Computers in a network represent their identity by IP addresses, one IP address representing only a particular computer. A number of services, such as database services, FTP services, Web services, etc., may be provided simultaneously on a single computer. In the IP protocol, different services provided by a computer are generally distinguished by different logical ports. The ports of one IP address are numbered by 16 bits and there may be a maximum of 65536 ports. Ports are labeled by port number, which is only an integer, ranging from 0 to 65535.
But a large proportion of the 65536 ports are idle and fully functional. In fact, only one port of the internet IP is mapped to one cloud host, and when the terminal accesses the port, the terminal can access the cloud host.
Based on this, the application provides a network access method. In the construction phase of the cluster, a plurality of ports of one internet IP are mapped with a plurality of cloud hosts in the cluster by means of the floating IP. When the cloud host in the cluster is accessed, the corresponding cloud host can be accessed according to the port number of the Internet IP.
Fig. 1 is a schematic diagram of an application scenario provided in the present application. The scheme of the application can be used for an access process of the cloud host in the cluster. As shown in fig. 1, a cluster includes three cloud hosts 101, 102, and 103, where two of the cloud hosts 101 and 102 provide internet access. The two cloud hosts share the internet IP114.40.24.180, but correspond to different ports. 101 corresponds to a port 22880, and provides office management services (OA system); 102 correspond to port 23880 which provides financial management services (ERP system). The client terminal may initiate an access request to the OA system or the ERP system through the browser. After receiving the access request, the cloud platform management system of the cluster may associate to the corresponding cloud host according to the port of the specific IP address requested to be accessed. Specific access procedures may refer to the following embodiments.
Fig. 2 is a flowchart of a network access method according to an embodiment of the present application, and as shown in fig. 2, the method according to the embodiment may include:
s201, receiving a network access request, wherein the network access request comprises a port address of an Internet IP corresponding to a cloud host to be accessed.
A user with a network access requirement can initiate an access request to a target website through a browser of the terminal equipment. The user can input a port corresponding to the internet IP of the target website or input a domain name of the target website on an input interface of the terminal device.
Or the user may initiate a service request through a corresponding application in the terminal device.
The "network access request" referred to in the present application is not a request initiated by a user, but request information finally received by the cloud platform. According to the characteristics of network access, the request initiated by the terminal equipment can finally reach the network equipment pointed by the target address through a plurality of gateway equipment.
S202, according to the port address of the Internet IP and the preset mapping relation between the plurality of ports of the Internet IP and the plurality of floating IPs, the floating IP address corresponding to the cloud host to be accessed is determined.
The one-to-one mapping relation between a plurality of ports of the internet IP and a plurality of floating IPs is preset, and when an access request for the corresponding ports of the internet IP is received, the corresponding floating IPs can be determined.
S203, determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
The floating IP is used as an external network IP of the cloud host and has a corresponding incidence relation with the fixed IP of the cloud host. After the floating IP is determined, the fixed IP can be determined according to the association relation, and then the cloud host pointed by the fixed IP is accessed.
The fixed IP refers to an IP fixed by the device, and is equivalent to the identifier of the device.
The network access method provided by the embodiment comprises the following steps: receiving a network access request, wherein the network access request comprises a port address of an internet IP corresponding to a cloud host to be accessed; determining a floating IP address corresponding to a cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses. By constructing the mapping relation between the plurality of ports of the internet IP and the plurality of floating IPs, the cloud host corresponding to different floating IPs can be reached when different ports of the internet IP are accessed. Therefore, the method can realize that one internet IP corresponds to a plurality of cloud hosts. Compared with the condition that one internet IP corresponds to one host in the prior art, a large amount of internet IP resources can be saved, and meanwhile, the cluster construction cost is also reduced.
In some embodiments, the fixed IP and the floating IP of each cloud host may be determined by establishing a local area network and allocating a VLAN.
Specifically, a virtual local area network VLAN may be constructed for a plurality of cloud hosts in a cluster; and acquiring a plurality of first intranet IPs and a plurality of second intranet IPs from the VLAN pool.
And the IP of the cloud host in the local area network is the intranet IP.
In the present application, the first intranet IP and the second intranet IP are both virtual IPs obtained from a VLAN pool, and the prefixes first and second are only used for distinguishing specific uses of the virtual IPs, and are used as fixed IPs or floating IPs.
Specifically, a first intranet IP may be allocated to each cloud host in the cluster as a fixed IP of the cloud host; and allocating a second intranet IP as a floating IP for each cloud host in the cluster which needs to provide services to the outside through the Internet.
Specifically, a first intranet IP may be allocated to each cloud host in the cluster; the first intranet IP is bound with the cloud host to serve as a fixed IP of the cloud host, and at the moment, the intranet IP becomes the attribute of the cloud host, is in a relatively stable relation, and is not unbound in general.
The fixed IP is the "ID" of the corresponding cloud host.
In addition, when a second intranet IP is allocated to each cloud host in the cluster, which needs to provide service to the outside through the internet, as a floating IP, a second intranet IP may be specifically allocated to each cloud host in the cluster, which needs to provide service to the outside through the internet; and then associating the second intranet IP with the fixed IP of the cloud host to serve as the floating IP of the cloud host.
After the floating IP is associated with the fixed IP, a one-to-one correspondence relationship is actually formed between the floating IP and the cloud hosts corresponding to the fixed IP.
The association relationship between the floating IP and the fixed IP may be stored in the cloud platform management system. And determining the target fixed IP by inquiring the association relation in the access process.
The process of allocating the fixed IP and the floating IP may be regarded as a configuration process of parameters of the cloud host.
The binding of the internet IP port and the floating IP specifically may include: acquiring an Internet Protocol (IP) of a cluster; and establishing a mapping relation between a plurality of floating IPs and a plurality of ports of the Internet IPs.
The cloud service provider may provide one or more internet IPs to the cloud service renter, which may be used for cluster construction. By adopting the scheme of the application, only one internet IP is needed in one cluster. A one-to-one mapping relation is established between a plurality of ports in one internet IP and a plurality of floating IPs, namely the ports can be mapped to the floating IPs in the access process of the internet IP ports, and then the ports are corresponding to the cloud host.
In some embodiments, the constructed mappings of the plurality of floating IPs to the plurality of ports of the internet IPs may be stored.
Specifically, the mapping relationship may be stored in a virtual address translation device in the cloud platform management system.
Because the floating IP is allocated, when the subsequent cloud host renting is finished, the cloud service provider can terminate the use of the Internet IP only by removing the association relation between the fixed IP and the floating IP.
In a specific embodiment, a large-scale cloud platform is built based on a processor of a LoongISA instruction set, and cloud service is provided. A user wants to apply for 4 cloud hosts to form a cluster. Wherein 4 cloud hosts all need to provide internet access service.
An internal network with address 10.80.230.0/24 is first created within the clustered lan environment. And dynamically allocating 4 intranet IPs to 4 cloud hosts as fixed IPs and 4 extranet IPs to 4 cloud hosts as floating IPs by using a software and hardware tool complying with a Dynamic Host Configuration Protocol (DHCP).
Second, a virtual router (virtual router) is created to connect the intranet IP with the floating IP route.
Then, 4 of the ports of the internet IP114.40.24.180 are mapped onto 4 floating IPs.
The correspondence between the final IP addresses is shown in fig. 3.
The client accesses http://114.40.24.180:22880, and the application software service provided on the 10.80.230.2 host is available. The Apache service on 10.80.230.5 host is available when the client accesses http://114.40.24.180: 25080.
The method and the device expand a large number of floating IPs by using a port mapping networking mode and are used for providing Internet external network access services. The external service is provided at the port layer of the application system, which just accords with the original service level of the system operation environment and can effectively solve the problem of the shortage of Internet IP resources.
Fig. 4 is a schematic structural diagram of a network access device according to an embodiment of the present application, and as shown in fig. 4, the network access device 400 according to this embodiment may include: a receiving module 401 and a determining module 402.
The receiving module 401 is configured to receive a network access request, where the network access request includes a port address of an internet IP corresponding to a cloud host to be accessed.
The determining module 402 is configured to determine a floating IP address corresponding to a cloud host to be accessed according to a port address of an internet IP and a preset mapping relationship between a plurality of ports of the internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
Optionally, the apparatus further comprises: an allocating module 403, configured to allocate a first intranet IP to each cloud host in the cluster as a fixed IP of the cloud host; and allocating a second intranet IP as a floating IP for each cloud host in the cluster which needs to provide services to the outside through the Internet.
Optionally, when allocating a first intranet IP as a fixed IP of a cloud host to each cloud host in the cluster, the allocating module 403 is specifically configured to: allocating a first intranet IP for each cloud host in the cluster; and binding the first intranet IP with the cloud host to serve as a fixed IP of the cloud host.
Optionally, when allocating a second intranet IP as a floating IP to each cloud host in the cluster that needs to provide services to the outside through the internet, the allocating module 403 is specifically configured to: allocating a second intranet IP for each cloud host in the cluster which needs to provide services to the outside through the Internet; and associating the second intranet IP with the fixed IP of the cloud host to serve as the floating IP of the cloud host.
Optionally, the apparatus further comprises: an obtaining module 404, configured to obtain internet IPs of a cluster; the establishing module 405 is configured to establish a mapping relationship between multiple floating IPs and multiple ports of an internet IP.
Optionally, the apparatus further comprises: the storage module 406 is configured to store mapping relationships between a plurality of floating IPs and a plurality of ports of an internet IP.
Optionally, the apparatus further comprises: a constructing module 407, configured to construct a virtual local area network VLAN for multiple cloud hosts in a cluster; the obtaining module 404 is further configured to obtain a plurality of first intranet IPs and a plurality of second intranet IPs from the VLAN pool.
The apparatus of this embodiment may be configured to perform the method of any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 5, an electronic device 500 according to the embodiment may include: a memory 501 and a processor 502.
A memory 501 for storing program instructions.
The processor 502 is used for calling and executing the program instructions in the memory 501, and executing: receiving a network access request, wherein the network access request comprises a port address of an internet IP corresponding to a cloud host to be accessed; determining a floating IP address corresponding to a cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
Optionally, the processor 502 is further configured to allocate a first intranet IP to each cloud host in the cluster as a fixed IP of the cloud host; and allocating a second intranet IP as a floating IP for each cloud host in the cluster which needs to provide services to the outside through the Internet.
Optionally, when the processor 502 allocates one first intranet IP to each cloud host in the cluster as the fixed IP of the cloud host, the processor is specifically configured to: allocating a first intranet IP for each cloud host in the cluster; and binding the first intranet IP with the cloud host to serve as a fixed IP of the cloud host.
Optionally, when the processor 502 allocates a second intranet IP as a floating IP to each cloud host in the cluster that needs to provide services to the outside through the internet, the processor is specifically configured to: allocating a second intranet IP for each cloud host in the cluster which needs to provide services to the outside through the Internet; and associating the second intranet IP with the fixed IP of the cloud host to serve as the floating IP of the cloud host.
Optionally, the processor 502 is further configured to obtain an internet IP of the cluster; and establishing a mapping relation between a plurality of floating IPs and a plurality of ports of the Internet IPs.
Optionally, the processor 502 is further configured to store a mapping relationship between a plurality of floating IPs and a plurality of ports of an internet IP.
Optionally, the processor 502 is further configured to construct a virtual local area network VLAN for a plurality of cloud hosts in a cluster; and acquiring a plurality of first intranet IPs and a plurality of second intranet IPs from the VLAN pool.
The electronic device of this embodiment may be configured to perform the method of any of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The electronic device of this embodiment may be provided as a server, and implement the implementation processes of the cluster building and network access methods in the foregoing embodiments.
The present application also provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the method of any of the above embodiments.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A network access method, comprising:
receiving a network access request, wherein the network access request comprises a port address of an internet IP corresponding to a cloud host to be accessed;
determining a floating IP address corresponding to the cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs;
and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
2. The method of claim 1, further comprising:
allocating a first intranet IP to each cloud host in the cluster as a fixed IP of the cloud host;
and allocating a second intranet IP as a floating IP for each cloud host in the cluster which needs to provide services to the outside through the Internet.
3. The method according to claim 2, wherein the allocating a first intranet IP to each cloud host in the cluster as the fixed IP of the cloud host comprises:
allocating a first intranet IP for each cloud host in the cluster;
and binding the first intranet IP with the cloud host to serve as a fixed IP of the cloud host.
4. The method according to claim 2 or 3, wherein the allocating a second intranet IP as a floating IP for each cloud host in the cluster that needs to provide services to the outside through the internet comprises:
allocating a second intranet IP for each cloud host in the cluster which needs to provide services to the outside through the Internet;
and associating the second intranet IP with the fixed IP of the cloud host to serve as the floating IP of the cloud host.
5. The method of claim 2 or 3, further comprising:
acquiring an Internet Protocol (IP) of a cluster;
and establishing a mapping relation between a plurality of floating IPs and a plurality of ports of the Internet IPs.
6. The method of claim 5, further comprising:
and storing the mapping relation between the plurality of floating IPs and the plurality of ports of the Internet IP.
7. The method of claim 2, further comprising:
constructing a Virtual Local Area Network (VLAN) for a plurality of cloud hosts in a cluster;
and acquiring a plurality of first intranet IPs and a plurality of second intranet IPs from the VLAN pool.
8. A network access device, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a network access request which comprises a port address of an internet IP corresponding to a cloud host to be accessed;
the determining module is used for determining a floating IP address corresponding to the cloud host to be accessed according to the port address of the Internet IP and the preset mapping relation between a plurality of ports of the Internet IP and a plurality of floating IPs; and determining the cloud host to be accessed according to the floating IP address corresponding to the cloud host to be accessed, and the incidence relation between the plurality of floating IPs and the plurality of fixed IP addresses.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory, performing the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202011440730.5A 2020-12-10 2020-12-10 Network access method, device, electronic equipment and storage medium Pending CN112688917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011440730.5A CN112688917A (en) 2020-12-10 2020-12-10 Network access method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011440730.5A CN112688917A (en) 2020-12-10 2020-12-10 Network access method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112688917A true CN112688917A (en) 2021-04-20

Family

ID=75448260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011440730.5A Pending CN112688917A (en) 2020-12-10 2020-12-10 Network access method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112688917A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785612A (en) * 2022-05-10 2022-07-22 深信服科技股份有限公司 Cloud platform management method, device, equipment and medium
CN115914389A (en) * 2021-08-09 2023-04-04 北京字节跳动网络技术有限公司 Cloud service control system, method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878482A (en) * 2017-01-03 2017-06-20 新华三技术有限公司 Method for network address translation and device
US20180034769A1 (en) * 2016-08-01 2018-02-01 Big Switch Networks, Inc. Systems and methods for network address translation
US20180131605A1 (en) * 2016-11-10 2018-05-10 Sap Se Floating internet protocol for private networks
CN108156034A (en) * 2017-12-22 2018-06-12 武汉噢易云计算股份有限公司 A kind of message forwarding method and message forwarding system based on deep neural network auxiliary
US20180183750A1 (en) * 2016-12-28 2018-06-28 Alibaba Group Holding Limited Methods and devices for switching a virtual internet protocol address
CN109151095A (en) * 2018-11-01 2019-01-04 联想(北京)有限公司 Method and apparatus for network communication
CN111262960A (en) * 2020-01-15 2020-06-09 山东汇贸电子口岸有限公司 Public cloud elastic public network IP cluster implementation method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180034769A1 (en) * 2016-08-01 2018-02-01 Big Switch Networks, Inc. Systems and methods for network address translation
US20180131605A1 (en) * 2016-11-10 2018-05-10 Sap Se Floating internet protocol for private networks
US20180183750A1 (en) * 2016-12-28 2018-06-28 Alibaba Group Holding Limited Methods and devices for switching a virtual internet protocol address
CN106878482A (en) * 2017-01-03 2017-06-20 新华三技术有限公司 Method for network address translation and device
CN108156034A (en) * 2017-12-22 2018-06-12 武汉噢易云计算股份有限公司 A kind of message forwarding method and message forwarding system based on deep neural network auxiliary
CN109151095A (en) * 2018-11-01 2019-01-04 联想(北京)有限公司 Method and apparatus for network communication
CN111262960A (en) * 2020-01-15 2020-06-09 山东汇贸电子口岸有限公司 Public cloud elastic public network IP cluster implementation method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914389A (en) * 2021-08-09 2023-04-04 北京字节跳动网络技术有限公司 Cloud service control system, method and device, electronic equipment and storage medium
CN114785612A (en) * 2022-05-10 2022-07-22 深信服科技股份有限公司 Cloud platform management method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11637906B2 (en) Private service endpoints in isolated virtual networks
US9407570B2 (en) Method, apparatus, and system for allocating CDN volume
CN108924268B (en) Container cloud service system and pod creation method and device
US9246873B2 (en) Client-driven load balancing of dynamic IP address allocation
US20200007508A1 (en) On premises, remotely managed, host computers for virtual desktops
WO2016028927A1 (en) Methods and system for allocating an ip address for an instance in a network function virtualization (nfv) system
CN107342895A (en) A kind of network optimized approach of multi-tenant, system, computing device and storage medium
JP2018519687A (en) Multi-tenant aware dynamic host configuration protocol (DHCP) mechanism for cloud networking
US11710206B2 (en) Session coordination for auto-scaled virtualized graphics processing
CN103037023B (en) A kind of operation method of dummy machine system and dummy machine system
TW201517563A (en) Could gateway establishing and configuring system and method
CN112688917A (en) Network access method, device, electronic equipment and storage medium
JP2015503158A (en) Role instance reachability in the data center
CN111585887A (en) Communication method and device based on multiple networks, electronic equipment and storage medium
US20180248952A1 (en) Protocol independent storage discovery and enablement
CN104506368B (en) A kind of method and apparatus for being managed collectively switch device
US10944714B1 (en) Multi-factor domain name resolution
CN111343240B (en) Service request processing method and device, electronic equipment and storage medium
CN110636149B (en) Remote access method, device, router and storage medium
CN110365742B (en) Multi-active load balancing application creation method and device, computer equipment and storage medium
CN112583949A (en) VPC (virtual private network) public network access method and VPC equipment
CN106445410B (en) Storage device sharing method and system and intelligent gateway with system
CN109302505B (en) Data transmission method, system, device and storage medium
US20240095865A1 (en) Resource usage monitoring, billing and enforcement for virtual private label clouds
CN114625527A (en) Method, device, equipment and storage medium for processing connection allocation

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