WO2017162003A1 - 一种会话监控的方法、装置和系统 - Google Patents

一种会话监控的方法、装置和系统 Download PDF

Info

Publication number
WO2017162003A1
WO2017162003A1 PCT/CN2017/075021 CN2017075021W WO2017162003A1 WO 2017162003 A1 WO2017162003 A1 WO 2017162003A1 CN 2017075021 W CN2017075021 W CN 2017075021W WO 2017162003 A1 WO2017162003 A1 WO 2017162003A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
information
service server
control instruction
current session
Prior art date
Application number
PCT/CN2017/075021
Other languages
English (en)
French (fr)
Inventor
乔雷
刘赫伟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017162003A1 publication Critical patent/WO2017162003A1/zh
Priority to US16/138,649 priority Critical patent/US10785309B2/en

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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • 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

Definitions

  • the present invention relates to the field of session monitoring, and in particular, to a method, device and system for session monitoring.
  • Session monitoring is mainly the recording and monitoring of information about session state changes between the client and the service server. For example, monitoring user names, clients, timestamps, session status, etc., for billing, auditing, monitoring, data mining, and the like.
  • the existing session monitoring solution or processing the historical session information of the service server through the big data analysis device in an offline manner, the real-time performance is poor, and it is difficult to directly monitor the current session; or the polling or asynchronous triggering method is used to monitor the current session.
  • the session consumes a lot of resources and has poor reliability, so the information in the business history session cannot be maintained.
  • the existing session monitoring solution can be poorly implemented, consumes a large amount of resources, and cannot meet the business requirements of session monitoring.
  • the embodiment of the invention provides a method, a device and a system for session monitoring in a distributed system, which can realize the information of the current session and the information of the historical session, and can be implemented well, and can better balance the system overhead and service monitoring. Performance requirements.
  • an embodiment of the present invention provides a method for session monitoring.
  • the information of the session includes at least one of information of a current session and information of a historical session by determining information of a session in the service server.
  • the information of the session, the information of the current session is used by the control device to determine the control instruction;
  • the control instruction includes at least one of the first control instruction and the second control instruction, the first control instruction is used to instruct the service server to perform one of the following operations Kind: Stop sending the current session, continue to send all the information of the current session and continue to send part of the current session information.
  • the second control instruction is used to instruct the service server to stop or continue the current session.
  • the information of the historical session is used by the analyzing device to analyze the historical session; thereby realizing processing the current session and the historical session separately according to the requirements, and determining which current session information is needed by the current session Which current session information is not needed, and sends the required information to the control device
  • the information of the previous session thereby reducing the information of the current session sent to the control device, improving the implementability of the session monitoring solution, reducing the consumption of resources, and satisfying the business requirements of session monitoring.
  • the method is used in a distributed storage system, where the distributed storage system further includes a load balancing device and one or more service servers, and the load balancing device is configured to distribute the client from the one or more service servers. End request.
  • the information of the session includes at least one of information of the current session and information of the historical session by determining information of the session in the service server.
  • the method further comprises determining, according to the first control instruction sent by the received control device, the information of the current session to be sent to the control device according to the first control instruction.
  • the method further includes determining, based on the received second control instruction, to continue or terminate the current session with the client in progress according to the second control instruction. Reduce additional consumption of the system by continuing or terminating sessions with the client.
  • the present invention provides a session monitoring method, where a control device receives information of a current session sent by a service server.
  • the information of the current session is analyzed, and the control instruction to be sent to the service server is determined according to the analysis result of the information of the current session.
  • the control instruction includes at least one of a first control instruction and a second control instruction.
  • the first control instruction is used to instruct the service server to perform one of the following operations: continue to send or stop sending all the information of the current session, continue to send part of the information of the current session, and stop sending the information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current meeting.
  • the determined control command is sent to the service server.
  • the analysis results are obtained by analyzing the information of the current session. And determining, according to the analysis result, the first control instruction and the second control instruction are sent to the service server, so as to filter the information of the current session, reduce the analysis of the received current session information, and reduce the consumption of resources of the control
  • the present invention provides a service server including a processing unit and a transmitting unit.
  • the processing unit is configured to determine session information in the service server, where the information of the session includes at least one of information of a current session and information of a historical session.
  • the sending unit is configured to send information of the session, and send information of the current session to the control device, where the information of the current session is used by the control device to determine the control instruction.
  • the control instruction includes at least one of a first control instruction and a second control instruction, the first control instruction is used to instruct the service server to perform one of the following: stop sending the current session, continue to send all information of the current session, and continue Send part of the information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current session.
  • the information of the historical session is sent to the analysis device, and the information of the historical session is used by the analysis device to analyze the historical session. Therefore, the current session and the historical session are processed separately according to requirements, and the current session determines which current session information is required, and which current session information is unnecessary, and only sends the required current session to the control device.
  • the information improves the implementation of the session monitoring solution, reduces the consumption of resources, and satisfies the business requirements of session monitoring.
  • the service server further includes an obtaining unit, where the acquiring unit is configured to receive the first control instruction sent by the control device, and determine, according to the first control instruction, information about the current session sent by the sending unit to the control device. Therefore, the information of the current session is sent to the control device, and the data analysis amount of the first control device is reduced, and the additional consumption is small.
  • the service server further includes an obtaining unit, and the acquiring unit is configured to receive the second control instruction sent by the control device. Determining, based on the second control command, that the service server continues or terminates the current session with the client. Reduce additional consumption of the system by continuing or terminating sessions with the client.
  • the present invention provides a session control apparatus, including a receiving unit and a processing unit.
  • the receiving unit is configured to receive information about a current session sent by the service server.
  • the processing unit analyzes the information of the current session, and determines a control instruction to be sent to the service server according to the analysis result of the information of the current session.
  • the control instruction includes at least one of a first control instruction and a second control instruction.
  • the first control instruction includes means for instructing the service server to perform one of the following operations: continuing to transmit partial information of the current session, stopping transmitting information of the current session, and continuing to transmit partial information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current meeting.
  • the determined control command is sent to the service server.
  • the analysis results are obtained by analyzing the information of the current session. And determining, according to the analysis result, the first control instruction and the second control instruction are sent to the service server, thereby filtering the information of the current session, improving the implementation of the session monitoring solution, reducing the consumption of resources, and satisfying the session monitoring. Business needs.
  • an embodiment of the present invention provides a service server, including a processor, a memory, a communication interface, and a bus.
  • the processor, memory and communication interface communicate over the bus.
  • the communication interface is used to connect with other external devices and clients.
  • Session information and programs are stored in the memory.
  • the processor executes the programs stored in the memory.
  • the information of the session in the service server is determined as the information of the current session or the information of the historical session.
  • the information of the current session is sent to the control device, and the information of the current session is used by the control device to determine the control command.
  • the control instruction includes at least one of a first control instruction and a second control instruction
  • the first control instruction is used to instruct the service server to perform one of the following operations: stop transmitting the current session, continue to send all information of the current session, and continue Send part of the information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current session.
  • the information of the historical session is sent to the analysis device, and the information of the historical session is used by the analysis device to analyze the historical session. Therefore, the current session and the historical session are processed separately according to requirements, and the current session determines which current session information is required, and which current session information is unnecessary, and only sends the required current session to the control device.
  • the information improves the implementation of the session monitoring solution, reduces the consumption of resources, and satisfies the business requirements of session monitoring.
  • the program is further configured to receive the first control instruction sent by the control device, and determine, according to the first control instruction, information about a current session to be sent to the control device.
  • the program is further configured to receive a second control instruction sent by the control device, and continue or terminate a current session with the client according to the second control instruction.
  • an embodiment of the present invention provides a service server, including a processor, a memory, a communication interface, and a bus.
  • the processor, memory and communication interface communicate over the bus.
  • the communication interface is used to connect with other external devices and clients.
  • Session information and programs are stored in the memory.
  • the processor executes the programs stored in the memory.
  • the information of the current session is analyzed, and the control instruction to be sent to the service server is determined according to the analysis result of the information of the current session.
  • the control instruction includes at least one of a first control instruction and a second control instruction.
  • the first control instruction includes means for instructing the service server to perform one of the following operations: continuing to send the current session, stopping transmitting all information of the current session, and continuing to send partial information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current meeting.
  • the determined control command is sent to the service server. Thereby filtering the information of the current session and reducing the analysis of the information of the received current session. Improve the implementation of the session monitoring solution, reduce the consumption of resources, and meet the business needs of session monitoring.
  • a specific embodiment of the present invention provides a session monitoring system, including a service server and a control. Equipment and analytical equipment.
  • the service server is configured to determine session information, and the session information includes at least one of information of a previous session or information of a historical session.
  • the information of the current session is sent to the control device, and the information of the current session is used by the control device to determine the control command.
  • the control instruction includes at least one of a first control instruction and a second control instruction, the first control instruction is configured to perform one of the following operations: the service server stops transmitting the current session, continues to send all information of the current session, and continues to send Part of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current session.
  • the information of the historical session is sent to the analysis device, and the information of the historical session is used by the analysis device to analyze the historical session.
  • the control device is configured to receive information about a current session sent by the service server.
  • the information of the current session is analyzed, and the control instruction to be sent to the service server is determined according to the analysis result of the information of the current session.
  • the control instruction includes at least one of a first control instruction and a second control instruction.
  • the first control instruction includes one of the following operations: the service server continues to send, stops transmitting all information of the current session, and continues to transmit partial information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current meeting.
  • the determined control command is sent to the service server.
  • the analysis results are obtained by analyzing the information of the current session.
  • the analyzing device is configured to receive information of a historical session sent by the service server, and analyze information of the historical session. Thereby obtaining the analysis result of the historical conversation.
  • the control device is further configured to send the determined control instruction to the service server; the service server is further configured to receive a control instruction sent by the control device, and perform control sent by the controlled device. The operation indicated by the instruction.
  • the session sent by the service server is monitored according to the control instruction, and the session performed by the service server is determined according to the control instruction. Improve the controllability of the session and the relevance of session acquisition.
  • the session monitoring system further includes a message transmitting device, and the message transmitting device is configured to receive information about the current session and information of the historical session sent by the service server.
  • the messaging device is further configured to add the received information of the current session to the information pair column of the current session of the service server, and send information of the current session in the current session queue to the control device.
  • the information of the historical session is added to the information queue of the historical session of the service server, and the information of the historical session in the historical session queue is sent to the analysis device.
  • the message transmission device is configured to receive a control instruction sent by the control device, heat the control instruction to the control instruction queue of the service server pointed by the instruction, and send the control instruction in the control command queue of the service server to the phase Corresponding business server.
  • the control commands sent to each service server are respectively queued, so that the transmission of the control command is more controllable.
  • a method, device and system for session monitoring according to embodiments of the present invention.
  • the information of the current session is sent to the control device by determining that the session is the current session or the historical session, and the analysis result of the information of the current session is obtained by analyzing the information of the current session. And issuing a control command according to the analysis result, adjusting the current session sent to the control device or stopping or continuing the session with the client. Improves control over the current session and reduces the amount of analysis of the current session.
  • the historical session information is sent to the analysis device, and the historical session information with large analysis requirements is sent to the analysis device, and the historical session is analyzed by the analysis device. Thereby, the data is processed separately according to requirements, the implementation of the session monitoring scheme is improved, the consumption of resources is reduced, and the service requirement of session monitoring is satisfied.
  • FIG. 1 is a structural relationship diagram of a session monitoring system according to an embodiment of the present invention.
  • FIG. 2 is a flow chart of message transmission of a session monitoring system according to an embodiment of the present invention
  • FIG. 3 is a service server according to an embodiment of the present invention.
  • FIG. 5 is a flowchart monitoring method according to an embodiment of the present invention.
  • FIG. 6 is a service server according to an embodiment of the present invention.
  • Figure 7 is a control device according to an embodiment of the present invention.
  • FIG. 8 is a service server according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a control device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method, a device, and a system for session monitoring, by obtaining a session generated after a service server is connected to a client from a service server, and monitoring and controlling the session.
  • the information of the current session and the information of the historical session included in the acquired session information are separately sent, and the information of the historical session is sent to the analysis device for analysis.
  • a control instruction is sent to the service server based on the result of the analysis of the information of the current session.
  • the information of the current session and the information of the historical session are respectively sent to different devices, so that the control device and the analysis device are differentially configured according to the current session information and the characteristics of the historical session information, so as to satisfy the pair.
  • the information of the current session is analyzed and controlled at the same time, and the information of the historical conversation is analyzed.
  • FIG. 1 is a structural diagram of a session monitoring system according to an embodiment of the present invention.
  • the session monitoring system is used for session monitoring of distributed systems.
  • the distributed system includes a load balancing device and one or more service servers.
  • the load balancing device receives the request sent by the client and assigns the request to any one of the one or more service servers, so that the client establishes a connection with the service server and
  • the business server performs other operations.
  • the service server establishes a connection with the client according to the request sent by the client or the service server and the client perform a session after establishing a connection with the client, and the session information is generated.
  • the session information is stored in the business server.
  • the session monitoring system is configured to obtain the session information from the service server.
  • a session is divided into a current session and a historical session.
  • the current session is an ongoing session and the historical session is an ended session.
  • the content of the current session information is increased according to changes in the content of the service server and the client session.
  • the current session and the historical session are determined according to the time when the service server executes an instruction for determining session information, that is, when executing an instruction for determining session information or when During a certain period of time when the instruction for determining the session information is located, the ongoing session is the current session, and correspondingly, the session that has ended at the above time or the time period is a historical session.
  • the specific judgment condition can be set in advance.
  • the information of the current session is stored in the service server, so as to facilitate modification when the session state of the service server and the client changes.
  • the content of the historical session information is determined, In one example, the historical session information is stored on a disk.
  • the session monitoring system also includes a messaging device, an analysis device, and a control device.
  • the service server sends the information of the current session and the information of the historical session to the messaging device.
  • the messaging device receives the information of the session sent by the service server, and sends the information of the session to the analysis device and the control device, respectively.
  • the information sent to the session on the analysis device is the information of the historical session, and the information sent to the session controlling the device is the information of the current session.
  • the analysis device analyzes the information of the historical session and analyzes and controls the information of the current session through the control device.
  • the information sent to the session on the analysis device is information of a historical session
  • the information sent to the session of the control device is information of the current session.
  • the control device in the sense of the embodiment of the present invention can be made as long as the information of the current session is sent to a device that can analyze the session and control the current session sent to the device according to the analysis result.
  • the device that can analyze the received session information may be a control device in the sense of an embodiment of the present invention.
  • each session information includes multiple states, such as any of "connected”, “logged in”, “active”, “logged out”, “disconnected”, etc., and the time including each state And other information.
  • the "connected” state is used to indicate that a session has been established.
  • the “login” status is used to determine that the client's session is made by a certain user.
  • the “active” state is used to indicate that the client's operations are frequent.
  • the “logout” status is used to indicate that the client's session has changed from a user to an indeterminate user.
  • the "disconnected” state is used to indicate that the session between the service server and the client has been completed, the connection is disconnected, or the service server and the client are disconnected from the client without a session (for example, 30 seconds).
  • the service server is further configured to determine a session state, and the service server performs state determination on each session to determine that the state of each session is a current session or a historical session.
  • the service server determines whether the session is a current session or a historical session by determining whether the state includes a "disconnected" state when determining the state of a session. If the status of a session includes the "disconnected" status, the information of the session is information of the historical session. If the status of a session does not include the "disconnected” status, the information of the session is the information of the current session.
  • the messaging device is configured to receive information about a current session and a history session sent by the service server.
  • the message transmitting device adds the information of the current session and the information of the historical session sent by each service server to their respective queues, that is, each service server includes a queue of information of the current session and information of a historical session in the message transmitting device. Queue.
  • the information of the current session is sent to the control device according to the order of the queues of the information of the current session.
  • the information of the historical session is sent to the analysis device according to the order of the queues of the information of the historical session.
  • the information of the current session when the information of the current session is simultaneously transmitted to the control device and the information of the historical session is transmitted to the analysis device, the information of the current session in the queue of the information of the current session is preferentially transmitted to the analysis device. Therefore, the information of the current session can be analyzed in time, and the control instruction is issued in time according to the analysis result.
  • the message sending device is further configured to receive a control command sent by the control device.
  • the messaging device sends the received control commands to different service servers to form different queues, thereby sending the interaction modules to different service servers.
  • the messaging device can be a standalone device that interfaces with the controller, the analytics device, and the service server via an Ethernet interface.
  • the session monitoring system may not include a messaging device.
  • the service server receives the information of the current session directly to the control device, and sends the information of the historical session to the analysis device.
  • the analysis device analyzes the information of the historical session and analyzes and controls the information of the current session through the control device.
  • the service server is configured with an interface of the FTP protocol, and the analysis device is directly connected to the service server through an FTP protocol.
  • the analyzing device acquires historical session information on the service server by sending a request to the service server.
  • the interface for configuring the FTP protocol on the service server is only an example of the present invention.
  • the analysis device can be connected to the service server by using SFTP or TFTP.
  • the control device receives the information of the current session, and analyzes the information of the current session to obtain an analysis result of the information of the current session.
  • the control instruction is determined by analyzing the result of the information of the current session.
  • the control device may also control the current session sent to the control device and control the current session of the service server and the client.
  • the control command includes any one of a first control command and a second control command.
  • the first control instruction is used to instruct the service server to perform one of the following operations: continuing to send information of the current session, stopping sending information of the current session, and continuing to send part of the current session, and the control device is acquiring After the information of the current session, the control command is sent to the service server according to the result of analyzing the information of the current session.
  • the second control instruction is used to instruct the service server to stop or continue the current meeting.
  • the first control instruction may be "the information of the current session containing content such as the "logout” status is no longer sent to the control device.”
  • the first control command can also be set before the session monitoring. For example, the information of the session generated by the client and the service server that is logged in using a certain brand (such as Samsung) or a certain type of terminal is not sent to the control device.
  • the first control instruction may be that after the control device analyzes the information of the current session, the connection with the client is disconnected according to the result of analyzing the current session. For example, the business server is disconnected from the client's session generated by the client, such as the session number "102356", such that the session numbered "102356" becomes the historical session.
  • the analyzing device is configured to receive information of a historical session sent by the messaging device, analyze the received historical session information, and obtain an analysis result of the historical session information.
  • the information of the current session and the information of the historical session by transmitting the information of the current session and the information of the historical session to different devices separately, the information of the historical session that analyzes the demand is sent to the special analysis device, and the analysis and the analysis result are needed.
  • the information of the current session being controlled is sent to the control device. This not only improves the processing power of the data, but also improves the ability to control some of the data that can be controlled.
  • FIG. 2 is a flow chart of message transmission of a session monitoring system according to an embodiment of the present invention.
  • the service server includes a session proxy module, and the session proxy module is configured to obtain a session generated by the service server and the client after establishing a connection according to the request of the client.
  • the session proxy module acquires the session, and the information of the acquired session is divided into information of the current session and information of the historical session.
  • the service server includes a state judging unit, and the session proxy module determines, by the state judging unit, the information of the obtained session as the information of the current session or the information of the historical session.
  • the session proxy module further includes a session sub-module, configured to send information about the current session and historical session information to the message delivery device, respectively.
  • FIG. 2 is merely an example of implementation and is not intended to limit the invention.
  • an asynchronous trigger mechanism is set in the service server, for example, when the service server When it is detected that the information of the current session or the information of the historical session includes the information of the new session, the information of the new session is sent to the session sub-module.
  • the use of the asynchronous triggering mechanism to obtain the session information in the service server is only one specific embodiment of the present invention, and is not used to limit the present invention.
  • the new session information included in the service server may also be determined in a polling manner, and the information of the session is sent to the session sub-module.
  • the information of the session further includes a session identifier, where the session identifier is used to distinguish information about a session generated in the different service server.
  • the session proxy module further includes an interaction submodule, where the interaction submodule is configured to receive a control instruction, where the control instruction is used to indicate a session proxy module, for example, to stop in the current session. Monitor a session or initiate monitoring of a session in the current session.
  • control instructions received by the interaction sub-module can be used to stop the session between the service server and the client, thereby making the session a historical session.
  • the session broker module may be a program installed on a service server. Thereby, the information of the session in the service server is directly obtained, and the information of the session is sent to other devices through an interface of the service server (for example, an Ethernet interface).
  • the service server that generates the session is determined by the identifier information included in the information of the session, and the information of the current session received is added to the service server.
  • Current session queue When the information of the historical session sent by the session sub-module of the service server is received, the service server that generates the session is determined by the identification information included in the information of the session, and the information of the received historical session is added to the historical session queue corresponding to the service server. .
  • the message transmitting device sends the information of the current session included in the current session queue of each service server to the controller in the order of the queue, and sends the historical session information included in the historical session queue of each service server according to the sequence of the queue. To the analysis device.
  • the messaging device also receives control commands sent by the control device, the control commands including the service server implemented by the instructions.
  • the message transmitting device adds the control instruction to the control instruction queue of the corresponding service server according to the service server implemented by the instruction, and sends the control instruction in the control instruction queue to the service in chronological order.
  • An interactive submodule of the session proxy in the server is an interactive submodule of the session proxy in the server.
  • the control command is sent to the interaction sub-module and the session information is sent to the control device and the analysis device.
  • the control instruction can be sent to the session proxy module in a timely manner, so that the session proxy module can start and stop the session information monitoring and stop the session in a timely manner according to the control instruction.
  • the control device includes a session analysis unit and a command unit.
  • the session analysis unit is configured to receive information about the current session sent by the message transmitting device, and analyze the received session information to obtain the content of the current session.
  • the analysis of the information of the current session can employ multiple processes, thereby making the analysis of the information of the current session faster.
  • the command unit is configured to send a control command, and the control command is divided into a “first control command” and a “second control command”.
  • the “second control instruction” may be used to enable or disable session monitoring, thereby reducing unnecessary information analysis of the current session, and a specific operation mode of the second control instruction is to talk the service server with the client. Disconnected.
  • the "first control instruction” is used to determine the current session sent to the control device Information, thereby avoiding the resource consumption caused by sending all current session information to the control device.
  • the first control instruction and the second control instruction may be sent according to a result of analyzing the information of the current session by the session proxy module, or may be issued according to other information.
  • the "first control instruction" is used to indicate that session information including, for example, an "active" state is included in information of the current session.
  • the session proxy module sends the information of the corresponding current session to the control device according to the content of the “first control instruction”.
  • the session analysis unit and the command unit can be implemented by a software program.
  • a session monitoring system includes a service server, a messaging device, a control device, and an analysis device.
  • a distributed system includes a service server and a load balancing device, where the service server is the same service server as the service server in the session monitoring system, and the service server includes a first service server and a second service server. .
  • An asynchronous triggering mechanism is configured in the first service server, where the asynchronous triggering mechanism is used to send information of the session to the first session proxy in the first service server when a new session is generated in the service server.
  • a status monitoring unit is further disposed in the first service server, where the status monitoring unit is configured to determine that the session transmitted to the first session proxy is a current session or a historical session. The status monitoring unit determines that the first current session is a current session, and information of the first current session is transmitted to a session sub-module of the first session proxy. The information of the first current session is sent to the messaging device in a session sub-module of the first session proxy through a transmission channel of the current session.
  • the message transmitting device receives the information of the first current session from the current session channel, and adds the information of the first current session to the first current session corresponding to the first service server according to the information of the service server included in the information of the first current session. In the team.
  • the messaging device transmits the session information in the first current messaging team to the control device in chronological order.
  • the control device receives information of the first current session sent by the first current session queue in the messaging device.
  • the session analysis unit in the control device analyzes the information of the first current session information, and obtains an analysis result of the information of the first current session. Determining, according to an analysis result of the information about the first current session, a control instruction sent to the first service server, and sending, by the command unit, a control instruction to the service server, where the control instruction is used to indicate that the service server disconnects The connection of the first client.
  • the control device transmits the control command to the messaging device.
  • the message transmitting device receives the control instruction, and adds the control instruction to the first control instruction queue according to the first service server pointed by the control instruction.
  • the messaging device transmits from the first control command in the first control command queue to the first service server in chronological order.
  • the first interaction sub-module of the first session proxy of the first service server receives the control instruction. And disconnecting the session of the first service server from the first client according to the control instruction. A new state is added to the information of the first current session of the first client and the first service server, and the state is "disconnected".
  • the first current session becomes a first historical session.
  • Asynchronous triggering in the service server due to the generation of the first historical session The mechanism acquires information of the first historical session and sends the information to the first conversational agent.
  • the foregoing disconnecting the first service server from the first client according to the control instruction of the control device is only an example of disconnecting the client from the service server.
  • the disconnection of the connection between the service server and the client may be any one of a plurality of cases in which the time threshold is not generated, the new session is not generated, and the client requests the disconnection.
  • the present invention does not limit the present invention. In any case, when the connection between the service server and the client is disconnected, the current session generated by the service server and the client becomes a historical session.
  • the service server sends the information of the first historical session to the first session sub-module of the first session proxy.
  • the first session sub-module transmits the information of the first historical session to the messaging device through the historical session information channel.
  • the messaging device receives information of the first historical session of the first session sub-module through a historical session information channel.
  • the message transmitting device adds the information of the first historical session to the information queue of the first historical session according to the service server information included in the information of the first historical session.
  • the message transmitting device sends the information of the historical session included in the information queue of the first historical session to the analysis device in chronological order.
  • the analyzing device receives information of a first historical session sent by the messaging device.
  • the analyzing device analyzes the information of the first historical session, and obtains an analysis result of the information of the first historical session.
  • the first service server and the second service server in the distributed system are only examples of the present invention. In the embodiment of the present invention, any number of service servers may be included. The invention is not limited thereto.
  • FIG. 3 is a service server according to an embodiment of the present invention.
  • the service server is applied to a distributed system.
  • the distributed system includes a load balancing device and a plurality of the service servers.
  • the load balancing device receives the client's request and distributes the client's request to one of the plurality of service servers.
  • One of the plurality of service servers is connected to the client and generates information of the session, the information of the session including information of the current session and information of the historical session.
  • the information of the session is connected to the messaging device through an Ethernet interface, and the messaging device transmits information of the current session to the control device, and transmits information of the historical session to the analyzing device.
  • a processor configured to process all requests in the service server.
  • the persistent storage medium is used to store data sent by a client. And information about a historical session generated when the business server is connected to the client, and the persistent storage medium further stores an installed application, such as a session agent.
  • the memory is used to cache information of the current session, and the current session information is modified by the processor according to the change of the connection state. And, instructions and programs for the cache processor to call, such as session agents and state determination instructions.
  • the service server When the service server starts running, it receives a request distributed by the load balancing device, and the request is used to establish a connection between the client and the service server and perform other operations.
  • the client When the client establishes a connection with the service server, information about the current session is generated, and the information of the current session is stored in the memory. Each of the information included in the current session The status will change according to the connection status between the service server and the client.
  • the connection status between the service server and the client is disconnected, that is, after the connection between the service server and the client is disconnected, the current session will become a historical session, the current session.
  • the information will be changed to the information of the historical session, and the information of the historical session will be saved to the persistent storage medium.
  • the processor obtains the information of the session included in the service server by calling the session agent. For the information of the acquired session, the processor determines, by calling the state determination instruction, each session information in the session information as information of the current session or information of the historical session. The information of the current session and the information of the historical session are sent to the messaging device via an interface, such as an Ethernet interface.
  • the service server also receives control commands issued by the messaging device for controlling information of the current session in the service server.
  • the processor receives the control command issued by the messaging device and invokes the session agent to determine the received control command by executing the session agent and execute the control command.
  • the service server receives a control command sent by the messaging device, and the control command is used to indicate that the session information of the “establishment connection time: before December 31, 2015” in the current session is not monitored. . Therefore, the session agent queries the current session information, and determines that the connection state in the current session information occurs for all current sessions before December 31, 2015. Obtaining the ID of the determined session. When the service server acquires the information of the current session and sends the information to the messaging device, the session of the ID is not obtained.
  • FIG. 4 is a schematic diagram of a method for session monitoring according to an embodiment of the present invention.
  • the method is used for session monitoring of a distributed system, where the distributed system includes a load balancing device and one or more service servers.
  • the load balancing device is configured to distribute a request from a client to the one or more service servers, the request being used by the one or more service servers to establish a connection with a client corresponding to the request and generate a session Information.
  • the method includes:
  • S401 Determine session information in the service server, where the session information is generated by a session between the service server and a client that establishes a connection, where the session information includes at least information of a current session and information of a historical session.
  • the current session is an ongoing session
  • the historical session is an ended session.
  • the service server includes a set trigger mechanism, and the trigger mechanism is used to determine information of a session that needs to be sent included in the service server.
  • each piece of session information includes a plurality of states, such as a state of connection, login, active, logout, disconnection, etc., and information including the time of each state.
  • the service server further includes a state determining unit. After determining the session information, the state determining unit determines that the state of the session information is a current session or a historical session. In an example, if the state of the session information includes the "disconnected" state, the piece of session information is historical session information; if the state of the session information does not include the "disconnected" state, the information of the session is Information about the current session.
  • the session proxy includes a session sub-module that transmits information of the current session and information of the historical session to the messaging device through the session sub-module. Sends information about the current session through the current session channel.
  • the information of the historical session is sent through the historical session channel.
  • the session information is sent through an interface of the service server (eg, an Ethernet interface).
  • the service server eg, an Ethernet interface
  • the control instruction is configured to determine at least one of a first control instruction and a second control instruction, the first control instruction is used to instruct the service server to perform one of the following operations: stopping the transmission The information about the current session, continuing to send all the information of the current session, and continuing to send part of the information of the current session, where the second control instruction is used to instruct the service server to stop or continue the current session.
  • the information of the current session and the information of the historical session are also required to be sent to the message delivery device.
  • the messaging device receives the information of the historical session and obtains the service server number included in the information of the historical session.
  • the information of the historical session sent by each service server is added to the historical session queue corresponding to the service server.
  • the information of the historical session included in the history session queue is sent to the analysis device according to the priority of each piece of information in the queue.
  • the messaging device receives the information of the current session and obtains the service server number included in the information of the current session.
  • the information of the current session sent by each service server is added to the current session queue corresponding to the service server.
  • the information of the current session included in the current session queue is sent to the session analysis unit of the control device.
  • the control device receives the information of the current session sent by the messaging device, analyzes the information of the current session, and obtains an analysis result of the information of the current session.
  • multiple processes may be used for analysis, thereby improving the analysis efficiency of the information of the current session.
  • the control device further includes a command unit, and the command unit is configured to send a control instruction to the service server for changing information of a current session sent to the control device.
  • the messaging device receives a control command sent by the control device, the control command including a service server implemented by the instruction.
  • the message transmitting device adds the control instruction to the control instruction queue of the corresponding service server according to the service server implemented by the instruction, and sends the control instruction in the control instruction queue to the service in chronological order.
  • An interactive submodule of the session proxy in the server The session proxy obtains the control instruction and sends the control instruction to a service server, and executes the instruction through a service server.
  • S403. Send information of the historical session to an analysis device, where information of the historical session is used by the analysis device to analyze the historical session.
  • the analysis device can also be directly connected to the service server.
  • An interface of the FTP protocol is configured on the service server, and the analysis device is directly connected to the service server by using an FTP protocol.
  • the analyzing device obtains historical session information on the service server by logging in to the service server.
  • the interface for configuring the FTP protocol on the service server is only an example of the present invention.
  • the analysis device can be connected to the service server by using SFTP or TFTP.
  • information of a current session and information of a historical session are separately transmitted to an analysis device and a control device, respectively. Therefore, the historical session is analyzed by the analysis device with strong analysis capability, and the current session analysis is controlled by the control device having the analysis and processing capability at the same time. Thereby, the session is processed separately according to requirements, and the session analysis efficiency of the system is improved.
  • FIG. 5 is a flowchart monitoring method according to an embodiment of the present invention. As shown in FIG. 5, the method includes:
  • the control device receives information about a current session sent by the service server, where the information of the current session is generated by a session that the service server is performing with the client.
  • the control device receives information of a current session sent by the messaging device.
  • S502. Determine, according to the information about the current session, a control instruction sent to the service server, where the control instruction includes at least one of a first control instruction and a second control instruction, where the first control instruction is used to indicate
  • the service server performs one of the following operations: continuing to send all information of the current session, continuing to send partial information of the current session, and stopping sending information of the current session, where the second control instruction is used to indicate The business server stops or continues the current session.
  • the control device includes a session analysis unit, and the session analysis unit is configured to analyze information of the received current session to obtain content of the current session.
  • the control device analyzes the current session, multiple processes may be used for analysis to obtain the content of the current session more quickly. Thereby, the working efficiency of the control device is improved, and at the same time, the control command can be issued more efficiently.
  • the session analysis unit analyzes the information of the current session and obtains the analysis result of the information of the current session, and may also determine the control instruction according to the analysis result of the information of the current session. Thereby reducing the information of the current session sent to the control device and disconnecting the business server from the client.
  • control instructions are used to determine the content of the current session sent by the service server. For example, the time to establish a connection in the current session is: before December 31, 2015 is not monitored. Therefore, the current session information of the current session received by the control device does not include the current session information of "the time when the connection is established is: before December 31, 2015."
  • the control instruction may also be that the service server and the client that generate the information of the session are disconnected. Thereby the information of the current session becomes the information of the historical session.
  • the control device After determining that the control device needs to send a control command to the service server, the control device sends the control command to the service server through the message transmitting device.
  • the message sending device receives a control command sent by the control device.
  • the control instruction is added to the corresponding control instruction queue of the message transmitting device according to the service server pointed to by the control instruction.
  • a control instruction in the control instruction queue is sent to the service server corresponding to the control instruction queue.
  • the information of the current session is analyzed, and the content of the current session is obtained. Controls the current session based on the content of the current session obtained. Improves the ability to use the current session, while also reducing the current session that needs to be analyzed, improving the efficiency of the device.
  • FIG. 6 is a schematic diagram of a service server according to an embodiment of the present invention.
  • the service server may be configured to monitor a session in a service server, where the service server receives a request from a client, and the service server establishes a connection with the client terminal according to the request to perform a session and generate a session. And the service server sends the information of the session to the analysis device and the control device, and the information of the session is analyzed by the analysis device and the control device.
  • the service server includes:
  • the processing unit 601 is configured to determine that the session information in the service server is information of a current session or information of a historical session; the information of the session is generated by a session between the service server and a client that establishes a connection, where The current session is an ongoing session and the historical session is an ended session.
  • An asynchronous trigger mechanism is set in the service server.
  • the service server shown determines the changed session information.
  • the present invention may also determine session information included in the service server by polling.
  • each piece of session information includes a plurality of states, such as a state of connection, login, active, logout, disconnection, etc., and information including the time of each state.
  • the service server also includes a status After determining the session information, the determining unit determines, by the state determining unit, that the state of the session information is a current session or a historical session. If the state of the session information includes a "disconnected" state, the piece of session information is historical session information. If the status of the session information does not include the "disconnected" status, the information of the session is the information of the current session.
  • the service server acquires the session information when determining that the session information has a new state change, and determines the session information through the state determination module.
  • the status is the current session or historical session. If the last state of the session information is disconnected, the piece of information is historical session information. If the last state of the session information is not disconnected, the piece of information is the current session information.
  • the sending unit 602 is configured to send information about the current session to the control device, where information of the current session is used by the control device to determine to stop or partially send information about the current session or stop the current session; And information for transmitting the historical session to the analysis device, the information of the historical session being used by the analysis device to analyze the historical session.
  • a session proxy module is further disposed in the service server, where the session proxy module includes a session sub-module.
  • the session sub-module receives current session information in the service server, and sends current session information to the second device through an interface of the service server, such as an Ethernet interface.
  • the session sub-module receives historical session information in the service server, and sends historical session information to the first device through an interface of the service server, such as an Ethernet interface.
  • the first device in the embodiment of the present invention may be a controller, or any other device capable of analyzing data and issuing control commands.
  • the service server further includes an acquiring unit, where the acquiring unit is configured to receive a first control instruction sent by the control device, and determine, according to the first control instruction, a sending unit to the control Information about the current session sent by the device.
  • the obtaining unit is further configured to receive a second control instruction sent by the control device, and determine, according to the second control instruction, that the service server continues or terminates a current session with the client.
  • FIG. 7 is a schematic diagram of a session control apparatus according to an embodiment of the present invention.
  • the receiving unit 701 is configured to receive information about a current session sent by the service server, where the information of the current session is a session that the service server is performing with the client.
  • the controller receives current session information sent by the messaging device.
  • the processing unit 702 is configured to determine, according to the information about the current session, a control instruction to be sent, where the control instruction includes a first information used to indicate that the service server continues to send or stop sending or partially transmitting information about the current session. Controlling instructions, and any one or more of the second control instructions for instructing the service server to stop a session with the client.
  • the control device includes a session analysis unit, and the session analysis unit is configured to analyze the received current session information to obtain an analysis result of the current session information.
  • the control device may analyze by using multiple processes to obtain the content of the current session more quickly. Thereby, the working efficiency of the control device is improved, and at the same time, the control command can be issued more efficiently.
  • the session analysis unit After analyzing the information of the current session and obtaining the result of the information analysis of the current session, the session analysis unit is further configured to determine the control instruction according to the analysis result of the current session. Thereby reducing the current session and disconnecting the business server from the client.
  • the sending unit 703 is configured to send the determined control instruction to the service server.
  • FIG. 8 is a service server according to an embodiment of the present invention.
  • the service server includes a processor 801, a memory 802, a communication interface 803, and a bus 804.
  • the processor 801, the memory 802, and the communication interface 803 implement communication connections with each other through the bus 804.
  • the processor 801 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 802 can be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • Memory 902 can store operating systems and other applications.
  • the program code for implementing any optional technical solution provided by the foregoing method embodiment of the present invention is saved in the memory 802 and executed by the processor 801. .
  • Communication interface 803 is used to communicate with other switches or control control devices.
  • Bus 804 can include a path for communicating information between various components of the device, such as processor 801, memory 802, and communication interface 803.
  • FIG. 9 is a schematic diagram of a controller according to an embodiment of the present invention.
  • the service server includes a processor 901, a memory 902, a communication interface 903, and a bus 904.
  • the processor 901, the memory 902, and the communication interface 903 implement a communication connection with each other through the bus 904.
  • the processor 901 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 902 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • Memory 902 can store operating systems and other applications.
  • the program code for implementing any optional technical solution provided by the foregoing method embodiment of the present invention is saved in the memory 902 and executed by the processor 901. .
  • Communication interface 903 is used to communicate with other switches or control control devices.
  • Bus 904 can include a path for communicating information between various components of the device, such as processor 901, memory 902, and communication interface 903.
  • RAM random access memory
  • ROM Read memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明实施例公开了一种会话监控的方法、装置和系统。方法用于确定业务服务器中的会话信息,会话信息包括当前会话的信息和历史会话的信息中的至少一种。向控制设备发送当前会话的信息,当前会话的信息被控制设备用于确定控制指令。向分析设备发送历史会话的信息,历史会话的信息被分析设备用于分析所述历史会话。通过对当前会话的信息进行分析,获取当前会话的信息的分析结果。并根据分析结果发出控制指令,调整发送至控制设备的当前会话。提高了对当前会话的控制能力和减少了当前会话的分析量。由此实现了按需求将数据分别进行处理,提高了会话监控方案的实施性,降低了对资源的消耗,满足了会话监控的业务需求。

