DOI QR코드

DOI QR Code

TinyOS에서의 선점적 EDF 스케줄링 알고리즘 설계 및 구현

Design and Implementation of Preemptive EDF Scheduling Algorithm in TinyOS

  • 유종선 (한국항공우주산업 항공ES팀) ;
  • 김병곤 (한국건설기술연구원 건설정보연구실) ;
  • 최병규 (한양대학교 컴퓨터공학과) ;
  • 허신 (한양대학교 컴퓨터공학과)
  • 투고 : 2011.06.15
  • 심사 : 2011.10.23
  • 발행 : 2011.12.31

초록

센서 네트워크는 빛, 소리, 온도, 움직임 같은 물리적 데이터를 센서 노드에서 감지하고 측정하여 중앙으로 전달하고 처리하는 구조를 가진 네트워크이다. 센서 네트워크는 여러 분야에서 활용할 수 있는 기술이다. 센서 노드가 외부에서 채취한 데이터를 실시간으로 사용자에게 전달하는 것은 매우 중요하다. 센서 네트워크의 핵심은 센서 노드인 하드웨어 플랫폼과 노드에 들어가는 초소형 운영체제라고 할 수 있다. UC 버클리에서 개발된 TinyOS는 센서 노드에서 동작하는 운영체제 중 가장 많이 사용되고 있다. TinyOS는 Event-driven 방식이며 Component 기반의 센서 네트워크 운영체제이다. 기본적으로 비선점 방식의 스케줄러를 사용한다. 만약 급한 작업이 수행되어야 하는 시점에서 다른 태스크가 수행 중에 있다면 수행 중인 태스크가 완료할 때까지 기다려야 한다. 이러한 특성으로 인해 TinyOS에서 정해진 시간안에 자신의 작업을 끝낸다고 보장하기 어렵다. 최근 연구에서 TinyOS의 빠른 반응성을 위해 Priority Level Scheduler라는 선점 기능이 제안되었다. 이것은 제한적으로 5개의 우선순위를 만들어 높은 우선순위가 낮은 우선순위를 선점할 수 있게 한다. 여기서 본 논문은 TinyOS의 실시간성을 보장함과 더불어 사용자 태스크의 평균 응답시간을 줄이고자 Priority Level Scheduler에 실시간 스케줄러인 EDF(Earliest Deadline First)를 적용한 선점형 EDF 스케줄링 방식을 제안하고자 한다.

A sensor network is a special network that makes physical data sensed by sensor nodes and manages the data. The sensor network is a technology that can apply to many parts of field. It is very important to transmit the data to a user at real-time. The core of the sensor network is a sensor node and small operating system that works in the node. TinyOS developed by UC Berkeley is a sensor network operating system that used many parts of field. It is event-driven and component-based operating system. Basically, it uses non-preemptive scheduler. If an urgent task needs to be executed right away while another task is running, the urgent one must wait until another one is finished. Because of that property, it is hard to guarantee real-time requirement in TinyOS. According to recent study, Priority Level Scheduler, which can let one task preempt another task, was proposed in order to have fast response in TinyOS. It has restrictively 5 priorities, so a higher priority task can preempt a lower priority task. Therefore, this paper suggests Preemptive EDF(Earliest Deadline First) Scheduler that guarantees a real-time requirement and reduces average respond time of user tasks in TinyOS.

키워드

참고문헌

  1. Ian F. Akyildiz, Weilian Su, Yogesh Sankarasub- ramaniam, Erdal Cayirci, "A Survey on Sensor Networks," IEEE Communications Magazine, pp.102-114, August, 2002. https://doi.org/10.1109/MCOM.2002.1024422
  2. J. Hill, R. Szewczyk, A. Woo, S. Hollar, D. Culler, and K. Pister. "System architecture directions for networked sensors," In Proc. of the 9th Intl. Conf. on Architectural Support for Programming Languages and Operating Systems (ASPLOS), pp.93-104, Cambridge, MA, Nov., 2000.
  3. D. Gay, P. Levis, R. von Behren, M. Welsh, E. Brewer, and D. Culler. "The nesC language: A holistic approach to networked embedded systems," In proc. ACM SIGPLAN Conference on Programming Language Design and Implementation, pp.1-11, June, 2003.
  4. Cormac Duffy, Utz Roedig, John Herbert and Cormac J. Sreenan. "Adding preemption to tinyos," In To appear in the Fourth Workshop on Embedded Networked Sensors (EmNets 2007), University College Cork, Ireland. ACM Digital Library, June, 2007.
  5. C.L. Liu and James W. LayLand. "Scheduling Real-Time Environment," J.ACM, 20, pp.40-61, 1973.
  6. V.Subramonian, H-M. Huang, S. Data, and C. Lu, "Priority scheduling in TinyOS - A case study," Technical Report WUCSE-2003-74, Washington University, 2002.
  7. Tao Lei, Xiang-mo Zhao and Fei hui. "A TinyOS scheduling strategy and its implementation," Communication Software and Networks (ICCSN), 2011 IEEE 3rd International Conference on, pp.216-219, May, 2011.
  8. P.Levis and C.Sharp. "Schedulers and Tasks," TinyOS 2.x Extension Proposal 106.
  9. Zhi-bin Zhao, Fuxiang Gao, "Study on Preemptive Real-Time Scheduling Strategy for Wireless Sensor Networks," Journal of information processing systems 5(3), pp.135-144, September, 2009. https://doi.org/10.3745/JIPS.2009.5.3.135
  10. Liu Jianhui, "Research on TinyOS Scheduling Strategy Based on SJP," Computational Intelligence and Design (ISCID), 2010 International Symposium on, pp.144-146, Oct., 2010.
  11. P. Levis, D. Gay, V. Handziski, J.-H. Hauer, B. Greenstein, M. Turon, J. Hui, K. Klues, C. Sharp, R. Szewczyk, J. Polastre, P. Buonadonna, L. Nachman, G. Tolle, D. Culler, and A. Wolisz. "T2: A second generation os for embedded sensor networks." Technical Report TKN-05-007, Telecommunication Networks Group, Technische Universitat Berlin, 2005.