Embodiment
The invention provides the means of communication and the device at a kind of remote monitoring and diagnosis center and regional dispatching center, can solve remote monitoring and diagnosis center and regional dispatching center carry out communication in wide area network time due to the inefficient problem of narrow the brought access to netwoks of the bandwidth of wide area network.
As shown in Figure 2, the means of communication at a kind of remote monitoring and diagnosis center and regional dispatching center, remote monitoring and diagnosis center is connected by wide area network with regional dispatching center, and the described means of communication comprise the steps:
Step S1, judges that data transmission is message transmissions or file transfer, if message transmissions enters step S2, if file transfer enters step S3.
Step S2, if message transmissions can be carried out message transmissions as follows between remote monitoring and diagnosis center and regional dispatching center:
Step S201, message recipient responds receiving after message, in the time that not obtaining described message recipient's response in time, message transmitting party (can set in advance a time threshold, exceed this time threshold and do not receive that yet response thinks " not in time obtain "), adopt buffer technology to cushion message, and set maximum retransmission and retransmission time interval;
Step S202, judge whether to exceed described retransmission time interval, temporarily do not send if not message, until resend message while exceeding described retransmission time interval, it is 1 minute that retransmission time interval for example can be set, the super message that resends after one minute a time;
Step S203, judge whether the number of transmissions exceeds described maximum retransmission, continue if not to treat that retransmission time interval carries out message transmissions, if the message also not transmitting is abandoned, then disconnect being connected between described remote monitoring and diagnosis center and described regional dispatching center.
It is worth mentioning that, maximum retransmission and retransmission time interval are set can avoid frequent re-transmission to cause network congestion or aggravation network congestion, disconnect and being connected between described remote monitoring and diagnosis center and described regional dispatching center can impel the remote terminal at regional dispatching center to reconnect remote monitoring and diagnosis center, to improve system run all right.
Step S3, if file transfer, file is compressed, compressed file can effectively reduce file transfer to finite bandwidth occupation proportion, therefore in the time of transfer files on wide area network, use the form after compression to carry out file transfer between described remote monitoring and diagnosis center and described regional dispatching center.In addition because file transfer traffic is large, and randomness is stronger, transmit for reducing the band-limited net environment file of wide area the impact that other message transmissions are caused, the maximum occupied bandwidth threshold value of file transfer is set, in the time that the shared bandwidth of file transfer exceedes described maximum occupied bandwidth threshold value, refuses file transfer requests.
In addition, when journey monitoring, diagnosing center and remote terminal carry out communication in wide area network except wide area network bandwidth is narrow cause access to netwoks efficiency poor, also there is the larger problem of bandwidth fluctuation of wide area network, this is due to the multilayer route via node in process Wide Area Network in the middle of the two ends of communication, 2M circuit is to divide by large optical fiber transmission network the dedicated network splitting out, but its relay processes is all by fiber optic network processing, its processing procedure and other 2M private networks share, be subject to processing the restriction of ability, sometimes network delay is larger, bandwidth can further reduce.For solving the problem that this bandwidth fluctuation is large, in described message transmission procedure, can also comprise step S204: wide area network bandwidth is monitored, when narrowing, the wide area network bandwidth monitoring (threshold value can be set, if monitor bandwidth lower than this threshold value, can think and reach the requirement of " narrowing ") time, message is cushioned, and strengthen retransmission time interval and reduce maximum retransmission; And after the wide area network bandwidth monitoring is recovered normally (this normal value refers to value set in step S201), network transmission speed can promote, described retransmission time interval and maximum retransmission are returned to normal value, and by overstocked buffering message end of transmission successively, so just can effectively avoid the idle and message backlog of the network bandwidth.
The above-mentioned processing procedure for message transmissions in the larger situation of fluctuation situation, processing procedure in file transfer shows as and can also comprise step S301: set in advance bandwidth threshold value, if the wide area network bandwidth monitoring is refused file transfer requests lower than this bandwidth threshold value.This method that file transfer is provided to limit bandwidth, not only guarantee the efficiency of large file transfer, also guarantee that certain RSVP is to the transmission of other messages simultaneously, avoided because narrow file transfer in situation of bandwidth causes the situation of network congestion or bust this
Under the applied environment of wide area network, between same 2M private network or multiple private network, may there is the situation of a large amount of Concurrency Access, the message transmissions so telecommunication network being caused is impacted very large, likely produces network congestion, recovers consuming time longer.To this, before described step S1 judges that data transmission is message transmissions or file transfer, can also comprise step S0: the waiting list of connection request is set, in the time that connection request quantity exceeds the length of this waiting list, refuses new connection request.Can realize the control to remote terminal connection request quantity by above-mentioned steps, prevent that the network transmission performance under concurrency emergency case from declining.
Due to the concurrent requirement of data link of file transfer, need multiport to use simultaneously, and wide area network transmission needs passing fire wall, therefore must limit port range, as a good embodiment, can adopt fixed port scope at file transfer port, to coordinate fire compartment wall setting, improve security of system.
In addition, it should be noted that, described message transmissions has comprised database transmissions.
Be illustrated in figure 3 the mutual schematic diagram of data flow between remote monitoring and diagnosis center (service end) and regional dispatching center (client or be referred to as remote terminal), process description is as follows:
(1) client-side program inquiry commercial data base operation calls database manipulation interface, after interface encapsulation message, is transmitted to message interaction interface;
(2) message interaction is transmitted to service end Correspondent (remote terminal access agency service) by remote terminal communication program;
(3) service end agency is by mutual database message repeating to database manipulation Agent, and this program, by analyzing message content, is translated into commercial data base operation;
(4) database broker is mutual by commercial data bank interface and commercial storehouse, and result is packaged into message turns back to remote terminal.Guarantee that commercial data base is not exposed in wide area network, enhances system security;
(5) forwarding by remote terminal communication program alternately of client application and background service process or real-time data base, repeating process is transparent to client application, can realize point-to-point message and event message and forward;
(6) service end Correspondent receives after remote terminal communication program E-Packets and is transmitted to background service process or real-time data base;
(7) file is mutual with service end file transfer services through the forwarding of thin-client communication program by file transfer protocol (FTP), and realizes file transfer.
The above is the means of communication at remote monitoring and diagnosis of the present invention center and regional dispatching center, corresponding with the method, the present invention also provides the communication device at a kind of remote monitoring and diagnosis center and regional dispatching center, as shown in Figure 4, comprise service end and at least one remote terminal, described service end is connected by wide area network with each remote terminal; Described service end comprises:
Judge module, for judging that data transmission is message transmissions or file transfer;
Message transmissions control module, for being that message transmissions and message transmitting party be not while obtaining in time message recipient's response when judging data transmission, message is cushioned, and maximum retransmission and retransmission time interval be set, in the time exceeding described retransmission time interval, resend message, and judge whether the number of transmissions exceeds described maximum retransmission, if the message of not transmission is abandoned, then disconnect being connected between described service end and described remote terminal;
File transfer control module, for in the time judging data transmission and be file transfer, file is compressed, use the form after compression to carry out file transfer between described service end and described remote terminal, and the maximum occupied bandwidth threshold value of file transfer is set, in the time that exceeding described maximum occupied bandwidth threshold value, the shared bandwidth of file transfer refuses file transfer requests.
Preferably, described service end can also comprise the width monitoring module being connected respectively with described message transmissions control module, file transfer control module, and this module is for Real-Time Monitoring wide area network bandwidth.
Described message transmissions control module can comprise parameter change module, in the time that the wide area network bandwidth monitoring narrows, message is cushioned, and strengthens retransmission time interval and reduce maximum retransmission; And after the wide area network bandwidth monitoring is recovered normally, described retransmission time interval and maximum retransmission are returned to normal value.
Described file transfer control module can comprise refusal transport module, for setting in advance bandwidth threshold value, when the wide area network bandwidth monitoring is refused file transfer requests during lower than this bandwidth threshold value.
By the cooperation of above-mentioned several modules, can better solve the larger problem of bandwidth fluctuation of wide area network.
For solving the network congestion problem causing in concurrent situation in wide area network, described service end can also comprise that the waiting list being connected with described judge module arranges module, for the waiting list of connection request is set, in the time that exceeding the length of this waiting list, connection request quantity refuses new connection request.
As a good embodiment, described service end can also comprise the first communication management module, commercial historical data base access agent module and basic function module:
In described the first communication management module, can comprise remote terminal connection status administration module, remote terminal process registered information managing module, the first packet forwarding module, file transfer port controlling and distribution module, to realize the functions such as the management of remote terminal connection status, remote terminal process registered information managing, message repeating, file transfer port controlling and distribution:
Described remote terminal connection status administration module is for receiving and the connection request of processing remote terminal, the connection of monitoring and recording connection status and clearing up long-term immobilization;
Described remote terminal process registered information managing module, for recording the process log-on message on remote end-node, replaces remote terminal to network middleware registered events information;
Described the first packet forwarding module is for determining forward node by analyzing the heading content that remote terminal sends message, realizes the forwarding of remote terminal to the process on other main frames; And by intercepting and capturing message means, and heading content is determined the remote end-node forwarding by analysis, realizes the message repeating that the process on other main frames sends to remote terminal, described message repeating comprises that point-to-point message repeating, event message forward;
Described file transfer port controlling and distribution module are used for limiting port range, complete and distribute the scope control of port and the allocate and recycle of port resource.Due to the concurrent requirement of data link of file transfer, need multiport to use, and wide area network transmission need passing fire wall simultaneously, therefore must limit port range.
Described commercial historical data base access agent module can comprise that database access interface package module, data access request resolve and result package module, database connection pool administration module, resolves and the function such as result encapsulation, database connection pool management with accessing data base interface encapsulation, data access request:
Described database access interface package module is for encapsulating the access interface to multiple commercial historical data base, and shielding different pieces of information bank interface difference, realizes multitype database interactive access;
Described data access request is resolved with result package module for resolving the database access request message of being sent by remote terminal, obtain database interactive operation information, calling data storehouse access interface is realized mutual, and will return results and be encapsulated as the discernible message of remote terminal historical data base interactive interface, send and return results collection;
Described database connection pool administration module, for the connection of unified management to database, is realized the access to many storehouses or the Concurrency Access to single storehouse.
Described basic function module comprises load balancing module, active and standby handover module, running status control module, to realize the functions such as load balancing, active and standby switching, running status control:
Described load balancing module is in the time that remote terminal is connected to service end, quantity and the network load condition of connection have been there is according to current service end, the connection request of refusal or permission remote terminal, in the time that refusal connects, remote terminal selects other servers to connect according to the proxy server list of configuration;
Described active and standby handover module, in the time that service end breaks down, is realized automatic fault node and is cut off line, and isolated fault agency service, is switched to other normal node by node on duty; Or realize manual switching, artificially specify node on duty;
Described running status control module is for monitoring the running status of service end, and described running status comprises that whether agency's node connection, the progress information situation of registration, running status be normal; And for active and standby switching provides running state information, described running state information comprises service end fault message and normal node information.
In addition, described remote terminal can comprise the second communication management module, system information database management module and interface module:
Described the second communication management module can comprise that multi-proxy server connects selection module, remote node log-on message acquisition module, event number Registering modules, the second packet forwarding module, the functions such as link selection, the remote node log-on message of multi-proxy server obtains to realize, event number registration, message repeating:
Described multi-proxy server connects selects module in the multiple attachable proxy server nodes of remote terminal configuration, connects in order or at random the proxy server nodes in list in the time that initiation connects;
Described remote node log-on message acquisition module for obtaining the node log-on message of other main frames of central machine room on remote terminal, and obtain and the necessary information of background process communication according to these node log-on messages, such as log-on message, the event number registration scenarios etc. of process on node;
Described event number Registering modules forwards and is registered in service end for realizing on remote terminal by the event number of client application registration, replace client application to receive these event messages by service end, and by being transferred to the application program on corresponding remote terminal with the communication link of remote terminal;
Described the second packet forwarding module is for being transmitted to the interactive operation message between client application on remote terminal and service end application process, real-time data base, commercial data base the object process of destination host via service end.
Described system information database management module is used for system information storehouse regular update to this remote terminal, and support inquiry and the operation to system information storehouse of application program on remote terminal, in described system information storehouse, store the stand-by state on duty of each background process, client application determines destination node and the object process of communication according to described stand-by state on duty and node log-on message;
Described interface module comprises message interaction interface module, file transfer interface, commercial data base interface module, and it has encapsulated three related generic operations of client application: message interaction, file interaction, commercial data base are mutual:
Described message interaction interface module is used for realizing the function such as message sending and receiving, event number and event call-back function registration, the inquiry of the each node log-on message of system.Its communication having shielded under different deployment scenario realizes details, uniform interface to upper layer application is provided, no matter guarantee that application program is deployed on remote terminal or on server, the interface calling is completely compatible, does not need to revise the difference of code to adapt to dispose;
Described file transfer interface is for realizing the download of file and uploading; This interface has equally also shielded realizes details, guarantees that application program is not because the difference of deployed environment is revised code;
Described commercial data base interface module is for realizing the message encapsulation to commercial data base operation and forwarding, and receive message by service end commercial data base agency, the operation of execution commercial data base, then feedback operation result is given described commercial data base interface module, exempts from the security risk of bringing at wide area network exposure commercial data base.
By above scheme, contrast remote monitoring and diagnosis of the prior art center known with the means of communication at regional dispatching center with the means of communication and the remote monitoring and diagnosis of the present invention center at regional dispatching center: method of the prior art is generally understood Adoption Network for narrowband network and is connected the mode such as time-out time setting, re-transmission policy adjustment, and do not divide the type of transmitting data to provide different transmission policys and deal with problems, often adopt same strategy to solve all transmission problems; The present invention is according to the difference of wire data type, file transfer is separately processed with message transmissions and used different transmission policys to carry out transfer of data, such as file transfer provides limit bandwidth and compression transmission policy etc., improve the efficiency of the especially large file transfer of message transmissions and file transfer, thereby preferably resolve the arrowband problem of wide area network, realized the communication in wide area network of remote monitoring and diagnosis center and regional dispatching center.The means of communication at remote monitoring and diagnosis of the present invention center and regional dispatching center and device be for information sharing unified, intelligentized power equipment Remote Monitoring and Diagnosis System provides crucial mechanics of communication means, is the regional dispatching center state information of comprehensively grasping grid equipment, considers the key factor such as power grid security and environmental impact and economic benefit as a whole, realizes powerful guarantee energy-efficient and environmental friendliness and raising power supply reliability object.
Above-described embodiment of the present invention, does not form limiting the scope of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in claim protection range of the present invention.