KR20100071613A - Usn middleware query processing load balancing systems and the method - Google Patents

Usn middleware query processing load balancing systems and the method Download PDF

Info

Publication number
KR20100071613A
KR20100071613A KR1020080130393A KR20080130393A KR20100071613A KR 20100071613 A KR20100071613 A KR 20100071613A KR 1020080130393 A KR1020080130393 A KR 1020080130393A KR 20080130393 A KR20080130393 A KR 20080130393A KR 20100071613 A KR20100071613 A KR 20100071613A
Authority
KR
South Korea
Prior art keywords
middleware
query
usn
query request
information
Prior art date
Application number
KR1020080130393A
Other languages
Korean (ko)
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 윤대일
Priority to KR1020080130393A priority Critical patent/KR20100071613A/en
Publication of KR20100071613A publication Critical patent/KR20100071613A/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/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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

Landscapes

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

Abstract

PURPOSE: A processing load balancing system and method thereof of the USN(Ubiquitous Sensor Network) middleware quality are provided to be proceed the load balancing of the requirement of the excessive quality. CONSTITUTION: According to the apparatus is the configuration information, it registers in the corresponding USN middleware system and it interlinks. The apparatus transfers the information of the quality about the request of the quality from USN application service through the evaluation process from suitable USN middleware system. The apparatus transfers the request finish result of the quality delivered from USN middleware system to the corresponding USN application service.

Description

유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템 및 그 방법{USN Middleware query processing load balancing systems and the method} USS middleware query processing load balancing systems and the method

본 발명은 유에스엔(USN)(이하, "USN" 이라 한다) 미들웨어 POOL에 USN 센서정보 질의를 분산 처리할 수 있는 가중치 적용 로드 밸런싱 알고리즘을 적용한 시스템을 설치함으로써, 기존 시스템에서 안고 있는 성능 개선 및 확장성 문제를 동시에 해결할 수 있는 센서 정보 질의 요청 분산 처리를 원활하게 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템 및 그 방법에 관한 것이다.The present invention provides a system that applies a weighted load balancing algorithm capable of distributing the USN sensor information query in the USN (hereinafter referred to as "USN") middleware POOL, thereby improving the performance of the existing system and The present invention relates to a USN middleware query processing load balancing system and a method for smoothing sensor information query request distribution processing that can simultaneously solve a scalability problem.

컴퓨터서비스는 컴퓨팅 환경이 사용자의 환경정보를 모니터링 하여 능동적으로 상황에 맞는 서비스를 제공한다. 최근 들어 유비쿼터스 서비스에 필요한 사용자 환경의 모니터링을 위해 RFID를 비롯한 다양한 종류의 센서들이 곳곳에 배치되고 있다. 이런 센서들은 환경정보를 주기적으로 모니터링 하여 컴퓨팅 환경에 데이터를 전달해 주게된다. 이 때 컴퓨팅 환경에서 받는 데이터는 양이 매우 많고 지속적이고 주기적으로 업데이트 되는 특성을 지니므로 데이터 스트림(Data Stream)이라 불린다.Computer service provides computing service by actively monitoring environment information of user. Recently, various types of sensors including RFID are being deployed everywhere to monitor user environments required for ubiquitous services. These sensors periodically monitor environmental information and deliver data to the computing environment. In this case, the data received in the computing environment is called a data stream because it is very large and has a characteristic of being updated continuously and periodically.

다양한 센서들로부터 수집되는 데이터는 네트워크를 통하여 연속적으로 생성 및 전달되는 스트림 데이터의 형태를 나타내고, 이러한 스트림 데이터를 효율적으로 처 리하기 위한 스트림 데이터 처리 시스템 개발에 관심이 증대되고 있는 상황이다.Data collected from various sensors represents a form of stream data that is continuously generated and transmitted through a network, and there is a growing interest in developing a stream data processing system for efficiently processing such stream data.

한편, 스트림 데이터 처리 시스템에서 스트림 데이터에 대한 질의는 기존 데이터베이스 관리 시스템에서처럼 질의 대상이되는 데이터 집합이 먼저 정해진 환경에서 질의를 하여 그 결과를 얻어오는 일회 질의(one time query)와 구별하기 위해,질의가 먼저 등록된 후에 끊임없이 생성되어 입력되는 스트림 데이터에 질의를 계속 적용하여 검색한다고 해서 연속 질의(continuous query)라 한다.On the other hand, the query for stream data in the stream data processing system is to be distinguished from the one-time query in which the data set to be queried is queried in a predetermined environment as in the existing database management system to obtain the result. Is registered first, and it is called continuous query because it searches continuously applying the query to the stream data that is continuously generated and input.

이때, 연속 질의의 경우에는 하나 이상의 센서에 의해 수집된 각 스트림 데이터에 대하여 하나 이상의(수십 혹은 수백 이상일 수도 있음) 연속적인 질의 과정을 수행하므로, 그 데이터 처리량이 방대한 특징이 있다.In this case, in the case of continuous query, since one or more (possibly dozens or hundreds) continuous query processes are performed on each stream data collected by one or more sensors, the data throughput is enormous.

현재 개발되어 자주 사용되는 서비스 플랫폼으로 Web Service, J2EE, OSGi등을 들 수 있다. 이런 플랫폼들은 분산 서비스를 위한 컴포넌트 기반의 표준화된 컴퓨팅 환경을 제공한다. 하지만 이들은 입력 데이터로 유비쿼터스 환경에서 발생하는 데이터 스트림을 고려하지 않고 있다. 이들은 주로 정적인 데이터 저장소에 읽고 쓰는 방식으로 데이터를 관리하여 서비스를 제공하므로, 이 방식은 지속적으로 업데이트 되고, 양이 많은 데이터 스트림을 읽고 쓰기에는 성능상의 문제를 지닌다.   Currently developed and used service platforms are Web Service, J2EE, and OSGi. These platforms provide component-based standardized computing environments for distributed services. However, they do not consider the data stream that occurs in the ubiquitous environment as input data. They provide services by managing data primarily by reading and writing to a static data store, which is constantly updated and has a performance problem in reading and writing large amounts of data streams.

데이터 스트림 처리를 위해 제안된 스트림 처리 엔진은 데이터 스트림에 관한 SQL 기반의 새로운 질의 모델과 선택(selection), 집계 함수(aggregation) 등의 제한적인 데이터베이스 연산에 한해 매우 효율적인 데이터 처리를 지원한다.  The proposed stream processing engine for data stream processing supports very efficient data processing only for new SQL-based query models for data streams and limited database operations such as selection and aggregation.

하지만 스트림 처리 엔진은 보다 일반적이고 복잡한 형태의 서비스 로직을 개발하고 동작시키는 데에는 한계가 있다.  However, the stream processing engine is limited in developing and operating more general and complex forms of service logic.

대부분의 유용한 고부가 가치 서비스들이 SQL 로 표현될 수 있는 범위 밖의 프로그램 코드로 작성되고 있다.    Most useful high value-added services are written in program code that can't be expressed in SQL.

종래기술로 실시간으로 업데이트 되는 도로 정보에 기반하여 최적의 경로를 실시간으로 찾아주는 서비스 최적 경로를 찾기 위한 알고리즘으로는 다익스트라(Dijkstra) 알고리즘 등이 많이 사용되는 데이타는 SQL 로 표현하는 것이 불가능하며,  As the algorithm for finding the optimal route in real time based on the road information updated in real time by the prior art, the data used by Dijkstra algorithm and the like cannot be represented in SQL.

USN 응용 서비스가 확대되거나 USN 센서네트워크의 규모가 커지거나 함에 따라, 센서정보 질의 요청 건수가 많아 질 수 있으며, 이에 따라 USN 미들웨어의 응답속도가 떨어질 수 밖에 없는 이러한 문제점을 해결하고자 많은 연구가 있어 왔다.As the USN application service expands or the USN sensor network grows, the number of requests for sensor information queries can increase, and thus, many studies have been conducted to solve this problem, which inevitably decreases the response speed of USN middleware. .

