CN116112560A - Data uplink and proxy method and system based on Reactive mechanism - Google Patents

Data uplink and proxy method and system based on Reactive mechanism Download PDF

Info

Publication number
CN116112560A
CN116112560A CN202310374053.9A CN202310374053A CN116112560A CN 116112560 A CN116112560 A CN 116112560A CN 202310374053 A CN202310374053 A CN 202310374053A CN 116112560 A CN116112560 A CN 116112560A
Authority
CN
China
Prior art keywords
machine room
local
service
request
reverse proxy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310374053.9A
Other languages
Chinese (zh)
Other versions
CN116112560B (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.)
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Original Assignee
Foshan Power Supply Bureau of Guangdong Power Grid Corp
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 Foshan Power Supply Bureau of Guangdong Power Grid Corp filed Critical Foshan Power Supply Bureau of Guangdong Power Grid Corp
Priority to CN202310374053.9A priority Critical patent/CN116112560B/en
Publication of CN116112560A publication Critical patent/CN116112560A/en
Application granted granted Critical
Publication of CN116112560B publication Critical patent/CN116112560B/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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2895Intermediate processing functionally located close to the data provider application, e.g. reverse proxies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of big data interaction, and discloses a data uplink and proxy method and a system based on a Reactive mechanism.

Description