Description

一种会话监控的方法、装置和系统
本申请要求2016年05月17日提交中国专利局、申请号为201610179769.3、发明名称为“一种会话监控的方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请文件中。仅仅是为了简洁表述,其全部内容不在本申请文件中再原文重复一遍
技术领域
本发明涉及会话监控领域,尤其涉及一种会话监控的方法、装置和系统。
背景技术
会话监控主要是对客户端与业务服务器之间会话状态变化相关信息的记录和监控。例如对用户名、客户端、时间戳、会话状态等内容的监控,从而用于计费、审计、监控、数据挖掘等。
在现有的会话监控方案中,或者通过离线的方式通过大数据分析设备处理业务服务器的历史会话的信息,实时性差,也难以直接监控当前的会话;或者采用轮询或异步触发的方法监控当前的会话,会消耗大量的资源且可靠性差,故无法在业务历史会话的信息进行维护。综上,现有的会话监控方案可实施性差,对资源消耗大,不能满足会话监控的业务需求。
发明内容
本发明实施例提供了一种分布式系统中会话监控的方法、装置和系统,可以实现兼顾当前会话的信息和历史会话的信息,可实施性较好,能够更好的兼顾系统开销和业务监控的性能需求。
一方面,本发明实施例提供了一种会话监控的方法,通过确定业务服务器中的会话的信息,会话的信息包括当前会话的信息和历史会话的信息中的至少一种;向控制设备发送当前会话的信息,当前会话的信息被控制设备用于确定控制指令;控制指令包括第一控制指令和第二控制指令中的至少一种,第一控制指令用于指示业务服务器执行如下操作中的一种:停止发送当前会话的、继续发送当前会话的所有信息和继续发送当前会话的部分信息。第二控制指令用于指示业务服务器停止或继续当前会话。向分析设备发送历史会话的信息,历史会话的信息被分析设备用于分析历史会话;由此实现了按需求将当前会话和历史会话分别进行处理,通过当前会话确定哪些当前会话的信息为所需要的,哪些当前会话的信息为不需要的,向控制设备发送所需要的当 前会话的信息,从而减少向控制设备发送当前会话的信息,提高了会话监控方案的可实施性,降低了对资源的消耗,满足了会话监控的业务需求。
在一种实现方式中,该方法用于分布式存储系统中,分布式存储系统中还包括负载均衡设备和一个或多个业务服务器,负载均衡设备用于向一个或多个业务服务器分发来自客户端的请求。通过确定业务服务器中的会话的信息,会话的信息包括当前会话的信息和历史会话的信息中的至少一种。
在一个可能的设计中,所述方法还包括根据接收的控制设备发送的第一控制指令来确定的,根据第一控制指令确定待向控制设备发送的当前会话的信息。由此使当前会话的监控更加具有针对性,减少了当前会话的信息分析的工作量,提高了效率。
在一个可能的设计中,所述方法还包括根据接收的第二控制指令来确定,根据第二控制指令继续或者终止与所述客户端正在进行的当前会话。通过继续或终止与客户端的会话,降低对系统的额外消耗。
另一方面,本发明提供了一种会话监控方法,控制设备接收业务服务器发送的当前会话的信息。对当前会话的信息进行分析,根据当前会话的信息的分析结果确定将要向业务服务器发送的控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种。第一控制指令用于指示业务服务器执行如下操作中的一种:继续发送或停止发送当前会话的所有信息、继续发送当前会话的部分信息和停止发送所述当前会话的信息。第二控制指令用于指示业务服务器停止或继续所述当前会。向业务服务器发送确定出的控制指令。通过对当前会话的信息进行分析,从而获得分析结果。以及根据分析结果确定并向业务服务器发送第一控制指令和第二控制指令,从而对当前会话的信息进行过滤,减少接收的当前会话的信息的分析,降低了对控制设备的资源的消耗。
再一方面,本发明提供一种业务服务器,包括处理单元和发送单元。处理单元用于确定业务服务器中的会话信息,所述会话的信息包括当前会话的信息和历史会话的信息中的至少一种。发送单元用于发送会话的信息,向控制设备发送当前会话的信息,当前会话的信息被控制设备用于确定控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种,第一控制指令用于指示业务服务器执行如下造成中的一种:停止发送当前会话的、继续发送当前会话的所有信息和继续发送当前会话的部分信息的。第二控制指令用于指示业务服务器停止或继续当前会话。向分析设备发送历史会话的信息,历史会话的信息被分析设备用于分析历史会话。由此实现了按需求将当前会话和历史会话分别进行处理,通过当前会话确定哪些当前会话的信息为所需要的,哪些当前会话的信息为不需要的,仅向控制设备发送所需要的当前会话的信息,提高了会话监控方案的实施性,降低了对资源的消耗,满足了会话监控的业务需求。
在一个可能的设计中,业务服务器中还包括获取单元,获取单元用于接收控制设备发送的第一控制指令,根据第一控制指令确定发送单元向控制设备发送的当前会话的信息。从而有针对的向控制设备发送当前会话的信息,减小第一控制设备的数据分析量,较小额外消耗。
在一个可能的设计中,业务服务器还还包括获取单元,获取单元用于接收控制设备发送的第二控制指令。根据第二控制指令确定业务服务器继续或者终止与客户端正在进行的当前会话。通过继续或终止与客户端的会话,降低对系统的额外消耗。
又一方法,本发明提供一种会话控制装置,包括接收单元、处理单元。接收单元用于接收业务服务器发送的当前会话的信息。处理单元对当前会话的信息进行分析,根据当前会话的信息的分析结果确定将要向业务服务器发送的控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种。第一控制指令包括用于指示业务服务器执行如下操作中的一种:继续发送当前会话的部分信息、停止发送当前会话的信息和继续发送当前会话的部分信息。第二控制指令用于指示业务服务器停止或继续所述当前会。向业务服务器发送确定出的控制指令。通过对当前会话的信息进行分析,从而获得分析结果。以及根据分析结果确定并向业务服务器发送第一控制指令和第二控制指令,从而对当前会话的信息进行过滤,提高了会话监控方案的实施性,降低了对资源的消耗,满足了会话监控的业务需求。
再另一方面,本发明实施例提供一种业务服务器,包括处理器、存储器、通信接口和总线。处理器、存储器和通信接口通过总线通信。其中,通信接口用于与外部的其它设备和客户端连接。存储器中存储了会话信息和程序。当业务服务器运行时,处理器执行存储器中存储的程序。根据存储的程序通过确定业务服务器中的会话的信息为当前会话的信息或历史会话的信息。向控制设备发送当前会话的信息,当前会话的信息被控制设备用于确定控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种,第一控制指令用于指示业务服务器执行如下操作中的一种:停止发送当前会话的、继续发送当前会话的所有信息和继续发送当前会话的部分信息的。第二控制指令用于指示业务服务器停止或继续当前会话。向分析设备发送历史会话的信息,历史会话的信息被分析设备用于分析历史会话。由此实现了按需求将当前会话和历史会话分别进行处理,通过当前会话确定哪些当前会话的信息为所需要的,哪些当前会话的信息为不需要的,仅向控制设备发送所需要的当前会话的信息,提高了会话监控方案的实施性,降低了对资源的消耗,满足了会话监控的业务需求。
在一个可能的设计中,程序还用于接收所述控制设备发送的所述第一控制指令,根据所述第一控制指令确定待向所述控制设备发送的当前会话的信息。
在一个可能的设计中,所述程序还用于接收所述控制设备发送的第二控制指令,根据所述第二控制指令继续或者终止与所述客户端正在进行的当前会话。
再又一方面,本发明实施例提供一种业务服务器,包括处理器、存储器、通信接口和总线。处理器、存储器和通信接口通过总线通信。其中,通信接口用于与外部的其它设备和客户端连接。存储器中存储了会话信息和程序。当业务服务器运行时,处理器执行存储器中存储的程序。根据存储的程序接收业务服务器发送的当前会话的信息。对当前会话的信息进行分析,根据当前会话的信息的分析结果确定将要向业务服务器发送的控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种。第一控制指令包括用于指示业务服务器执行如下操作中的一种:继续发送当前会话的、停止发送当前会话的所有信息和继续发送当前会话的部分信息。第二控制指令用于指示业务服务器停止或继续所述当前会。向业务服务器发送确定出的控制指令。从而对当前会话的信息进行过滤,减少接收的当前会话的信息的分析。提高了会话监控方案的实施性,降低了对资源的消耗,满足了会话监控的业务需求。
又再一方面,本发明具体实施例提供一种会话监控系统,包括业务服务器、控制 设备和分析设备。业务服务器用于确定会话信息,会话信息包括前会话的信息或历史会话的信息中的至少一种。向控制设备发送当前会话的信息,当前会话的信息被控制设备用于确定控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种,第一控制指令用于执行如下操作中的一种:业务服务器停止发送当前会话的、继续发送当前会话的所有信息和继续发送当前会话的部分信息。第二控制指令用于指示业务服务器停止或继续当前会话。向分析设备发送历史会话的信息,历史会话的信息被分析设备用于分析历史会话。控制设备用于接收业务服务器发送的当前会话的信息。对当前会话的信息进行分析,根据当前会话的信息的分析结果确定将要向业务服务器发送的控制指令。控制指令包括第一控制指令和第二控制指令中的至少一种。第一控制指令包括用于执行如下操作中的一种:业务服务器继续发送、停止发送当前会话的所有信息和继续发送当前会话的部分信息。第二控制指令用于指示业务服务器停止或继续所述当前会。向业务服务器发送确定出的控制指令。通过对当前会话的信息进行分析,从而获得分析结果。以及根据分析结果确定并向业务服务器发送第一控制指令和第二控制指令,从而对当前会话的信息进行过滤,减少接收的当前会话的信息的分析,降低控制设备的额外消耗。分析设备用于接收业务服务器发送的历史会话的信息,对历史会话的信息进行分析。从而获得历史会话的分析结果。在一个可能的设计中,所述控制设备还用于向所述业务服务器发送确定出的控制指令;所述业务服务器还用于接收所述控制设备发送的控制指令,执行所控制设备发送的控制指令指示的操作。根据控制指令对业务服务器发送的会话进行监控,以及根据控制指令确定业务服务器所进行的会话。提高了会话的可控性和会话获取的针对性。
在一个可能的设计中,会话监控系统中还包括消息传送设备,消息传输设备用于接收业务服务器发送的当前会话的信息和历史会话的信息。消息传送设备还用于将接收的当前会话的信息加入业务服务器的当前会话的信息对列,并将当前会话队列中的当前会话的信息发送至控制设备。将历史会话的信息加入业务服务器的历史会话的信息队列,并将历史会话队列中的历史会话的信息发送至分析设备。通过设置消息传送设备,将每个业务服务器发送的当前会话的信息和历史会话的信息分别建立队列,使会话的传输更加的可控。
在一个可能的设计中,消息传输设备用于接收控制设备发送的控制指令,将控制指令加热该指令所指向的业务服务器的控制指令队列,将业务服务器的控制指令队列中的控制指令发送至相对应的业务服务器。通过设置消息传输设备,将发送至每个业务服务器的控制指令分别列队,使控制指令的传输更加的可控。
本发明实施例的一种会话监控的方法、装置和系统。通过确定会话为当前会话或历史会话,将当前会话的信息发送至控制设备,通过对当前会话的信息进行分析,获取当前会话的信息的分析结果。并根据分析结果发出控制指令,调整发送至控制设备的当前会话或停止或继续与客户端的会话。提高了对当前会话的控制能力和减少了当前会话的分析量。将历史会话的信息发送至分析设备,将分析需求较大的历史会话信息发送至分析设备,通过分析设备对历史会话进行分析。由此实现了按需求将数据分别进行处理,提高了会话监控方案的实施性,降低了对资源的消耗,满足了会话监控的业务需求。
附图说明
图1为本发明实施例提供的一种会话监控系统的结构关系图;
图2本发明实施例提供的一种会话监控系统消息传输流向图;
图3为本发明实施例提供的一种业务服务器;
图4为本发明实施例提供的一种会话监控的方法;
图5为本发明实施例提供的一种会话监控方法;
图6为本发明实施例提供的业务服务器;
图7为本发明实施例提供的一种控制装置;
图8为本发明实施例提供的一种业务服务器;
图9为本发明实施例提供的一种控制设备。
具体实施方式
下面通过附图和实施例,对本发明实施例的技术方案做进一步的详细描述。
本发明的实施例提供一种会话监控的方法、设备和系统,通过从业务服务器中获取业务服务器与客户端连接后产生的会话,并对会话进行监测控制。将获取的会话信息中包括的当前会话的信息和历史会话的信息分别进行发送,将历史会话的信息发送至分析设备进行分析。将当前会话的信息发送至控制设备进行分析。根据对当前会话的信息分析的结果,向业务服务器发送控制指令。本发明实施例通过分别将当前会话的信息和历史会话的信息发送至不同的设备,从而根据当前会话的信息和历史会话的信息的特点,对控制设备和分析设备采取差异化配置,以满足对当前会话的信息同时进行分析和控制,对历史会话的信息进行分析的目的。
图1为本发明实施例提供的一种会话监控系统的结构关系图。如图1所示,会话监控系统用于对分布式系统进行会话监控。分布式系统中包括负载均衡设备和一个或多个业务服务器。当客户端向一个或多个业务服务器发送请求时,负载均衡设备接收客户端发送的请求,并将请求分配到一个或多个业务服务器上的任意一个,使客户端与业务服务器建立连接并对业务服务器进行其它操作。所述业务服务器与客户端根据客户端发送的请求建立连接或业务服务器与客户端在建立连接后客户端对业务服务器进行其它操作时将进行会话,并产生会话信息。该会话信息存储在业务服务器中。会话监控系统用于从业务服务器中获取所述会话信息。
会话分为当前会话和历史会话,当前会话为正在进行的会话,历史会话为已结束的会话。所述当前会话信息的内容根据业务服务器与客户端会话内容的变化而增加。需要说明的是,在具体的实现过程中,当前会话和历史会话是根据业务服务器执行用于确定会话信息的指令的时刻来确定的,即在执行用于确定会话信息的指令时或者在用于确定会话信息的指令的时刻所在的某一时间段内,正在进行的会话为当前会话,相应的,在上述时刻或该时间段内已结束的会话为历史会话。具体的判断条件可以预先设置。在一个例子中,所述当前会话的信息存储在业务服务器中,从而方便业务服务器与客户端的会话状态变化时进行修改。所述历史会话的信息的内容是确定的,在 一个例子中,所述历史会话信息存储在磁盘中。
会话监控系统中还包括消息传送设备、分析设备和控制设备。业务服务器将当前会话的信息和历史会话的信息发送至消息传送设备。消息传送设备接收业务服务器发送的会话的信息,并将会话的信息分别发送到分析设备和控制设备。发送到分析设备上的会话的信息为历史会话的信息,发送到控制设备的会话的信息为当前会话的信息。通过分析设备对历史会话的信息进行分析和通过控制设备对当前会话的信息进行分析和控制。
在本发明的实施例中,所述发送到分析设备上的会话的信息为历史会话的信息,发送到控制设备的会话的信息为当前会话的信息。只要是将当前会话的信息发送到一个既能对会话分析,又能根据分析结果对发送至该设备上的当前会话的信息进行控制都可以使本发明实施例意义上的控制设备。只要是可以对接收的会话信息进行分析的设备可以是本发明实施例意义上的控制设备。
在一个例子中,每条会话信息都包括多个状态,例如“连接”、“登录”、“活跃”、“注销”、“断开”等状态中的任意个,以及包括每个状态的时间等信息。在一个例子中,“连接”状态用于指示建立了会话。“登录”状态用于确定该客户端的会话由某一用户进行。“活跃”状态用于指示客户端的操作频繁。“注销”状态用于指示该客户端的会话由某一用户变为不确定用户。“断开”状态用于指示业务服务器与客户端的会话已完成,连接断开,或业务服务器与客户端一定时间(例如30秒)未进行会话业务服务器与客户端连接断开。
所述业务服务器还用于对会话状态的判定,所述业务服务器对每条会话进行状态判断,以判断每条会话的状态为当前会话或历史会话。
在一个例子中,所述业务服务器在判定一个会话的状态时,通过判断状态中是否包括“断开”状态从而确定所述会话为当前会话或历史会话。若一条会话的状态中包括“断开”状态,则该条会话的信息为历史会话的信息。若一条会话的状态中不包括“断开”状态,则该条会话的信息为当前会话的信息。
消息传送设备用于接收业务服务器发送的当前会话的信息和历史会话的信息。消息传送设备对每个业务服务器发送的当前会话的信息和历史会话的信息分别加入各自的队列,即每个业务服务器在消息传送设备中都包括一个当前会话的信息的队列和一个历史会话的信息的队列。按照当前会话的信息的队列的先后顺序将当前会话的信息发送至控制设备。按照历史会话的信息的队列的先后顺序将历史会话的信息发送至分析设备。
在一个例子中,同时将当前会话的信息向控制设备传送和将历史会话的信息向分析设备传送时,优先将当前会话的信息的队列中的当前会话的信息传送至分析设备。从而保证当前会话的信息能够被及时的分析,并根据分析结果及时的发出控制指令。
在本发明的实施例中,消息发送设备还用于接收控制设备发送的控制命令。消息传送设备对接收的控制命令按发送到不同的业务服务器形成不同的队列,从而发送到不同的业务服务器的交互模块。
消息传送设备可以是独立的设备,通过以太网接口与控制器、分析设备和业务服务器连接。
在一个例子中,所述会话监控系统可以不包括消息传送设备。所述业务服务器接收直接将当前会话的信息发送至控制设备,将历史会话的信息发送至分析设备。通过分析设备对历史会话的信息进行分析和通过控制设备对当前会话的信息进行分析和控制。例如所述业务服务器上配置了FTP协议的接口,所述分析设备直接与业务服务器通过FTP协议连接。分析设备通过向所述业务服务器发送请求,获取业务服务器上的历史会话信息。上述在业务服务器上配置FTP协议的接口仅为本发明的一种举例,也可以采用SFTP、TFTP等方式使分析设备与业务服务器连接。
控制设备接收当前会话的信息,通过对当前会话的信息进行分析,获取当前会话的信息的分析结果。通过对当前会话的信息的分析结果,确定控制指令。在本发明的实施例中,控制设备还可以对发送至控制设备的当前会话进行控制,以及对业务服务器与客户端的当前会话进行控制。
在一个例子中,所述控制指令包括第一控制指令和第二控制指令中的任意一种。第一控制指令用于指示所述业务服务器执行如下操作中的一种:继续发送当前会话的所以信息、停止发送所述当前会话的信息和继续发送所述当前会话的部分信息,控制设备在获取当前会话的信息后,根据对当前会话的信息进行分析的结果,向业务服务器发送控制指令。第二控制指令用于指示业务服务器停止或继续当前会。
在一个例子中,第一控制指令可以是“包含例如“注销”状态的内容的当前会话的信息不再发送到控制设备”。第一控制指令还可以在会话监控前就进行设定,例如使用某种品牌(如三星)或某种型号的终端进行登录的客户端与业务服务器产生的会话的信息不发送到控制设备中。第一控制指令还可以是,控制设备对当前会话的信息进行分析后,根据对当前会话分析的结果,与客户端的连接断开。例如,使业务服务器与客户端产生的例如会话编号为“102356”的会话的信息的客户端的会话断开,使例如编号为“102356”的会话成为历史会话。
分析设备用于接收消息传送设备发送的历史会话的信息,并对接收的历史会话的信息进行分析,获取历史会话的信息的分析结果。
在本发明的实施例中,通过将当前会话的信息和历史会话的信息分别发送至不同的设备,将分析需求较大的历史会话的信息发送至专门的分析设备,将需要分析和根据分析结果进行控制的当前会话的信息发送至控制设备。由此既提高了数据的处理能力,又提高了对部分能够控制的数据的控制能力。
图2本发明实施例提供的一种会话监控系统消息传输流向图。图2所示内容示意性地表达了在一个实施例中会话监控系统的各设备中可能包括的功能模块。如图2所示,业务服务器中包括会话代理模块,所述会话代理模块用于获取业务服务器与客户端根据所述客户端的请求建立连接之后产生的会话。会话代理模块在获取会话,所述获取的会话的信息分为当前会话的信息和历史会话的信息。所述业务服务器中包括状态判断单元,会话代理模块在获取会话的信息时,通过状态判断单元确定所获取的会话的信息为当前会话的信息或历史会话的信息。所述会话代理模块中还包括会话子模块,所述会话子模块用于分别将当前会话的信息和历史的会话信息发送到消息传送设备。应理解,图2仅为一个实现的例子,不对本发明构成限定。
在一个例子中,所述业务服务器中设置了例如异步触发机制,当所述业务服务器 检测到当前会话的信息或历史会话的信息中包括新的会话的信息时,将新的会话的信息发送到所述会话子模块。所述业务服务器中采用异步触发机制获取会话信息仅为本发明实施例的一种具体实施方式,不用于对本发明的限定。在本发明的实施例中,也可以采用轮询的方式确定所述业务服务器中包括的新的会话信息,再将所述会话的信息发送到会话子模块。
在本发明的实施例中,所述会话的信息中还包括会话标识,所述会话标识用于区分所述不同业务服务器中产生的会话的信息。
在本发明的一个实施例中,所述会话代理模块中还包括交互子模块,所述交互子模块用于接收控制指令,所述控制指令用于指示会话代理模块,例如停止对当前会话中的某一个会话进行监控,或启动对当前会话中的某一个会话进行监控。
在一个例子中,所述交互子模块接收的控制指令可以用于停止业务服务器与客户端的会话,从而使该会话成为历史会话。
在本发明的实施例中,会话代理模块可以是安装在业务服务器上的程序。从而直接获取业务服务器中的会话的信息,并通过业务服务器的接口(例如以太网接口)将会话的信息发送至其它设备。
消息传送设备在接收的一个业务服务器的会话子模块发送的当前会话的信息时,通过会话的信息中包括的标识信息确定产生会话的业务服务器,将接收的当前会话的信息加入与该业务服务器对应的当前会话队列。在接收到业务服务器的会话子模块发送的历史会话的信息时,通过会话的信息中包括的标识信息确定产生会话的业务服务器,将接收的历史会话的信息加入与该业务服务器对应的历史会话队列。消息传送设备再将各个业务服务器的当前会话队列中包括的当前会话的信息按照队列的先后顺序发送到控制器,将各个业务服务器的历史会话队列中包括的历史会话的信息按照队列的先后顺序发送到分析设备。
消息传送设备还接收控制设备发送的控制指令,控制指令包括该指令实施的业务服务器。消息传送设备在接收控制指令时,根据该指令实施的业务服务器,将控制指令加入到对应的业务服务器的控制指令队列中,在将控制指令队列中的控制指令按照时间先后顺序发送到所述业务服务器中会话代理的交互子模块。
在一个例子中,当消息传送设备优先发送控制指令至会话代理模块,再将控制指令向交互子模块发送和将会话的信息向控制设备和分析设备发送。使控制指令能够更加及时的发送到会话代理模块,使会话代理模块能够更加及时的根据控制指令进行会话信息监控的启动与停止以及会话的停止。
控制设备包括会话分析单元和命令单元。其中,会话分析单元用于接收消息传送设备发送的当前会话的信息,并对接收的会话信息进行分析,获取当前会话的内容。在一个例子中,对当前会话的信息的分析可以采用多个进程,从而使当前会话的信息的分析更加快速。
所述命令单元用于发送控制指令,所述控制指令分为“第一控制指令”和“第二控制指令”。所述“第二控制指令”可以用于对会话监控的开启或停止,从而减少不必要的当前会话的信息分析,所述第二控制指令的一种具体操作方式是将业务服务器与客户端会话的断开。所述“第一控制指令”用于决定发送至控制设备的当前会话的 信息,从而避免将全部当前会话的信息发送至控制设备带来的资源消耗。所述第一控制指令和第二控制指令可以是根据会话代理模块对当前会话的信息分析的结果发出,也可以是根据其它信息发出。
在一个例子中,所述“第一控制指令”用于指示对当前会话的信息中包括例如“活跃”状态的会话信息进行监控。会话代理模块根据“第一控制指令”的内容,将相应的当前会话的信息发送至控制设备。
在一个例子中,所述会话分析单元和命令单元可以由软件程序实现。
为了对本发明实施例的描述更加完整,下面通过一个完整的例子对本发明的实施例作更详细的描述。
在一个例子中,一种会话监控系统,包括业务服务器、消息传送设备、控制设备和分析设备。一种分布式系统,所述分布式系统包括业务服务器和负载均衡设备,所述业务服务器与会话监控系统中的业务服务器为同一业务服务器,所述业务服务器包括第一业务服务器和第二业务服务器。所述第一业务服务器通过负载均衡设备接收所述多个客户端中的第一客户端的请求,所述第一业务服务器根据所述第一客户端的请求与所述第一客户端建立连接并产生第一当前会话。
所述第一业务服务器中设置了异步触发机制,所述异步触发机制用于使业务服务器中产生新的会话时将会话的信息发送至所述第一业务服务器中的第一会话代理。所述第一业务服务器中还设置了状态监测单元,所述状态监测单元用于判断传送至第一会话代理的会话为当前会话或历史会话。所述状态监测单元判断所述第一当前会话为当前会话,所述第一当前会话的信息将被传送至所述第一会话代理的会话子模块。所述第一当前会话的信息在所述第一会话代理的会话子模块中通过当前会话的传输通道向所述消息传送设备发送。
消息传送设备从当前会话通道接收第一当前会话的信息,根据第一当前会话的信息中包括的业务服务器的信息,将第一当前会话的信息加入到与第一业务服务器对应的第一当前会话队中。所述消息传送设备按照时间的先后顺序将第一当前消息传送队中的会话信息向控制设备发送。
控制设备接收消息传送设备中的第一当前会话队列发送的第一当前会话的信息。控制设备中的会话分析单元对第一当前会话信的息进行分析,获取第一当前会话的信息的分析结果。根据对第一当前会话的信息的分析结果,确定向第一业务服务器发送的控制指令,通过命令单元向所述业务服务器发出控制指令,所述控制指令用于指示所述业务服务器断开与所述第一客户端的连接。所述控制设备将所述控制指令发送至所述消息传送设备。
所述消息传送设备接收所述控制指令,根据所述控制指令所指向的第一业务服务器,将所述控制指令加入第一控制指令队列。所述消息传送设备按照时间的先后顺序从第一控制指令队列中的第一控制指令向第一业务服务器发送。
所述第一业务服务器的第一会话代理中的第一交互子模块接收所述控制指令。根据所述控制指令,使第一业务服务器与第一客户端的会话断开。第一客户端与第一业务服务器的第一当前会话的信息中加入新的状态,所述状态为“断开”。所述第一当前会话变为第一历史会话。由于产生了第一历史会话,所述业务服务器中的异步触发 机制获取第一历史会话的信息并将该信息向第一会话代理发送。
在本发明的具体实施例中,上述根据控制设备的控制指令使第一业务服务器与第一客户端连接断开仅为客户端与业务服务器连接断开的一种举例。所述业务服务器与客户端连接的断开可以是超过时间阈值没有产生新的会话、客户端主动请求断开等多种情况中的任意一种,本发明对此不作任何限定。在任意情况下,业务服务器与客户端的连接断开时,业务服务器与客户端产生的当前会话变为历史会话。
业务服务器在将第一历史会话的信息向第一会话代理的第一会话子模块发送。第一会话子模块将第一历史会话的信息通过历史会话信息通道向消息传送设备发送。
所述消息传送设备通过历史会话信息通道接收所述第一会话子模块的第一历史会话的信息。所述消息传送设备根据第一历史会话的信息中包括的业务服务器信息,将所述第一历史会话的信息加入第一历史会话的信息队列。所述消息传送设备将第一历史会话的信息队列中包括的历史会话的信息按照时间先后顺序向分析设备发送。
所述分析设备接收所述消息传送设备发送的第一历史会话的信息。所述分析设备对所述第一历史会话的信息进行分析,获取对第一历史会话的信息的分析结果。
在本发明的实施例中,分布式系统中包括第一业务服务器和第二业务服务器仅为本发明的举例,在本发明的实施例中,可以包括任意多个业务服务器。本发明对此不作任何限定。
在本发明的实施例中,通过将当前会话的信息和历史会话的信息分别发送至不同的设备,将分析需求较大的历史会话的信息发送至专门的分析设备,将需要一定的分析能力和一定的控制能力的当前会话的信息发送至分析设备。从而按需求将会话信息分别进行处理,提高了系统的效率。
在本发明的实施例中,还提供一种业务服务器。图3为本发明实施例提供的一种业务服务器。如图3所示,所述业务服务器应用于分布式系统中。所述分布式系统中包括负载均衡设备和多个所述业务服务器。负载均衡设备接收客户端的请求,并将客户端的请求分配到多个所述业务服务器中的一个。多个所述业务服务器中的一个与客户端连接,并产生会话的信息,所述会话的信息包括当前会话的信息和历史会话的信息。所述会话的信息通过以太网接口连接到消息传送设备,所述消息传送设备将当前会话的信息发送到控制设备,将历史会话的信息发送到分析设备。
在任意一个所述业务服务器中,包括处理器、内存和持久化存储介质。所述处理器用于对业务服务器中所有的请求进行处理。
所述持久化存储介质用于存储客户端发送的数据。以及,业务服务器与客户端连接时产生的历史会话的信息,所述持久化存储介质中还存储有安装的应用程序,例如会话代理程序。
所述内存用于缓存当前会话的信息,并根据连接状态的变化,通过处理器对当前会话的信息进行修改。以及,用于缓存处理器需要调用的指令和程序,例如会话代理程序和状态确定指令。
当业务服务器开始运行时,接收负载均衡设备分发的请求,所述请求用于使客户端与业务服务器建立连接并进行其它操作。当客户端与业务服务器建立连接后,产生当前会话的信息,该当前会话的信息将通过内存存储。该当前会话的信息中包括的各 个状态将跟随业务服务器与客户端的连接状态而变化,当业务服务器与客户端的连接状态为断开时,即业务服务器与客户端连接断开后,该当前会话将变为历史会话,该当前会话的信息将变为历史会话的信息,历史会话的信息将保存至持久化存储介质。
当需要对业务服务器与客户端的会话进行监控时,处理器通过调用会话代理程序,获得业务服务器中包括的会话的信息。对于获取的会话的信息,处理器通过调用状态确定指令,确定会话的信息中的每个会话信息为当前会话的信息或历史会话的信息。将当前会话的信息和历史会话的信息通过接口例如以太网接口发送到消息传送设备。
业务服务器还接收消息传送设备发出的控制指令,所述控制指令用于对业务服务器中的当前会话的信息进行控制。处理器接收消息传送设备发出的控制指令,并调用会话代理程序,通过执行会话代理程序确定所接收的控制指令,并执行控制指令。
在一个例子中,所述业务服务器接收消息传送设备发出的控制指令,所述控制指令用于指示,将当前会话中“建立连接的时间为:2015年12月31日前”的会话信息不进行监控。从而会话代理程序查询当前会话信息,确定当前会话信息中建立连接状态发生的时间是2015年12月31日前的所有当前会话。获取确定的会话的ID,在业务服务器获取当前会话的信息并发送至消息传送设备时,不获取上述ID的会话。
图4为本发明实施例提供的一种会话监控的方法。方法用于对分布式系统进行会话监控,所述分布式系统中包括负载均衡设备和一个或多个业务服务器。所述负载均衡设备用于向所述一个或多个业务服务器分发来自客户端的请求,所述请求被所述一个或多个业务服务器用于与所述请求相对应的客户端建立连接并产生会话的信息。如图4所示,所述方法包括:
S401,确定所述业务服务器中的会话信息,所述会话信息是由所述业务服务器与建立连接的客户端进行会话产生的,所述会话信息包括当前会话的信息和历史会话的信息中的至少一种,其中,所述当前会话为正在进行的会话,所述历史会话为已结束的会话。
所述业务服务器中包括设定的触发机制,所述触发机制用于确定业务服务器中包括的需要发送的会话的信息。
在本发明的实施例中,每条会话信息都包括多个状态,例如连接、登录、活跃、注销、断开等状态,以及包括每个状态的时间等信息。所述业务服务器中还包括状态判断单元,确定所述会话信息后,通过状态判断单元判断所述会话信息的状态为当前会话或历史会话。在一个例子中,若会话信息的状态中包括“断开”状态,则该条会话信息为历史会话信息;若会话的信息的状态中不包括“断开”状态,则该条会话的信息为当前会话的信息。
业务服务器确定会话信息后,将把当前会话的信息和历史会话的信息发送到业务服务器中的会话代理。会话代理包括会话子模块,通过会话子模块将当前会话的信息和历史会话的信息发送至消息传送设备。将当前会话的信息通过当前会话通道进行发送。将历史会话的信息通过历史会话通道进行发送。
在一个例子中,会话的信息通过业务服务器的接口(例如以太网接口)进行发送。
S402,向控制设备发送所述当前会话的信息,所述当前会话的信息被所述控制设 备用于确定控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:停止发送所述当前会话的信息、继续发送所述当前会话的所有信息和继续发送所述当前会话的部分信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话。
在将所述历史会话的信息发送至分析设备和将所述当前会话的信息发送至控制设备之前,还需要将所述当前会话的信息和历史会话的信息发送至消息传送设备。
消息传送设备接收历史会话的信息,并获取所述历史会话的信息中包括的业务服务器编号。将每个业务服务器发送的历史会话的信息加入到与该业务服务器对应的历史会话队列中。将历史会话队列中包括的历史会话的信息按队列中各条信息的优先级将历史会话的信息发送至分析设备。
消息传送设备接收当前会话的信息,并获取所述当前会话的信息中包括的业务服务器编号。将每个业务服务器发送的当前会话的信息加入到与该业务服务器对应的当前会话队列中。将当前会话队列中包括的当前会话的信息发送至控制设备的会话分析单元。
控制设备接收消息传送设备发送的当前会话的信息,并对当前会话的信息进行分析,获取当前会话的信息的分析结果。在一个例子中,对于当前会话的信息,可以采用多个进程进行分析,从而提高当前会话的信息的分析效率。
所述控制设备中还包括命令单元,所述命令单元用于向所述业务服务器发送控制指令,以用于改变发送至控制设备的当前会话的信息。消息传送设备接收控制设备发送的控制指令,所述控制指令包括该指令实施的业务服务器。消息传送设备在接收控制指令时,根据该指令实施的业务服务器,将控制指令加入到对应的业务服务器的控制指令队列中,在将控制指令队列中的控制指令按照时间先后顺序发送到所述业务服务器中会话代理的交互子模块。所述会话代理获取所述控制指令,并将所述控制指令发送到业务服务器中,通过业务服务器执行所述指令。
S403,向分析设备发送所述历史会话的信息,所述历史会话的信息被所述分析设备用于分析所述历史会话。
在一个例子中,所述分析设备还可以直接连接到业务服务器。所述业务服务器上配置了FTP协议的接口,所述分析设备直接与业务服务器通过FTP协议连接。分析设备通过登录业务服务器从而获取业务服务器上的历史会话信息。上述在业务服务器上配置FTP协议的接口仅为本发明的一种举例,也可以采用SFTP、TFTP等方式使分析设备与业务服务器连接。
在本发明的实施例中,通过将当前会话的信息和历史会话的信息分别分别发送到分析设备和控制设备。由此通过分析能力较强的分析设备对历史会话进行分析,通过同时具有分析和处理能力的控制设备对当前会话分析后进行控制。由此实现了按需求将会话分别进行处理,提高了系统的会话分析效率。
图5为本发明实施例提供的一种会话监控方法。如图5所示,所述方法包括:
S501,控制设备接收业务服务器发送的当前会话的信息,所述当前会话的信息为所述业务服务器正在与客户端进行的会话产生的。
所述控制设备接收消息传送设备发送的当前会话的信息。
S502、根据所述当前会话的信息确定向所述业务服务器发送的控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:继续发送所述当前会话的所有信息、继续发送所述当前会话的部分信息和停止发送所述当前会话的信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话。
所述控制设备中包括会话分析单元,所述会话分析单元用于对接收的当前会话的信息进行分析,以获得当前会话的内容。在一个例子中,所述控制设备在对当前会话分析时,可以采用多个进程进行分析,以更快的获取当前会话的内容。从而提高控制设备的工作效率,同时也能够更加高效的发出控制指令。
会话分析单元对当前会话的信息进行分析并获得当前会话的信息的分析结果,还可以根据当前会话的信息的分析结果确定所述控制指令。从而减少发送至控制设备的当前会话的信息以及可以断开业务服务器与客户端的会话。
在一个例子中,所述控制指令用于确定业务服务器发送的当前会话的内容。例如,将当前会话中“建立连接的时间为:2015年12月31日前”不进行监控。从而控制设备接收的当前会话的信息中,不包括“建立连接的时间为:2015年12月31日前”的当前会话信息。
所述控制指令还可以是,将产生会话的信息的业务服务器和客户端断开。从而使该当前会话的信息变为历史会话的信息。
S503、向所述业务服务器发送确定出的控制指令。
控制设备在确定需要向业务服务器发送控制指令后,将该控制指令通过消息传送设备向业务服务器发送。消息发送设备接收控制设备发送的控制指令。根据控制指令所指向的业务服务器,将该控制指令加入消息传送设备的相应控制指令队列中。将控制指令队列中的控制指令发送到与该控制指令队列相对应的业务服务器。
在本发明的实施例中,通过接收当前会话的信息,对当前会话的信息进行分析,获取当前会话的内容。根据获取的当前会话的内容对当前会话进行控制。提高了对当前会话的使用能力,同时也能减少需要分析的当前会话,提高设备的效率。
图6为本发明实施例提供的业务服务器的示意图。如图6所示,所述业务服务器可用于对业务服务器中的会话进行监控,所述业务服务器接收客户端的请求,所述业务服务器根据所述请求与所述客服端建立连接进行会话并产生会话的信息,所述业务服务器将所述会话的信息发送至分析设备和控制设备,通过所述分析设备和控制设备对所述会话的信息进行分析。所述业务服务器包括:
处理单元601,用于确定所述业务服务器中的会话信息为当前会话的信息或历史会话的信息;所述会话的信息是由所述业务服务器与建立连接的客户端进行会话产生的,所述当前会话为正在进行的会话,所述历史会话为已结束的会话。
所示业务服务器中设置了异步触发机制,当业务服务器中包括的会话信息发生变化时,所示业务服务器确定所述发生变化的会话信息。在一个例子中,本发明也可以通过轮询确定业务服务器中包括的会话信息。
在本发明的实施例中,每条会话信息都包括多个状态,例如连接、登录、活跃、注销、断开等状态,以及包括每个状态的时间等信息。所述业务服务器中还包括状态 判断单元,确定所述会话信息后,通过状态判断单元判断所述会话信息的状态为当前会话或历史会话。若会话信息的状态中包括“断开”状态,则该条会话信息为历史会话信息。若会话的信息的状态中不包括“断开”状态,则该条会话的信息为当前会话的信息。
当业务服务器中产生新的会话信息或业务服务器中的会话信息产生新的状态变化时,所述业务服务器在确定会话信息有新的状态变化时,获取该会话信息,通过状态判断模块判断会话信息的状态为当前会话或历史会话。若会话信息的最后状态为断开,则该条信息为历史会话信息。若会话信息的最后状态不为断开,则该条信息为当前会话信息。
发送单元602,用于向所述控制设备发送所述当前会话的信息,所述当前会话的信息被所述控制设备用于确定停止或部分发送所述当前会话的信息或者停止所述当前会话;以及用于向分析设备发送所述历史会话的信息,所述历史会话的信息被所述分析设备用于分析所述历史会话。
在本发明的实施例中,所述业务服务器中还设置了会话代理模块,所述会话代理模块包括会话子模块。所述会话子模块接收业务服务器中的当前会话信息,并通过业务服务器的接口(例如以太网接口)将当前会话信息发送至第二设备。所述会话子模块接收业务服务器中的历史会话信息,并通过业务服务器的接口(例如以太网接口)将历史会话信息发送至第一设备。在一个例子中,所述本发明实施例中的第一设备可以是控制器,或者是其它任意能够分析数据并发出控制命令的设备。
在本发明的实施例中,所述业务服务器中还包括获取单元,所述获取单元用于接收所述控制设备发送的第一控制指令,根据所述第一控制指令确定发送单元向所述控制设备发送的当前会话的信息。所述获取单元还用于接收所述控制设备发送的第二控制指令,根据所述第二控制指令确定所述业务服务器继续或者终止与所述客户端正在进行的当前会话。
图7为本发明实施例提供的一种会话控制装置,如图7所示所述装置具体包括:
接收单元701,用于接收业务服务器发送的当前会话的信息,所述当前会话的信息为所述业务服务器正在与客户端进行的会话。
所述控制器接收消息传送设备发送的当前会话信息。
处理单元702,用于根据所述当前会话的信息确定当前要发送的控制指令,所述控制指令包括用于指示所述业务服务器继续发送或停止发送或部分发送所述当前会话的信息的第一控制指令,和用于指示所述业务服务器停止与客户端的会话的第二控制指令中的任意一种或多种。
所述控制装置中包括会话分析单元,所述会话分析单元用于对接收的当前会话的信息进行分析,以获得当前会话的信息的分析结果。在一个例子中,所述控制装置在对当前会话的信息分析时,可以采用多个进程进行分析,以更快的获取当前会话的内容。从而提高控制装置的工作效率,同时也能够更加高效的发出控制指令。
会话分析单元对当前会话的信息进行分析并获得当前会话的信息分析的结果后,还用于根据当前会话的分析结果确定所述控制指令。从而减少当前会话以及可以断开业务服务器与客户端的会话。
发送单元703,用于向所述业务服务器发送确定出的控制指令。
图8为本发明实施例提供的一种业务服务器。如图8所示,所述业务服务器包括:处理器801、存储器802、通信接口803和总线804。其中,处理器801、存储器802和通信接口803通过总线804实现彼此之间的通信连接。
处理器801可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现前述本发明方法实施例所提供的技术方案。
存储器802可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,RAM)。存储器902可以存储操作系统和其他应用程序。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明前述方法实施例提供的任一可选技术方案的程序代码保存在存储器802中,并由处理器801来执行。通信接口803用以与其他交换机或控制控制设备通信。
总线804可包括一通路,在设备各个部件(例如处理器801、存储器802和通信接口803)之间传送信息。
图9为本发明实施例提供的一种控制器。如图9所示,所述业务服务器包括:处理器901、存储器902、通信接口903和总线904。其中,处理器901、存储器902和通信接口903通过总线904实现彼此之间的通信连接。
处理器901可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现前述本发明方法实施例所提供的技术方案。
存储器902可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,RAM)。存储器902可以存储操作系统和其他应用程序。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明前述方法实施例提供的任一可选技术方案的程序代码保存在存储器902中,并由处理器901来执行。通信接口903用以与其他交换机或控制控制设备通信。
总线904可包括一通路,在设备各个部件(例如处理器901、存储器902和通信接口903)之间传送信息。
本领域技术人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只 读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (17)

  1. 一种会话监控方法,所述方法应用于业务服务器,所述业务服务器用于与客户端建立连接,其特征在于,所述方法包括:
    确定所述业务服务器中的会话信息,所述会话信息是由所述业务服务器与建立连接的客户端进行会话产生的,所述会话信息包括当前会话的信息和历史会话的信息中的至少一种,其中,所述当前会话为正在进行的会话,所述历史会话为已结束的会话;
    向控制设备发送所述当前会话的信息,所述当前会话的信息被所述控制设备用于确定控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:继续发送所述当前会话的所有信息、继续发送所述当前会话的部分信息和停止发送所述当前会话的信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话;
    向分析设备发送所述历史会话的信息,所述历史会话的信息被所述分析设备用于分析所述历史会话。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:接收所述控制设备发送的所述第一控制指令,根据所述第一控制指令确定待向所述控制设备发送的当前会话的信息。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:接收所述控制设备发送的第二控制指令,根据所述第二控制指令继续或者终止与所述客户端正在进行的当前会话。
  4. 一种会话控制方法,其特征在于,所述方法包括:
    控制设备接收业务服务器发送的当前会话的信息,所述当前会话的信息为所述业务服务器正在与客户端进行的会话产生的;
    根据所述当前会话的信息确定向所述业务服务器发送的控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:继续发送所述当前会话的所有信息、继续发送所述当前会话的部分信息和停止发送所述当前会话的信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话;
    向所述业务服务器发送确定出的控制指令。
  5. 一种业务服务器,其特征在于,所述业务服务器包括:
    处理单元,用于确定所述业务服务器中的会话信息,所述会话信息是由所述业务服务器与建立连接的客户端进行会话产生的,所述会话信息包括当前会话的信息和历史会话的信息中的至少一种,所述当前会话为正在进行的会话,所述历史会话为已结束的会话;
    发送单元,用于向控制设备发送所述当前会话的信息,所述当前会话的信息被所述控制设备用于确定控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:停止发送所述当前会话的信息、继续发送所述当前会话的所有信息和继续发送所述当前会话的部分信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话以 及用于向分析设备发送所述历史会话的信息,所述历史会话的信息被所述分析设备用于分析所述历史会话。
  6. 根据权利要求5所述的业务服务器,其特征在于,所述业务服务器还包括获取单元,所述获取单元用于接收所述控制设备发送的第一控制指令,根据所述第一控制指令确定发送单元向所述控制设备发送的当前会话的信息。
  7. 根据权利要求5所述的业务服务器,其特征在于,所述业务服务器还包括获取单元,所述获取单元用于接收所述控制设备发送的第二控制指令,根据所述第二控制指令确定所述业务服务器继续或者终止与所述客户端正在进行的当前会话。
  8. 一种会话控制装置,其特征在于,所述装置具体包括:
    接收单元,用于接收业务服务器发送的当前会话的信息,所述当前会话的信息为所述业务服务器正在与客户端进行的会话
    处理单元,用于根据所述当前会话的信息确定向所述业务服务器发送的控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:继续发送所述当前会话的所有信息、继续发送所述当前会话的部分信息和停止发送所述当前会话的信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话;
    发送单元,用于向所述业务服务器发送确定出的控制指令。
  9. 一种业务服务器,其特征在于,所述业务服务器包括:
    处理器、存储器、通信接口和总线,其中,所述处理器、所述存储器和所述通信接口通过所述总线通信;
    所述通信接口用于与所述外部设备和所述客户端通信连接;
    所述存储器用于存储程序以及所述会话信息;
    当所述业务服务器运行时,所述处理器用于执行所述存储器存储的所述程序,以执行如下方法:
    确定所述业务服务器中的会话信息,所述会话信息是由所述业务服务器与建立连接的客户端进行会话产生的,所述会话信息包括当前会话的信息和历史会话的信息中的至少一种,其中,所述当前会话为正在进行的会话,所述历史会话为已结束的会话;
    向控制设备发送所述当前会话的信息,所述当前会话的信息被所述控制设备用于确定控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:停止发送所述当前会话的信息、继续发送所述当前会话的所有信息和继续发送所述当前会话的部分信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话;
    向分析设备发送所述历史会话的信息,所述历史会话的信息被所述分析设备用于分析所述历史会话。
  10. 根据权利要求9所述的业务服务器,其特征在于,所述处理器执行所述存储器存储的所述程序,还可以执行如下方法:接收所述控制设备发送的所述第一控制指令,根据所述第一控制指令确定待向所述控制设备发送的当前会话的信息。
  11. 根据权利要求9所述的业务服务器,其特征在于,所述处理器执行所述存储器存储的所述程序,还可以执行如下方法:接收所述控制设备发送的第二控制指令, 根据所述第二控制指令继续或者终止与所述客户端正在进行的当前会话。
  12. 一种控制设备,其特征在于,所述控制设备包括:
    处理器、存储器、通信接口和总线,其中,所述处理器、所述存储器和所述通信接口通过所述总线通信;
    所述通信接口用于与所述业务服务器连接;
    所述存储器用于存储程序;
    当所述装置运行时,所述处理器用于执行所述存储器存储的所述程序,以执行:
    接收业务服务器发送的当前会话的信息,所述当前会话的信息为所述业务服务器正在与客户端进行的会话产生的;
    根据所述当前会话的信息确定向所述业务服务器发送的控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:停止发送所述当前会话的信息、继续发送所述当前会话的所有信息和继续发送所述当前会话的部分信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话;
    向所述业务服务器发送确定出的控制指令。
  13. 一种会话监控系统,其特征在于,所述系统包括:业务服务器、控制设备和分析设备;
    所述业务服务器用于:
    确定所述业务服务器中的会话信息,所述会话信息是由所述业务服务器与建立连接的客户端进行会话产生的,所述会话信息包括当前会话的信息和历史会话的信息中的至少一种,所述当前会话为正在进行的会话,所述历史会话为已结束的会话;
    向控制设备发送所述当前会话的信息;
    向分析设备发送所述历史会话的信息;
    所述控制设备用于:
    接收业务服务器发送的当前会话的信息,所述当前会话的信息为所述业务服务器正在与客户端进行的会话产生的;
    根据所述当前会话的信息确定向所述业务服务器发送的控制指令,所述控制指令包括第一控制指令和第二控制指令中的至少一种,所述第一控制指令用于指示所述业务服务器执行如下操作中的一种:停止发送所述当前会话的信息、继续发送所述当前会话的所有信息和继续发送所述当前会话的部分信息,所述第二控制指令用于指示所述业务服务器停止或继续所述当前会话;
    向所述业务服务器发送控制指令;
    所述分析设备用于接收所述业务服务器发送的历史会话的信息,以及对所述历史会话的信息进行分析。
  14. 根据权利要求13所述的系统,其特征在于,所述控制设备还用于向所述业务服务器发送确定出的控制指令;所述业务服务器还用于接收所述控制设备发送的控制指令,执行所控制设备发送的控制指令指示的操作。
  15. 根据权利要求13或14任一项所述的系统,其特征在于,所述系统还包括消息传送设备,所述消息传送设备用于接收所述业务服务器发送的所述当前会话的信息 和历史会话的信息;
    所述消息传送设备还用于将接收的当前会话的信息加入所述业务服务器的当前会话的信息队列,以及将历史会话的信息分别加入所述业务服务器的历史会话的信息队列;
    所述消息传送设备还用于向所述控制设备发送所述当前会话的信息队列中的当前会话信息,以及向所述分析设备发送所述历史会话的信息队列中的历史会话信息。
  16. 根据权利要求15所述的系统,其特征在于,所述消息传送设备还用于,获取所述控制设备发出的所述控制指令,将所述控制指令加入所述控制指令所指向的业务服务器的控制指令队列,以及将所述控制指令队列中包括的控制指令发送至所述业务服务器。
  17. 根据权利要求16所述的系统,其特征在于,所述消息传送设备中的当前会话队列、历史会话队列和控制指令队列具有不同的发送优先级;
    所述优先级从高到低依次为:控制指令队列、当前会话队列和历史会话队列。
