CN106657180B - Information transmission method and device for cloud service, terminal equipment and system - Google Patents

Information transmission method and device for cloud service, terminal equipment and system Download PDF

Info

Publication number
CN106657180B
CN106657180B CN201510725873.3A CN201510725873A CN106657180B CN 106657180 B CN106657180 B CN 106657180B CN 201510725873 A CN201510725873 A CN 201510725873A CN 106657180 B CN106657180 B CN 106657180B
Authority
CN
China
Prior art keywords
information
virtual
host
agent
home agent
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.)
Active
Application number
CN201510725873.3A
Other languages
Chinese (zh)
Other versions
CN106657180A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510725873.3A priority Critical patent/CN106657180B/en
Publication of CN106657180A publication Critical patent/CN106657180A/en
Application granted granted Critical
Publication of CN106657180B publication Critical patent/CN106657180B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Abstract

According to the information transmission method for the cloud service based on the local agent, firstly, the local agent receives information sent by a virtual host which is carried on the same host machine with the local agent; then, analyzing the information to obtain a target address of the information; and finally, forwarding the information to a target server according to the target address. Compared with the prior art, in the application, the local agent and the virtual host are deployed on the same host, so that the information sent by the local agent can be received by the local agent in the same host without deploying external load balancing equipment and independent agent equipment, and then forwarded to the target server, the deployment and maintenance cost of the cloud service architecture is reduced, and meanwhile, the information is sent to the target server through the local agent without additional network equipment in the middle, so that almost no network delay exists.

Description

