CN111782322A - Intranet and extranet message communication server and system based on cloud desktop server - Google Patents
Intranet and extranet message communication server and system based on cloud desktop server Download PDFInfo
- Publication number
- CN111782322A CN111782322A CN202010596799.0A CN202010596799A CN111782322A CN 111782322 A CN111782322 A CN 111782322A CN 202010596799 A CN202010596799 A CN 202010596799A CN 111782322 A CN111782322 A CN 111782322A
- Authority
- CN
- China
- Prior art keywords
- server
- equipment
- intranet
- message
- extranet
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 63
- 238000004590 computer program Methods 0.000 claims description 9
- 238000000034 method Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 claims description 3
- 230000002457 bidirectional effect Effects 0.000 abstract description 2
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 230000003993 interaction Effects 0.000 abstract 1
- 230000007246 mechanism Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/452—Remote windowing, e.g. X-Window System, desktop virtualisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45579—I/O management, e.g. providing access to device drivers or storage
Abstract
The invention belongs to the field of cloud desktop message communication, and discloses an intranet and extranet message communication server and system based on a cloud desktop server, which are used for realizing information interaction between extranet equipment and intranet equipment. And establishing a message transfer station through the internal and external network message communication servers, and establishing a bidirectional information transmission relation between the public network terminal and the server of the internal network. Therefore, the communication from the external network to the internal network is realized by adopting the internal and external network message communication server instead of the public network ip, the public network ip resource is greatly saved, and the cost is saved.
Description
Technical Field
The invention belongs to the field of cloud desktop message communication, and particularly relates to an intranet and extranet message communication server and an intranet and extranet message communication system based on a cloud desktop server.
Background
Based on the existing large-scale cloud desktop virtualization technology, when a large number of cloud desktop terminals are deployed, cloud desktop server cluster environments also need to be established, and therefore a plurality of cloud desktop servers are needed, the cloud desktop servers respectively manage a part of cloud desktop terminals, but when the desktop terminals are deployed in a public network environment, the cloud desktop can directly communicate only when deployed in the public network environment, based on the problem of resource shortage of the current domestic public network IP, the cost required by renting the public network IP is high, when the number of the cloud desktop servers is large, the number of the public network IPs needing to be rented is large, the maintenance cost is high, and if the cloud desktop servers are deployed in an internal local area network, the cloud desktop terminals cannot communicate with the cloud desktop servers.
Disclosure of Invention
The invention aims to provide an intranet and extranet message communication server and an intranet and extranet message communication system based on a cloud desktop server, and aims to solve the problem that the current cloud desktop server and a cloud desktop terminal in the prior art cannot communicate with each other in an internal network and an external network respectively.
In order to realize the task, the invention adopts the following technical scheme:
an intranet and extranet message communication server based on a cloud desktop server comprises ID information of all extranet equipment and intranet equipment, wherein the extranet equipment and the intranet equipment can be one or more, and each extranet equipment and intranet equipment corresponds to unique ID information;
the server stores a first computer program, and when the first computer program is executed by a processor, the first computer program realizes one group or simultaneously realizes the communication between a plurality of groups of message sending external network equipment and message receiving internal network equipment in parallel, wherein the communication between any group of message sending external network equipment and message receiving internal network equipment is realized according to the following steps:
step 1: receiving and storing the communication message of the external network equipment, the ID information of the external network equipment and the ID information of the internal network equipment;
step 2: identifying ID information of intranet equipment, if the ID information of the intranet equipment exists, forwarding the communication message and the ID information of the extranet equipment to the intranet equipment, and executing the step 3; if the ID information of the intranet equipment does not exist, sending an error message to the extranet equipment, and ending;
and step 3: and (3) receiving the success message sent by the intranet equipment in the step (2) and the ID information of the extranet equipment in the step (1), identifying the ID information of the extranet equipment in the step (1), forwarding the success message to the extranet equipment in the step (1), and ending.
Further, the storage mode in step 1 is a message queue or a process pool.
An intranet and extranet message communication system based on a cloud desktop server comprises extranet equipment, intranet equipment, a server and a connecting channel;
the connection channel is used for realizing communication connection between each extranet device and each intranet device and the server, and each connection channel uniquely corresponds to one ID information;
the external network equipment is used for sending a communication message to the server through the connecting channel and receiving an error message or a success message forwarded by the server through the connecting channel;
the intranet equipment is used for receiving the communication message forwarded by the message communication server through the connection channel and sending a success message to the server through the connection channel;
the server is any one of the intranet and extranet message communication servers based on the cloud desktop server.
Furthermore, the connection channels are all TCP long connections.
Further, the external network device is a cloud desktop server of an external public network or a cloud desktop terminal of the external public network, and the internal network device is a cloud desktop server of an internal local area network or a cloud desktop terminal of the internal local area network.
Compared with the prior art, the invention has the following beneficial effects:
(1) the invention can save ip resources of the public network and save cost.
(2) Because the load of the server is limited, if a plurality of servers are needed, a plurality of public network ips are needed in the traditional mode, and the renting cost of the public network ips is high. By using the invention, a plurality of intranet servers can be managed by only one public network server, thereby saving the ip cost of the public network.
Drawings
Fig. 1 is a schematic diagram of an intranet and extranet messaging system based on a cloud desktop server in an embodiment.
Detailed Description
The technical terms appearing in the present invention are explained first:
relationship between external public network and internal local area network: the network environment is divided into an internal network environment and an external public network environment, wherein the internal network can directly access the external public network, but the external public network cannot access the internal network.
The message communication server and the cloud desktop public network server are both deployed on an external public network server and are deployed on the same physical machine, and essentially, the message communication module and the cloud desktop public network server program are both operated on the same physical environment.
The embodiment discloses an intranet and extranet message communication server based on a cloud desktop server, wherein the server comprises ID information of all extranet equipment and intranet equipment, the extranet equipment and the intranet equipment can be one or more, and each extranet equipment and intranet equipment corresponds to unique ID information;
the server stores a first computer program, and when the first computer program is executed by a processor, the first computer program realizes one group or simultaneously realizes the communication between a plurality of groups of message sending external network equipment and message receiving internal network equipment in parallel, wherein the communication between any group of message sending external network equipment and message receiving internal network equipment is realized according to the following steps:
step 1: receiving and storing the communication message of the external network equipment, the ID information of the external network equipment and the ID information of the internal network equipment;
step 2: identifying ID information of intranet equipment, if the ID information of the intranet equipment exists, forwarding the communication message and the ID information of the extranet equipment to the intranet equipment, and executing the step 3; if the ID information of the intranet equipment does not exist, sending an error message to the extranet equipment, and ending;
and step 3: and receiving a success message sent by the intranet equipment and the ID information of the extranet equipment in the step 1, identifying the ID information of the extranet equipment in the step 1, forwarding the success message to the extranet equipment in the step 1, and ending.
The cloud desktop server based intranet and extranet message communication system comprises an extranet device, an intranet device, a server and a connecting channel;
the connection channel is used for realizing communication connection between each extranet device and each intranet device and the server, and each connection channel uniquely corresponds to one ID information;
the external network equipment is used for sending a communication message to the server through the connecting channel and receiving an error message or a success message forwarded by the server through the connecting channel;
the intranet equipment is used for receiving the communication message forwarded by the message communication server through the connection channel and sending a success message to the server through the connection channel;
the server is any one of the intranet and extranet message communication server based on the cloud desktop server.
Specifically, in this embodiment, the current ID information of the extranet device and the current ID information of the intranet device are represented as keys, and the connection channel is a channel.
The storage space is used for storing the messages to be forwarded.
Specifically, the connection channels are TCP long connections, the TCP long connections support bidirectional data transmission, after channel connection is established between the internal and external network servers and the message communication server, message communication can be directly carried out with the message communication model, message communication of the internal and external network servers can be achieved through a forwarding mechanism of the message communication model, and network limitation is overcome.
Specifically, the storage space is a message queue, the message queue is a first-in first-out queue model, the message processing mechanism is used for specifying a message processing mode, the message processing speed is different according to the concurrency number set by the configuration file, the messages can be processed in parallel, the message forwarding efficiency is improved, the higher response speed is achieved, and therefore the message communication speed is improved.
Specifically, the storage space is a process pool or a thread pool, the messages are configured to be processed asynchronously, the parallel processing task advantage of the multi-core CPU is exerted, the messages can be forwarded and processed in parallel, the message forwarding efficiency is greatly improved, and the message processing performance is remarkably improved aiming at large number of links.
Specifically, the intranet and extranet message communication server is built based on an AMQP protocol.
Example 1
The system shown in fig. 1 includes a cloud desktop server deployed in a public network, a messaging server (i.e., a messaging model in the figure), a plurality of cloud desktop terminals, and a plurality of cloud desktop servers deployed in an intranet. In this scenario, the public network terminal needs to register in a server of the internal network, and cannot directly obtain the connection information between the internal server and the message communication model, so that the connection information between the internal server and the message communication model needs to be obtained by transferring through the public network server, and the public network server is used as a management server of the intranet server to store the information of the intranet server.
All the cloud desktop servers and exchange of the message communication model establish channel connection and generate unique identification keys, the message communication model registers all the cloud desktop servers on the exchange and generates cloud desktop server information, and the cloud desktop server information refers to a corresponding relation between the unique identification keys of the cloud desktop servers and the channel connection of the cloud desktop servers connected to the message communication server. The device that is connected to the messenger server will store this information in the messenger server. The exchange can judge which server the received information should be forwarded to according to the cloud desktop server information.
The cloud desktop server is used for managing the cloud desktop terminal. When the cloud desktop terminal needs to be registered to the cloud desktop server after being initialized, the cloud desktop terminal needs to forward relevant registration information through the external public network cloud desktop server, and at the moment, the cloud desktop terminal does not have information required for completely establishing channel connection with the message communication model. After the information of the registered cloud desktop server is obtained, channel connection can be established with the message communication model, a message can be sent to a specified cloud desktop terminal or a cloud desktop server through a unique identifier key in the information of the cloud desktop server, and the sent message carries the unique identifier of the cloud desktop terminal.
The cloud desktop terminal uses the unique identification key of the cloud desktop server, a message is sent through the channel connection established with the exchange of the message communication model, the exchange receives the message and puts the message into the message queue, the message communication model analyzes the message according to the message forwarding mechanism, the unique identification key of the cloud desktop server receiving the message is obtained, the channel connection established between the corresponding cloud desktop server and the exchange is obtained through traversing the registered cloud desktop server, and if the channel connection exists, the message is sent to the corresponding cloud desktop server through the channel connection. If not, returning error information.
After the cloud desktop server finishes information processing, according to the unique identifier key of the cloud desktop terminal carried by the message, the responding message is sent to a message queue in the exchange of the message communication model through the channel, the exchange still determines the corresponding channel connection according to the unique identifier of the cloud desktop terminal, and the corresponding message is sent to the cloud desktop terminal.
Specifically, exchange serves as a container for information exchange.
The switching method can realize the described functions by using one or more programming languages, such as Python, C + +, C and the like, and relates to the related fields of virtualization technology, desktop cloud computing and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (5)
1. An intranet and extranet message communication server based on a cloud desktop server is characterized in that the server comprises ID information of all extranet equipment and intranet equipment, the extranet equipment and the intranet equipment can be one or more, and each extranet equipment and intranet equipment corresponds to unique ID information;
the server stores a first computer program, and when the first computer program is executed by a processor, the first computer program realizes one group or simultaneously realizes the communication between a plurality of groups of message sending external network equipment and message receiving internal network equipment in parallel, wherein the communication between any group of message sending external network equipment and message receiving internal network equipment is realized according to the following steps:
step 1: receiving and storing the communication message of the external network equipment, the ID information of the external network equipment and the ID information of the internal network equipment;
step 2: identifying ID information of intranet equipment, if the ID information of the intranet equipment exists, forwarding the communication message and the ID information of the extranet equipment to the intranet equipment, and executing the step 3; if the ID information of the intranet equipment does not exist, sending an error message to the extranet equipment, and ending;
and step 3: and (3) receiving the success message sent by the intranet equipment in the step (2) and the ID information of the extranet equipment in the step (1), identifying the ID information of the extranet equipment in the step (1), forwarding the success message to the extranet equipment in the step (1), and ending.
2. The cloud desktop server-based intranet and extranet messaging server of claim 1, wherein the storage means in step 1 is a message queue or a process pool.
3. An intranet and extranet message communication system based on a cloud desktop server is characterized by comprising extranet equipment, intranet equipment, a server and a connecting channel;
the connection channel is used for realizing communication connection between each extranet device and each intranet device and the server, and each connection channel uniquely corresponds to one ID information;
the external network equipment is used for sending a communication message to the server through the connecting channel and receiving an error message or a success message forwarded by the server through the connecting channel;
the intranet equipment is used for receiving the communication message forwarded by the message communication server through the connection channel and sending a success message to the server through the connection channel;
the server is the intranet and extranet messaging server based on the cloud desktop server as claimed in any one of claims 1 or 2.
4. The cloud desktop server-based intranet and extranet messaging server of claim 3, wherein the connection channels are TCP long connections.
5. The cloud desktop server-based intranet and extranet messaging system of claim 3, wherein the extranet device is a cloud desktop server of an external public network or a cloud desktop terminal of the external public network, and the intranet device is a cloud desktop server of an intranet or a cloud desktop terminal of an intranet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010596799.0A CN111782322A (en) | 2020-06-28 | 2020-06-28 | Intranet and extranet message communication server and system based on cloud desktop server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010596799.0A CN111782322A (en) | 2020-06-28 | 2020-06-28 | Intranet and extranet message communication server and system based on cloud desktop server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111782322A true CN111782322A (en) | 2020-10-16 |
Family
ID=72760233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010596799.0A Pending CN111782322A (en) | 2020-06-28 | 2020-06-28 | Intranet and extranet message communication server and system based on cloud desktop server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111782322A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113709708A (en) * | 2021-08-20 | 2021-11-26 | 北京百度网讯科技有限公司 | Data transmission method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107800603A (en) * | 2017-07-31 | 2018-03-13 | 北京上和瑞科技有限公司 | Intranet user accesses the method and storage medium of headend equipment based on VPN |
CN109040334A (en) * | 2018-07-12 | 2018-12-18 | 山东师范大学 | Static Intranet mapping method, external network server, Intranet communication equipment and system |
CN110049059A (en) * | 2019-04-26 | 2019-07-23 | 深圳市网心科技有限公司 | A kind of outer net equipment and Intranet communication between devices method and relevant apparatus |
-
2020
- 2020-06-28 CN CN202010596799.0A patent/CN111782322A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107800603A (en) * | 2017-07-31 | 2018-03-13 | 北京上和瑞科技有限公司 | Intranet user accesses the method and storage medium of headend equipment based on VPN |
CN109040334A (en) * | 2018-07-12 | 2018-12-18 | 山东师范大学 | Static Intranet mapping method, external network server, Intranet communication equipment and system |
CN110049059A (en) * | 2019-04-26 | 2019-07-23 | 深圳市网心科技有限公司 | A kind of outer net equipment and Intranet communication between devices method and relevant apparatus |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113709708A (en) * | 2021-08-20 | 2021-11-26 | 北京百度网讯科技有限公司 | Data transmission method, device, equipment and storage medium |
CN113709708B (en) * | 2021-08-20 | 2024-03-22 | 北京百度网讯科技有限公司 | Data transmission method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11411897B2 (en) | Communication method and communication apparatus for message queue telemetry transport | |
CN111580995B (en) | Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene | |
CN108063813B (en) | Method and system for parallelizing password service network in cluster environment | |
CN113422842B (en) | Distributed power utilization information data acquisition system considering network load | |
CN103414579A (en) | Cross-platform monitoring system applicable to cloud computing and monitoring method thereof | |
US10609125B2 (en) | Method and system for transmitting communication data | |
CN110868349B (en) | Distributed high-concurrency data acquisition and processing method and system in Internet of things environment | |
CN105187327A (en) | Distributed message queue middleware | |
US8606908B2 (en) | Wake-up server | |
CN112788074A (en) | Data transmitting method, processing method, receiving method and equipment and storage medium | |
CN113468221A (en) | System integration method based on kafka message data bus | |
CN102457578A (en) | Distributed network monitoring method based on event mechanism | |
CN102137161B (en) | File-level data sharing and storing system based on fiber channel | |
CN112630557A (en) | Equipment state detection method, device, equipment and medium | |
CN108123826B (en) | Cross-region data interaction system and method | |
CN112068963B (en) | Distributed scheduling system of embedded system | |
CN1929463B (en) | Object request agent, method for processing message | |
CN111782322A (en) | Intranet and extranet message communication server and system based on cloud desktop server | |
CN102054213A (en) | Information integration method, device and system | |
CN113691466A (en) | Data transmission method, intelligent network card, computing device and storage medium | |
CN116471242A (en) | RDMA-based transmitting end, RDMA-based receiving end, data transmission system and data transmission method | |
CN108234595B (en) | Log transmission method and system | |
CN112187842B (en) | Local area network data processing system and local area network data processing method | |
CN114518833A (en) | Method, electronic device and computer program product for storage management | |
CN111541667A (en) | Method, equipment and storage medium for intersystem message communication |
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 |