예들 들면, 국내공개특허공보 공개번호 제10-0786504호에는 유비쿼터스 환경에서 지식기반 홈네트워크 서비스의 동적 세션 관리 장치에 있어서, 사용자의 이동에 따른 센서 값(사용자 인식정보)을 입력받음에 따라 상기 센서 값의 식별자를 이용하여 사용자 의 현재 위치 및 서비스 등록 여부를 검사하기 위한 세션 관리엔진(Session Managing Engine); 상기 세션 관리엔진으로부터의 사용자 위치정보에 따라 사용자에게 맞는 서비스를 선정하고, 상기 선정한 서비스에 정책적 상황 검증을 수행하여 충돌정보 및 오류정보를 추출하기 위한 서비스 관리엔진(Service Control Engine); 상기 세션 관리엔진에서 추출한 사용자의 위치정보와 상기 서비스 관리엔진에서 추출한 서비스, 충돌정보 및 오류정보를 이용하여 질의를 생성한 후 추론엔진으로 전달하고, 상기 추론엔진으로부터 전달받은 서비스 제공 정보를 서비스 명령 관리엔진으로 전달하기 위한 질의 생성엔진(Query Generating Engine); 및 상기 질의 생성엔진으로부터 전달받은 서비스 제공정보에서 각 서비스 번들에 상응하는 정보를 추출하여 해당 서비스 번들로 전송하고, 해당 서비스를 관리하기 위한 상기 서비스 명령 관리엔진(Action Managing Engine)을 포함하는 유비쿼터스 환경에서 지식기반 홈 네트워크 서비스의 동적 세션 관리 장치가 공개되어 있고,For example, Korean Patent Laid-Open Publication No. 10-0786504 discloses a dynamic session management apparatus for knowledge-based home network service in a ubiquitous environment, wherein a sensor value (user recognition information) according to a user's movement is received. A session managing engine for checking a current location of a user and whether a service is registered using an identifier of a value; A service control engine for selecting a service suitable for a user according to user location information from the session management engine, extracting collision information and error information by performing policy situation verification on the selected service; After generating a query using the location information of the user extracted from the session management engine and the service, collision information, and error information extracted from the service management engine, the query is generated and transmitted to the inference engine, and the service provision information received from the inference engine is provided. A query generation engine for delivering to the management engine (Query Generating Engine); And a service command management engine for extracting information corresponding to each service bundle from the service providing information received from the query generation engine and transmitting the information corresponding to each service bundle to the corresponding service bundle, and managing the corresponding service. The dynamic session management device of knowledge-based home network service is disclosed in

국내등록특허공보 등록번호 제10-0793057호에는 이기종 센서 네트워크 기반의 정보 서비스 제공 시스템에 있어서, 센서 네트워크를 구성하며, 주변 환경의 정보를 센싱하기 위한 센싱수단; 상기 센싱수단으로부터 실시간으로 센싱된 데이터를 취합하여 USN 미들웨어수단에 메시지로 전달하기 위한 센서네트워크 데이터 전송수단; 상기 센서 네트워크 데이터 전송수단을 통해 전달받은 메시지로부터 센싱 데이터를 추출하기 위한 센서 네트워크 추상화수단; 상기 센서 네트워크 추상화수단에서 추출된 센싱 데이터를 분석하여 사물 및 환경 정보를 추출하고, 상기 추출 한 사물 및 환경 정보로부터 이벤트(지식 콘텐츠) 및 환경 상황 정보를 생성하기 위한 센서 네트워크 지능화 수단; 및 상기 센서 네트워크 지능화 수단에서 생성된 이벤트(지식 콘텐츠) 및 환경 상황 정보를 상기 응용 프로그램이 원하는 형태로 상기 응용 프로그램에게 제공하기 위한 서비스 플랫폼 관리수단을 포함하는 이기종 센서 네트워크 기반의 정보 서비스 제공 시스템이 기술되어 있으며,Korean Patent Publication No. 10-0793057 discloses an information service providing system based on a heterogeneous sensor network, comprising: sensing means for configuring a sensor network and sensing information of a surrounding environment; Sensor network data transmission means for collecting data sensed in real time from the sensing means and delivering the message to a USN middleware means as a message; Sensor network abstraction means for extracting sensing data from the message transmitted through the sensor network data transmission means; Sensor network intelligence means for analyzing the sensing data extracted by the sensor network abstraction means to extract things and environment information, and to generate events (knowledge content) and environment information from the extracted things and environment information; And a service platform management means for providing the application program with the event (knowledge content) and environmental context information generated by the sensor network intelligence means in a form desired by the application program. Described,

동 공보 등록번호 제783,679호에는 데이터 스트림에 기반하는 서비스의 개발, 배 치, 제공을 용이하게 하는 미들웨어 시스템에 관한 것으로 특히 무선인식(RFID : Radio Frequency Identification) 시스템 또는 유비쿼터스 센서 네트워크(USN : Ubiquitous Sensor Network) 등과 같이 양이 많고 지속적으로 업데이트 되는 데이터 스트림을 입력으로 이용하는 서비스를 지원하는 장치 및 방법에 관한 것으로, 서비스 유닛 활성화 언어 파일에 의해 지정된 서비스 유닛과 스트림 소스 기술언어 파일을 선택하는 단계; 상기 서비스 유닛 활성화 언어 파일에 의해 작성된 질의와 상기 선택된 스트림 소스 기술언어 파일에 작성된 스트림 공급자의 주소를 사용하여 해당 스트림 공급자에게 질의를 전송하는 단계; 상기 전송된 질의의 결과에 대한 스키마 정보에 따라 버퍼를 준비하는 단계; 상기 선택된 서비스 유닛의 인스턴스를 생성하고 상기 서비스 유닛 활성화 언어 파일에 의해 지정된 실행모드로 서비스 유닛을 초기화 하는 단계; 상기 스트림 공급자로부터 제공된 연속적인 데이터 스트림으로 상기 준비된 버퍼에 저장된 데이터 스트림을 실시간적으로 갱신하는 단계; 사용자 요청에 응답하여 상기 버퍼에 저장된 데이터를 주어진 실행모드로 처리하여 사용자에게 요청 결과를 전달하는 단계로 구성된 데이터 스트림 중개 프로세싱 방법이 공개되어 있으며, Publication No. 783,679 A middleware system that facilitates the development, deployment, and provision of services based on data streams. In particular, it is a large quantity and continuous such as a radio frequency identification (RFID) system or a ubiquitous sensor network (USN). An apparatus and method for supporting a service using a data stream updated as an input, the method comprising: selecting a service unit and a stream source description language file designated by a service unit activation language file; Sending a query to the stream provider using the query made by the service unit activation language file and the address of the stream provider written in the selected stream source description language file; Preparing a buffer according to schema information on a result of the transmitted query; Creating an instance of the selected service unit and initializing the service unit in an execution mode designated by the service unit activation language file; Updating in real time a data stream stored in the prepared buffer with a continuous data stream provided from the stream provider; In response to a user request, a data stream mediation processing method is disclosed, which comprises processing data stored in the buffer in a given execution mode and delivering a request result to a user.

동 공보 등록번호 제813,000호에는 스트림 데이터 처리 시스템에 있어서, 질의 조건 평가 결과를 갱신하면서 저장하기 위한 평가 결과 저장 수단; 스트림 데이터에 대한 윈도우 평가를 수행하여 다음 차례의 질의 조건 평가 대상이 되는 데이터를 선별하기 위한 윈도우 평가 수단; 상기 윈도우 평가 수단으로부터 전달받은 데이터를 이전의 질의 조건 평가 결과의 재사용 가능 여부에 따라 새로운 데이터와 중복 입력 데이터로 분리하기 위한 데이터 분리 수단; 상기 데이터분리 수단으로부터 전달받은 중복 입력 데이터에 대한 질의 조건 평가 결과를 상기 평가 결과 저장 수단으로부터 추출하기 위한 재사용 결과 추출 수단; 상기 데이터 분리 수단으로부터 새로운 데이터를 전달받음에 따라 질의조건 평가를 수행하여 질의 조건 평가 결과를 생성하기 위한 질의 조건 평가 수단; 및 상기 재사용 결과 추출 수단과 상기 질의 조건 평가 수단으로부터 각각 전달받은 질의 조건 평가 결과를 취합하여 출력하고 상기 평가 결과 저장 수단으로 전달하기 위한 결과 구성 수단을 포함하는 기술이 공개되어 있음을 알 수 있다. In the publication number 813,000 A stream data processing system, comprising: evaluation result storage means for updating and storing a query condition evaluation result; Window evaluation means for performing window evaluation on the stream data to select data to be subjected to next query condition evaluation; Data separating means for separating the data received from the window evaluating means into new data and redundant input data according to whether the previous query condition evaluation result can be reused; Reuse result extraction means for extracting a query condition evaluation result for the duplicate input data received from the data separation means from the evaluation result storage means; Query condition evaluation means for generating a query condition evaluation result by performing query condition evaluation upon receiving new data from the data separation means; And a result structuring means for collecting and outputting query condition evaluation results received from the reuse result extracting means and the query condition evaluating means, respectively, and delivering the result to the evaluation result storage means.