Data uplink and proxy method and system based on Reactive mechanism
Technical Field
The invention relates to the technical field of big data interaction, in particular to a data uplink and proxy method and system based on a Reactive mechanism.
Background
The more perfect the informatization of the current power grid is, various dispatching application systems cover aspects of dispatching daily operation and management. Many business systems of local regulation are integrated into a development trend in a provincial way after going through production operation and actual verification for a period of time and are intensively deployed into a central regulation server. And the system service deployed in the medium-speed environment integrates larger organization personnel and authority data and is re-opened to office networks of various places for use. This allows some of the ground market mature system experience to be quickly propagated to other ground markets.
Meanwhile, the research and practice of new informationized intelligent business are never stopped by the ground call. In some existing informatization processes, the ground call is considered along the intelligent direction, more and more automatic execution and behavior agent system designs are provided, the scheduling workload is further reduced, the behavior operation is assisted to be regulated and controlled, the proportion of misoperation and delayed operation is reduced, and the power grid management level is further improved.
Under the current overall system environment and network environment, the behavior agent type system application of the ground adjustment system faces higher network environment requirements and more complex system architecture requirements. Behavioral agents often run in a local office network, replacing real-world personnel operating systems deployed in a central server environment, and additionally requiring the ability to rely on data analysis and decision-assistance from a local server. Therefore, the service network is often centrally tuned at the same time, and functions of the two-side services are integrated. However, in the system environment where networks are not communicated, data interaction between systems is difficult to complete, so that the expandability of uplink data of a local call is low, a service agent program is complex, and risks of misoperation and missed operation are increased.
Disclosure of Invention
The invention provides a data uplink and proxy method and a system based on a Reactive mechanism, which solve the technical problems that under the system environment that a network is not communicated, data interaction among systems is difficult to complete, the expandability of locally-modulated data uplink is low, a service proxy program is complex, and risks of misoperation and missed operation are improved.
In view of this, the first aspect of the present invention provides a data uplink and proxy method based on an Reactive mechanism, where the method is applied to data interaction between three network environments, where the three network environments are a local machine room, a local office network and an upper machine room in turn, where the local machine room is used to deploy a service system service, the local office network is a network section where a client of the service system is located, the upper machine room is an external application service accessed by the service system, the local office network is directly connected with the local machine room and the upper machine room respectively, and a request port for sending a proxy request and a reply port for receiving resource response contents of a target system of the upper machine room are set in the local machine room, so as to construct the Reactive mechanism; which comprises the following steps:
the jump node is used for constructing a link between the local machine room and the superior machine room by constructing the jump node in the local office network;
providing a reverse proxy service of a target system pointing to the superior machine room to a third party system of the local machine room through a local application system so as to authorize the third party system of the local machine room to access an application service in the superior machine room;
and establishing a service end push channel of long connection between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the jump node, requests a resource response of a target system of the upper machine room, and returns the resource response to the third party system of the local machine room.
Preferably, the step of providing, by the local application system, a reverse proxy service directed to the target system of the superior computer room to the third party system of the local computer room to authorize the third party system of the local computer room to access the application service in the superior computer room specifically includes:
and under the condition of constraint authorization sent in advance, providing reverse proxy service pointing to a target system of the superior machine room to a third party system of the local machine room through a local application system so as to authorize the third party system of the local machine room to access application service in the superior machine room.
Preferably, the step of establishing a service-side push channel of long connection between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the superior machine room through the jump node, and requests a resource response of a target system of the superior machine room specifically includes:
initiating long connection to reverse proxy service through the jump node, and establishing a service end push channel from the reverse proxy service to the jump node;
when the reverse proxy service receives a proxy request for accessing the resources of the target system of the superior machine room, a push channel of the skip node requests the skip node to execute a proxy task in the form of HTTP protocol response to the server side of the skip node;
after receiving the HTTP response through the jump node, generating an HTTP request pointing to a target system of the upper computer room;
an HTTP protocol request is sent to a target system of the upper computer room through the jump node, and a response corresponding to the HTTP protocol request is received by the target system of the upper computer room;
after receiving the response through the jump node, generating an HTTP protocol request pushed to the reverse proxy service;
sending an HTTP protocol request pushed to the reverse proxy service through the jump node;
and after receiving the HTTP protocol request pushed to the reverse proxy service by the jump node through the reverse proxy service, generating an HTTP protocol response returned to a third party system of the local machine room.
Preferably, the server push channel adopts WebSocket protocol or long polling mechanism.
In a second aspect, the invention provides a data uplink and proxy system based on an Reactive mechanism, wherein the system is applied to data interaction between three network environments, the three network environments are a local machine room, a local office network and an upper machine room in sequence, wherein the local machine room is used for deploying a local dispatching business system service, the local office network is a network section where a client of the local dispatching business system is located, the upper machine room is an external application service accessed by the local dispatching business system, the local office network is directly connected with the local machine room and the upper machine room respectively, and a request port for sending a proxy request and a reply port for receiving resource response content of a target system of the upper machine room are arranged in the local machine room so as to construct the Reactive mechanism; the data uplink and service agent system comprises:
the jump module is used for constructing a jump node in the local office network, and the jump node is used for constructing a link between the local machine room and the superior machine room;
the reverse proxy module is used for providing reverse proxy service of a target system pointing to the superior machine room to a third party system of the local machine room through a local application system so as to authorize the third party system of the local machine room to access the application service in the superior machine room;
and the pushing module is used for establishing a service end pushing channel of long connection between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the jump node, requests a resource response of a target system of the upper machine room, and returns the resource response to the third party system of the local machine room.
Preferably, the reverse proxy module is specifically configured to provide, in the case of constraint authorization sent in advance, a reverse proxy service directed to a target system of the superior machine room to a third party system of the local machine room through a local application system, so as to authorize the third party system of the local machine room to access an application service in the superior machine room.
Preferably, the pushing module specifically includes:
the push channel construction module is used for initiating long connection to the reverse proxy service through the jump node and establishing a service end push channel from the reverse proxy service to the jump node;
the first request module is used for pushing a channel to a server side of the jump node to request the jump node to execute a proxy task in the form of HTTP protocol response when the reverse proxy service receives a proxy request for accessing the resources of a target system of the superior machine room;
the request generation module is used for generating an HTTP protocol request pointing to a target system of the upper computer room after receiving the HTTP protocol response through the jump node;
the second request module is used for sending an HTTP protocol request to the target system of the upper computer room through the jump node and receiving a response corresponding to the HTTP protocol request from the target system of the upper computer room;
the first response generation module is used for generating an HTTP protocol request pushed to the reverse proxy service after receiving the response through the jump node;
the response sending module is used for sending the HTTP protocol request pushed to the reverse proxy service through the jump node;
and the second response generation module is used for generating an HTTP protocol response returned to the third party system of the local machine room after receiving the HTTP protocol request pushed to the reverse proxy service by the jump node through the reverse proxy service.
Preferably, the server push channel adopts WebSocket protocol or long polling mechanism.
From the above technical scheme, the invention has the following advantages:
according to the invention, a jump node is constructed in the local office network by constructing a Reactive mechanism, so that a link is constructed between the local machine room and the upper machine room, a reverse proxy service directed to a target system of the upper machine room is provided for a third party system of the local machine room by a local application system, a long-connection service end push channel is established between the reverse proxy services, so that a proxy request of the third party system of the local machine room accesses the upper machine room through the jump node, requests a resource response of the target system of the upper machine room, and returns the resource response to the third party system of the local machine room, thereby completing data interaction between the systems and maintaining long connection under a system environment in which the network is not communicated, effectively synchronizing DCCS data, further effectively improving the expandability of the power data and the central regulating system, greatly simplifying the flow of data export to each link, and effectively reducing the risks of misoperation and missed operation.
Drawings
Fig. 1 is a schematic diagram of a hierarchical structure between network environments according to an embodiment of the present invention;
fig. 2 is a flowchart of a data uplink and proxy method based on a Reactive mechanism according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data uplink and proxy system based on a Reactive mechanism according to an embodiment of the present invention.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a data uplink and proxy method based on a Reactive mechanism, which is applied to data interaction among three network environments, as shown in fig. 1, wherein fig. 1 illustrates a hierarchical structure among the network environments, the three network environments are a local machine room, a local office network and an upper machine room in sequence, wherein the local machine room is used for deploying a local dispatching business system service, the local office network is a network section where a client of the local dispatching business system is located, the upper machine room is an external application service accessed by the local dispatching business system, the local office network is directly connected with the local machine room and the upper machine room respectively, and a request port for sending a proxy request and a reply port for receiving resource response contents of a target system of the upper machine room are arranged in the local machine room so as to construct the Reactive mechanism.
The Reactive mechanism is a response mechanism, and is not sensitive to an internal mechanism for a third party system of the local machine room, and is still consistent with a common reverse proxy request.
In this embodiment, the local machine room is a local dispatching automation machine room, which is used for deploying local dispatching business system services; the local office network is a network section where a client of the local dispatching service system is located; the upper machine room is a medium-tuning automation machine room and is an external application service which is depended on or required to be accessed by a ground-tuning business system.
A program on the local office network cannot enable a server program to monitor ports; related systems in the local machine room and the upper machine room can enable the server program to monitor the port.
In the invention, a stable proxy service channel is designed, and a local office network is used as a transit to meet various HTTP/HTTPS requests and proxy channels of contents, and for easy understanding, referring to FIG. 2, the method provided by the invention comprises the following steps:
step one, a jump node is constructed in a local office network and is used for constructing a link between a local machine room and an upper machine room.
The jump node can establish a link to the local machine room and the upper machine room simultaneously by utilizing the local office network so as to establish a stable and efficient bidirectional channel and meet the functional requirement of reverse proxy service.
And step two, providing reverse proxy service of the target system of the superior machine room to the third party system of the local machine room through the local application system so as to authorize the third party system of the local machine room to access the application service in the superior machine room.
The reverse proxy service is a trusted third party system program oriented to the local machine room, so that the reverse proxy service can access application services in the upper machine room.
In one example, in the case of a pre-sent constraint authorization, a reverse proxy service directed to a target system of an upper computer room is provided to a third party system of the local computer room by the local application system to authorize the third party system of the local computer room to access an application service in the upper computer room.
And thirdly, establishing a long-connection service end push channel between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the jump node, requests a resource response of a target system of the upper machine room, and returns the resource response to the third party system of the local machine room.
The invention provides a data uplink and proxy method based on a Reactive mechanism, which constructs a jump node in a local office network by constructing the Reactive mechanism so as to construct a link between the local machine room and an upper machine room, provides a reverse proxy service of a target system of the upper machine room for a third party system of the local machine room by a local application system, establishes a long-connection service push channel between the reverse proxy services, enables a proxy request of the third party system of the local machine room to access the upper machine room through the jump node, requests a resource response of the target system of the upper machine room, and returns the resource response to the third party system of the local machine room, thereby completing data interaction between the systems in a system environment in which a network is not communicated, maintaining long connection, effectively synchronizing DCCS data, further effectively improving the power data and the scalability of a medium-adjustment system, greatly simplifying the flow of data export to each link, and effectively reducing the risks of misoperation and missed operation.
In one embodiment, the third step specifically includes:
301. and initiating long connection to the reverse proxy service through the jump node, and establishing a server push channel from the reverse proxy service to the jump node.
The server push channel adopts a WebSocket protocol or a Long Polling (Long Polling) mechanism.
The local office where the reverse proxy service is located cannot actively initiate a request to establish a link to a hop node in the local office network. The server push channel ensures that the reverse proxy request of the third party system can reach the jump node timely and quickly, thereby requesting the resource response of the target system for the proxy request.
In this embodiment, a Long Polling (Long Polling) mechanism is exemplified. In the Long Polling (Long Polling) mechanism, the hop node actively initiates an HTTP request to the reverse proxy service, and ensures that there is always a request to wait for the response of the reverse proxy service. This allows the reverse proxy to respond to the request once it wants to request the upstream to process the proxy task. Thus, the jump node needs to handle two cases for the connection:
reinitiating the link if the HTTP request is replied;
if the HTTP request is not replied to until a timeout, the link is reinitiated.
302. When the reverse proxy service receives a proxy request for accessing the resources of the target system of the superior machine room, a push channel of the skip node requests the skip node to execute the proxy task in the form of HTTP protocol response.
In the HTTP protocol response, the body tag part is a body tag of the proxy request, for example, if the proxy request is a POST request, the body tag contains a form parameter, and then the content is copied into the body tag of the HTTP protocol response; the header fields of the HTTP protocol response carry the header fields of the proxy request, but the header fields use a specified prefix to distinguish other header fields of the system default. In this embodiment, the contract uses X-UPSTREAM-as the prefix.
303. After receiving the HTTP response through the jump node, generating an HTTP request pointing to a target system of the upper computer room;
the body tag part of the HTTP protocol request copies the response body tag, wherein the header field of the body tag is found out according to the corresponding prefix (for example, X-UPSTREAM-) and then set in the header field of the HTTP protocol request after the prefix is removed.
304. An HTTP protocol request is sent to a target system of the upper computer room through the jump node, and a response corresponding to the HTTP protocol request is received by the target system of the upper computer room;
305. after receiving the response through the jump node, generating an HTTP protocol request pushed to the reverse proxy service;
wherein the body tag portion of the HTTP protocol request will copy the responsive body tag, wherein the body tag header field portion uses a specified prefix (e.g., X-UPSTREAM-) to distinguish other header field portions by default for the system.
306. The HTTP protocol request pushed to the reverse proxy service is sent to the reverse proxy service by the jumping node.
307. After receiving the HTTP protocol request pushed to the reverse proxy service by the reverse proxy service, the reverse proxy service generates an HTTP protocol response returned to the third party system of the local machine room.
The body tag part of the HTTP protocol response copies the body tag of the request, wherein the body tag part finds out the head domain of the proxy request according to the corresponding prefix (such as X-UPSTREAM-), and sets the head domain of the HTTP protocol response after removing the prefix.
The foregoing is a detailed description of an embodiment of a data uplink and proxy method based on a Reactive mechanism provided by the present invention, and the following is a detailed description of an embodiment of a data uplink and proxy system based on a Reactive mechanism provided by the present invention.
The invention provides a data uplink and proxy system based on a Reactive mechanism, which is applied to data interaction among three network environments, namely a local machine room, a local office network and an upper machine room, as shown in fig. 1, wherein the local machine room is used for deploying local dispatching business system services, the local office network is a network section where a client of the local dispatching business system is located, the upper machine room is external application services accessed by the local dispatching business system, the local office network is directly connected with the local machine room and the upper machine room respectively, and a request port for sending a proxy request and a reply port for receiving resource response contents of a target system of the upper machine room are arranged in the local machine room so as to construct the Reactive mechanism.
The Reactive mechanism is a response mechanism, and is not sensitive to an internal mechanism for a third party system of the local machine room, and is still consistent with a common reverse proxy request.
In this embodiment, the local machine room is a local dispatching automation machine room, which is used for deploying local dispatching business system services; the local office network is a network section where a client of the local dispatching service system is located; the upper machine room is a medium-tuning automation machine room and is an external application service which is depended on or required to be accessed by a ground-tuning business system.
A program on the local office network cannot enable a server program to monitor ports; related systems in the local machine room and the upper machine room can enable the server program to monitor the port.
As shown in fig. 3, the data uplink and service agent system includes:
the jump module 100 is configured to construct a link between the local machine room and the upper machine room by constructing a jump node in the local office network.
The reverse proxy module 200 is configured to provide a reverse proxy service directed to a target system of the superior machine room to a third party system of the local machine room through the local application system, so as to authorize the third party system of the local machine room to access an application service in the superior machine room.
In a specific embodiment, the reverse proxy module is specifically configured to provide, in the case of the constraint authorization sent in advance, a reverse proxy service directed to the target system of the superior machine room to the third party system of the local machine room through the local application system, so as to authorize the third party system of the local machine room to access the application service in the superior machine room.
And the pushing module 300 is configured to establish a service-side pushing channel for long connection between the skip node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the skip node, requests a resource response of a target system of the upper machine room, and returns the resource response to the third party system of the local machine room.
In a specific embodiment, the pushing module specifically includes:
and the push channel construction module is used for initiating long connection to the reverse proxy service through the jump node and establishing a service end push channel from the reverse proxy service to the jump node.
The server push channel adopts a WebSocket protocol or a long polling mechanism.
The first request module is used for pushing a channel to a server side of the jump node to request the jump node to execute a proxy task in the form of HTTP protocol response when the reverse proxy service receives a proxy request for accessing the resources of a target system of the superior machine room;
the request generation module is used for generating an HTTP protocol request of a target system of the upper computer room after receiving the HTTP protocol response through the jump node;
the second request module is used for sending an HTTP protocol request to the target system of the upper computer room through the jump node and receiving a response corresponding to the HTTP protocol request from the target system of the upper computer room;
the first response generation module is used for generating an HTTP protocol request pushed to the reverse proxy service after receiving the response through the jump node;
the response sending module is used for sending the HTTP protocol request pushed to the reverse proxy service through the jump node;
and the second response generation module is used for generating an HTTP protocol response returned to the third party system of the local machine room after receiving the HTTP protocol request which is pushed to the reverse proxy service by the jump node through the reverse proxy service.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding process in the foregoing method embodiment for the specific working process of the above-described system, which is not described herein again.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The method is applied to data interaction among three network environments, wherein the three network environments are a local machine room, a local office network and an upper machine room in sequence, the local machine room is used for deploying a local dispatching business system service, the local office network is a network section where a client of the local dispatching business system is located, the upper machine room is an external application service accessed by the local dispatching business system, the local office network is directly connected with the local machine room and the upper machine room respectively, and a request port for sending an agent request and a reply port for receiving resource response contents of a target system of the upper machine room are arranged in the local machine room so as to construct a Reactive mechanism; which comprises the following steps:
the jump node is used for constructing a link between the local machine room and the superior machine room by constructing the jump node in the local office network;
providing a reverse proxy service of a target system pointing to the superior machine room to a third party system of the local machine room through a local application system so as to authorize the third party system of the local machine room to access an application service in the superior machine room;
and establishing a service end push channel of long connection between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the jump node, requests a resource response of a target system of the upper machine room, and returns the resource response to the third party system of the local machine room.
2. The method for data uplink and proxy based on Reactive mechanism according to claim 1, wherein the step of providing the reverse proxy service of the target system of the superior machine room to the third party system of the local machine room through the local application system to authorize the third party system of the local machine room to access the application service in the superior machine room specifically comprises:
and under the condition of constraint authorization sent in advance, providing reverse proxy service pointing to a target system of the superior machine room to a third party system of the local machine room through a local application system so as to authorize the third party system of the local machine room to access application service in the superior machine room.
3. The method for uplink and proxy data based on Reactive mechanism according to claim 1, wherein the step of establishing a long-connection service push channel between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the jump node, and requests a resource response of a target system of the upper machine room specifically includes:
initiating long connection to reverse proxy service through the jump node, and establishing a service end push channel from the reverse proxy service to the jump node;
when the reverse proxy service receives a proxy request for accessing the resources of the target system of the superior machine room, a push channel of the skip node requests the skip node to execute a proxy task in the form of HTTP protocol response to the server side of the skip node;
after receiving the HTTP response through the jump node, generating an HTTP request pointing to a target system of the upper computer room;
an HTTP protocol request is sent to a target system of the upper computer room through the jump node, and a response corresponding to the HTTP protocol request is received by the target system of the upper computer room;
after receiving the response through the jump node, generating an HTTP protocol request pushed to the reverse proxy service;
sending an HTTP protocol request pushed to the reverse proxy service through the jump node;
and after receiving the HTTP protocol request pushed to the reverse proxy service by the jump node through the reverse proxy service, generating an HTTP protocol response returned to a third party system of the local machine room.
4. The data uplink and proxy method based on the Reactive mechanism according to claim 3, wherein the server push channel adopts WebSocket protocol or long polling mechanism.
5. The system is applied to data interaction among three network environments, wherein the three network environments are a local machine room, a local office network and an upper machine room in sequence, the local machine room is used for deploying a local dispatching business system service, the local office network is a network section where a client of the local dispatching business system is located, the upper machine room is an external application service accessed by the local dispatching business system, the local office network is directly connected with the local machine room and the upper machine room respectively, and a request port for sending an agent request and a reply port for receiving resource response contents of a target system of the upper machine room are arranged in the local machine room so as to construct the Reactive mechanism; the data uplink and service agent system comprises:
the jump module is used for constructing a jump node in the local office network, and the jump node is used for constructing a link between the local machine room and the superior machine room;
the reverse proxy module is used for providing reverse proxy service of a target system pointing to the superior machine room to a third party system of the local machine room through a local application system so as to authorize the third party system of the local machine room to access the application service in the superior machine room;
and the pushing module is used for establishing a service end pushing channel of long connection between the jump node and the reverse proxy service of the local machine room, so that a proxy request of a third party system of the local machine room accesses the upper machine room through the jump node, requests a resource response of a target system of the upper machine room, and returns the resource response to the third party system of the local machine room.
6. The Reactive mechanism-based data uplink and proxy system according to claim 5, wherein the reverse proxy module is specifically configured to provide, in a case of constraint authorization sent in advance, a reverse proxy service directed to a target system of the superior machine room to a third party system of the local machine room through a local application system, so as to authorize the third party system of the local machine room to access an application service in the superior machine room.
7. The Reactive mechanism-based data uplink and proxy system according to claim 5, wherein the push module specifically includes:
the push channel construction module is used for initiating long connection to the reverse proxy service through the jump node and establishing a service end push channel from the reverse proxy service to the jump node;
the first request module is used for pushing a channel to a server side of the jump node to request the jump node to execute a proxy task in the form of HTTP protocol response when the reverse proxy service receives a proxy request for accessing the resources of a target system of the superior machine room;
the request generation module is used for generating an HTTP protocol request pointing to a target system of the upper computer room after receiving the HTTP protocol response through the jump node;
the second request module is used for sending an HTTP protocol request to the target system of the upper computer room through the jump node and receiving a response corresponding to the HTTP protocol request from the target system of the upper computer room;
the first response generation module is used for generating an HTTP protocol request pushed to the reverse proxy service after receiving the response through the jump node;
the response sending module is used for sending the HTTP protocol request pushed to the reverse proxy service through the jump node;
and the second response generation module is used for generating an HTTP protocol response returned to the third party system of the local machine room after receiving the HTTP protocol request pushed to the reverse proxy service by the jump node through the reverse proxy service.
8. The Reactive mechanism-based data uplink and proxy system of claim 7, wherein the server push channel adopts WebSocket protocol or long polling mechanism.
CN202310374053.9A 2023-04-10 2023-04-10 Data uplink and proxy method and system based on Reactive mechanism Active CN116112560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310374053.9A CN116112560B (en) 2023-04-10 2023-04-10 Data uplink and proxy method and system based on Reactive mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310374053.9A CN116112560B (en) 2023-04-10 2023-04-10 Data uplink and proxy method and system based on Reactive mechanism

