• Title/Summary/Keyword: 네트워크 소켓

Search Result 76, Processing Time 0.03 seconds

Implementing Socket Polling Server in Java (자바 언어를 이용한 소켓폴링 서버구현)

  • Sohn, Kang-Min;Kang, Tae-Gun;Ham, Ho-Sang
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2002.11a
    • /
    • pp.115-118
    • /
    • 2002
  • 소켓 프로그래밍(socket programming) 인터페이스를 지원하는 C/C++, perl, python 과 같은 언어들은 폴링(polling) 기능을 갖는 select() 함수를 제공한다. 이 select()함수를 이용할 경우, 단일 쓰레드(또는 프로세스)로 다중의 클라이언트 요청을 처리할 수 있다. 최근 네트워크 프로그래밍 분야에서 주목받는 자바 언어의 경우, 최신 JDK 1.4 의 비동기 입출력 패키지에서 select()함수를 제공하고 있으나, JDK 1.3을 포함한 그 이하의 버전에서는 아직까지 이 함수를 제공하지 않고 있다. 일반적으로 다중 쓰레드를 이용하여 소켓서버 응용프로그램을 개발할 경우, 코드가 단순해지고 응답이 빠른 장점이 있는 반면에 네트워크 연결이 증가할수록 다수의 쓰레드를 관리하는 일이 CPU에 큰 부담이 된다. 반면에 소켓폴링(socket polling)을 사용할 경우, 이러한 연결 유지에 대한 부담이 줄어드는 대신, 다중 쓰레드를 이용하는 방법에 비하여 구현이 어렵다. 본 논문에서는 다양한 시뮬레이션 환경에서 세가지 소켓 프로그래밍 모델에 대하여 그 성능을 비교평가 하였다. 이 세가지 모델은 단순 다중 쓰레드 모델(typical multi-thread model), 단일 쓰레드 소켓폴링 모델(socket polling with single-thread model), 다중 쓰레드 소켓폴링 모델(socket polling with multi-threadmodel)이다. 본 논문에서는 다중 쓰레드 소켓폴링 모델을 제안하고 JDK 1.3.1을 이용하여 구현하였다. 이 모델의 경우 복잡한 구조에도 불구하고 단순 다중 쓰레드 모델와 유사하거나 더 나은 성능을 보여주었다. 또한 동일한 용량의 쓰레드 풀(thread pool)을 사용하더라도 단순 다중 쓰레드 모델보다 더 많은 수의 클라이언트를 수용할 수 있는 장점이 있다. 이러한 결과를 바탕으로 본 연구팀에서 수행중인 MoIM-Messge서버의 네트워크 모듈로 다중 쓰레드 소켓폴링 모델을 적용하였다.

  • PDF

A Comparative Analysis of Socket I/O models for Massively Multi-player On-line Network Game Server (대규모 네트워크 게임 서버를 위한 소켓 I/O모델의 비교 분석)

  • Choi, Jin-Seong;Piao, Xuefeng;Jeon, Jae-Woo;Oh, Sam-Kweon
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2002.11b
    • /
    • pp.1209-1212
    • /
    • 2002
  • 대규모 네트워크 게임은 최대한 많은 사용자를 수용할 수 있어야 하며 사용자들에게 안정적인 서비스를 제공할 수 있어야 한다. 그러나 많은 사용자들의 서버 동시 접속 및 제한된 네트워크 대역폭 등의 문제들로 인해 네트워크 게임 서버는 부하가 걸릴 수 있다. 이런 부하를 최대한 줄이기 위해 네트워크 게임 서버는 기능별로 분산되어 있는 것이 일반적이며, 분산된 서버들간의 통신 또는 서버와 클라이언트들간의 통신은 운영체제에서 제공하는 네트워크 통신 라이브러리를 사용한다. 본 논문에서는 Microsoft 사의 윈도우즈 계열에서 제공하는 다섯 가지 소켓 I/O 모델들에 대해 조사하고 비교 분석한다. 비교 분석한 결과 대규모 네트워크 게임 환경에서는 IOCP 모델이 기타 소켓 모델에 비해 IO 처리가 여러 가지 장점을 가지고 있음을 알 수 있다.

  • PDF