USN 응용 서비스에서 요청한 센서정보 질의 요청은 USN 미들웨어에서 받아 분석한 후, 해당 센서네트워크에 알맞은 명령어로 전환하여 이를 USN 센서네트워크로 전달한다. USN 센서네트워크는 USN 미들웨어로부터 들어온 명령어에 대하여 실행한 후 그 결과를 USN 미들웨어에 전달하며, USN 미들웨어는 USN 센서네트워크로부터 받은 결과를 USN 응용 서비스에서 필요한 적절한 데이터 포맷으로 바꾸어 응답함으로써 일련의 과정이 종료된다. The sensor information query request requested by the USN application service is received by the USN middleware, analyzed, and then converted to a command suitable for the corresponding sensor network and transmitted to the USN sensor network. USN sensor network executes instructions from USN middleware and passes the result to USN middleware. USN middleware converts the results from USN sensor network to the appropriate data format required by USN application service and ends the process. do.

하지만 USN 응용 서비스가 확대되거나 USN 센서네트워크의 규모가 커지거나 함에 따라, 센서정보 질의 요청 건수가 많아 질 수 있으며, 이에 따라 USN 미들웨어의 응답속도가 떨어질 수밖에 없는 문제를 갖는다.   However, as the USN application service is expanded or the size of the USN sensor network increases, the number of sensor information query requests may increase, and thus, the response speed of the USN middleware may inevitably decrease.

이 문제를 해결할 수 있는 방법으로 이미 도입된 USN 미들웨어의 하드웨어 스펙 을 업그레이드하는 방법과, USN 미들웨어의 신규 도입을 통하여 해결하는 방법을 들 수 있다. 하지만 두 가지 방법 모두 문제를 내포하고 있다.   As a solution to this problem, there is a method of upgrading the hardware specification of USN middleware that has already been introduced, and a method of solving the problem through the introduction of USN middleware. But both methods present a problem.

첫 번째 방법은 USN 미들웨어의 하드웨어 스펙을 업그레이드 하는 과정에서 USN 응용서비스 일시 중단 사태 및 기존 데이터 백업 및 복원 문제를 야기 시킬 수 있으며,   The first method can cause the suspension of USN application services and backup and restore of existing data during the upgrade of hardware specifications of USN middleware.

두 번째 방법은 USN 응용서비스 프로그램을 도입된 미들웨어를 모두 수용할 수 있는 구조로 일부 수정해야 하는 복잡한 상황이 야기되는 문제점들이 본 발명이 해결하고자 하는 과제인 것이다.  The second method is a problem to be solved by the present invention, which causes a complicated situation in which the USN application service program needs to be partially modified to accommodate all of the introduced middleware.

본 발명은 상기와 같은 문제점을 해결하기 위하여, USN 미들웨어 앞에 USN 센서정보 질의를 분산 처리할 수 있는 가중치 적용 로드 밸런싱 알고리즘을 적용한 기술구성으로서, USN 미들웨어 시스템에 대한 질의 처리 요청에 대하여, 로드 밸런싱 시스템이 질의 요청 및 질의 응답에 대한 평가 결과를 저장하는 수단과; 저장된 평가 결과를 이용하여 질의 요청을 단시간에 수행할 수 있는 USN 미들웨어 시스템을 선별하는 수단과; 해당 USN 미들웨어 시스템으로 질의 전송하며; 질의 처리 결과를 받아 처리 성능을 저장하는 수단으로 구성된 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템 및 그 방법을 제공하는 것이 본 발명이 이루고자 하는 과제 해결수단인 것이다.The present invention is a technical configuration applying a weighted load balancing algorithm capable of distributing the USN sensor information query in front of the USN middleware in order to solve the above problems, for a query processing request to the USN middleware system, load balancing system Means for storing an evaluation result for this query request and a query response; Means for selecting a USN middleware system capable of performing a query request in a short time using the stored evaluation result; Send a query to a corresponding USN middleware system; It is a problem solving means of the present invention to provide a USN middleware query processing load balancing system and a method configured as a means for receiving a query processing result and storing processing performance.

본 발명은 USN 센서 정보 질의 요청을 분산 처리함으로써, USN 응용서비스의 발전 단계에서 올 수 있는 과도한 질의 요청사항을 로드 밸런싱 시킬 수 있다. 즉 USN 응용서비스를 포함하여 USN 응용서비스간의 융복합를 통한 전혀 새로운 형태의 응용서비스가 다양한 형태로 나올 수 있으며, u-City사업에서 나타날 수 있는 동일 센서네트워크 규모의 확대 또한 질의 요청사항이 급격하게 증가할 수 있음에 따라, 질의 요청사항에 대한 분산 처리는 필수적이라 할 수 있고, 본 발명을 통하여 안정되고, 편리한 응용서비스를 제공할 수 있으며, 앞으로 다가올 u-City 사업에서도 미리 준비할 수 있는 효과가 있다According to the present invention, the distributed processing of the USN sensor information query request enables load balancing of excessive query requests that may come from the development stage of the USN application service. In other words, a totally new type of application service can come out in various forms through the convergence between USN application services, including USN application service, and the size of the same sensor network that can be seen in u-City business is also rapidly increasing. According to the present invention, distributed processing of query requests is essential, and through the present invention, it is possible to provide a stable and convenient application service, and to prepare in advance in the upcoming u-City business. have

상기와 같은 목적을 달성하기 위하여 본 발명은 시스템 스타트업 과정에서 미들웨어 시스템 연결을 위한 구성정보를 로딩하는 수단; 구성정보에 따라 해당 USN 미들웨어 시스템에 등록 및 연결하는 수단; USN 응용서비스로부터의 질의 요청에 대하여 평가 과정을 통하여 적합한 USN 미들웨어 시스템으로 질의 정보를 전달하는 수단; 미들웨어 시스템으로부터 전달된 질의 요청 완료 결과를 해당 USN 응용서비스에 전달하는 수단; 질의 요청 완료 결과로부터 질의 평가 결과를 저장하는 수단; 시스템 셧다운 과정에서 등록해지 및 연결 해지하는 수단으로 구성된In order to achieve the above object, the present invention provides a means for loading the configuration information for the middleware system connection in the system startup process; Means for registering and connecting to the corresponding USN middleware system according to the configuration information; Means for conveying query information to a suitable USN middleware system through an evaluation process for a query request from a USN application service; Means for delivering a query request completion result delivered from the middleware system to a corresponding USN application service; Means for storing a query evaluation result from the query request completion result; Consists of means for unregistering and disconnecting during system shutdown

유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템과, USN middleware query processing load balancing system,

상기 시스템을 이용하여 USN 센서정보 질의 분산 처리를 수행하기 위하여, 각각 USN 미들웨어에서 수행하고 있는 질의 처리 상태 정보를 파악하는 단계와; 응용 서비스에서 요청한 질의 요청 관리 단계와; 질의 요청 정보 분석 단계와; 현재까지의 질의 처리 상태 정보를 고려한 분산 적용 단계로 구성된 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법에 관한 것이다.  Identifying query processing status information which is performed by the USN middleware to perform USN sensor information query distribution processing by using the system; A query request management step requested by the application service; Analyzing the query request information; The present invention relates to a USN middleware query processing load balancing method including a distributed application step considering query processing state information.