Information transmission method and device for cloud service, terminal equipment and system
Technical Field
The application relates to the technical field of electronics, in particular to an information transmission method for cloud services based on a local proxy, an information transmission device for cloud services based on a local proxy, an information transmission method for cloud services based on a virtual host and an information transmission device for cloud services based on a virtual host.
Background
In addition to providing general VM (Virtual Manufacturing) host services, general cloud service providers may also provide some basic component service programs, such as caches, databases, small file stores, message queues, and even SaaS services. Generally, in the architecture of these services, Proxy roles are implemented to play roles of data link protection, protocol forwarding, request control, network isolation, and the like. The Proxy upper layer also depends on load balancing technologies such as DNS, LVS or Haproxy. The data request of the user selects a Proxy through the load balancing device, then the data request is sent to the Proxy, and then the Proxy forwards the data request.
The current scheme has the following defects:
the data request and the response both pass through the load balancing device and the Proxy, the network bandwidth consumption is more (for example, Proxy outlet flow is Proxy inlet flow is service request packet flow + service response packet flow), and meanwhile, because the interface device is more, the network delay is heavier, and in addition, the deployment cost and the maintenance cost of the load balancing device and the Proxy are higher.
Disclosure of Invention
In view of the above problems, the present application provides an information transmission method for a cloud service based on a home agent, an information transmission apparatus for a cloud service based on a home agent, an information transmission method for a cloud service based on a virtual host, and an information transmission apparatus for a cloud service based on a virtual host.
The technical scheme adopted by the application is as follows:
the application provides an information transmission method for cloud service based on a local agent, which comprises the following steps:
the method comprises the steps that a local agent receives information sent by a virtual host machine which is carried on the same host machine with the local agent;
analyzing the information to obtain a target address of the information;
and forwarding the information to a target server according to the target address.
Optionally, the step of receiving, by the home agent, information sent by a virtual host mounted on the same host as the home agent includes:
the home agent receives information transmitted from a virtual host installed on the same host as the home agent via a virtual communication device.
Optionally, the step of receiving, by the home agent via a virtual communication device, information transmitted by a virtual host installed on the same host as the home agent includes:
monitoring a communication port of a virtual communication device which is carried on the same host machine with the local agent by the local agent, wherein the communication port is bound with a communication port of a specified virtual host machine on the host machine;
and the local agent receives the information sent by the virtual host through the communication port.
Optionally, the virtual communication device includes a virtual network card or a virtual process.
Optionally, all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
Optionally, only one local agent is set on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
Optionally, the step of receiving, by the home agent, information sent by a virtual host mounted on the same host as the home agent includes:
the method comprises the steps that a local agent receives information in a first data transmission protocol format sent by a virtual host machine which is carried on the same host machine with the local agent;
the first data transfer protocol comprises a data transfer protocol between the virtual host and the local agent;
before the step of forwarding the information to the target server according to the target address, the method further includes:
the local agent converts the information in the first data transmission protocol format into information in a second data transmission protocol format;
the second data transfer protocol comprises a data transfer protocol between the home agent and the server;
the step of forwarding the information to a target server according to the target address comprises:
and forwarding the information in the second data transmission protocol format to a target server according to the target address.
Optionally, the home agent integrates a plurality of data transfer protocols to convert the information between the plurality of data transfer protocols.
Optionally, the home agent integrates multiple data transmission protocols, and is implemented in the form of a plug-in.
Optionally, the information transmission method for cloud service based on the local agent further includes:
receiving response information returned by the target server;
and sending the response information to the virtual host.
The present application further provides an information transmission apparatus for cloud service based on a local agent, including:
the information receiving unit is used for receiving information sent by a virtual host machine which is carried on the same host machine with the local proxy by the local proxy;
the information analysis unit is used for analyzing the information to obtain a target address of the information;
and the information forwarding unit is used for forwarding the information to the target server according to the target address.
Optionally, the information receiving unit includes:
and a first information receiving subunit, configured to receive, by the home agent via the virtual communication device, information transmitted by the virtual host installed on the same host as the home agent.
Optionally, the first information receiving subunit includes:
the port monitoring subunit is used for monitoring a communication port of a virtual communication device which is carried on the same host machine with the local agent by the local agent, wherein the communication port is bound with a communication port of a specified virtual host machine on the host machine;
and the second information receiving subunit is used for receiving the information sent by the virtual host through the communication port by the local agent.
Optionally, the virtual communication device includes a virtual network card or a virtual process.
Optionally, all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
Optionally, only one local agent is set on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
Optionally, the information receiving unit includes:
the first protocol information receiving subunit is used for receiving information in a first data transmission protocol format sent by a virtual host machine which is carried on the same host machine with the local proxy by the local proxy;
the first data transfer protocol comprises a data transfer protocol between the virtual host and the local agent;
the information transmission apparatus for cloud service based on the home agent further includes:
a protocol conversion unit, configured to convert, by the home agent, the information in the first data transmission protocol format into information in a second data transmission protocol format;
the second data transfer protocol comprises a data transfer protocol between the home agent and the server;
the information forwarding unit includes:
and the second protocol information forwarding subunit is used for forwarding the information in the second data transmission protocol format to the target server according to the target address.
Optionally, the home agent integrates a plurality of data transfer protocols to convert the information between the plurality of data transfer protocols.
Optionally, the home agent integrates multiple data transmission protocols, and is implemented in the form of a plug-in.
Optionally, the information transmission apparatus for cloud service based on a local agent further includes:
a response information receiving unit, configured to receive response information returned by the target server;
and the response information sending unit is used for sending the response information to the virtual host.
The application also provides an information transmission method for cloud service based on the virtual host, which comprises the following steps:
the virtual host sends the information to a local proxy which is mounted on the same host machine as the virtual host, so that the information is transmitted to a target server through the local proxy.
Optionally, the step of sending, by the virtual host, information to the local agent mounted on the same host machine as the virtual host includes:
the virtual host sends information to a local agent mounted on the same host machine as the virtual host through a virtual communication device.
Optionally, the virtual communication device includes a virtual network card or a virtual process.
Optionally, all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
Optionally, only one local agent is set on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
Optionally, the home agent integrates a plurality of data transfer protocols to convert the information between the plurality of data transfer protocols.
Optionally, the home agent integrates multiple data transmission protocols, and is implemented in the form of a plug-in.
Optionally, the information transmission method for cloud services based on the virtual host further includes:
monitoring whether the communication between the virtual host and the local proxy is normal;
if not, sending the information to the agent cluster with load balance, and forwarding the information to the target server through the agent cluster.
The present application further provides an information transmission apparatus for cloud service based on a virtual host, including:
and the information sending unit is used for sending the information to a local proxy which is mounted on the same host machine as the virtual host machine by the virtual host machine so as to transmit the information to a target server through the local proxy.
Optionally, the information sending unit includes:
and the first information sending subunit is used for the virtual host to send the information to a local agent which is carried on the same host machine with the virtual host through a virtual communication device.
Optionally, the virtual communication device includes a virtual network card or a virtual process.
Optionally, all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
Optionally, only one local agent is set on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
Optionally, the home agent integrates a plurality of data transfer protocols to convert the information between the plurality of data transfer protocols.
Optionally, the home agent integrates multiple data transmission protocols, and is implemented in the form of a plug-in.
Optionally, the information transmission apparatus for cloud service based on a virtual host further includes:
the communication monitoring unit is used for monitoring whether the communication between the virtual host and the local proxy is normal or not;
and the load balancing information sending unit is used for sending the information to the proxy cluster with load balancing if the information is not sent to the target server, so that the information is forwarded to the target server through the proxy cluster.
Compared with the prior art, the method has the following advantages:
according to the information transmission method for the cloud service based on the local agent, firstly, the local agent receives information sent by a virtual host which is carried on the same host machine with the local agent; then, analyzing the information to obtain a target address of the information; and finally, forwarding the information to a target server according to the target address. Compared with the prior art, in the application, the local agent and the virtual host are deployed on the same host, so that the information sent by the local agent can be received by the local agent in the same host without deploying external load balancing equipment and independent agent equipment, and then forwarded to the target server.
Drawings
Fig. 1 is a flowchart of an embodiment of an information transmission method for cloud services based on a local proxy provided in the present application;
fig. 2 is a schematic diagram of an embodiment of an information transmission apparatus for cloud services based on a local proxy according to the present application;
fig. 3 is a flowchart of an embodiment of an information transmission method for cloud services based on a virtual host provided in the present application;
fig. 4 is a schematic diagram of an embodiment of an information transmission apparatus for cloud services based on a virtual host according to the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The present application provides an information transmission method for cloud services based on a local proxy, an information transmission device for cloud services based on a local proxy, an information transmission method for cloud services based on a virtual host, and an information transmission device for cloud services based on a virtual host, and embodiments of the present application are described in detail below with reference to the accompanying drawings in order.
Please refer to fig. 1, which is a flowchart illustrating an embodiment of an information transmission method for cloud services based on a local proxy according to the present application, the method includes the following steps:
step S101: and the local proxy receives the information sent by the virtual host machine carried on the same host machine with the local proxy.
In this step, the local proxy receives information sent by the virtual host loaded on the same host machine as the local proxy.
It should be noted that the information is a broad concept, and generally refers to computer data and signals transmitted through a network, and is not limited to any one data transmission protocol. In one embodiment provided herein, the information includes request information, such as access request information, login request information, read request information, storage request information, and the like.
In an embodiment provided by the application, a service end of a cloud service is provided with a plurality of hosts and servers, each host is provided with a plurality of virtual hosts, each virtual host is a virtualized host which divides a certain disk space on a network server for a user to place a site, an application component and the like and provides necessary site functions and data storage and transmission functions, a real physical computer (host) is divided into a plurality of logical storage units by using a special software and hardware technology, each unit has no physical entity, but each logical storage unit can work on the network like the real physical host, and has an independent domain name, an IP address (or a shared IP address) and a complete Internet server function. The technology is a technology which is used by an internet server and saves the hardware cost of the server, the virtual host technology is mainly applied to multiple services such as HTTP, FTP, EMAIL and the like, a certain or all service contents of one server are logically divided into a plurality of service units and are externally represented as a plurality of servers, and therefore the hardware resources of the servers are fully utilized.
The host is mainly used for deploying the virtual host, the server is used for storing data resources such as a database and the like, when a user uses cloud services, the user accesses the virtual host and needs to call the data resources through the intranet from the server by the virtual host, in the prior art, the resources are called from the server through an agent cluster outside the host, and as the number of the virtual machines on the host is large, a load balancing device balancing system and intranet network overhead are often required to be additionally deployed.
In the application, the network deployment scheme in the prior art is avoided, a local agent is virtualized and is carried in a host, and meanwhile, a load balancing device is not deployed any more, information sent by a virtual host carried on the same host as the local agent is received through the local agent, and a server is accessed through the local agent to call resources from the server.
In one embodiment provided by the present application, only one home agent is provided on the same host, and all virtual hosts mounted on the same host with the home agent communicate with the server through the home agent.
In an embodiment provided by the present application, the step of receiving, by the home agent, information sent by a virtual host installed on the same host as the home agent includes:
the home agent receives information transmitted from a virtual host installed on the same host as the home agent via a virtual communication device.
The virtual communication device is used to communicate the virtual host with the local proxy, so that the virtual host communicates with the local proxy, and the virtual communication device may be a virtual network card or a virtual process.
For example: and constructing a virtual network card on the host machine, binding the virtual network card with the communication port of the local agent and simultaneously binding with the intranet communication port of the designated virtual machine on the host machine, so that when the virtual machine accesses an intranet, all information of the virtual machine is directly routed to the local agent by the virtual network card, and the local agent receives the information.
In one embodiment of the present application, the step of receiving, by the home agent via the virtual communication device, information transmitted by the virtual host installed on the same host as the home agent includes:
the method comprises the steps that a local agent monitors a communication port of a virtual communication device of a specified virtual host machine, wherein the communication port of the virtual communication device is carried on the same host machine with the local agent;
and the local agent receives the information sent by the virtual host through the communication port.
In one embodiment provided herein, all information sent by the virtual host through the virtual communication device is routed directly to the home agent.
In an embodiment provided by the present application, when the virtual host sends information, the virtual host may open a data link through a predefined intranet IP address and routing rule, and then route the information to the local agent through the virtual communication device, for example, through a statement
route add-host 192.168.1.2dev eth0:0
Routing information of a specified address is sent through a specified virtual network card, which is a mature implementation method in the prior art and is not described herein again, and all of which are within the protection scope of the present application.
Step S102: and analyzing the information to obtain the target address of the information.
In step S101, the home agent receives information sent by the virtual host installed on the same host as the home agent, and then analyzes the information to obtain a target address of the information.
In an embodiment provided by the present application, the virtual host needs to send request information to invoke data resources on the intranet server, where the request information includes a target address of a target server, and therefore, in this step, the information needs to be analyzed to obtain the target address of the information, and the local agent is provided to send the information to the target server.
This is a mature technical means in the prior art, and is not described herein in detail, and any prior art that can achieve the above-mentioned objectives is within the scope of the present application.
Step S103: and forwarding the information to a target server according to the target address.
Through step S102, the information is analyzed, a destination address of the information is obtained, and then the information may be forwarded to a destination server according to the destination address.
By this, through steps S101 to S103, the information transmission flow for the cloud service based on the home agent is completed.
In view of the above, in an embodiment provided in the present application, the local proxy integrates multiple data transmission protocols to convert the information between the multiple data transmission protocols, so as to simultaneously receive and transmit data of multiple protocols, thereby improving compatibility and applicability of the method.
The local agent in the present application may be packaged as an independent software, or may be integrated into other clients to operate, and the present application does not limit an implementation manner thereof, and any implementation manner in the prior art is within the protection scope of the present application as long as the information transmission method for cloud services based on the local agent provided by the present application is adopted.
The mode that the local agent integrates various data transmission protocols can be realized in a plug-in mode, the corresponding data transmission protocols are converted through the plug-in, the corresponding protocol conversion function can be realized only by developing the corresponding plug-in different operating environments, the whole system is not required to be upgraded, and the method has the characteristics of flexibility, easiness in realization, simplicity in operation and maintenance, convenience in management and the like, is a mature technical means in the prior art, is not repeated herein, and is within the protection range of the application.
In an embodiment provided by the present application, the step of receiving, by the home agent, information sent by a virtual host installed on the same host as the home agent includes:
the method comprises the steps that a local agent receives information in a first data transmission protocol format sent by a virtual host machine which is carried on the same host machine with the local agent;
the first data transfer protocol comprises a data transfer protocol between the virtual host and the local agent;
before the step of forwarding the information to the target server according to the target address, the method further includes:
the local agent converts the information in the first data transmission protocol format into information in a second data transmission protocol format;
the second data transfer protocol comprises a data transfer protocol between the home agent and the server;
the step of forwarding the information to a target server according to the target address comprises:
and forwarding the information in the second data transmission protocol format to a target server according to the target address.
In an embodiment provided by the present application, the virtual host needs to invoke data resources on an intranet server, and therefore, the information transmission method for cloud services based on the local agent further includes the following steps:
receiving response information returned by the target server;
and sending the response information to the virtual host.
The sending of the response message to the virtual host is performed by returning the route of receiving the message to the virtual host, for example, sending the response message to the virtual host through a virtual communication device, and therefore, the detailed process is not described herein, and reference may be made to the above process of receiving the message, which is within the protection scope of the present application.
Compared with the prior art, in the application, the local agent and the virtual host are deployed on the same host, so that the information sent by the local agent can be received by the local agent in the same host without deploying external load balancing equipment and independent agent equipment, and then forwarded to the target server.
In the above, an embodiment of an information transmission method for a cloud service based on a local agent is provided.
In the embodiment, the information transmission method for the cloud service based on the local proxy is provided, and correspondingly, the application also provides an information transmission device for the cloud service based on the local proxy. Please refer to fig. 2, which is a schematic diagram of an embodiment of an information transmission apparatus for cloud services based on a home agent according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The information transmission device for the cloud service based on the local proxy provided by the embodiment comprises: an information receiving unit 101, configured to receive, by a home agent, information sent by a virtual host installed on the same host as the home agent; an information analyzing unit 102, configured to analyze the information to obtain a target address of the information; an information forwarding unit 103, configured to forward the information to the target server according to the target address.
Optionally, the information receiving unit 101 includes:
and a first information receiving subunit, configured to receive, by the home agent via the virtual communication device, information transmitted by the virtual host installed on the same host as the home agent.
Optionally, the first information receiving subunit includes:
the port monitoring subunit is used for monitoring a communication port of a virtual communication device of a virtual host machine carried on the same host machine with the local agent by the local agent;
and the second information receiving subunit is used for receiving the information sent by the virtual host through the communication port by the local agent.
Optionally, the virtual communication device includes a virtual network card or a virtual process.
Optionally, all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
Optionally, only one local agent is set on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
Optionally, the information receiving unit 101 includes:
the first protocol information receiving subunit is used for receiving information in a first data transmission protocol format sent by a virtual host machine which is carried on the same host machine with the local proxy by the local proxy;
the first data transfer protocol comprises a data transfer protocol between the virtual host and the local agent;
the information transmission apparatus for cloud service based on the home agent further includes:
a protocol conversion unit, configured to convert, by the home agent, the information in the first data transmission protocol format into information in a second data transmission protocol format;
the second data transfer protocol comprises a data transfer protocol between the home agent and the server;
the information forwarding unit 103 includes:
and the second protocol information forwarding subunit is used for forwarding the information in the second data transmission protocol format to the target server according to the target address.
Optionally, the home agent integrates a plurality of data transfer protocols to convert the information between the plurality of data transfer protocols.
Optionally, the home agent integrates multiple data transmission protocols, and is implemented in the form of a plug-in.
Optionally, the information transmission apparatus for cloud service based on a local agent further includes:
a response information receiving unit 101, configured to receive response information returned by the target server;
and the response information sending unit is used for sending the response information to the virtual host.
In the above, an embodiment of an information transmission apparatus for cloud service based on a local agent is provided.
The present application further provides an information transmission method for cloud services based on a virtual host, where an implementation subject of the method is the virtual host, and the method corresponds to the information transmission method for cloud services based on a local proxy, where the implementation subject is the local proxy, and is based on the same general inventive concept, so that reference is made to the above-mentioned embodiment of the information transmission method for cloud services based on a local proxy for some relevant parts, which is not repeated here, but only briefly described here.
Please refer to fig. 3, which is a flowchart illustrating an embodiment of an information transmission method for cloud services based on a virtual host according to the present application, the method includes the following steps:
step S201: the virtual host sends the information to a local proxy which is mounted on the same host machine as the virtual host, so that the information is transmitted to a target server through the local proxy.
Firstly, after receiving the operation or access of a user, the virtual host judges whether intranet resources need to be called or accessed, for example, whether data needs to be read from an intranet server or written into the intranet server; and if so, generating corresponding information. Then, the virtual host sends the information to a local proxy mounted on the same host machine as the virtual host, so that the information is transmitted to a target server through the local proxy.
It should be noted that, the above only illustrates the manner of generating the information, and does not limit the protection scope of the present application, and the information generated by other manners is also within the protection scope of the present application, and is not described herein again.
In an embodiment provided by the present application, the step of sending, by the virtual host, information to the home agent mounted on the same host as the virtual host includes:
the virtual host sends information to a local proxy which is mounted on the same host machine as the virtual host through a virtual communication device, and all information sent by the virtual host through the virtual communication device is directly routed to the local proxy.
The virtual communication device includes a virtual network card or a virtual process, and reference may be made to the above description of an embodiment of an information transmission method for cloud services based on a local agent, which is not described herein again.
In one embodiment provided by the present application, only one home agent is provided on the same host, and all virtual hosts mounted on the same host with the home agent communicate with the server through the home agent.
In one embodiment provided herein, the home agent integrates multiple data transfer protocols to translate the information between the multiple data transfer protocols.
In one embodiment provided by the application, the local proxy integrates a plurality of data transmission protocols and is realized in a plug-in mode.
In view of that abnormal information transmission may be caused by abnormal communication between the virtual host and the local proxy, in order to improve disaster tolerance capability of the information transmission method for cloud services based on the virtual host provided by the present application, in an embodiment provided by the present application, the information transmission method for cloud services based on the virtual host further includes:
monitoring whether the communication between the virtual host and the local proxy is normal;
if not, sending the information to the agent cluster with load balance, and forwarding the information to the target server through the agent cluster.
By the method, disaster tolerance can be realized by means of a traditional cloud service network architecture configured with the load balancing equipment, and compared with the prior art, the system stability is higher and the fault tolerance is higher due to the fact that the load balancing scheme is added on the basis of the method.
In the foregoing, an embodiment of an information transmission method for cloud services based on a virtual host is provided.
In the foregoing embodiment, an information transmission method for cloud services based on a virtual host is provided, and correspondingly, the present application also provides an information transmission apparatus for cloud services based on a virtual host. Please refer to fig. 4, which is a schematic diagram of an embodiment of an information transmission apparatus for cloud services based on a virtual host according to the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
The information transmission device for the cloud service based on the virtual host provided by the embodiment comprises: an information sending unit 201, configured to send information to a local proxy mounted on the same host as the virtual host, so as to transmit the information to a target server through the local proxy.
Optionally, the information sending unit 201 includes:
and the first information sending subunit is used for the virtual host to send the information to a local agent which is carried on the same host machine with the virtual host through a virtual communication device.
Optionally, the virtual communication device includes a virtual network card or a virtual process.
Optionally, all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
Optionally, only one local agent is set on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
Optionally, the home agent integrates a plurality of data transfer protocols to convert the information between the plurality of data transfer protocols.
Optionally, the home agent integrates multiple data transmission protocols, and is implemented in the form of a plug-in.
Optionally, the information transmission apparatus for cloud service based on a virtual host further includes:
the communication monitoring unit is used for monitoring whether the communication between the virtual host and the local proxy is normal or not;
and the load balancing information sending unit is used for sending the information to the proxy cluster with load balancing if the information is not sent to the target server, so that the information is forwarded to the target server through the proxy cluster.
In the foregoing, an embodiment of an information transmission apparatus for cloud service based on a virtual host is provided.
The application further provides an information transmission system for the cloud service, which comprises a host machine and a server, wherein the host machine is provided with a plurality of virtual host machines, the host machine is provided with an information transmission device for the cloud service based on the local proxy, and the information transmission device for the cloud service based on the virtual host machines.
Since the host of the information transmission system for cloud services is configured with the information transmission device for cloud services based on the local proxy provided by the present application and the information transmission device for cloud services based on the virtual host provided by the present application, please refer to the above description of the embodiment of the information transmission device for cloud services based on the local proxy and the above description of the embodiment of the information transmission device for cloud services based on the virtual host for relevant points, and details thereof are not repeated here.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (30)