PCT/CN2017/075021 2016-03-25 2017-02-27 一种会话监控的方法、装置和系统 WO2017162003A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/138,649 US10785309B2 (en) 2016-03-25 2018-09-21 Session monitoring method, apparatus, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610179769.3 2016-03-25
CN201610179769.3A CN107231401B (zh) 2016-03-25 2016-03-25 一种会话监控的方法、装置和系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/138,649 Continuation US10785309B2 (en) 2016-03-25 2018-09-21 Session monitoring method, apparatus, and system

Publications (1)

Publication Number Publication Date
WO2017162003A1 true WO2017162003A1 (zh) 2017-09-28

Family

ID=59899333

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075021 WO2017162003A1 (zh) 2016-03-25 2017-02-27 一种会话监控的方法、装置和系统

Country Status (3)

Country Link
US (1) US10785309B2 (zh)
CN (1) CN107231401B (zh)
WO (1) WO2017162003A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704588A (zh) * 2019-09-04 2020-01-17 平安科技(深圳)有限公司 基于长短期记忆网络的多轮对话语义分析方法和系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661823A (zh) * 2018-06-28 2020-01-07 北京嘀嘀无限科技发展有限公司 一种控制在线咨询用户量的方法及装置
FR3095564B1 (fr) * 2019-04-25 2021-09-10 Airbus Ds Slc Procede de supervision de la connexion entre deux noeuds d’un reseau de communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102713877A (zh) * 2009-12-21 2012-10-03 日本电气株式会社 会话管理系统、会话管理设备、会话管理方法和会话管理程序
CN103003802A (zh) * 2010-07-15 2013-03-27 思科技术公司 对路径上的系统的监控
CN104572420A (zh) * 2015-02-02 2015-04-29 南车株洲电力机车有限公司 一种信息处理方法及系统
CN105144108A (zh) * 2013-03-07 2015-12-09 微软技术许可有限责任公司 远程主机上的进程的基于服务的负载平衡管理