An Analysis of GNBD/VIA's Performance (GNBD/VIA의 성능 분석)

  • Kim, Kang-Ho;Kim, Jin-Soo;Jung, Sung-In
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2002.11a
    • /
    • pp.509-512
    • /
    • 2002
  • VIA 는 클러스터 또는 시스템 영역 네트워크를 위한 표준화된 사용자수준 통신 아키텍쳐이고, GNBD 는 LINUX 클러스터에서 IP 네트워크 설비를 기반으로 GFS 공유 파일 시스템을 설치할 때 사용하는 네트워크 블록 디바이스이다. GNBD 는 TCP/IP 상의 소켓을 기반으로 구현되어 있기 때문에, VIA 를 사용하는 클러스터이더라도 VIA 하드웨어 상에서 TCP/IP 소켓을 통하여 GNBD 를 작동시킨다. VIA 와 같이 물리적 연결이 신뢰성이 높고 높은 수준의 기능을 제공하는 경우는 같은 클러스터 안에서 TCP/IP 프로토콜 스택을 사용할 필요가 없다. 그래서 우리는 VIA 를 이용하지만 TCP/IP를 사용하지 않는 GNBD/VIA를 구현하였고, 동일한 VIA 하드웨어를 사용하면서 TCP/IP 모듈을 이용하는 GNBD 보다 파일시스템의 읽기(쓰기) 성능이 약 20%(30%) 향상된다는 것을 확인하였다. 본 논문에서는 VIA상에서 동작하는 GNBD/VIA의 성능 측정값과 그 위에 설치된 파일시스템의 을 보여주고, 그 결과를 상세히 분석하여 GNBD/VIA 상에 설치된 파일 시스템이 발휘할 수 있는 성능의 한계를 제시한다. 제시하는 한계치는 GNBD/VIA 뿐만 아니라 TCP/IP 상의 소켓을 사용하는 GNBD에도 적용할 수 있다.

  • PDF

Analysis of the Interference between Parallel Socket Connections and Prediction of the Bandwidth (병렬 연결 간의 트래픽 간섭 현상 분석 및 대역폭 예측)

  • Kim Young-Shin;Huh Eui-Nam;Kim Il-Jung;Hwang Jun
    • Journal of Internet Computing and Services
    • /
    • v.7 no.1
    • /
    • pp.131-141
    • /
    • 2006
  • Recently, many researchers have been studied several high performance data transmission techniques such as TCP buffer Tuning, XCP and Parallel Sockets. The Parallel Sockets is an application level library for parallel data transfer, while TCP tuning, XCP and DRS are developed on kernel level. However, parallel socket is not analyzed in detail yet and need more enhancements, In this paper, we verify performance of parallel transfer technique through several experiments and analyze character of traffic interference among socket connections. In order to enhance parallel transfer management mechanism, we predict the number of socket connections to obtain SLA of the network resource and at the same time, affected network bandwidth of existing connections is measured mathematically due to the interference of other parallel transmission. Our analytical scheme predicts very well network bandwidth for applications using the parallel socket only with 8% error.

  • PDF

An Implementation of Socket Interface for TOEs (TOE를 위한 소켓 인터페이스의 구현)

  • Son, Sung-Hoon
    • Journal of Korea Multimedia Society
    • /
    • v.8 no.11
    • /
    • pp.1472-1482
    • /
    • 2005
  • In this paper, we propose a socket interface layer for large-scale multimedia servers that adopt TCP/IP Offload Engines (TOE). In order to provide legacy network applications with binary level compatibility, the socket interface layer intercepts all socket-related system calls to forward to either TOE or legacy TCP/IP Protocol stack. The layer is designed and implemented as a kernel module in Linux. The layer is located between BSD socket layer and INET socket layer, and passes the application's socket requests to INET socket layer or TOE. The layer provides multimedia servers and web servers with the following features: (1) All standard socket APIs and file I/O APIs that are supported (2) Support for binary level compatibility of existing socket programs (3) Support for TOE and legacy Ethernet NICs at the same time.

  • PDF

Development of Small-scale Drones Swarm Flight System (소규모 드론 군집 비행 시스템 개발)

  • Choi, Hyo Hyun;Yun, Sang Un
    • Proceedings of the Korean Society of Computer Information Conference
    • /
    • 2019.07a
    • /
    • pp.245-246
    • /
    • 2019
  • 본 논문에서는 GUI(Graphical User Interface)를 이용하여 다수의 드론을 동시 제어하는 시스템 구현 결과를 보인다. 네트워크 소켓(Network Socket) 응용 프로그램인 Packet Sender를 이용하여 다수의 드론을 AP(Wireless Access Point)에 연결하였다. Python 응용 프로그램으로 UDP(User Datagram Protocol) 소켓을 통해 AP에 연동된 드론으로 명령을 전송하여 제어한다. Python GUI 모듈인 Tkinter를 이용하여 사용자에게 GUI를 제공함으로써 접근성(Accessibility)을 높인 시스템을 개발하였다.

  • PDF