1. An information transmission method for cloud service based on a local agent is characterized by comprising the following steps:
the method comprises the steps that a local agent receives request information sent by a virtual host machine which is carried on the same host machine with the local agent;
analyzing the request information to obtain a target address of the request information;
forwarding the request information to a target server according to the target address;
the method further comprises the following steps:
receiving response information returned by the target server;
sending the response information to the virtual host;
accessing the target server through the local agent, invoking a resource from the target server;
wherein the home agent is integrated with a plurality of data transfer protocols to convert the request information and the response information between the plurality of data transfer protocols.
2. The method for transmitting information for cloud services according to claim 1, wherein the step of the home agent receiving information transmitted by a virtual host installed on the same host as the home agent includes:
the home agent receives information transmitted from a virtual host installed on the same host as the home agent via a virtual communication device.
3. The method for transmitting information for a cloud service using a home agent according to claim 2, wherein the step of the home agent receiving, via a virtual communication device, information transmitted by a virtual host installed on the same host as the home agent includes:
monitoring a communication port of a virtual communication device which is carried on the same host machine with the local agent by the local agent, wherein the communication port is bound with a communication port of a specified virtual host machine on the host machine;
and the local agent receives the information sent by the virtual host through the communication port.
4. The local-agent-based information transmission method for the cloud service according to claim 2, wherein the virtual communication device includes a virtual network card or a virtual process.
5. The home agent-based information transmission method for a cloud service according to claim 2, wherein all information sent by the virtual host through the virtual communication device is directly routed to the home agent.
6. The method as claimed in claim 1, wherein only one home agent is installed on the same host, and all virtual hosts installed on the same host with the home agent communicate with the server through the home agent.
7. The method for transmitting information for cloud services according to claim 1, wherein the step of the home agent receiving information transmitted by a virtual host installed on the same host as the home agent includes:
the method comprises the steps that a local agent receives information in a first data transmission protocol format sent by a virtual host machine which is carried on the same host machine with the local agent;
the first data transfer protocol comprises a data transfer protocol between the virtual host and the local agent;
before the step of forwarding the information to the target server according to the target address, the method further includes:
the local agent converts the information in the first data transmission protocol format into information in a second data transmission protocol format;
the second data transfer protocol comprises a data transfer protocol between the home agent and the server;
the step of forwarding the information to a target server according to the target address comprises:
and forwarding the information in the second data transmission protocol format to a target server according to the target address.
8. The information transmission method for the cloud service based on the home agent according to claim 1, wherein the home agent is integrated with a plurality of data transmission protocols and is implemented in a form of a plug-in.
9. An information transmission apparatus for cloud service based on a home agent, comprising:
the information receiving unit is used for receiving request information sent by a virtual host machine which is carried on the same host machine with the local proxy by the local proxy;
the information analysis unit is used for analyzing the request information to obtain a target address of the request information;
the information forwarding unit is used for forwarding the request information to a target server according to the target address;
a response information receiving unit, configured to receive response information returned by the target server;
a response information sending unit, configured to send the response information to the virtual host;
the local proxy is used for accessing the server and calling resources from the server; the home agent integrates a plurality of data transfer protocols to translate the information between the plurality of data transfer protocols.
10. The home agent-based information transmission apparatus for cloud services according to claim 9, wherein the information receiving unit includes:
and a first information receiving subunit, configured to receive, by the home agent via the virtual communication device, information transmitted by the virtual host installed on the same host as the home agent.
11. The home agent-based information transfer apparatus for cloud services according to claim 10, wherein the first information receiving subunit includes:
the port monitoring subunit is used for monitoring a communication port of a virtual communication device which is carried on the same host machine with the local agent by the local agent, wherein the communication port is bound with a communication port of a specified virtual host machine on the host machine;
and the second information receiving subunit is used for receiving the information sent by the virtual host through the communication port by the local agent.
12. The local-agent-based information transmission apparatus for cloud services according to claim 10, wherein the virtual communication apparatus includes a virtual network card or a virtual process.
13. The home agent-based information transfer apparatus for cloud services according to claim 10, wherein all information sent by the virtual host through the virtual communication apparatus is directly routed to the home agent.
14. The information transfer apparatus for a cloud service using a home agent according to claim 9, wherein only one home agent is provided on the same host, and all virtual hosts mounted on the same host with the home agent communicate with the server through the home agent.
15. The home agent-based information transmission apparatus for cloud services according to claim 9, wherein the information receiving unit includes:
the first protocol information receiving subunit is used for receiving information in a first data transmission protocol format sent by a virtual host machine which is carried on the same host machine with the local proxy by the local proxy;
the first data transfer protocol comprises a data transfer protocol between the virtual host and the local agent;
the information transmission apparatus for cloud service based on the home agent further includes:
a protocol conversion unit, configured to convert, by the home agent, the information in the first data transmission protocol format into information in a second data transmission protocol format;
the second data transfer protocol comprises a data transfer protocol between the home agent and the server;
the information forwarding unit includes:
and the second protocol information forwarding subunit is used for forwarding the information in the second data transmission protocol format to the target server according to the target address.
16. The home agent-based information transfer apparatus for cloud services according to claim 9, wherein the home agent is integrated with a plurality of data transfer protocols, and is implemented in a form of a plug-in.
17. An information transmission method for cloud services based on a virtual host, comprising:
the virtual host sends the request information to a local agent which is carried on the same host machine as the virtual host, so that the information is transmitted to a target server through the local agent;
the method further comprises the following steps:
the virtual host receives response information returned by the target server and sent by the local agent;
accessing the target server through the local agent, invoking a resource from the target server;
wherein the home agent is integrated with a plurality of data transmission protocols to convert the request information and the response information between the plurality of data transmission protocols.
18. The information transmission method for the cloud service based on the virtual machine according to claim 17, wherein the step of the virtual machine transmitting information to the local agent mounted on the same host machine as the virtual machine includes:
the virtual host sends information to a local agent mounted on the same host machine as the virtual host through a virtual communication device.
19. The virtual host-based information transmission method for the cloud service according to claim 18, wherein the virtual communication device includes a virtual network card or a virtual process.
20. The information transmission method for a cloud service based on a virtual machine according to claim 18, wherein all information sent by the virtual machine through the virtual communication means is directly routed to the home agent.
21. The information transmission method for cloud services based on a virtual host according to claim 17, wherein only one local agent is provided on the same host, and all virtual hosts mounted on the same host with the local agent communicate with the server through the local agent.
22. The information transmission method for the cloud service based on the virtual host according to claim 17, wherein the local agent is integrated with a plurality of data transmission protocols, and is implemented in a form of a plug-in.
23. The information transmission method for the cloud service based on the virtual host according to claim 17, further comprising:
monitoring whether the communication between the virtual host and the local proxy is normal;
if not, sending the information to the agent cluster with load balance, and forwarding the information to the target server through the agent cluster.
24. An information transmission apparatus for cloud service based on a virtual host, comprising:
the information sending unit is used for sending the request information to a local proxy which is carried on the same host machine as the virtual host machine by the virtual host machine so as to transmit the information to a target server through the local proxy;
the virtual host is used for receiving response information returned by the target server and sent by the local agent; the local agent is used for accessing the target server and calling resources from the target server; the home agent integrates a plurality of data transfer protocols to translate the information between the plurality of data transfer protocols.
25. The information transmission apparatus for a cloud service based on a virtual host according to claim 24, wherein the information sending unit includes:
and the first information sending subunit is used for the virtual host to send the information to a local agent which is carried on the same host machine with the virtual host through a virtual communication device.
26. The virtual host-based information transmission apparatus for cloud services according to claim 25, wherein the virtual communication apparatus includes a virtual network card or a virtual process.
27. The virtual host-based information transfer apparatus for cloud services according to claim 25, wherein all information sent by the virtual host through the virtual communication apparatus is directly routed to the home agent.
28. The information transfer apparatus for a cloud service based on a virtual host according to claim 24, wherein only one home agent is provided on the same host, and all virtual hosts mounted on the same host with the home agent communicate with the server through the home agent.
29. The information transfer apparatus for a cloud service based on a virtual host of claim 24, wherein the home agent is integrated with a plurality of data transfer protocols, and is implemented in a form of a plug-in.
30. The information transfer apparatus for a cloud service based on a virtual host according to claim 24, further comprising:
the communication monitoring unit is used for monitoring whether the communication between the virtual host and the local proxy is normal or not;
and the load balancing information sending unit is used for sending the information to the proxy cluster with load balancing if the information is not sent to the target server, so that the information is forwarded to the target server through the proxy cluster.
CN201510725873.3A 2015-10-29 2015-10-29 Information transmission method and device for cloud service, terminal equipment and system Active CN106657180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510725873.3A CN106657180B (en) 2015-10-29 2015-10-29 Information transmission method and device for cloud service, terminal equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510725873.3A CN106657180B (en) 2015-10-29 2015-10-29 Information transmission method and device for cloud service, terminal equipment and system

