CN102355505A - Application method for asynchronous distributed column object request agent system - Google Patents

Application method for asynchronous distributed column object request agent system Download PDF

Info

Publication number
CN102355505A
CN102355505A CN 201110314341 CN201110314341A CN102355505A CN 102355505 A CN102355505 A CN 102355505A CN 201110314341 CN201110314341 CN 201110314341 CN 201110314341 A CN201110314341 A CN 201110314341A CN 102355505 A CN102355505 A CN 102355505A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
request
message
service
unit
response
Prior art date
Application number
CN 201110314341
Other languages
Chinese (zh)
Other versions
CN102355505B (en )
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

Links

Abstract

The invention provides an application method for an asynchronous distributed column object request agent system. The application method comprises the following steps that: a first sub system receives a message which is in accordance with a name of naming service; a Gate transmits a request to a software bus; the software bus reads request information, makes pile information which is registered in the bus be matched with the request information and transmits the request message to a request agency; the request agency fills agency tracking information into a stack according to request data and transmits the message to a local service unit if requesting for local system service; if requesting for other system data, the request agency is required to find out the naming service of a second sub system according to locally cached naming information and sends the naming service to the Gate of the second sub system for processing the message; the Gate of the second sub system receives the request message; the service unit receives the request message and makes the message enter a queue to be processed of the service; a dispatcher is reminded of dispatching the service unit to run the request; and the service unit runs the request so as to acquire a response message, wherein the response message comprises an agency tracking stack; and the response message is transmitted to a request unit of the message according to the tracking stack of the message.

Description

异步分布式列对象请求代理系统应用方法 Asynchronous Distributed System Object Request Broker column method

技术领域 FIELD

[0001] 本发明涉及一种异步分布式列对象请求代理系统的应用方法,属于分布式网络监控系统领域。 [0001] The present invention relates to a method of application of the objects to asynchronous distributed proxy system requests, belonging to a distributed network monitoring systems.

背景技术 Background technique

[0002] 随着计算机网络和电信网的快速发展和膨胀,人们对于网络的安全,可靠的要求越来越高,网络监控系统可以让用户有效的监控、分配有限的网络资源。 [0002] With the rapid development and expansion of computer networks and telecommunications networks, network security for the people, have become increasingly demanding reliable, network monitoring system allows effective monitoring users, assign limited network resources. 传统的网络监控系统采用集中运行模式,中心服务器负责对整个网络进行统一的监控和管理。 Traditional network monitoring system uses a centralized mode of operation, the central server is responsible for unified monitoring and management of the entire network. 这种模式下,大量的监控或管理信息传输会消耗网络带宽,且中心服务器往往超负荷工作,严重影响监控系统的运行效率。 In this mode, a large number of monitoring or management information transmission consumes network bandwidth, and the central server is often overloaded with work, seriously affecting the efficiency of the monitoring system. 这种系统结构较简单,但是可扩展性差,如果中心服务器失效,将引起整个网络无法监控。 The system structure is relatively simple, but poor scalability, if the central server fails, will cause the entire network can not be monitored.

[0003] 为了克服集中式监控的缺陷,可以进行分布式层次监控,由多个监控服务器进行监控,再将监控结果层层汇总。 [0003] In order to overcome the drawbacks of the centralized monitoring, the monitoring level may be distributed, monitored by monitoring a plurality of servers, then the monitoring result summary layers. 在这样的体系结构中会有很多个监控服务器存在。 In such an architecture will be in a number of monitoring servers exist. 这种系统可以进行分布式分层次监控,可以满足现有超大网络的监控需求。 Such a system can be distributed hierarchical control, to meet the monitoring requirements of existing large networks.

[0004] 但分布式分层次监控系统的体系结构比较复杂,系统各个服务器间都需要互相调用,这首先需要一种能够异步响应的,分布式的请求代理系统来满足层次调用的要求,同时,传统的监控数据使用对象传递,该方式不能有效的利用现有带宽,因此监控数据本身的传输也需要一种能更高效利用现有网络带宽的方式。 [0004] However, the distributed hierarchical architecture more complex monitoring system, the server system needs between the various call each other, this need for a first asynchronous response, the requesting agent distributed system level call to meet the requirements, but, traditional monitoring data transfer using the object, the method can not effectively use the existing bandwidth, the transmission data monitor itself is also a need for a more efficient use of existing bandwidth manner.

发明内容 SUMMARY

[0005] 为了解决上述问题,本发明提供了一种异步分布式列对象请求代理系统的应用方法。 [0005] In order to solve the above problems, the present invention provides the use of a column method of asynchronous distributed object request broker system.

[0006] 具体技术方案如下: [0006] The specific technical solution is as follows:

本发明实施例提供的一种异步分布式列对象请求代理系统的应用方法,包括: An asynchronous embodiment of the present invention is provided a distributed application method of the objects to request proxy system, comprising:

51、第一子系统接收到符合本命名服务命名的消息; 51, the first subsystem receives the message consistent with the naming service named;

52、Gate把请求传递给软件总线处理; 52, Gate the request to process the software bus;

53、软件总线读取请求消息中请求信息,匹配在总线中注册的桩信息寻找请求代理单元的桩,并传递请求消息给请求代理; 53, the software bus request information read request message, the matching information registered in the pile to find the bus unit requesting agent pile, and pass the request message to the requesting agent;