본 발명은 도1에 도시된 바와 같이, 본 발명의 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 전체도는 n개의 응용서비스와 n개의 USN 미들웨어가 있으며, 그 사이에 질의 요청에 대한 분산 적용을 위한 한 개의 로드 밸런싱 서버로 구성되며,   As shown in FIG. 1, the overall USN middleware query processing load balancing diagram of the present invention includes n application services and n USN middleware, for distributed application of query requests therebetween. Consists of one load balancing server,

도2는 본 발명의 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 상세도로서, 2 is USN middleware query processing load balancing of the present invention As a detailed view,

USN 센서 정보를 파악 및 관리 하는 LoadBalancer와, 상기 LoadBalancer와 연결된 EstimationManager와, 상기 EstimationManager와 연결된 PerformanaceMonitor와, 상기 EstimationManager와 다른 일측에 연결된 QueryManager와, 상기 QueryManager와 연결된 QueryExecutionLogManager로 구성되어 있음을 알 수 있다. 참고로 로드 밸런싱 시스템은 스타업하는 과정에서 Spring Framework 환경에 의하여 각 USN 미들웨어 시스템 별 대행자에 해당하는 USN 미들웨어 Proxy 객체가 생성되며, PerformanceMontor인 경우 Quartz 스케쥴러에 의하여 클론 형태로 동작하게 된다.  It can be seen that a LoadBalancer for identifying and managing USN sensor information, an EstimationManager connected to the LoadBalancer, an PerformanaceMonitor connected to the EstimationManager, a QueryManager connected to the other side of the EstimationManager, and a QueryExecutionLogManager connected to the QueryManager. For reference, in the process of starting up, USN middleware Proxy object corresponding to agent for each USN middleware system is created by Spring Framework environment, and in case of PerformanceMontor, it runs in clone form by Quartz scheduler.

따라서, EstimationManager 는 QueryManager를 통한 질의 요청에 대한 평가와 PerformanaceMonitor를 통한 미들웨어 시스템의 대한 성능 자원을 통한 평가 수단; 과 질의 요청 평가와 성능 자원 평가를 함께 고려한 종합 평가 수단;을 통하여 성능이 높은 USN 미들웨어 시스템을 선정하며, therefore, EstimationManager includes: evaluation means for evaluating query requests through QueryManager and performance resources of middleware system through PerformanaceMonitor; A comprehensive evaluation means considering both query request evaluation and performance resource evaluation, and selects a high performance USN middleware system.

QueryManager는 현재 실행중인 질의 요청에 대하여 각 미들웨어 시스템별 각 질의 요청에 대한 완료시간을 고려한 합계 시간 산출 기능; 과 과거 완료된 요청 질 의에 대한 평균 완료시간 산출 기능; 과 각 미들웨어 시스템별 종합 완료 추정 시간 산출 기능을 담당하고,   QueryManager is a total time calculation function considering the completion time for each query request for each middleware system for the currently executing query request; And average completion time calculation for past completed request queries; It is responsible for calculating the comprehensive completion estimation time for each middleware system,

PerfomanceMonitor는 성능 자원( CPU 정보, CPU 이용률, 메모리정보, 메모리 이용률, 네트워크 트래픽 정보, 네트워크 트래픽 이용률)을 통하여 미들웨어 시스템의 가용 성능을 평가하는 기능을 담당하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템인 것이다.  PerfomanceMonitor is a USN middleware query processing load balancing system that is responsible for evaluating the available performance of middleware systems through performance resources (CPU information, CPU utilization, memory information, memory utilization, network traffic information, network traffic utilization). It is

국내등록특허 등록번호 제783679호는 새로운 스트림 기반 서비스를 개발할 때도 복잡한 스트림 연결 및 처리 부분을 코딩할 필요가 없으므로 서비스의 개발이 매우 용이해지고 개발 시간이 단축되는 효과가 있는 기술이나 본원 발명은 USN 센서정보 질의를 분산 처리할 수 있는 로드 밸런싱 알고리즘을 적용함으로써, USN 미들웨어의 응답속도를 향상시키는 기술이며, 본원 발명은 USN 미들웨어에서 질의 응답속도를 높이기 위하여 분산으로 처리하는 방법으로 상이함을 알 수 있으며, Korean Registered Patent Registration No. 783679 Even when developing a new stream-based service, there is no need to code complex stream connection and processing parts, so that the development of the service is very easy and the development time is shortened. By applying a balancing algorithm, it is a technique for improving the response speed of the USN middleware, it can be seen that the present invention is different in the way of processing by distributed to increase the query response speed in the USN middleware,

국내등록특허 등록번호 제813,000호는 질의 응답속도를 높이는데, 로드 밸런싱 서버를 이용하여 데이터를 중복하여 처리하지 못하게 하는 방법을 택하고 있으나, 본원 발명은 한국정보통신기술협회 표준 TTAS.KO-06.0170 "USN 미들웨어 플랫폼 참조 모델" 에따라 USN 미들웨어 시스템의 기본 기능으로써 질의 요청에 대한 데이터 중복 처리 기능를 보유하고 있어, 질의 요청에 대한 데이터 중복 처리 제어 기능을 로드 밸런싱 시스템에서 처리하지는 않으나, USN 센서정보 질의를 분산 처리할 수 있는 가중치 적용 로드 밸런싱 알고리즘을 적용함으로써, USN 미들웨어의 응답속도를 향상시키는 기술로 각 USN에 분산 적용하는 방법을 사용하는 방법이 상이함 을 알 수 있다.  Korean Registered Patent Registration No. 813,000, which speeds up the query response speed, selects a method that prevents data from being duplicated by using a load balancing server, but the present invention uses the Telecommunications Technology Association Standard TTAS.KO-06.0170 According to the "USN middleware platform reference model", as a basic function of the USN middleware system, it has a data redundancy processing function for query requests, so the data balancing processing control function for query requests is not processed by the load balancing system, but USN sensor information query By applying a weighted load balancing algorithm capable of distributed processing, it can be seen that the method of applying the distributed method to each USN is a technique for improving the response speed of the USN middleware.

도2는 본 발명의 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 상세도를 보다 상세히 설명하면, 다음과 같다. 2 is USN middleware query processing load balancing of the present invention The detailed diagram will be described in more detail as follows.

USN 미들웨어에서 수행하고 있는 질의 처리 상태 정보를 파악하는 단계에서는 질의 요청 내용, 질의 처리 결과, 질의 처리 소요 시간을 고려한 질의 적용등과 같은 정보를 수집하는 파악 단계를 말한다.  In the step of identifying query processing status information performed by the USN middleware, it is a step of identifying information such as query request contents, query processing results, and query application considering the query processing time.

응용 서비스에서 요청한 질의 요청 관리 단계에서는 다양한 응용 서비스에서 들어온 질의 요청을 각 응용서비스별로 요청시간,요청질의, 요청질의 우선순위,요청질의 응답요청 시간등 과 관련된 정보를 큐에 저장관리 단계를 말한다.   In the query request management step requested by an application service, a query request from various application services is stored and stored in a queue for information about request time, request query, priority of query quality, and response request time of a request for each application service.

질의 요청 정보 분석 단계에서는 현재까지 각 응용서비스에서 요청한 질의 정보와 큐에 저장된 질의를 분석하여 우선 순위를 결정하여, 질의 처리 순서를 재정리하는 단계를 말한다.  In the query request information analysis step, the priority is determined by analyzing the query information requested by each application service and the queries stored in the queue, and reordering the query processing order.

분산 적용 단계에서 USN 미들웨어의 가용상태를 파악하여 가용상태가 우수한 미들웨어 서버를 선정하여 재정리된 질의 처리순서에 따라, 질의 내용을 분산 적용하는 단계를 말한다.  Refers to a middleware server having excellent availability status by identifying the availability status of USN middleware in the distributed application stage, and applying and distributing query contents according to the rearranged query processing order.

