 SNU INC Lab 2015-10-05 고속 packet processing 기술 김 종 권김 종 권.

Slides:



Advertisements
Similar presentations
IP Router Architectures. Outline Basic IP Router Functionalities IP Router Architectures.
Advertisements

NetFPGA Project: 4-Port Layer 2/3 Switch Ankur Singla Gene Juknevicius
Deficit Round Robin Scheduler. Outline Introduction Ordinary Problems Deficit Round Robin Latency of DRR Improvement of latencies.
Fast Firewall Implementation for Software and Hardware-based Routers Lili Qiu, Microsoft Research George Varghese, UCSD Subhash Suri, UCSB 9 th International.
Congestion Control Reasons: - too many packets in the network and not enough buffer space S = rate at which packets are generated R = rate at which receivers.
Top-Down Network Design Chapter Thirteen Optimizing Your Network Design Copyright 2010 Cisco Press & Priscilla Oppenheimer.
CS 268: Lecture 8 Router Support for Congestion Control Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
EECB 473 Data Network Architecture and Electronics Lecture 3 Packet Processing Functions.
CS 4700 / CS 5700 Network Fundamentals Lecture 12: Router-Aided Congestion Control (Drop it like it’s hot) Revised 3/18/13.
© 2006 Cisco Systems, Inc. All rights reserved.QoS v2.2—5-1 Congestion Management Configuring FIFO and WFQ.
Ion Stoica, Scott Shenker, and Hui Zhang SIGCOMM’98, Vancouver, August 1998 subsequently IEEE/ACM Transactions on Networking 11(1), 2003, pp Presented.
Router Architecture : Building high-performance routers Ian Pratt
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
CS 268: Router Design Ion Stoica March 1, 2004.
Service Disciplines for Guaranteed Performance Service Hui Zhang, “Service Disciplines for Guaranteed Performance Service in Packet-Switching Networks,”
15-744: Computer Networking L-4 Routers. L -4; © Srinivasan Seshan, Routing How do routers process IP packets Forwarding lookup algorithms.
תזכורת  שבוע הבא אין הרצאה m יום א, נובמבר 15, 2009  שיעור השלמה m יום שישי, דצמבר 11, 2009 Lecture 4: Nov 8, 2009 # 1.
In-Band Flow Establishment for End-to-End QoS in RDRN Saravanan Radhakrishnan.
1 Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks Ion Stoica,Scott Shenker, and Hui Zhang SIGCOMM’99,
CS 268: Lecture 12 (Router Design) Ion Stoica March 18, 2002.
Lecture 4#-1 Scheduling: Buffer Management. Lecture 4#-2 The setting.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Switch and Router Architectures Computer Science Division Department of Electrical Engineering.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 3. QoS.
Design of QoS Router Terrance Lee. Broadband Internet Architecture Intelligent Access Electronic Switch (Intserv or Diffserv) Switching /Routing QoS Security.
UCB Improvements in Core-Stateless Fair Queueing (CSFQ) Ling Huang U.C. Berkeley cml.me.berkeley.edu/~hlion.
Fast IP Address Lookup Algorithms 정 성 권 서울대학교 컴퓨터공학과
Chapter 4 Queuing, Datagrams, and Addressing
Computer Networks Switching Professor Hui Zhang
A Scalable, Cache-Based Queue Management Subsystem for Network Processors Sailesh Kumar, Patrick Crowley Dept. of Computer Science and Engineering.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
An Integrated IP Packet Shaper and Scheduler for Edge Routers MSEE Project Presentation Student: Yuqing Deng Advisor: Dr. Belle Wei Spring 2002.
A 50-Gb/s IP Router 참고논문 : Craig Partridge et al. [ IEEE/ACM ToN, June 1998 ]
Advance Computer Networking L-5 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
ACN: CSFQ1 CSFQ Core-Stateless Fair Queueing Presented by Nagaraj Shirali Choong-Soo Lee ACN: CSFQ1.
Univ. of TehranAdv. topics in Computer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Packet Classification # 3 Ozgur Ozturk CSE 581: Internet Technology Winter 2002 Packet Classification # 3CSE 581: Internet Technology (Winter 2002)Ozgur.
Florida State UniversityZhenhai Duan1 BCSQ: Bin-based Core Stateless Queueing for Scalable Support of Guaranteed Services Zhenhai Duan Karthik Parsha Department.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 23 Congestion Control and Quality of Service.
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
1 Fast packet classification for two-dimensional conflict-free filters Department of Computer Science and Information Engineering National Cheng Kung University,
Efficient Cache Structures of IP Routers to Provide Policy-Based Services Graduate School of Engineering Osaka City University
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
High-Speed Policy-Based Packet Forwarding Using Efficient Multi-dimensional Range Matching Lakshman and Stiliadis ACM SIGCOMM 98.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Quality of Service Slides used with.
Scheduling CS 218 Fall 02 - Keshav Chpt 9 Nov 5, 2003 Problem: given N packet streams contending for the same channel, how to schedule pkt transmissions?
Lecture Note on Switch Architectures. Function of Switch.
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
1 A quick tutorial on IP Router design Optics and Routing Seminar October 10 th, 2000 Nick McKeown
Queue Scheduling Disciplines
Packet Switch Architectures The following are (sometimes modified and rearranged slides) from an ACM Sigcomm 99 Tutorial by Nick McKeown and Balaji Prabhakar,
© 2006 Cisco Systems, Inc. All rights reserved. 3.2: Implementing QoS.
Providing QoS in IP Networks
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
Design of Packet-Fair Queuing Schedulers Using a RAM-Based Searching Engine IEEE JSAC, Vol.17, No 6, June 1999 H. Jonathan Chao 외 이 융
By: Yaron Levy Supervisors: Dr. Shlomo Greenberg Mr. Hagai David.
Top-Down Network Design Chapter Thirteen Optimizing Your Network Design Copyright 2010 Cisco Press & Priscilla Oppenheimer.
CS 268: Router Design Ion Stoica February 27, 2003.
Addressing: Router Design
Quality of Service For Traffic Aggregates
Network Core and QoS.
EE 122: Lecture 18 (Differentiated Services)
EE 122: Lecture 7 Ion Stoica September 18, 2001.
COMP/ELEC 429 Introduction to Computer Networks
EE 122: Differentiated Services
CIS679: Two Planes and Int-Serv Model
Introduction to Packet Scheduling
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
Network Core and QoS.
Presentation transcript:

 SNU INC Lab 고속 packet processing 기술 김 종 권김 종 권

 SNU INC Lab Contents  Introduction Forwarding engine 현재의 IP 패킷 처리 방법  Router 에의 QoS 기능 추가 Packet filtering(classification) Scheduling algorithms  Open problems  Summary

 SNU INC Lab Common Architecture

 SNU INC Lab FE 의 기능  Input IP header Inbound MAC header 의 일부  Output MAC header info Outbound interface Outbound next hop  Performance FE module 의 성능 = 전체 system 의 성능 Pipelining  한 packet 의 header 를 처리하는 동안 다음 packet 의 header load

 SNU INC Lab FE 알고리즘  병렬화  문제점 Route lookup 후에만 TTL = 1/0 인 packet 을 폐기한다. Route lookup 후에만 header 를 갱신하다. 1. Error Check Lengths Version Martians Checksum TTL 2. Route Lookup Cache Full 3. Header Update TTL Checksum Link Layer header Fragmentation IP 전송의 세 부분

 SNU INC Lab Router 의 IP Packet 처리 방법  Packet 도착 Link level processing (CRC check 등 )  Link 정보를 IP 에 제공  Header 확인 IP header checksum, version, header length 등 확인  주소 확인 Link-layer 주소와 의미가 일치하는 지 확인  Router 를 위한 packet 결정 Router 를 위한 packet 은 다르게 처리된다.  Router 를 위한 packet 의 목적지 주소

 SNU INC Lab Router 의 구조 Fig. Integrated services architecture implemented in router

 SNU INC Lab Queueing Disciplines  Packet filtering(Classification) Map each arriving packet into one of classes Proposed algorithm (SIGCOMM ‘98)  “Fast and Scalable Layer Four Switching”  Washington University  V. Srinivasan, G. Varghese, S. Suri, M. Waldvogel  “High Speed Policy-based Packet Forwarding Using Efficient Multi-dimensional Range Matching”  Bell Labs  T. V. Lakshman, D. Stiliadis  Scheduling 어떤 순서로 packet 들을 서비스 할 것인가 ? Desired link sharing 고려

 SNU INC Lab Wash Univ Algo (1/ 3)  Grid-of-tries Two-dimensional filters

 SNU INC Lab Wash Univ Algo (2/ 3)  Cross-Producting 각 Field 별로 따로 검색하여, cross-product table 의 hash table 을 lookup Memory explosion problem

 SNU INC Lab Wash Univ Algo (3/ 3)  Comparison Grid-of-tries  Destination-source prefix filter 에만 적용 가능 On-demand cross-producting  임의의 filter 에 적용 가능  Cache miss 때문에 speed 를 예상하기 어렵다.  Grid-of-tries 와 Cross-producting 의 혼합 Grid-of-tries  Destination-source filters On-demand cross-producting  나머지 filters

 SNU INC Lab Bell-Lab Algo (1/ 3)  Point location problem in multidimensional space Given a point in a d-dimensional space, and a set of n d- dimensional objects,  Preprocessing 각 dimension 마다 생기는 interval 을 계산한다. 각 interval 을 포함하는 filter 들을 계산한다.  Packet classification Packet 의 각 차원 별로 어느 interval 에 속하는지 계산한다. 각 interval 을 포함하는 filter 들의 교집합을 구한다. 가장 우선 순위가 높은 filter 를 사용한다.

 SNU INC Lab Bell-Lab Algo (2/ 3)  2-dimension 인 경우의 예

 SNU INC Lab Bell-Lab Algo (3/ 3)  Hardware Implementation Integer comparator, counter AND operation n 번의 binary search n 개의 값에 대한 AND 연산

 SNU INC Lab Scheduling  필요성

 SNU INC Lab Weighted Fair Queueing  특징 GPS simulation(Packet GPS) Variable-size packets  Algorithm GPS 를 simulation 하여 그 결과에 따라 service 순서 결정 Finish number  GPS 에서 packet 의 finishing time

 SNU INC Lab WFQ - Evaluation  Evaluation GPS scheduling 에 비해 maximum packet size 보다는 늦게 전송되지 않는다는 것을 보장 Isolation 보장  최대 지연은 다른 connection 의 behavior 에 영향 받지 않는다.  Problem Expensive and complex to implement O(N)

 SNU INC Lab Virtual Clock  Real time 사용  Time complexity Virtual time 계산 : O(1) Sorting: O(log N)  단점 Unbounded unfairness

 SNU INC Lab Self-Clocked Fair Queueing  현재 서비스 중인 packet 의 finish number 를 system 의 virtual time 으로 사용.  Time complexity Virtual time 계산 : O(1) Sorting: O(log N)  단점 End-to-end delay bound  N Unfair over short time scales

 SNU INC Lab Weighted Round-Robin  Weighted round-robin Different weight Different size  Divide each connection’s weight by its mean packet size to obtain a normalized set of weights.  단점 Source’s packet size may be unpredictable.  Source cannot predict its mean packet size. Fair only over time scales longer than a round time.  If a connection has a small weight, or the number of connections is large, this may lead to long periods of unfairness.  Good in high speed network like ATM

 SNU INC Lab Deficit Round-Robin  DRR can handle variable packet size without knowing the mean packet size Second Round First Round Head of Queue A B C 0 Quantum size : 1000 byte  1st Round A’s count : 1000 B’s count : 200 (served) C’s count : 1000  2nd Round A’s count : 500 (served) B’s count : 0 C’s count : 800 (served)

 SNU INC Lab Frame-based Fair Queueing  Potential function 사용  Re-calibration periodically  Fairness 보장 Bounded period system potential update Bounded discrepancy

 SNU INC Lab Leap Forward Virtual Clock  두개의 priority queue 사용 H: Priority Queue of Active Well-behaved Flows L: Holding Area for Active Oversubscribed Flows Transfer before a packet can miss its deadline. Transfer when a flow becomes oversubscribed. Service Packet with Lowest tag in H

 SNU INC Lab LFVC Implementation & Evaluation  Implementation van Emde Boas Data Structure 사용 O(loglog N)  Evaluation Data Structure 가 H/W 로 구현하기에는 너무 복잡하다. Worst case 에는 L 에서 H 로 옮겨야 하는 packet 이 N 개일 수 있다.

 SNU INC Lab Discrete-rate Approach  Per-rate queueing for ATM 같은 rate 를 갖는 session 들을 하나로 묶어 macro-session 형성  Two-level hierarchical scheduler First level: GPS-related scheduler  각 macro-session 의 output-link access 관리 Second level: Round-robin fashion  각 session 에 rate 분배

 SNU INC Lab H/W Implementation  Calendar queue 사용

 SNU INC Lab Core-Stateless Fair Queueing  Core-Stateless architecture Edge nodes: do perform per flow management Core nodes: do not perform per flow management

 SNU INC Lab CSFQ Algorithm  Edge router Maintain per flow state Estimate the incoming rate Label the packet  Core router Maintain no per flow state FIFO packet scheduling with probabilistic dropping algorithm Drop each packet with prob. P(= max{0, }) Update packet label to min{, }

 SNU INC Lab Open Problems - by Keshav  Flow Identification Fast classification algorithm, efficient flow descriptors  Resource Reservation Efficient flow classifiers, good policing  Ease of Configuration Configuration tools  Stability of Large Systems Stability of router software  Accountability Pricing

 SNU INC Lab Summary  Current research issues Table lookup QoS  Open problems

 SNU INC Lab References  “Fast and Scalable Layer Four Switching”, V. Srinivasan, G. Varghese, S. Suri, M. Waldvogel, SIGCOMM’98.  “High Speed Policy-based Packet Forwarding Using Efficient Multi-dimensional Range Matching”, T. V. Lakshman, D. Stiliadis, SIGCOMM’98.  “Efficient Fair-Queueing Algorithms for Packet- Switched Networks”, D. Stiliadis, A. Varma, Trans. on Net., Apr  “Hardware Implementation of Fair Queueing Algorithms for Asynchronous Transfer Mode Networks”, A. Varma, D. Stiliadis, IEEE Comm., Dec

 SNU INC Lab References  “Leap Forward Virtual Clock: A New Fair Queuing Scheme with Guaranteed Delays and Throughput Fairness ”, S. Suri, G. Varghese, G. Chandranmenon, INFOCOM’97.  “High Speed, Scalable, and Accurate Implementation of Packet Fair Queueing Algorithms in ATM Networks”, J. Bennett, D. Stephens, H. Zhang, ICNP’97.  “Implementing Fair Queueing in ATM Switches: The Discrete-Rate Approach”, F. Chiussi, Andrea Francini, INFOCOM’98.  “Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks ”, I. Stoica, S. Shenker, H. Zhang, SIGCOMM’98.