54、请求代理根据请求数据,填充代理追踪信息入栈,若请求本系统服务,传递消息到本地服务单元,并直接进入S6,若请求其他系统数据,则请求代理需要按照本地缓存的命名信息寻找第二子系统的命名服务,并发送给第二子系统的fete处理该消息; 54, according to the request data requesting agent, filling agent stack trace information, if the requested service of the present system, passes the message to the local service element, and direct access to S6, otherwise, request additional system data, the requesting agent named in accordance with the information needed to find the locally cached second naming service subsystem, the second subsystem sends fete process the message;

55、第二子系统的fete收到请求消息,并重复步骤中的Sl到S4 ; 55, the second subsystem receives the request message fete, and repeat the steps Sl to S4;

56、服务单元收到请求消息后,令该消息进入本服务待处理队列; 56, after receiving the request message service unit, enabling the service message into the present pending queue;

57、服务单元提醒调度器,本服务有请求需要执行,调度器调度该服务单元运行请求; 57, to remind the scheduler service unit, the need to perform the service there is a request, the scheduler schedules the service unit operation request;

58、服务单元运行请求后得到一个响应消息,该响应消息中包含了代理追踪栈,服务发送响应消息给请求代理,根据消息的追踪信息,该响应消息传递给消息的请求单元。 58, after the service request is a unit operation response message, the response message contains the agent stack trace, the service sends a response message to the requesting agent, according to the tracking information message, the response message to the request message unit. [0007] 作为本发明的进一步改进,所述S7步骤的响应消息是异步发送的消息,消息发送者在发送消息后不需要等待该消息的响应,该消息的请求者需要以异步的方式获取消息的响应。 [0007] As a further improvement of the present invention, the step S7 in response to the message is a message sent asynchronously, does not need to wait for a message sent in response to the message after sending a message, the message requester need to obtain information in an asynchronous manner the response to.

[0008] 作为本发明的进一步改进,若一个服务单元调用其他单元的服务,且其他单元的位置是通过本系统内的请求代理来确定的,其步骤为: [0008] As a further improvement of the present invention, if a service unit invoke other services unit and other units by the position requesting agent within the system to determine which steps of:

S10、服务单元发送对其他单元的调用请求消息给总线; S10, sends a request message to the service unit calls the other units to the bus;

S20、软件总线读取请求消息中请求信息,匹配在总线中注册的桩信息寻找请求代理单元的桩信息,并传递请求消息给请求代理; S20, the software bus request information read request message, the matching information registered in the pile to find the bus request information pile agent unit, and transmitting a request message to the requesting agent;