Family Cites Families (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7409370B2 (en) * 2003-06-30 2008-08-05 Intel Corporation Secured and selective runtime auditing services using a trusted computing device
US7761514B2 (en) * 2003-11-26 2010-07-20 International Business Machines Corporation Method and apparatus for providing dynamic group management for distributed interactive applications
US7356046B2 (en) * 2004-02-09 2008-04-08 Metretek, Inc. Method and apparatus for remotely monitoring and controlling devices
US8099504B2 (en) * 2005-06-24 2012-01-17 Airvana Network Solutions, Inc. Preserving sessions in a wireless network
JP2007080050A (ja) * 2005-09-15 2007-03-29 Nec Corp 通信システム、対話履歴閲覧方法、履歴管理装置および通信端末
CN101098267B (zh) * 2006-06-28 2011-07-20 华为技术有限公司 一种建立群组会话的方法和系统
CN101155049B (zh) * 2006-09-25 2011-05-04 华为技术有限公司 一种消息系统中会话历史处理方法及消息系统
WO2008067760A1 (en) 2006-12-05 2008-06-12 Huawei Technologies Co., Ltd. Method and system for distributed architecture for monitoring session liveness
US20090132579A1 (en) * 2007-11-21 2009-05-21 Kwang Edward M Session audit manager and method
CN101453483B (zh) * 2007-11-29 2012-05-02 华为技术有限公司 会话历史记录的存储处理和查询方法、系统和装置
KR101457217B1 (ko) * 2008-05-02 2014-10-31 삼성전자주식회사 멀티클라이언트 간 세션 이동을 위한 시스템 및 방법
US8381266B2 (en) * 2009-10-27 2013-02-19 Computer Associates Think, Inc. Method and system for machine identification
US8171346B2 (en) * 2010-03-10 2012-05-01 Microsoft Corporation Client session based debugging
US8452877B2 (en) * 2010-04-28 2013-05-28 Lenovo (Singapore) Pte. Ltd. Establishing a remote desktop
US8473598B1 (en) * 2011-03-30 2013-06-25 Mckesson Financial Holdings Systems and methods for monitoring and reporting on virtual application delivery
US8799412B2 (en) * 2011-06-30 2014-08-05 Amazon Technologies, Inc. Remote browsing session management
US8589385B2 (en) * 2011-09-27 2013-11-19 Amazon Technologies, Inc. Historical browsing session management
US8839087B1 (en) * 2012-01-26 2014-09-16 Amazon Technologies, Inc. Remote browsing and searching
US9197505B1 (en) * 2012-02-22 2015-11-24 Amazon Technologies, Inc. Managing network connections for processing network resources
US20150046531A1 (en) * 2012-03-26 2015-02-12 Nec Corporation Messaging system, topic management device, messaging method, and program
US9342559B1 (en) * 2013-05-15 2016-05-17 Google Inc. Automatic matching of users and service providers
IN2013CH06052A (zh) * 2013-12-23 2015-06-26 Cognizant Technology Solutions India Pvt Ltd
US10284573B1 (en) * 2014-06-17 2019-05-07 Wells Fargo Bank, N.A. Friction management
US10505997B2 (en) * 2014-12-10 2019-12-10 Facebook, Inc. Providing persistent activity sessions across client devices
CN104753933A (zh) * 2015-03-19 2015-07-01 腾讯科技(深圳)有限公司 一种数据处理方法、装置、客户端及服务器
US10325076B2 (en) * 2015-11-25 2019-06-18 Box, Inc. Personalized online content access experiences using online session attributes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102713877A (zh) * 2009-12-21 2012-10-03 日本电气株式会社 会话管理系统、会话管理设备、会话管理方法和会话管理程序
CN103003802A (zh) * 2010-07-15 2013-03-27 思科技术公司 对路径上的系统的监控
CN105144108A (zh) * 2013-03-07 2015-12-09 微软技术许可有限责任公司 远程主机上的进程的基于服务的负载平衡管理
CN104572420A (zh) * 2015-02-02 2015-04-29 南车株洲电力机车有限公司 一种信息处理方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704588A (zh) * 2019-09-04 2020-01-17 平安科技(深圳)有限公司 基于长短期记忆网络的多轮对话语义分析方法和系统
CN110704588B (zh) * 2019-09-04 2023-05-30 平安科技(深圳)有限公司 基于长短期记忆网络的多轮对话语义分析方法和系统

Also Published As

Publication number Publication date
CN107231401A (zh) 2017-10-03
CN107231401B (zh) 2021-02-09
US20190028551A1 (en) 2019-01-24
US10785309B2 (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN108124003B (zh) 网络管理设备连接处理方法、装置及系统
US8572180B2 (en) Systems, methods and media for distributing peer-to-peer communications
WO2017088384A1 (zh) 一种直播视频的上传方法、装置及系统
US9325530B2 (en) Management of virtual desktop infrastructure (VDI) sessions using real-time network conditions
WO2017162003A1 (zh) 一种会话监控的方法、装置和系统
CN107528891B (zh) 一种基于WebSocket的自动集群方法及其系统
US11144423B2 (en) Dynamic management of monitoring tasks in a cloud environment
CN106936730B (zh) 一种报文发送方法、tcp代理以及tcp客户端
WO2020199686A1 (zh) 一种提供边缘服务的方法、系统及计算设备
WO2015138678A1 (en) Systems and methods for intelligent workload routing
CN108243222A (zh) 服务器网络架构方法及装置
WO2013040278A1 (en) Transmitting data over multiple networks
CN115277806A (zh) 云桌面连接方法、装置和设备
CN112104679B (zh) 处理超文本传输协议请求的方法、装置、设备和介质
JP2011203810A (ja) サーバ、計算機システム及び仮想計算機管理方法
CN113783961A (zh) 远程终端管理方法、装置、计算机设备及存储介质
CN110855528B (zh) 报文处理方法及测试设备
KR20090071542A (ko) 호스트 가장 네트워크 디바이스 및 그의 방법
CN114416275A (zh) 一种实现多个管理客户端同步虚拟机状态的方法及系统
CN109639795B (zh) 一种基于AcitveMQ消息队列的服务管理方法与装置
EP3314970B1 (en) Method and apparatus for managing uplink traffic from a client device in a communication network
US20220214926A1 (en) Virtual machine monitoring device, virtual machine monitoring method, and program
EP3370396A1 (en) Methods and devices for testing applications
CN106941474B (zh) 一种会话初始协议服务器过载控制方法、服务器
US20180254970A1 (en) Methods and Devices for Testing Applications

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17769280

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17769280

Country of ref document: EP

Kind code of ref document: A1