Publications (2)

Publication Number Publication Date
CN106657180A CN106657180A (en) 2017-05-10
CN106657180B true CN106657180B (en) 2021-08-24

Family

ID=58830447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510725873.3A Active CN106657180B (en) 2015-10-29 2015-10-29 Information transmission method and device for cloud service, terminal equipment and system

Country Status (1)

Country Link
CN (1) CN106657180B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733814B (en) * 2017-09-15 2021-01-08 武汉市工程科学技术研究院 Enterprise service resource message distribution system and method based on cloud server and virtual system
CN108021462B (en) * 2017-12-08 2019-06-04 北京百度网讯科技有限公司 Method and apparatus for calling cloud service
CN108228318B (en) * 2017-12-29 2021-08-06 优刻得科技股份有限公司 Method, host, system and storage medium for communication between cloud container and management device
CN110300131B (en) * 2018-03-21 2022-02-15 北京金风科创风电设备有限公司 Routing method, device, equipment and system for multiple services of wind power plant
CN109831502B (en) * 2019-01-30 2022-02-25 厦门鑫点击网络科技股份有限公司 Construction method of novel website cloud virtual host framework
CN112073358B (en) * 2019-06-11 2022-08-16 易保网络技术(上海)有限公司 Protocol conversion processing method and device based on Kubernetes
CN110365694B (en) * 2019-07-23 2022-07-05 中国工商银行股份有限公司 System and method for synchronous processing of data between virtual host and real host
CN111294399B (en) * 2020-02-04 2023-06-23 网宿科技股份有限公司 Data transmission method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682242A (en) * 2011-03-18 2012-09-19 丛林网络公司 Security enforcement in virtualized systems
CN103491203A (en) * 2013-09-09 2014-01-01 北京三快在线科技有限公司 Virtualization DHCP service method, device, system and server
CN103581039A (en) * 2013-11-08 2014-02-12 西安电子科技大学宁波信息技术研究院 Dynamic load balancing structure of server cluster and application method thereof
CN103870297A (en) * 2012-12-14 2014-06-18 北京华胜天成科技股份有限公司 Performance data collection system and method of virtual machine in cloud computing environment
CN104113879A (en) * 2014-08-13 2014-10-22 成都西加云杉科技有限公司 WiFi communication system deployed with cloud ACs (access controllers) and communication method adopting WiFi communication system deployed with cloud ACs
CN104202388A (en) * 2014-08-27 2014-12-10 福建富士通信息软件有限公司 Automatic load balancing system based on cloud platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682242A (en) * 2011-03-18 2012-09-19 丛林网络公司 Security enforcement in virtualized systems
CN103870297A (en) * 2012-12-14 2014-06-18 北京华胜天成科技股份有限公司 Performance data collection system and method of virtual machine in cloud computing environment
CN103491203A (en) * 2013-09-09 2014-01-01 北京三快在线科技有限公司 Virtualization DHCP service method, device, system and server
CN103581039A (en) * 2013-11-08 2014-02-12 西安电子科技大学宁波信息技术研究院 Dynamic load balancing structure of server cluster and application method thereof
CN104113879A (en) * 2014-08-13 2014-10-22 成都西加云杉科技有限公司 WiFi communication system deployed with cloud ACs (access controllers) and communication method adopting WiFi communication system deployed with cloud ACs
CN104202388A (en) * 2014-08-27 2014-12-10 福建富士通信息软件有限公司 Automatic load balancing system based on cloud platform