S30、请求代理根据请求数据,填充代理追踪信息入栈,若请求本系统服务,传递消息到本地服务单元,并直接进入S50,若请求其他系统数据,则请求代理需要按照本地缓存的命名信息寻找第二子系统的命名服务,并发送给第二子系统的fete处理该消息; S40、第二子系统的(iate收到请求消息,并重复Sl到S4 ; S50、其他单元收到请求消息后,令该消息进入本服务待处理队列; S60、服务单元提醒调度器,本服务有请求需要执行,调度器调度该服务单元运行请 S30, according to the request data requesting agent, filling agent stack trace information, if the requested service of the present system, passes the message to the local service unit, and directly to S50, if the request to other system data, the requesting agent named in accordance with the information needed to find the locally cached after S50, the other unit receives a request message; and a second sub-system naming service, and send the second message processing subsystem fete; S40, a second subsystem (Iate receives the request message, and repeat Sl to S4 , enabling the message to be processed into the present service queue; the S60, scheduler reminder service unit, the need to perform the service there is a request, the scheduler schedules the requested service unit operation

求; begging;

S70、服务单元运行请求后得到一个响应消息,该响应消息中包含了代理追踪栈,服务发送响应消息给请求代理,根据消息的追踪信息,该响应消息会最终被传递给消息的请求单元。 S70, after the request is a service unit operation response message, the response message contains the agent stack trace, the service sends a response message to the requesting agent, according to the tracking information message, the message will eventually be transmitted to the requesting unit in the response message.

[0009] 作为本发明的进一步改进,所述S8和S70具体包括以下步骤: S100、服务单元把运行请求后得到的响应消息,发送给系统所在的总线; S200、总线获取请求代理桩信息后,发送该响应消息给请求代理单元; [0009] As a further improvement of the present invention, the S8 and S70 includes the following steps: S100, a response message after the service request is running the unit, and transmits to the bus system is located; S200, after acquiring the bus request information proxy stub, sends the response message to the requesting proxy unit;

S300、请求代理单元按照消息中包含的代理追踪栈信息,分情况处理,如果该响应对应的请求在本服务器,则直接发送该响应消息给本服务器的请求单元,到此,本次请求响应的流程结束,否则进行S400; S300, according to the proxy unit requesting agent stack trace information contained in the message, where sub-process, if the response corresponding to the request in the server, the response message is sent directly to the requesting unit of the present server, this, in response to this request the process ends, otherwise perform S400;

S400、如过该响应的请求不在本服务器,请求代理需要按照本地缓存的命名信息寻找第一子系统的命名服务,并发送给第一子系统的fete处理该响应消息; S400, in response to such a request through the server is not present, the need to find a first Request Broker subsystem named according to the naming service information in the local cache, and sends a first processing subsystem fete the response message;

S500、第一子系统的fete收到响应消息后,发送给总线处理,总线获取第一子系统上的请求代理单元处理该响应消息; After S500, fete first subsystem receives a response message sent to the bus transaction, the bus acquisition request on the first sub-agent unit processes the response message;

S600、第一子系统上的请求代理,按照消息中包含的代理追踪栈信息,重复S300的处理,直到本次请求响应的流程结束。 S600, the requesting agent on the first subsystem, according to the proxy stack trace information contained in the message, the process S300 is repeated until the process ends in response to this request.

[0010] 作为本发明的进一步改进,所述各单元间的交互是通过会话传递的,一个会话封装了单元和单元间通信的管道,该管道的底层实现可以是tcp或Udp或ipc三种方式,在会话中单元可以进行发送一个请求,响应一个请求,主动发送一个通知的操作。 [0010] As a further improvement of the present invention, the interaction between the units is transmitted through the session, a session between the package and a unit of the communication pipe, the bottom of the pipe may be achieved tcp or ipc or three ways Udp , in the unit may send a session request, a response to the request, sends a notification of the operation.

[0011 ] 由以上技术方案可以看出,本发明的异步分布式列对象请求代理系统能适应从小网络到大网络到超大网络的分布式层次监控要求,列对象数据压缩传输能有效的节约网络带宽,达成高效监控大网络的目的。 [0011] As can be seen from the above technical solutions, the present invention is an asynchronous distributed object request broker column system can adapt to distributed hierarchical network monitoring requirements from small to large networks to large networks, the transmission data compression column objects can effectively save network bandwidth , the purpose of efficient monitoring large networks. [0012]【附图说明】 [0012] BRIEF DESCRIPTION

图1是本发明一实施方式分布式子系统的单元图; 图2是本发明一实施方式分布式子系统交互的示意图;图3是本发明一实施方式异步分布式列对象请求代理系统的应用方法的流程图; 图4是本发明另一实施方式异步分布式列对象请求代理系统的应用方法的流程图; 图5是S8和S70的具体流程图。 FIG. 1 is a section view of an embodiment of the present invention the distributed subsystems; FIG. 2 is a schematic view of a embodiment of the present invention distributed subsystem interaction; FIG. 3 is an embodiment of the present invention applied asynchronous distributed object request broker column system flowchart of a method; FIG. 4 is a flowchart of a method according to another embodiment of the application of the present invention listed asynchronous distributed object request broker system; FIG. 5 is a detailed flowchart of S8 and S70.

[0013]【具体实施方式】 [0013] DETAILED DESCRIPTION OF THE INVENTION

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。 To make the objectives, technical solutions, and advantages of the present invention clearer, the following description of the present invention in detail in conjunction with accompanying drawings and specific embodiments.

[0014] 对批量监控数据本身的传输,需要使用列对象方式。 [0014] Bulk transfer of the monitoring data itself, requires the use of column object mode. 因列对象传输只传递一个列名称和多个列数据来组成网络监控数据,且顺序、高度重复的数据可以产生更高的压缩比, 故本发明中的列对象本身也被设计为是一个具备高压缩比的数据集,本系统中各个服务单元的调用都是采用这个列对象来传递请求和响应消息。 Object Transfer only by passing a column name and column data columns consisting of a plurality of network monitoring data, and sequentially, highly repetitive data may be generated a higher compression ratio, it is an object of the present invention the column itself is designed to be provided with a high compression ratio of the data set, the system calls the respective service units are based on the list of objects to pass request and response messages.

[0015] 在此基础上构建的本分布式列对象请求代理系统中的单元或系统间调用的消息定义(包括请求消息,请求响应消息,通知消息)具备了高压缩比,可以快速传递的特性,能够有效的减小对监控网络的带宽需求。 Characteristics [0015] Based on this column constructed in accordance with a distributed object request message is defined between the agent units in the system or system call (including message request, request response message, the notification message) includes a high compression ratio, it can be quickly transferred can effectively reduce the bandwidth requirements for network monitoring.

[0016] 如图1所示,在本发明一实施方式中,异步分布式列对象请求代理系统由多个分布式子系统构成,每个分布式子系统包括: [0016] As shown in FIG 1, in one embodiment of the present invention, the asynchronous distributed system is a distributed object request broker column consists of a plurality of subsystems, each of the distributed subsystem comprising:

TCP/UDP/IPC (kite单元:用于负责系统中各单元或系统的底层通信实现,TCP (kite为TCP (传输控制协议)方式的通信实现,UDP fete为UDP (用户数据报协议)方式的通信实现,IPC Gate (Inner Process Communication)为进程内的通信实现。 TCP / UDP / IPC (kite unit: responsible for the underlying communication system, each unit or system implementation, TCP (kite implemented as a communication TCP (Transmission Control Protocol) mode, UDP fete as UDP (User Datagram Protocol) mode communication between, IPC Gate (inner process communication) implemented in the communication process.

[0017] 命名服务单元:用于负责系统间调用的命名解析,名字格式为“协议://地址[: 端口]/单元名”,协议可选数据为tcp/udp/ipc,分别对应组件中的三种(iate,通过一个指定的命名即可以获得一个可供单元进行请求/响应或通知操作的会话。 [0017] Naming Service Unit: responsible for namespace resolution system call, the name of the form "protocol: // address [: Port] / unit name" optional protocol data tcp / udp / ipc, respectively assembly three (iate, i.e. via a prescribed naming unit can be obtained for a request / response or notification operation session.

[0018] 软件总线:用于管理一个系统内所有可以提供服务的软件单元,每个软件单元注册到软件总线后,才可以对外提供服务,同时,只有该单元注册到软件总线后,才可以向其他单元请求服务。 [0018] Software Bus: After all the software used to manage the unit can provide services within a system, each software unit registered to the software bus, before they can provide services at the same time, the unit only to registered software bus before the other units requesting service.

[0019] 总线桩:每个接入到软件总线的单元,必须存在一个总线桩,总线桩负责单元和总线的交互,从其他服务器来得请求到达软件总线后,总线调度总线桩发送请求给单元,在单元处理完成后,单元发送相应给总线桩,由总线桩请求总线调度返回结果给请求服务器。 [0019] Pile bus: each access to the software bus unit, there must be a post bus, and the bus unit responsible for the interaction bus pile, the request comes from the other servers reaches the software bus, the bus scheduler sends a request to the bus pile unit, after the completion of the processing units, corresponding to the bus unit transmits the pile, the pile by a bus request bus scheduling request returns the results to the server.

[0020] 调度器:所有需要CPU执行的代码都必须通过调度器调度运行。 [0020] Scheduler: all the code executed by the CPU are required scheduler schedules must be run. 调度器以负载均衡的方式实现任务按照优先级调度,以保障服务器稳定运行。 The scheduler way to achieve load balancing tasks according to priority scheduling, to ensure the stable operation of the server.

[0021] 请求代理单元:请求代理管理请求可以到达的对端,该对端可以是本机也可以是不是本机,甚至可以是多个层次嵌套下的主机,因此请求代理屏蔽了具体执行任务的机器的位置,对于一个原始请求来说,其只需要按照命名向具备请求代理的软件总线请求服务, 软件总线向请求代理发起请求后,请求代理按照命名情况决定转发请求到本总线对应的单元或其他机器上的对应单元,请求代理的存在使得灵活的部署多个层次的分布式服务器成为可能。 [0021] proxy unit requesting: requesting the peer proxy management request may reach the end of the machine may not be the machine may even be in a plurality of host-nested, thus shielding the concrete execution requesting agent position of the machine task for one of the original request, its only in accordance with the request to the proxy naming the bus request software services, software bus after initiating a request to the requesting agent, decided to forward the request to the requesting agent named in accordance with the present bus corresponding corresponding to the unit or units on other machines, there is a request such that the distributed proxy server hierarchy of the plurality of flexible deployment possible.

[0022] 以上单元间的交互是通过会话传递的,一个会话封装了单元和单元间通信的管道,该管道的底层实现可以是tcp/udp/ipc三种方式,在会话中单元可以进行发送一个请求,响应一个请求,主动发送一个通知的操作。 [0022] The interaction between the above units is transmitted through the session, a session between the package and a unit of the communication pipe, the bottom of the pipe may be achieved tcp / udp / ipc three ways, a unit may be transmitted in the session request, in response to a request, sends a notification of the operation.

[0023] 如图2、图3所示,在本发明一实施方式中,异步分布式列对象请求代理系统包括子系统A和子系统B,在分布式子系统A在fete接收到一个Client请求消息后的对这个请求消息的处理流程: [0023] As shown in FIG 2, FIG. 3, in one embodiment of the present invention, the asynchronous distributed system comprising a column Object Request Broker subsystem A and subsystem B, subsystem distributed Client A receives a request message fete after this processing flow request message:

51、子系统A接收到符合本命名服务命名的消息,注意如果消息指定的命名不在本系统,则该消息不会被本系统接收; 51, A receives a message conforming subsystem of the present naming service named, note that if the message is not specified in the naming system, the received message is not the present system;

52、Gate把请求传递给软件总线处理,注意,此处传递的具体含义为创建一个会话,在会话中传输消息,后面每个步骤中的传递均为此处的含义,后面的步骤的描述直接使用传递; 52, Gate bus to pass the request to the software processing, it is noted here passed specific meaning to create a session, the session transfer message is transmitted in each step are later meaning herein, the steps described later directly use pass;

53、软件总线读取请求消息中请求信息,匹配在总线中注册的桩信息寻找请求代理单元的桩,并传递请求消息给请求代理; 53, the software bus request information read request message, the matching information registered in the pile to find the bus unit requesting agent pile, and pass the request message to the requesting agent;

54、请求代理根据请求数据,填充代理追踪信息入栈,若请求本系统服务,传递消息到本地服务单元,并直接进入S6,若请求其他系统数据(示意图中为子系统B),则请求代理需要按照本地缓存的命名信息寻找子系统B的命名服务,并发送给子系统B的fete处理该消息; 54, according to the request data requesting agent, filling agent stack trace information, if the requested service of the present system, passes the message to the local service element, and direct access to S6, otherwise, a data request from another system (schematic subsystems B), the requesting agent B subsystems need to find the naming service in accordance with the naming information is cached locally and sent to the subsystem B fete process the message;

55、子系统B的fete收到请求消息,类似的,子系统B的处理需要重复步骤中的Sl到 55, fete system B receives the request message, similar to the processing system B need to repeat steps Sl

S4; S4;

56、服务单元收到请求消息后,令该消息进入本服务待处理队列; 56, after receiving the request message service unit, enabling the service message into the present pending queue;

57、服务单元提醒调度器,本服务有请求需要执行。 57, to remind the scheduler service unit, the request requires services are performed. 调度器会在合适的时候调度该服务单元运行请求; The scheduler will schedule the requested service units running at the right time;

58、服务单元运行请求后得到一个响应消息,该响应消息中包含了代理追踪栈,服务发送响应消息给请求代理。 58, after the service request is a unit operation response message, the response message contains the agent stack trace, the service sends a response message to the requesting agent. 根据消息的追踪信息,该响应消息会最终被传递给消息的请求单兀。 The tracking information of the message, the response message will eventually be transmitted to a single request message to Wu.

[0024] 需要指出的是,S7的响应消息是个异步发送的消息,消息发送者在发送消息后不需要等待该消息的响应,该消息的请求者需要以异步的方式获取消息的响应。 [0024] It should be noted that the response message is a message S7 asynchronous transmission, the sender does not need to wait for a response message to the message after sending a message, the message requester need to obtain a response message in an asynchronous manner.

[0025] 同样的,如图4所示,若一个服务单元(假设其为单元SA)如果调用其他单元的服务(假设其为单元SB),该单元SB的位置是通过本系统内的请求代理来确定的,单元SA 并不知道SB的具体位置是否和SA在同一系统内,其步骤为: [0025] Also, as shown, when a service unit (assumed to be unit SA) if the calling services of other units (assumed to be unit SB), the position of the SB cell within the system is by the requesting agent 4 determined, unit SA SB is not known whether the specific location and in the same SA system, comprising the steps of:

S10、SA发送对SB单元的调用请求消息给总线; S10, SA SB transmits call request message to the bus unit;

S20、软件总线读取请求消息中请求信息,匹配在总线中注册的桩信息寻找请求代理单元的桩信息,并传递请求消息给请求代理; S20, the software bus request information read request message, the matching information registered in the pile to find the bus request information pile agent unit, and transmitting a request message to the requesting agent;

S30、请求代理根据请求数据,填充代理追踪信息入栈,若请求本系统服务,传递消息到本地服务单元,并直接进入S50,若请求其他系统数据(本图为子系统B),则请求代理需要按照本地缓存的命名信息寻找子系统B的命名服务,并发送给子系统B的fete处理该消息; S30, according to the request data requesting agent, filling agent stack trace information, if the requested service of the present system, passes the message to the local service unit, and directly to S50, if the data request from another system (the present sub-graph B), the requesting agent B subsystems need to find the naming service in accordance with the naming information is cached locally and sent to the subsystem B fete process the message;

S40、子系统B的(iate收到请求消息,类似的,子系统B的处理应该重复Sl到S4。 S40, the system B (Iate receiving the request message, similar to the processing subsystem B should be repeated Sl to S4.

[0026] S50、服务单元B收到请求消息后,令该消息进入本服务待处理队列; [0026] S50, unit B receives the service request message, enabling the service message into the present pending queue;

S60、服务单元提醒调度器,本服务有请求需要执行。 The S60, scheduler reminder service unit, the request requires services are performed. 调度器会在合适的时候调度该服务单元运行请求; The scheduler will schedule the requested service units running at the right time;

S70、服务单元运行请求后得到一个响应消息,该响应消息中包含了代理追踪栈,服务发送响应消息给请求代理。 S70, after the request is a service unit operation response message, the response message contains the agent stack trace, the service sends a response message to the requesting agent. 根据消息的追踪信息,该响应消息会最终被传递给消息的请求单元。 The tracking information of the message, the response message will eventually be passed to the message requesting unit.

[0027] 进一步的,如图5所示,S8和S70,请求代理单元都在发送响应消息给请求的单元,假设该服务单元位于子系统B,其收到一个请求,并由调度器调度运行后产生了对应的响应,详细步骤如下: Units [0027] Further, as shown in FIG, S8, and S70 5, the units requesting agent sends a response message to the requesting subsystem assumed that the service unit is located at B, which receives a request, by the scheduler schedules run after generating a corresponding response, the detailed steps are as follows:

S100、服务单元把运行请求后得到的响应消息,发送给系统所在的总线; S200、总线获取请求代理桩信息后,发送该响应消息给请求代理单元; S300、请求代理单元按照消息中包含的代理追踪栈信息,分情况处理,如果该响应对应的请求在本服务器,则直接发送该响应消息给本服务器的请求单元,到此,本次请求响应的流程结束。 After SlOO, the service unit the operation request is a response message, sent to the bus system is located; S200, bus obtaining the request proxy stub message, transmits the response message to the requesting agent unit; S300, request broker unit according to a message contained in the agent stack trace information processing sub-case, if the response corresponding to the request in the server, the response request unit directly transmits this message to the server, this, in response to this request process ends. 否则进行S400; Otherwise, S400;

S400、如过该响应的请求不在本服务器(假设请求单元在子系统A),请求代理需要按照本地缓存的命名信息寻找子系统A的命名服务,并发送给子系统A的fete处理该响应消息; S400, as the response request through the server is not present (assuming the request subsystem unit A), the requesting agent need to find A naming service subsystem named according to the information in the local cache, fete processing subsystem sends the response message A ;

S500、子系统A的fete收到响应消息后,发送给总线处理。 After S500, fete subsystem receives a response message A is sent to the bus transaction. 总线获取子系统A上的请求代理单元处理该响应消息; Acquisition request on the bus subsystem A proxy unit processes the response message;

S600、子系统A上的请求代理,按照消息中包含的代理追踪栈信息,重复S300的处理, 直到本次请求响应的流程结束。 S600, the subsystem requesting agent A, agent stack trace information in the message contained in the processing of S300 is repeated until the process ends in response to this request.

[0028] 需要注意的是S300到S600的处理何时跳出,取决于系统的层次关系,分布式系统的层次如果为N层,则该循环至多循环NI次即可结束处理。 [0028] Note that when the processing of S600 to S300 out, depending on the system hierarchy, a hierarchical distributed system if N layer, the cycle times up to end the processing cycle NI.

[0029] 需要注意的是:本异步分布式列对象请求代理系统不需要区分Client和krver, 实际上只要是采用本分布式对象请求代理体系结构的系统,即可以按照各自的命名互相访问,互为Client,互为Server。 [0029] Note that: this column asynchronous distributed object request broker system does not distinguish between Client and krver, in fact, as long as the present system is a distributed object request broker architecture, i.e., can visit each other according to their names, the mutual for the Client, mutually Server.

[0030] 异步分布式列对象请求代理系统的应用方法适用于如下几种情况: [0030] The method of application of asynchronous distributed column object request broker system is applicable to the following situations:

第一种:所有的服务单元都在本端,这种形式适用于小网络,如校园网的监控,单服务器模式即可以完成网络的监控。 The first: All services end units are present, this form is suitable for small networks, such as the campus network monitor, i.e., single-server mode complete the monitoring of the network. 这种部署可以很方便的修改为第二种应用方式。 This deployment can easily modify the way for the second application.

[0031] 第二种:分服务平行部署,不对服务器分层。 [0031] The second: Excellent service parallel deployment, the server does not hierarchical. 即部分服务单元在一台服务器,另外部分服务单元在另外的服务器等,这种模式下,可以按照服务单元的多少切分为2个或更多的平行服务器。 That part of a service unit in the server, another portion of another server in the service unit, etc., this mode can be divided into two or more parallel server service according to how many cutting units. 一个同样应用了本体系结构Client可以按照服务的命名向各平行服务器请求服务,这种模式可以适应更大规模的网络监控,如一些流量很大的校园网或企业网, 这种模式下可以很方便的建立平行的服务集群。 An equally applied this architecture Client can follow the naming service to each parallel server requests a service, this model can be adapted to a larger network monitoring, such as some large flow of the campus network or enterprise network, this mode can be very easily create parallel service cluster.

[0032] 第三种:分层网格式应用部署: [0032] Third: hierarchical deployment grid applications:

首先按照网络规模切分为N个子监控网络。 First, according to the network scale is divided into N sub-cutting monitoring network.

[0033] 其次,在N个子网络上,可部署N个单机服务系统,在N个子网上可部署M个(M«N) 大网系统。 [0033] Next, in the sub-network N, the N may be deployed standalone service system can be deployed the M (M << N) system in a large network N subnet. 优选地,还可以进一步对N个单机系统进一步切分,如每个单机切分成X个平行服务,则需要部署为N*X个平行子网络监控系统。 Preferably, a further cut can be further divided on the N single-server system, such as the single cut into each parallel service X, it is necessary to deploy * X N parallel sub-network monitoring system.

[0034] 最后,在M个大网络系统上可部署一个或多个顶层网络监控系统。 [0034] Finally, in a large network system M may deploy one or more top-level network monitoring system.

[0035] 同时,本方式的顶层系统,也可以应用为多个平行顶层系统,如监控全网络告警的顶层系统为一个单独的顶层监控子系统,监控性能的顶层系统为一个单独的顶层监控子系统。 [0035] Meanwhile, the top layer of the system according to the present embodiment may be applied as a top layer a plurality of parallel systems, such as alarm monitoring top-network system into a single top-level monitoring subsystem, to monitor the performance of a single top-level system monitoring sub-top system.

[0036] 为了描述的方便,描述以上装置时以功能分为各种单元分别描述。 [0036] For convenience of description, the description of the above device is divided into various functional units are described. 当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。 Of course, the function of each unit is implemented in one or more software and / or hardware at the time of application of the present embodiment.

[0037] 通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。 [0037] By the above described embodiments can be seen, those skilled in the art can understand that the present application may be implemented by software plus a necessary universal hardware platform. 基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施方式或者实施方式的某些部分所述的方法。 Based on such understanding, the technical solutions of the present application or the nature of the part contributing to the prior art may be embodied in a software product, which computer software product may be stored in a storage medium such as ROM / RAM, magnetic disk, , an optical disc, and includes several instructions that enable a computer device (may be a personal computer, a server, or network device) to execute the methods of the various embodiments of the present application or embodiment of the.

[0038] 以上所描述的装置实施方式仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0038] The apparatus of the above-described embodiments are merely illustrative, as a unit wherein the separate parts may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e., it may be located in one place, or may be distributed to multiple network units. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。 Part or all of the units may be selected according to actual needs to achieve the object of the embodiment of the present embodiment. 本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art without creative efforts, can be understood and implemented.

[0039] 本申请可用于众多通用或专用的计算系统环境或配置中。 [0039] The present application can be used in numerous general purpose or special purpose computing system environments or configurations. 例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。 For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PC, minicomputers, mainframe computers, comprising any of the above systems or devices, the distributed computing environment.

[0040] 本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序单元。 [0040] The present application may be described in the general context of computer-executable instructions, executed by a computer, such as a program unit. 一般地,程序单元包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。 Generally, program unit comprising performing particular tasks or implement particular abstract data types routines, programs, objects, components, data structures, and the like. 也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。 This application may be practiced in a distributed computing environment, the distributed computing environments, where tasks are performed by remote processing devices that are linked through a communications network. 在分布式计算环境中,程序单元可以位于包括存储设备在内的本地和远程计算机存储介质中。 In a distributed computing environment, program unit may be located in both local and remote computer storage media including memory storage devices in.

[0041] 应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。 [0041] It should be understood that while the present specification be described in terms of embodiments, but not every embodiment contains only a separate aspect, this narrative description only for the sake of clarity, those skilled in the art should be used as a specification overall, the embodiments of the technical solutions may be suitably combined to form other embodiments of the present art can be appreciated in the art.

[0042] 上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。 [0042] A series of the detailed description set forth above is merely for the feasibility of specifically described embodiments of the present invention, they are not intended to limit the scope of the present invention, who have not departing from the spirit of the present invention the equivalent skills made embodiment or changes be included within the scope of the present invention.

Claims (5)

  1. 1. 一种异步分布式列对象请求代理系统的应用方法,其特征在于,当第一子系统在Gate接收到一个Client请求消息后,所述方法包括以下步骤:51、第一子系统接收到符合本命名服务命名的消息;52、Gate把请求传递给软件总线处理;53、软件总线读取请求消息中请求信息,匹配在总线中注册的桩信息寻找请求代理单元的桩,并传递请求消息给请求代理;54、请求代理根据请求数据,填充代理追踪信息入栈,若请求本系统服务,传递消息到本地服务单元,并直接进入S6,若请求其他系统数据,则请求代理需要按照本地缓存的命名信息寻找第二子系统的命名服务,并发送给第二子系统的fete处理该消息;55、第二子系统的fete收到请求消息,并重复步骤中的Sl到S4 ;56、服务单元收到请求消息后,令该消息进入本服务待处理队列;57、服务单元提醒调度器,本服务 An application method of the objects to asynchronous distributed proxy system requests, wherein, when the first subsystem receives the Gate message to a Client request, the method comprising the steps of: 51, receives the first subsystem message consistent with the naming service named; 52, Gate the request to process the software bus; 53, software bus request information read request message, the pile matches the registered information in the bus request looking pile agent unit, and transmitting a request message to the requesting agent; 54, according to the request data requesting agent, filling agent stack trace information, if the requested service of the present system, passes the message to the local service element, and direct access to S6, otherwise, a data request from another system, the need to follow the local cache requesting agent naming the second subsystem information to find the naming service, and send the second message processing subsystem fete; 55, a second subsystem receives the request message fete, and repeat the steps Sl to S4; 56, service after receiving the request message unit, enabling the message to be processed into the present service queue; 57, scheduler reminder service unit, the service 有请求需要执行,调度器调度该服务单元运行请求;58、服务单元运行请求后得到一个响应消息,该响应消息中包含了代理追踪栈,服务发送响应消息给请求代理,根据消息的追踪信息,该响应消息传递给消息的请求单元。 There is a request needs to be performed, the scheduler schedules the service unit operation request; 58, the service unit operation request is a response message, the response message contains the agent stack trace, the service sends a response message to the requesting agent, tracking information in accordance with the message, the message delivery request in response to a message unit.
  2. 2.如权利要求1所述的方法,其特征在于,所述S7步骤的响应消息是异步发送的消息, 消息发送者在发送消息后不需要等待该消息的响应,该消息的请求者需要以异步的方式获取消息的响应。 2. The method according to claim 1, wherein the step S7 in response to the message is a message sent asynchronously, does not need to wait for a message sent in response to the message after sending a message, the message requester need to asynchronously of the fetch response message.
  3. 3.如权利要求1所述的方法,其特征在于,若一个服务单元调用其他单元的服务,且其他单元的位置是通过本系统内的请求代理来确定的,其步骤为:S10、服务单元发送对其他单元的调用请求消息给总线;S20、软件总线读取请求消息中请求信息,匹配在总线中注册的桩信息寻找请求代理单元的桩信息,并传递请求消息给请求代理;S30、请求代理根据请求数据,填充代理追踪信息入栈,若请求本系统服务,传递消息到本地服务单元,并直接进入S50,若请求其他系统数据,则请求代理需要按照本地缓存的命名信息寻找第二子系统的命名服务,并发送给第二子系统的fete处理该消息;S40、第二子系统的(iate收到请求消息,并重复Sl到S4 ;S50、其他单元收到请求消息后,令该消息进入本服务待处理队列;S60、服务单元提醒调度器,本服务有请求需要执行,调度 3. The method according to claim 1, wherein, if a service call to the service unit of the other units, and other units of the position is determined by the requesting agent within the present system, the steps of: S10, service unit means for sending a request message to the call other bus; S20, software bus request information read request message, the matching information registered in the pile to find the bus request information pile agent unit, and transmitting a request message to the requesting agent; S30, request the proxy request data, stack trace information filling agent, if the system service requests, deliver the message to the local service element, and directly to S50, if the request to other system data, the requesting agent need to find the second sub information according to the local cache named the system naming service, and send the second message processing subsystem fete; S40, a second subsystem (Iate receives the request message, and repeat Sl to S4; S50 after, other units receiving the request message, enabling the this service message into the queue to be processed; the S60, scheduler reminder service unit, the need to perform the service there is a request, the scheduling 调度该服务单元运行请求;S70、服务单元运行请求后得到一个响应消息,该响应消息中包含了代理追踪栈,服务发送响应消息给请求代理,根据消息的追踪信息,该响应消息会最终被传递给消息的请求单元。 Scheduling the service unit operation request; get a response message S70, the service unit operation request, the response message contains the agent stack trace, the service sends a response message to the requesting agent, according to the tracking information message, the message will eventually be transmitted the response message to the requesting unit.
  4. 4.如权利要求3所述的方法,其特征在于,所述S8和S70具体包括以下步骤:S100、服务单元把运行请求后得到的响应消息,发送给系统所在的总线;S200、总线获取请求代理桩信息后,发送该响应消息给请求代理单元;S300、请求代理单元按照消息中包含的代理追踪栈信息,分情况处理,如果该响应对应的请求在本服务器,则直接发送该响应消息给本服务器的请求单元,到此,本次请求响应的流程结束,否则进行S400;S400、如过该响应的请求不在本服务器,请求代理需要按照本地缓存的命名信息寻找第一子系统的命名服务,并发送给第一子系统的fete处理该响应消息;S500、第一子系统的fete收到响应消息后,发送给总线处理,总线获取第一子系统上的请求代理单元处理该响应消息;S600、第一子系统上的请求代理,按照消息中包含的代理追踪栈信息,重复S300的 4. The method according to claim 3, wherein said S8 and S70 includes the following steps: S100, a response message after the service request is running the unit, and transmits to the bus system is located; S200, a bus acquisition request after proxy stub message, transmits the response message to the requesting agent unit; S300, request broker unit according agent stack trace information contained in the message, points process, if the response corresponding to the request in the server directly sends the response message to this request to the server unit, this, in response to this request process ends, otherwise perform S400; S400, as the response to the request through the server is not present, the need to find a first request Broker subsystem named according to the naming service information of the local cached and sends the first subsystem processes the response message fete; S500, fete first subsystem receives the response message, sent to the bus transaction, the bus acquisition request on the first sub-agent unit processes the response message; S600, the requesting agent on the first subsystem, according to the proxy stack trace information contained in the message, S300 is repeated 处理,直到本次请求响应的流程结束。 Process until the process is completed in response to this request.
  5. 5.如权利要求1至4中任意一项所述的方法,其特征在于,所述各单元间的交互是通过会话传递的,一个会话封装了单元和单元间通信的管道,该管道的底层实现可以是tcp或Udp或ipc三种方式,在会话中单元可以进行发送一个请求,响应一个请求,主动发送一个通知的操作。 5. The method as claimed in any one of claims 1 to 4 in the bottom of the pipe, characterized in that the interaction between the units is transmitted through the session, a session between the package and a unit of the communication pipe, or may be implemented Udp tcp or ipc three ways unit may transmit a request in a session, in response to a request, it sends a notification of the operation.
CN 201110314341 2011-10-17 2011-10-17 Application method for asynchronous distributed column object request agent system CN102355505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110314341 CN102355505B (en) 2011-10-17 2011-10-17 Application method for asynchronous distributed column object request agent system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110314341 CN102355505B (en) 2011-10-17 2011-10-17 Application method for asynchronous distributed column object request agent system

Publications (2)

Publication Number Publication Date
CN102355505A true true CN102355505A (en) 2012-02-15
CN102355505B CN102355505B (en) 2014-01-01

Family

ID=45578999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110314341 CN102355505B (en) 2011-10-17 2011-10-17 Application method for asynchronous distributed column object request agent system

Country Status (1)

Country Link
CN (1) CN102355505B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219316A (en) * 2014-09-12 2014-12-17 微梦创科网络科技(中国)有限公司 Method and device for processing call request in distributed system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438590B1 (en) * 1999-04-13 2002-08-20 Hewlett-Packard Company Computer system with preferential naming service
CN101895544A (en) * 2010-07-15 2010-11-24 深圳市普联技术有限公司 Multi-user control method and multi-user control system for communication equipment and server
CN102176763A (en) * 2011-01-28 2011-09-07 深圳市同洲电子股份有限公司 Broadcast television system and information interaction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438590B1 (en) * 1999-04-13 2002-08-20 Hewlett-Packard Company Computer system with preferential naming service
CN101895544A (en) * 2010-07-15 2010-11-24 深圳市普联技术有限公司 Multi-user control method and multi-user control system for communication equipment and server
CN102176763A (en) * 2011-01-28 2011-09-07 深圳市同洲电子股份有限公司 Broadcast television system and information interaction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219316A (en) * 2014-09-12 2014-12-17 微梦创科网络科技(中国)有限公司 Method and device for processing call request in distributed system
CN104219316B (en) * 2014-09-12 2018-03-23 微梦创科网络科技(中国)有限公司 A distributed call processing system, method and apparatus of the request

Also Published As

Publication number Publication date Type
CN102355505B (en) 2014-01-01 grant

Similar Documents

Publication Publication Date Title
Zanikolas et al. A taxonomy of grid monitoring systems
Calheiros et al. CloudSim: a toolkit for modeling and simulation of cloud computing environments and evaluation of resource provisioning algorithms
Souto et al. A message-oriented middleware for sensor networks
De Roure et al. The evolution of the grid
Gannon et al. Programming the grid: Distributed software components, p2p and grid web services for scientific applications
US20040221017A1 (en) Dynamic generator for fast-client static proxy from service interface definition document
US20050138156A1 (en) Grid application customization
US20090094316A1 (en) Distributed Virtual Machine Architecture
Taylor et al. Architectural styles for runtime software adaptation
US20040167959A1 (en) Autonomic service routing using observed resource requirement for self-optimization
US7467196B2 (en) Managing network errors communicated in a message transaction with error information using a troubleshooting agent
Petcu et al. Experiences in building a mOSAIC of clouds
US7958518B1 (en) Providing enhanced interactions with software services
US20150163179A1 (en) Execution of a workflow that involves applications or services of data centers
Yu et al. A market-oriented grid directory service for publication and discovery of grid service providers and their services
Bosworth Developing web services
CN103024060A (en) Open type cloud computing monitoring system for large scale cluster and method thereof
Shen et al. Architecture design of grid GIS and its applications on image processing based on LAN
CN102223398A (en) Method for deploying services in cloud computing environment
CN101605056A (en) J2EE server monitoring device and monitoring method employing same
CN103401917A (en) Hybrid cloud computing system based on cloud bus and realization method of hybrid cloud computing system
Doğan A study on performance of dynamic file replication algorithms for real-time file access in data grids
US20130086594A1 (en) Execution of applications distributed across a plurality of computing devices
Gokhale et al. Towards real-time fault-tolerant CORBA middleware
US20070192431A1 (en) Method and apparatus for service oriented architecture infrastructure switch

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model