USN 미들웨어에서 수행하고 있는 질의 처리 상태 정보를 수집하는 파악 단계에서는 질의 요청 내용, 질의 처리 결과, 질의 처리 소요 시간을 고려한 질의 적용등과 같은 정보를 수집하는 단계를 말한다. The grasping step of collecting query processing status information performed by the USN middleware refers to a step of collecting information such as query request contents, query processing results, and query application considering the query processing time.

응용 서비스에서 요청한 질의 요청 관리 단계에서는 다양한 응용 서비스에서 들어온 질의 요청을 각 응용서비스별로 요청시간, 요청 질의, 요청질의 우선순위, 요청 질의 완료 시간등 과 관련된 정보를 큐에 저장관리 단계를 말한다.  In the query request management step requested from an application service, a query request from various application services is stored and stored in a queue for information related to request time, request query, priority of query quality, and request completion time for each application service.

질의 요청 정보 분석 단계에서는 현재까지 각 응용서비스에서 요청한 질의 정보와 큐에 저장된 질의를 분석하여 우선 순위를 결정하여, 질의 처리 순서를 재정리하는 단계를 말한다. In the query request information analysis step, the priority is determined by analyzing the query information requested by each application service and the queries stored in the queue, and reordering the query processing order.

LoadBalancer는 스타트업 과정에서 미들웨어 구성정보( config.properties )를 로드한 후 loadBalancerContext.xml 에 의하여 USN 미들웨어에 대응되는 Proxy 객체를 생성하고, 각 Proxy 객체가 각 미들웨어 시스템에 인증 및 등록하는 기능; 셧다운 과정에서 각 미들웨어 시스템으로 부터의 등록 해지 및 연결해지를 담당하는 기능; 과 각 USN 응용 서비스 시스템과의 인증과정에서 생성된 세션에 대한 관리 기능; 과 요청된 질의 요청에 대하여 다수의 미들웨어 시스템에 대하여 EstimationManagger 로부터 평가된 결과를 통하여 적합한 미들웨어를 선정하여 질의 전달하는 기능; 질의 요청 완료 결과를 해당 USN 응용서비스에 전달하는 기능을 담당한다.  LoadBalancer loads middleware configuration information (config.properties) during startup and creates a Proxy object corresponding to USN middleware by loadBalancerContext.xml and authenticates and registers each Proxy object with each middleware system; A function for canceling registration and disconnection from each middleware system during shutdown; And a management function for sessions created during authentication with each USN application service system; And selecting a suitable middleware through a result evaluated from EstimationManagger for a plurality of middleware systems with respect to the requested query request, and transmitting the query; It is in charge of delivering the result of query request to the corresponding USN application service.

Figure 112008087510609-PAT00001
Figure 112008087510609-PAT00001

표1 config 구성정보 파일Table 1 config configuration file

Figure 112008087510609-PAT00002
Figure 112008087510609-PAT00002

표2 loadbalancer context.XMLTable 2 loadbalancer context.XML

EstimationManager는 USN 응용 서비스 시스템으로부터 요청된 질의 요청에 대하여 성능 평가를 행한 후, 적정한 미들웨어 시스템을 선정하여 질의 요청을 전달하는 역할을 담당한다. 질의 요청에 대하여 성능 평가를 수행함에 있어 QueryManager 로부터 해당 질의 요청에 대하여 각 미들웨어 시스템별로 실행중인 질의 요청에 대한 추정 완료 시간과 이미 완료된 질의 요청에 대한 평균 완료 시간을 획득하는 기능과; PerfomanceMonitor 로부터 각 미들웨어 시스템별로 성능자원에 대한 평균 성능 정보를 획득하는 기능;을 통하여 종합적인 성능 평가 과정을 통하여 해당 질의 요청에 대한 적합한 미들웨어 시스템을 선정하는 기능을 담당하고; 이를 LoadBalancer에게 전달하는 기능을 담당한다.EstimationManager performs a performance evaluation on a query request requested from the USN application service system, and then selects an appropriate middleware system and delivers the query request. Obtaining an estimated completion time for a query request being executed for each middleware system and an average completion time for an already completed query request from the QueryManager for performing a performance evaluation on the query request; A function of obtaining average performance information on performance resources of each middleware system from the PerfomanceMonitor; and selecting a suitable middleware system for a corresponding query request through a comprehensive performance evaluation process; It is responsible for passing this to LoadBalancer.

QueryManager는 USN 응용 서비스 시스템으로부터 요청된 질의 요청 정보에 대하여 큐(Queue) 자료구조 유형으로 저장관리하고, 전에 없던 신규 질의 요청인지 여부를 확인하고, 신규 질의 요청에 대하여 질의 아이디를 부여하고, 기존 질의 요청과 일치할 경우 이미 부여된 아이디를 활용하며, 질의 완료시 QueryExecutionLog 데이터를 QueryExecutionLogManager를 통하여 저장하는 기능; 과 현재 진행중인 질의 요청에 대하여 미들웨어별로 추정 실행 시간의 합을 계산하고, 진행중인 질의 요청에 없는 경우 QueryExecutionLogManager 로부터 과거의 실행 결과를 조회하여 추정 실행 시간을 계산에 포함하지만, QueryExecutionLogManager 로부터 과거의 실행 결과가 없는 경우 추정 실행 시간을 산정하지 않는 기능을 담당한다. 실행중인 질의 실행 관리 정보는 다음과 같다. 질의 시작시간, 질의 실행 완료 추정 시간, 질의 아이디, 질의 수행 미들웨어 아이디등이다. The QueryManager stores and manages query request information requested from the USN application service system as a queue data structure type, checks whether a new query request has not existed before, assigns a query ID to a new query request, and provides an existing query. A function that saves the QueryExecutionLog data through the QueryExecutionLogManager when the query is completed and utilizes an already assigned ID if it matches the request; Calculate the sum of estimated execution time for each middleware for the current query request, and if the query request is not in progress, search the past execution result from QueryExecutionLogManager and include the estimated execution time in the calculation, but there is no past execution result from QueryExecutionLogManager. In this case, the function does not calculate the estimated execution time. Query execution management information being executed is as follows. Query start time, estimated execution time of query execution, query ID, and query execution middleware ID.

QueryExecutionLogManager 는 USN 응용 서비스 시스템으로부터 요청된 질의 요청 정보와 질의 처리 결과를 저장하는 기능;과 QueryManager 로부터 특정 질의 요청에 대하여 복수개의 QueryExecutionLog 데이터를 제공한다. QueryExecutionLog을 구성하고 있는 속성은 다음과 같다. 질의 시작 시간, 질의 완료 시간, 미들웨어 고유 식별 아이디, QueryManager에 의해 부여된 질의 아이디, 로그 데이터 유효여부 등이다.  QueryExecutionLogManager provides a function of storing query request information and query processing results requested from the USN application service system, and provides a plurality of QueryExecutionLog data for a specific query request from the QueryManager. The attributes that make up QueryExecutionLog are as follows. Query start time, query completion time, middleware unique ID, query ID given by QueryManager, and log data validity.

PerformanceMonitor는 각 USN 미들웨어 시스템에 대하여 성능자원( CPU 정보, CPU 이용율, 메모리 정보, 메모리 이용률, 네트워크 트래픽 정보 및 네트워크 트래픽 이용률 )에 대하여 일정한 주기별로 수집을 담당하는 기능; 으로서 USN 미들웨어 시스템에 설치되어 제공하는 SNMP 서비스를 활용하여 수집한다. 질의 요청시 성능자원에 대한 평가를 통하여 미들웨어 시스템을 선정해야 한다. The PerformanceMonitor has a function of collecting collection of performance resources (CPU information, CPU utilization, memory information, memory utilization, network traffic information and network traffic utilization) for each USN middleware system at regular intervals; It collects by utilizing SNMP service installed in USN middleware system. When requesting a query, the middleware system should be selected through evaluation of performance resources.

각 시스템의 평가 방법은 다음 표에 기술된 바와 같이 평가함을 알 수 있다.  It can be seen that the evaluation method of each system is evaluated as described in the following table.

Figure 112008087510609-PAT00003
Figure 112008087510609-PAT00003

표3 질의 요청 평가 계산 산출Table 3 Calculation of query request evaluation

Figure 112008087510609-PAT00004
Figure 112008087510609-PAT00004