Publications (2)

Publication Number Publication Date
CN116112560A true CN116112560A (en) 2023-05-12
CN116112560B CN116112560B (en) 2023-06-30

Family

ID=86267597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310374053.9A Active CN116112560B (en) 2023-04-10 2023-04-10 Data uplink and proxy method and system based on Reactive mechanism

Country Status (1)

Country Link
CN (1) CN116112560B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106830A1 (en) * 2005-06-03 2009-04-23 Thomas Maher Secure Network Communication System and Method
CN105357233A (en) * 2014-08-18 2016-02-24 阿里巴巴集团控股有限公司 Remote call method and device
US20180077121A1 (en) * 2016-09-14 2018-03-15 Wanpath, LLC Reverse proxy for accessing local network over the internet
CN114826754A (en) * 2022-05-06 2022-07-29 中国光大银行股份有限公司 Communication method and system among different networks, storage medium and electronic device
CN115378645A (en) * 2022-07-14 2022-11-22 国能信控互联技术有限公司 Verification method and system based on unified authentication of electric power marketing management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106830A1 (en) * 2005-06-03 2009-04-23 Thomas Maher Secure Network Communication System and Method
CN105357233A (en) * 2014-08-18 2016-02-24 阿里巴巴集团控股有限公司 Remote call method and device
US20180077121A1 (en) * 2016-09-14 2018-03-15 Wanpath, LLC Reverse proxy for accessing local network over the internet
CN114826754A (en) * 2022-05-06 2022-07-29 中国光大银行股份有限公司 Communication method and system among different networks, storage medium and electronic device
CN115378645A (en) * 2022-07-14 2022-11-22 国能信控互联技术有限公司 Verification method and system based on unified authentication of electric power marketing management system