Also Published As

Publication number Publication date
CN106657180A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106657180B (en) Information transmission method and device for cloud service, terminal equipment and system
CN109561171B (en) Configuration method and device of virtual private cloud service
US20160261508A1 (en) Load balancing for a virtual networking system
CN112104754B (en) Network proxy method, system, device, equipment and storage medium
CN106572197B (en) Network address translation method, device and system
CN105554065A (en) Method, conversion unit and application unit for message processing
US11032202B2 (en) Load balancing in data hosting systems
CN110460457B (en) Data transmission method and device
US10230795B2 (en) Data replication for a virtual networking system
US11777897B2 (en) Cloud infrastructure resources for connecting a service provider private network to a customer private network
US11627169B2 (en) Network-based Media Processing (NBMP) workflow management through 5G Framework for Live Uplink Streaming (FLUS) control
KR101682513B1 (en) Dns proxy service for multi-core platforms
CN110545230B (en) Method and device for forwarding VXLAN message
US20180248952A1 (en) Protocol independent storage discovery and enablement
CN113765801B (en) Message processing method and device applied to data center, electronic equipment and medium
US9929951B1 (en) Techniques for using mappings to manage network traffic
CN113179295B (en) Message processing method and device
CN115987990A (en) Multi-cluster load balancing method and device, electronic equipment and storage medium
CN115021831A (en) Weak network testing method, device, system, equipment and storage medium
EP3967023B1 (en) Web application wrapper
JP2023522785A (en) Harmony Comprehensive Proxy Service
US11910412B2 (en) Media sink capabilities description
CN113452539B (en) Source station switching method and device, electronic equipment and storage medium
US20230396579A1 (en) Cloud infrastructure resources for connecting a service provider private network to a customer private network
JP2020058011A (en) Gateway device, network system, control method and program

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