표4 성능자원에 의한 평가 계산 산출Table 4 Evaluation calculation results by performance resources

Figure 112008087510609-PAT00005
Figure 112008087510609-PAT00005

표5 특정 질의 요청에 대한 전체 평가 계산 산출Table 5 Overall Evaluation Calculation for Specific Query Requests

Figure 112008087510609-PAT00006
Figure 112008087510609-PAT00006

표6 적합한 미들웨어 선정 계산 산출Table 6 Calculation of appropriate middleware selection

도1 본 발명의 유에스엔 미들웨어 질의 처리 로드 밸런싱 시스템 전체도.1 is a general diagram of a US middleware query processing load balancing system of the present invention.

도2는 본 발명의 유에스엔 미들웨어 질의 처리 로드 밸런싱 시스템 상세도.Figure 2 is a detailed diagram of the US middleware query processing load balancing system of the present invention.

Claims (12)

유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템에 있어서, In the USN middleware query processing load balancing system, 시스템 스타트업 과정에서 미들웨어 시스템 연결을 위한 구성정보를 로딩하는 수단; 구성정보에 따라 해당 USN 미들웨어 시스템에 등록 및 연결하는 수단; USN 응용서비스로부터의 질의 요청에 대하여 평가 과정을 통하여 적합한 USN 미들웨어 시스템으로부터 질의 정보를 전달하는 수단; 미들웨어 시스템으로부터 전달된 질의 요청 완료 결과를 해당 USN 응용서비스에 전달하는 수단; 질의 요청 완료 결과로부터 질의 평가 결과를 저당하는 수단; 시스템 셧다운 과정에서 등록해지 및 연결해지 하는 수단을 포함하여 구성되어 있음을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템.  Means for loading configuration information for connecting a middleware system in a system startup process; Means for registering and connecting to the corresponding USN middleware system according to the configuration information; Means for conveying query information from a suitable USN middleware system through an evaluation process on a query request from a USN application service; Means for delivering a query request completion result delivered from the middleware system to a corresponding USN application service; Means for storing a query evaluation result from the query request completion result; USN middleware query processing load balancing system, characterized in that it comprises a means for registering and disconnecting during system shutdown. 청구항 1에 있어서, 상기 USN 응용서비스로부터의 질의 요청에 대하여 평가 과정을 통하여 적합한 USN 미들웨어 시스템으로부터 질의 정보를 전달하는 수단중 The method of claim 1, wherein the query information is transmitted from a suitable USN middleware system through an evaluation process for a query request from the USN application service. 성능 평가는 EstimationManager에서 일부 수행되며, QueryManager를 통한 질의 요청에 대한 평가와 PerformanaceMonitor를 통한 미들웨어 시스템의 대한 성능 자원을 통한 평가 수단; 과 질의 요청 평가와 성능 자원 평가를 함께 고려한 종합 평가 수단;을 통하여 성능이 높은 USN 미들웨어 시스템을 선정함을 특징으로 하는  Performance evaluation is carried out in EstimationManager in part, evaluation means for the evaluation of the query request through the QueryManager and the performance resources of the middleware system through the PerformanaceMonitor; A comprehensive evaluation means that considers query request evaluation and performance resource evaluation together; and selects a high performance USN middleware system. 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템.USN middleware query processing load balancing system. 청구항 1에 있어서, 상기 USN 응용서비스로부터의 질의 요청에 대하여 평가 과정을 통하여 적합한 USN 미들웨어 시스템으로부터 질의 정보를 전달하는 수단중 The method of claim 1, wherein the query information is transmitted from a suitable USN middleware system through an evaluation process for a query request from the USN application service. 성능 평가는 QueryManager에서 일부 수행되며, 실행중인 질의 요청에 대하여 각 미들웨어 시스템별 각 질의 요청에 대한 완료시간을 고려한 합계 시간 산출 기능; 과 과거 완료된 요청 질의에 대한 평균 완료시간 산출 기능; 과 각 미들웨어 시스템별 종합 완료 추정 시간 산출 기능을 담당함을 특징으로 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템. The performance evaluation is partially performed in the QueryManager, and includes a total time calculation function considering a completion time of each query request for each middleware system with respect to a running query request; An average completion time calculation function for the previously completed request query; And the USN middleware query processing load balancing system, which is responsible for calculating a comprehensive completion estimation time for each middleware system. 청구항 1에 있어서, 상기 USN 응용서비스로부터의 질의 요청에 대하여 평가 과정을 통하여 적합한 USN 미들웨어 시스템으로부터 질의 정보를 전달하는 수단중 The method of claim 1, wherein the query information is transmitted from a suitable USN middleware system through an evaluation process for a query request from the USN application service. 성능 평가는 PerfomanceMonitor에서 일부 수행되며 성능 자원( CPU 정보, CPU 이용율, 메모리정보, 메모리 이용율, 네트워크 트래픽 정보, 네트워크 트래픽 이용율)를 통하여 미들웨어 시스템의 가용 성능을 평가하는 기능을 담당함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 시스템. Performance evaluation is partly performed in PerfomanceMonitor, and is used to evaluate the usable performance of middleware systems through performance resources (CPU information, CPU utilization, memory information, memory utilization, network traffic information, network traffic utilization). USN middleware query processing load balancing system. 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법에 있어서, In the USN middleware query processing load balancing method, 각각 USN 미들웨어에서 수행하고 있는 질의 처리 상태 정보를 파악하는 단계와; 응용 서비스에서 요청한 질의 요청 관리 단계와; 질의 요청 정보 분석 단계와; 현재까지의 질의 처리 상태 정보를 고려한 분산 적용 단계를 포함하여 구성되어 있음을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법. Identifying query processing status information which is performed by each USN middleware; A query request management step requested by the application service; Analyzing the query request information; USN middleware query processing load balancing method comprising a distributed application step taking into account the current state of the query processing. 청구항 5에 있어서, 상기 질의 요청 정보 분석 단계는 EstimationManager,The method of claim 5, wherein the analyzing of the query request information comprises: EstimationManager, QueryManager, QueryExecutionLogManager 및 PerformanceMonitor에서 In QueryManager, QueryExecutionLogManager, and PerformanceMonitor 수행되며, Is performed, EstimationManager는 USN 응용 서비스 시스템으로부터 요청된 질의 요청에 대하여 성능 평가를 행한 후, 적정한 미들웨어 시스템을 선정하여 질의 요청을 전달하고, 질의 요청에 대하여 성능 평가를 수행함에 있어 QueryManager 로부터 해당 질의 요청에 대하여 각 미들웨어 시스템별로 실행중인 질의 요청에 대한 추정 완료 시간과 이미 완료된 질의 요청에 대한 평균 완료 시간을 획득하는 기능과; PerfomanceMonitor 로부터 각 미들웨어 시스템별로 성능자원에 대한 평균 성능 정보를 획득하는 기능;을 통하여 종합적인 성능 평가 과정을 통하여 해당 질의 요청에 대한 적합한 미들웨어 시스템을 선정하는 기능을 담당하고; 적합한 미들웨어 시스템이 후 이를 LoadBalancer에게 전달하며, EstimationManager performs performance evaluation on the query request requested from the USN application service system, selects an appropriate middleware system, delivers the query request, and performs performance evaluation on the query request from the QueryManager. Obtaining an estimated completion time for a query request being executed for each system and an average completion time for an already completed query request; A function of obtaining average performance information on performance resources of each middleware system from the PerfomanceMonitor; and selecting a suitable middleware system for a corresponding query request through a comprehensive performance evaluation process; A suitable middleware system will then forward it to LoadBalancer, QueryManager는 USN 응용 서비스 시스템으로부터 요청된 질의 요청 정보에 대하여 큐(Queue) 저장관리하고, 전에 없던 신규 질의 요청인지 여부를 확인하고, 신규 질의 요청에 대하여 질의 아이디를 부여하고, 기존 질의 요청과 일치할 경우 이미 부여된 아이디를 활용하며, 질의 완료시 QueryExecutionLog 데이터를 QueryExecutionLogManager를 통하여 저장하는 기능; 과 현재 진행중인 질의 요청에 대하여 미들웨어별로 추정 실행 시간의 합을 계산하고, 진행중인 질의 요청에 없는 경우 QueryExecutionLogManager 로부터 과거의 실행 결과를 조회하여 추정 실행 시 간을 계산에 포함하지만, QueryExecutionLogManager 로부터 과거의 실행 결과가 없는 경우 추정 실행 시간을 산정하지 않는 기능을 담당하고,   The QueryManager queues and manages query request information requested from the USN application service system, checks whether a new query request has not existed before, assigns a query ID to a new query request, and matches with an existing query request. A case that utilizes an already assigned ID and stores QueryExecutionLog data through QueryExecutionLogManager when the query is completed; The sum of the estimated execution time for each middleware for the current query request is calculated. If the query request is not in progress, the previous execution result is retrieved from the QueryExecutionLogManager and the estimated execution time is included in the calculation. If not, it is responsible for not estimating the estimated execution time, QueryExecutionLogManager 는 USN 응용 서비스 시스템으로부터 요청된 질의 요청 정보와 질의 처리 결과를 저장하는 기능; 과 QueryManager 로부터 특정 질의 요청에 대하여 복수개의 QueryExecutionLog 데이터를 제공하며,  QueryExecutionLogManager has a function of storing query request information and query processing results requested from the USN application service system; Provides multiple QueryExecutionLog data for a specific query request from the and QueryManager. PerformanceMonitor는 각 USN 미들웨어 시스템에 대하여 성능자원( CPU 정보, CPU 이용율, 메모리 정보, 메모리 이용율, 네트워크 트래픽 정보 및 네트워크 트래픽 이용율 )에 대하여 일정한 주기별로 수집을 담당하는 기능; 으로서 USN 미들웨어 시스템에 설치되어 제공하는 SNMP 서비스를 활용하여 수집한다. 질의 요청시 성능자원에 대한 평가를 통하여 미들웨어 시스템을 선정함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법.  The PerformanceMonitor has a function of performing collection on a periodic basis for performance resources (CPU information, CPU utilization rate, memory information rate, memory utilization rate, network traffic rate and network traffic rate) for each USN middleware system; It collects by utilizing SNMP service installed in USN middleware system. A USN middleware query processing load balancing method characterized by selecting a middleware system by evaluating a performance resource when a query is requested. 청구항 5에 있어서, 상기 질의 요청 정보 분석 단계는 EstimationManager,The method of claim 5, wherein the analyzing of the query request information comprises: EstimationManager, QueryManager, QueryExecutionLogManager 및 PerformanceMonitor에서 In QueryManager, QueryExecutionLogManager, and PerformanceMonitor 수행되며, 미들웨어에 대하여 요청 질의 계산 산출은 다음식에 의해 계산함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법. The request query calculation calculation for the middleware is performed by the following equation. 다음식  Formula k번째 미들웨어에서 실행중인 질의 요청수가 N개 인 경우N number of query requests executing in kth middleware
Figure 112008087510609-PAT00007
Figure 112008087510609-PAT00007
k번째 미들웨어에서 실행 완료된 질의의 개수가 m개인 경우m number of executed queries in k middleware
Figure 112008087510609-PAT00008
Figure 112008087510609-PAT00008
k번째 미들웨어에서의 질의 평가 합계Sum of query evaluations in the k middleware
Figure 112008087510609-PAT00009
Figure 112008087510609-PAT00009
청구항 5에 있어서, 상기 질의 요청 정보 분석 단계는 EstimationManager,The method of claim 5, wherein the analyzing of the query request information comprises: EstimationManager, QueryManager, QueryExecutionLogManager 및 PerformanceMonitor에서 In QueryManager, QueryExecutionLogManager, and PerformanceMonitor 수행되며, 미들웨어에 대한 성능자원을 통한 시스템 성능 평가는 다음식에 의해 평가함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법. USN middleware query processing load balancing method, characterized in that the performance evaluation performed by the performance resources for the middleware is evaluated by the following equation. 다음식  Formula k번째 미들웨어인 경우for k middleware CPU 자원 : CPU 의 개수, CPU 처리 속도, CPU 이용율 CPU resources: number of CPUs, CPU processing speed, CPU utilization
Figure 112008087510609-PAT00010
Figure 112008087510609-PAT00010
메모리 자원 : 메모리 용량, 메모리 처리 속도, 메모리 이용율Memory resources: memory capacity, memory processing speed, memory utilization
Figure 112008087510609-PAT00011
Figure 112008087510609-PAT00011
네트워크 자원 : 네트워크 속도, 네트워크 트래픽 이용율Network resources: network speed, network traffic utilization
Figure 112008087510609-PAT00012
Figure 112008087510609-PAT00012
전체 시스템 성능 평가 Overall system performance evaluation
Figure 112008087510609-PAT00013
Figure 112008087510609-PAT00013
Figure 112008087510609-PAT00014
: 로드 밸런싱 시스템 관리자에 의하여 결정되는 가중치
Figure 112008087510609-PAT00014
: Weights Determined by the Load Balancing System Administrator
청구항 5에 있어서, 상기 질의 요청 정보 분석 단계는 EstimationManager,The method of claim 5, wherein the analyzing of the query request information comprises: EstimationManager, QueryManager, QueryExecutionLogManager 및 PerformanceMonitor에서 In QueryManager, QueryExecutionLogManager, and PerformanceMonitor 수행되며, 미들웨어에 대한 질의 평가 결과와 성능 평가 결과를 고려한 전체 평가 계산 산출은 다음식에 의해 계산함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법. The overall evaluation calculation calculation considering the query evaluation result and the performance evaluation result for the middleware is calculated by the following equation. 다음식 Formula k번째 미들웨어인 경우for k middleware
Figure 112008087510609-PAT00015
Figure 112008087510609-PAT00015
Figure 112008087510609-PAT00016
: 로드 밸런싱 시스템 관리자에 의하여 결정되는 가중치
Figure 112008087510609-PAT00016
: Weights Determined by the Load Balancing System Administrator
청구항 5에 있어서, 상기 질의 요청 정보 분석 단계는 EstimationManager,The method of claim 5, wherein the analyzing of the query request information comprises: EstimationManager, QueryManager, QueryExecutionLogManager 및 PerformanceMonitor에서 In QueryManager, QueryExecutionLogManager, and PerformanceMonitor 수행되며, 적합한 미들웨어 선정 계산 산출은 다음식에 의해 계산함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법. A suitable middleware selection calculation calculation is performed by the following equation: USN middleware query processing load balancing method. 다음식Formula
Figure 112008087510609-PAT00017
Figure 112008087510609-PAT00017
전체 평가결과에서 가장 최소값을 갖는 미들웨어 시스템이 질의 전달을 위한 적합한 미들웨어 시스템으로서 선정The middleware system with the lowest value among the overall evaluation results is selected as a suitable middleware system for query delivery.
청구항 5에 있어서, 상기 각각 USN 미들웨어에서 수행하고 있는 질의 처리 상태 정보를 파악하는 단계와; 응용 서비스에서 요청한 질의 요청 관리 단계는 The method of claim 5, further comprising: identifying query processing state information performed by each of the USN middlewares; The query request management step requested by the application service is LoadBalancer에서 수행되며, 스타트업 과정에서 미들웨어 구성정보를 로드한 후 각 미들웨어 시스템에 인증 및 등록하는 기능; 셧다운 과정에서 각 미들웨어 시스템으로 부터의 등록 해지 및 연결해지를 담당하는 기능;과 각 USN 응용 서비스 시스템과의 인증과정에서 생성된 세션에 대한 관리 기능; 과 요청된 질의 요청에 대하여 다수의 미들웨어 시스템에 대하여 EstimationManagger 로부터 평가된 결과를 통하여 적합한 미들웨어를 선정하여 질의 전달하는 기능; 질의 요청 완료 결과를 해당 USN 응용서비스에 전달함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법.  Performed in LoadBalancer, the function of authenticating and registering each middleware system after loading middleware configuration information during startup; A function that is responsible for unregistering and disconnecting from each middleware system in the shutdown process, and managing a session created during authentication with each USN application service system; And selecting a suitable middleware through a result evaluated from EstimationManagger for a plurality of middleware systems with respect to the requested query request, and transmitting the query; A USN middleware query processing load balancing method characterized by delivering a query request completion result to a corresponding USN application service. 청구항 11에 있어서, 상기 각각 USN 미들웨어에서 수행하고 있는 질의 처리 상태 정보를 파악하는 단계와; 응용 서비스에서 요청한 질의 요청 관리 단계는 12. The method of claim 11, further comprising: identifying query processing state information performed in each of the USN middleware; The query request management step requested by the application service is LoadBalancer에서 수행되며, config.properties 구성 정보 파일을 로드한 후 N개의 USNMiddlware 객체를 생성한 후 LoadBalancer 객체에 N개의 USNMiddleware 객체를 등록하여 관리함을 특징으로 하는 유에스엔(USN) 미들웨어 질의 처리 로드 밸런싱 방법. Load balancing method performed by LoadBalancer that loads the config.properties configuration information file, creates N USNMiddlware objects, and then registers and manages N USNMiddleware objects in the LoadBalancer object. <?xml version="1.0" encoding="UTF-8"?><? xml version = "1.0" encoding = "UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<beans xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">        xsi: schemaLocation = "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> <!-- 첫 번째 USN 미들웨어 -->    <!-First USN Middleware-> <bean id="middleware1" class="net.uspider.USNMiddleware">    <bean id = "middleware1" class = "net.uspider.USNMiddleware"> <property name="id" value="$usnmw1.id"/>        <property name = "id" value = "$ usnmw1.id" /> <property name="host" value="$usnmw1.host"/>        <property name = "host" value = "$ usnmw1.host" /> <property name="userid" value="$usnmw1.userid"/>        <property name = "userid" value = "$ usnmw1.userid" /> <property name="port" value="$usnmw1.port"/>        <property name = "port" value = "$ usnmw1.port" /> <property name="proxyport" value="$usnmw1.proxyport"/>        <property name = "proxyport" value = "$ usnmw1.proxyport" /> <property name="password" value="$usnmw1.password"/>        <property name = "password" value = "$ usnmw1.password" /> <property name="snmpUserId" value="$usnmw1.snmp.userid"/>        <property name = "snmpUserId" value = "$ usnmw1.snmp.userid" /> <property name="snmpCommunity" value="$usnmw1.snmp.community"/>        <property name = "snmpCommunity" value = "$ usnmw1.snmp.community" /> <property name="snmpVersion" value="$usnmw1.snmp.version"/>        <property name = "snmpVersion" value = "$ usnmw1.snmp.version" /> </bean>    </ bean> ..........................    ................ <!-- N 번째 USN 미들웨어 -->    <!-Nth USN Middleware-> <bean id="middlewareN" class="net.uspider.USNMiddleware">    <bean id = "middlewareN" class = "net.uspider.USNMiddleware"> <property name="id" value="$usnmwN.id"/>        <property name = "id" value = "$ usnmwN.id" /> <property name="host" value="$usnmwN.host"/>        <property name = "host" value = "$ usnmwN.host" /> <property name="userid" value="$usnmwN.userid"/>        <property name = "userid" value = "$ usnmwN.userid" /> <property name="port" value="$usnmwN.port"/>        <property name = "port" value = "$ usnmwN.port" /> <property name="proxyport" value="$usnmwN.proxyport"/>        <property name = "proxyport" value = "$ usnmwN.proxyport" /> <property name="password" value="$usnmwN.password"/>        <property name = "password" value = "$ usnmwN.password" /> <property name="snmpUserId" value="$usnmwN.snmp.userid"/>        <property name = "snmpUserId" value = "$ usnmwN.snmp.userid" /> <property name="snmpCommunity" value="$usnmwN.snmp.community"/>        <property name = "snmpCommunity" value = "$ usnmwN.snmp.community" /> <property name="snmpVersion" value="$usnmwN.snmp.version"/>        <property name = "snmpVersion" value = "$ usnmwN.snmp.version" /> </bean>    </ bean> <!-- 로드 밸런서 관리자에 N개의 USN 미들웨어 등록 -->    <!-Register N USN middleware with Load Balancer Manager-> <bean id="loadBalancerManager" class="net.uspider.LoadBalancerManagerImpl">    <bean id = "loadBalancerManager" class = "net.uspider.LoadBalancerManagerImpl"> <property name="middlewares" >        <property name = "middlewares"> <list>        <list> <ref bean="middleware1"/>        <ref bean = "middleware1" /> ..........        .......... <ref bean="middlewareN"/>        <ref bean = "middlewareN" /> </list>        </ list> </property>           </ property> </bean>          </ bean> </beans></ beans>
KR1020080130393A 2008-12-19 2008-12-19 Usn middleware query processing load balancing systems and the method KR20100071613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080130393A KR20100071613A (en) 2008-12-19 2008-12-19 Usn middleware query processing load balancing systems and the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080130393A KR20100071613A (en) 2008-12-19 2008-12-19 Usn middleware query processing load balancing systems and the method