Also Published As

Publication number Publication date
CN116112560B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
Albano et al. Message-oriented middleware for smart grids
KR101179554B1 (en) Mobile device adopting mobile cloud platform
US20140280398A1 (en) Distributed database management
US20050076336A1 (en) Method and apparatus for scheduling resources on a switched underlay network
US20140012991A1 (en) Grid proxy architecture for network resources
JP2015537307A (en) Component-oriented hybrid cloud operating system architecture and communication method thereof
Corradi et al. A DDS-compliant infrastructure for fault-tolerant and scalable data dissemination
US20230136189A1 (en) Gateway Prioritization
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
Brune et al. Managing clusters of geographically distributed high‐performance computers
CN111245660B (en) Network-based equipment upgrading self-adaptive transmission method
CN116112560B (en) Data uplink and proxy method and system based on Reactive mechanism
CN115134421B (en) Multi-source heterogeneous data cross-system collaborative management system and method
KR100571520B1 (en) The method of resource sharing in a home network system with unification middleware
Gawlowicz et al. UniFlex: A framework for simplifying wireless network control
Kulkarni et al. Comparative study of middleware for C4I systems Web Services vis-a-vis Data Distribution Service
WO2022042545A1 (en) Tsn industrial application server, client, system, service method, and storage medium
CN114900558A (en) Universal equipment management protocol control method and device
CN112287017A (en) OpenSSH-based Impala cluster visual management method
JP2010146246A (en) Framework computer program for multi-agent system, network system and inter-agent communication method
Chiu et al. Bic-lsu: Big data research integration with cyberinfrastructure for lsu
Maheshwari et al. Service-oriented middleware for peer-to-peer computing
Noh et al. Flexible communication-bus architecture for distributed multimedia service in cloud computing platform
US20230412466A1 (en) Managing cloud-native virtual network functions
CN112445628B (en) Inter-process resource sharing method and device and electronic equipment

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