DOI QR코드

DOI QR Code

라즈베리 파이를 활용한 OpenWRT 기반 LTE 비상망 로드밸런서

LTE Load Balancer for Emergency Based on Raspberry Pi and OpenWRT

  • 백승현 (군산대학교) ;
  • 장민석 (군산대학교 컴퓨터정보통신공학부)
  • 투고 : 2018.10.04
  • 심사 : 2019.02.15
  • 발행 : 2019.02.28

초록

제 4차 산업혁명이 각광받고 있는 가운데 통신 장애를 대비한 다양한 기술이 개발되어 상용화되고 있다. 그러나 IDC의 백업망은 많은 개발이 진행되고 있으나 소규모 저전력의 개인 또는 센서에 대한 통신 장애 대비는 다소 부족한 것이 현실이다. 이에 시중에서 쉽게 구할 수 있는 라즈베리 파이 재단의 라즈베리 파이 제품군에 OpenWRT 펌웨어를 사용하여 저전력 개인 로드 밸런서를 구축하고, USB기반 LTE 안테나를 통해 유선통신에 장애 발생 시 LTE를 통하여 장애 알림과 중요 데이터를 송신할 수 있는 시스템을 개발하였다. 시중에서 쉽게 구할 수 있는 제품들인 점과 USB를 사용함으로 다른 초소형 개발보드에서도 응용할 수 있기 때문에 개인의 센서 네트워크 망 구축에 많은 도움이 될 것이라 기대된다.

Recently, the 4th Industrial Revolution has been emerged and various products are developed and commercialized in preparation of the communication failure. Many solutions are underway in Back-Up Network for IDC Servers, but not in the personal or sensor for low-power system use. Therefore we used the OpenWRT Firmware in Raspberry Pi which can be easily obtained in online market, and it created a low-power load balancer. Therefore, we developed the device that uses LTE Antenna based on USB Interface for communication fault notification and important data. The equipment used in this paper is easy to buy in online shop for anyone. Also, it can be applied in other vendors' boards by using USB. We hope that this paper will contribute to the stability of individual sensor networks.

키워드

KCTSAD_2019_v14n1_97_f0001.png 이미지

그림 1. 라즈베리 파이 3 모델 B Fig. 1 Raspberry Pi 3 model B

KCTSAD_2019_v14n1_97_f0002.png 이미지

그림 2. LAN9514 전류 제한 회로 Fig. 2 LAN9514 current limit schematic

KCTSAD_2019_v14n1_97_f0003.png 이미지

그림 3. BCM2837 Fig. 3 BCM2837

KCTSAD_2019_v14n1_97_f0004.png 이미지

그림 4. LAN9514 Fig. 4 LAN9514

KCTSAD_2019_v14n1_97_f0005.png 이미지

그림 5. 라즈베리파이 3B 블록 다이어그램 Fig. 5 Raspberry Pi 3B block diagram

KCTSAD_2019_v14n1_97_f0006.png 이미지

그림 6. LAN9514 PIN 기술도 Fig. 6 LAN9514 PIN description

KCTSAD_2019_v14n1_97_f0007.png 이미지

그림 7. Alcatel L800 Fig. 7 Alcatel L800

KCTSAD_2019_v14n1_97_f0008.png 이미지

그림 8. USB 유전원 허브 Fig. 8 USB self-power hub

KCTSAD_2019_v14n1_97_f0009.png 이미지

그림 9. 로드 밸런서 데이터 흐름 Fig. 9 data flow of load-balancer

KCTSAD_2019_v14n1_97_f0010.png 이미지

그림 10. Interface 변경 Fig. 10 Change interface

KCTSAD_2019_v14n1_97_f0011.png 이미지

그림 11. firewall rules 변경 Fig. 11 Change firewall rules

KCTSAD_2019_v14n1_97_f0012.png 이미지

그림 12. modeswitch 설정 Fig. 12 Configure modeswitch

KCTSAD_2019_v14n1_97_f0013.png 이미지

그림 13. modeswitch된 모뎀(1bbb:0195) Fig. 13 using modeswitched Modem(1bbb:0195)

KCTSAD_2019_v14n1_97_f0014.png 이미지

그림 14. 트래픽 제어 규칙 흐름 Fig. 14 The flow of traffic control rules

KCTSAD_2019_v14n1_97_f0015.png 이미지

그림 15. 로드밸런서 규칙 Fig. 15 The Rules in Load balancer

KCTSAD_2019_v14n1_97_f0016.png 이미지

그림 16. Wired-WAN 에러 Fig. 16 wired-WAN error