Publications (1)

Publication Number Publication Date
KR20100071613A true KR20100071613A (en) 2010-06-29

Family

ID=42369084

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080130393A KR20100071613A (en) 2008-12-19 2008-12-19 Usn middleware query processing load balancing systems and the method

Country Status (1)

Country Link
KR (1) KR20100071613A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101512647B1 (en) * 2013-10-18 2015-04-16 에스케이 텔레콤주식회사 Method For Choosing Query Processing Engine
CN117112239A (en) * 2023-10-23 2023-11-24 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Extensible load balancing method and system on heterogeneous reasoning back end
CN117544506A (en) * 2023-11-09 2024-02-09 北京中电汇通科技有限公司 Container cloud DNS performance optimization method based on eBPF technology

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101512647B1 (en) * 2013-10-18 2015-04-16 에스케이 텔레콤주식회사 Method For Choosing Query Processing Engine
CN117112239A (en) * 2023-10-23 2023-11-24 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Extensible load balancing method and system on heterogeneous reasoning back end
CN117112239B (en) * 2023-10-23 2024-02-09 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Extensible load balancing method and system on heterogeneous reasoning back end
CN117544506A (en) * 2023-11-09 2024-02-09 北京中电汇通科技有限公司 Container cloud DNS performance optimization method based on eBPF technology
CN117544506B (en) * 2023-11-09 2024-05-24 北京中电汇通科技有限公司 Container cloud DNS performance optimization method based on eBPF technology