Design and Implementation of MOST Device Control Functions using TCP/IP Socket (TCP/IP 소켓을 이용한 MOST 디바이스 제어 기능의 설계 및 구현)

  • Lee, Yong-Un;Kwak, Gil-Bong;Jang, Si-Woong
    • Proceedings of the Korean Institute of Information and Commucation Sciences Conference
    • /
    • 2011.05a
    • /
    • pp.532-535
    • /
    • 2011
  • 최근 차량에 대한 관심이 높아지면서 차량 내부에 추가되는 장치나 시스템들이 많아지고 있다. 엔터테인먼트 장치와 더불어 네비게이션, GPS, 블랙박스 등의 다양한 기기의 장착이 요구되어지고 있다. 이러한 차량 시스템들은 높은 대역폭을 지원하는 차량용 네트워크 기술을 요구한다. MOST는 최근 차량 멀티미디어 네트워크로 높은 인지도를 얻고 있다. 차량용 장치들의 증가는 사용자의 편의를 제공하지만 장치간의 연결 문제 발생과 노후화의 문제가 발생 시 심각한 오류를 발생 할 수 있다. 이러한 문제점들을 사전에 예방하기 위해서는 네트워크에 연결되어 있는 장치들의 상태를 실시간으로 점검하고 진단하여야 한다. 본 논문에서는 MOST를 기반으로 한 기존의 유선 방식의 진단시스템을 무선 방식으로 사용하여 사용자가 MOST 네트워크를 진단하고 제어하는데 있어 움직임의 제한이나 불편함에서 벗어나 편리성에 크게 기여할 것으로 판단된다.

  • PDF

Tensile Strength on Connection Socket of Cables (케이블 연결 소켓의 인장강도)

  • Park, Kang-Geun;Lee, Jang-Bok;Ha, Chae-Won;Kim, Jae-Bong
    • Proceeding of KASS Symposium
    • /
    • 2008.05a
    • /
    • pp.37-42
    • /
    • 2008
  • Cable member in structure is tension systems in which the load carrying members transmit loads to support system by tensile stress with no compression or flexure allowed. Cable system have been widely used large span structure roof, air-supported structure, prestressed membrane, cable network roof, suspension structures, guyed tower, ocean platforms, suspension bridges. Cable member can transmit loads by the edge connected system such as socket, swaging, mechanical splice sleave, clip, wedge, loop splice etc. This study will shown an experimental results on the strength of connection socket of cables. In the results of experiment, most of cable connection specimen occurred the failure at the connection socket part before the cable arrived at tensile failure load.

  • PDF

Mapping Algorithm for Gateway between Sensor Network and Internet (센서 네트워크와 인터넷간의 게이트웨이를 위한 맵핑 알고리즘)

  • 김미정;공인엽;이정태
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2004.10c
    • /
    • pp.271-273
    • /
    • 2004
  • 소형, 저가, 저전력의 센서노드와 무선 네트워크가 접목된 센서 네트워크 기술에 대한 연구가 활발히 진행되고 있다. 그러나, 기존의 센서 네트워크는 인터넷에 접속되지 않으므로 센서 네트워크의 서비스를 원격으로 이용할 수 없다는 문제점이 있다. 이에 본 논문에서는 센서 네트워크와 인터넷 망을 연동하여 센서 네트워크 서비스를 제공하는 센서 네트워크 게이트웨이를 설계하고 구현하였다. 센서 네트워크 게이트웨이는 인터넷 망의 IT 주소 및 소켓 정보를 센서 노드들의 주소와 맵핑함으로써 외부의 인터넷 망에서도 센서 네트워크에 접근할 수 있게 한다.

  • PDF

Design and Implementation of TOE Module Supporting Binary Compatibility for Standard Socket Interfaces (표준 소켓 인터페이스에 대한 바이너리 호환성을 제공하는 TOE 지원 모듈의 설계 및 구현)

  • Kang Dong-Jae;Kim Chei-Yeol;Kim Kang-Ho;Jung Sung-In
    • Journal of Korea Multimedia Society
    • /
    • v.8 no.11
    • /
    • pp.1483-1495
    • /
    • 2005
  • TCP/IP is the most commonly used protocol to communicate among servers, and is used in a wide range of applications. Unfortunately, Data transmission through TCP/IP places a very heavy burden on host CPUs. And it hardly makes another job to be processed. So, TOE(TCP/IP Offload Engine) is considered in many servers. But, most of TOE modules tends to not support binary compatibility for standard socket interfaces. So, it has problems that existing applications should be modified and recompiled to get advantage of TOE device. In this paper, to resolve upper problems, we suppose design and implementation of TOE module supporting binary compatibility for standard socket interfaces. Also, it can make a usage of multiple TOEs and NICs simultaneously.

  • PDF