KCTSAD_2019_v14n1_97_f0017.png 이미지

그림 17. Wired-WAN 복구 시 Fig. 17 At the time of wired-WAN repair

KCTSAD_2019_v14n1_97_f0018.png 이미지

그림 18. 라우터 가조립 상태 Fig. 18 pre-assembled router

KCTSAD_2019_v14n1_97_f0019.png 이미지

그림 19. 크롬에서의 데이터 재송신 확인 Fig. 19 Check resending data packet for Google Chrome

KCTSAD_2019_v14n1_97_f0021.png 이미지

그림 20. Time Lag Fig. 20 Time Lag

KCTSAD_2019_v14n1_97_f0022.png 이미지

그림 21 데이터 salt 확인 Fig. 21 Check salt data

KCTSAD_2019_v14n1_97_f0023.png 이미지

그림 22. 시간 표준편차 Fig. 22 Time’s standard deviation data

KCTSAD_2019_v14n1_97_f0024.png 이미지

그림 23. Failover 발생 로그 확인 Fig. 23 Check failover logs

KCTSAD_2019_v14n1_97_f0025.png 이미지

그림 24. 패킷 손실 Fig. 24 Packet loss

표 1. 시중 공유기 스펙 비교 Table 1. Comparison of router specifications

KCTSAD_2019_v14n1_97_t0001.png 이미지

표 2. LAN9514 USB PINs Table 2. LAN9514 USB PINs

KCTSAD_2019_v14n1_97_t0002.png 이미지

표 3. 이더넷 PHY PINs Table 3. Ethernet PHY PINs

KCTSAD_2019_v14n1_97_t0003.png 이미지

표 4. L800 주파수 범위 Table 4. L800 Frequency Range

KCTSAD_2019_v14n1_97_t0004.png 이미지

표 5. 17-33G 레귤레이터 규격 Table 5. 17-33G regulator specification

KCTSAD_2019_v14n1_97_t0005.png 이미지

표 6. L800 USB Mode Table 6. L800 USB Mode

KCTSAD_2019_v14n1_97_t0006.png 이미지

표 7. 트래픽 제어 규칙 Table 7. traffic control rules

KCTSAD_2019_v14n1_97_t0007.png 이미지

참고문헌

  1. K. Nam and M. Jeong, "A development of th e maintenance function for the solar power pl ant based on IoT," J. of the Korea Institute of Electronic Communication Sciences, vol. 10, no. 10, 2015, pp. 1157-1162. https://doi.org/10.13067/JKIECS.2015.10.10.1157
  2. J. Kwon, Y. Kim, J. Lee, and W. Kim, "Big Data Analysis and Processing for Remote Contr ol of PV Facilities," J. of the Korea Institute of Electronic Communication Sciences, vol. 13, no. 4, 2018, pp. 837-844. https://doi.org/10.13067/JKIECS.2018.13.4.837
  3. K. Nam, "A Study on the Rice growing water-management System based on IoT," J. of the Korea Institute of Electronic Communication Sciences, vol. 11, no. 10, 2016, pp. 989-994. https://doi.org/10.13067/JKIECS.2016.11.10.989
  4. S. Kim, J. Jeong, M. Hwang, and C. Kang, "Development of an IoT-Based Atmospheric Environment Measurement and Analysis System," J. of Korean Institute of Communications and Information Sciences, vol. 42, no. 09, 2017, pp. 1750-1764. https://doi.org/10.7840/kics.2017.42.9.1750
  5. K. Kim, Raspberry pi 3 starting with Python 3. Seoul: bogdoo, 2018.
  6. Raspberry Pi Foundation, "Raspberry Pi 3 Model B (Reduced Schematics)," Raspberry Pi Model B Schematics, Apr. 2016.
  7. M. Nofran, "RGB color identification for text display using raspberry pi," Undergraduate Thesis, Sriwijaya State Polytechnic, 2018.
  8. Microchip, "USB 2.0 Hub and 10/100 Ethernet Controller," LAN9514 datasheet, Mar. 2017.
  9. Texas Instruments, "800mA and 1A Low Dropout Positive Regulator 1.8V, 2.5V, 2.85, 3.3V, 5V, and Adjustable," REG1117 datasheet, July 2004.
  10. G. Ding, "RPI3 quickly establishes VPN connection with action number," NetAdmin, vol. 152, no. 1, Sept. 2018, pp. 101-102.
  11. T. Hanna, "Turn a Pi into a router," Linux User & Developer, vol. 166, no. 1, June 2016, pp. 74-77.