Similar Documents

Publication Publication Date Title
CN110191063B (en) Service request processing method, device, equipment and storage medium
US8498959B2 (en) Policy enforcement
EP2095236B1 (en) Method, system and computer program for testing software applications based on multiple data sources
US9246777B2 (en) Computer program and monitoring apparatus
KR102044046B1 (en) Telemetry file hash and conflict detection
CN113055492A (en) Control method and device for service gray scale link, computer equipment and storage medium
EP2594050A1 (en) Method and apparatus for processing biometric information using distributed computation
WO2016150153A1 (en) Software release method and device
US7996840B2 (en) Method, system, and apparatus for scheduling pattern based web services
US11948005B2 (en) Managed integration of constituent services of multi-service applications
US20130173965A1 (en) Fault tracing system and method for remote maintenance
US7533383B2 (en) Method, system, and apparatus for scheduling pattern based web services
CN112087520A (en) Data processing method, device, equipment and computer readable storage medium
US8468238B2 (en) Computer product, apparatus and method for generating configuration-information for use in monitoring information technology services
Zhang et al. QoS prediction in cloud and service computing: approaches and applications
KR20100071613A (en) Usn middleware query processing load balancing systems and the method
CN116974948B (en) Service system testing method, system, equipment and medium
CN112948255A (en) Distributed kernel fuzzing test system and method
CN114443940A (en) Message subscription method, device and equipment
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN109274533B (en) Web service fault positioning device and method based on rule engine
US9479396B2 (en) XML based generic UNIX discovery framework
CN114363403A (en) Service access method, system, computer device and storage medium
Liu et al. Service composition execution optimization based on state transition matrix for cloud computing
WO2021099774A1 (en) Server and application monitoring

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E601 Decision to refuse application