Docsity

The x-Kernel: An Architecture for Efficient Network Protocol Implementation - Prof. Ada Ga, Study notes of Operating Systems

Partial preview of the text

Download The x-Kernel: An Architecture for Efficient Network Protocol Implementation - Prof. Ada Ga and more Study notes Operating Systems in PDF only on Docsity!

The x-Kernel: An Architecture for

Implementing Network Protocols

  • Norm Hutchinson and Larry Peterson, then

at Univ. of Arizona

  • (Ada Gavrilovska, ada@cc)

Observations

in order to optimize performance ofcommunication services -> need to optimizeoperations of protocol stack

protocol stack: - layer protocols – kernel and user level – vertical (bi-dir) and horizontal communication path - at the top, well defined socket API - in the kernel protocols less structured - different application may have custom protocolrequirements

Protocol Objects

correspond to TCP, IP, Ethernet, RPC, …

static – at kernel config time, via protocol graphs - exported operations: - create sessions - session=open(llp, this_p, participants) or • open_enable(llp, this_p, participants) • session=open_done(ulp, this_p, participants) - demultiplex messages to sessions - demux(protocol, message)

Session Objects

  • analogous to sockets, but exist between

protocol layers too

  • dynamically created, interpret protocol

operations for a pair of participants

  • exported operations for rcv/xmt msgs
    • push(session, message) – pop(session, message

down:

from user level, protocol objecttriggers open sessions to lowerlayers, recursively - messages go through sessionobjects based on participantslist (local, remote) up:

messages have to bedemux’d at protocol, todetermine whichsession

use existing session, orcreate new ones at kernel boot:• protocol objects enable session creation (i.e., give llp ability to create a session if amessage arrives) composed at kernelconfiguration time

Supporting functionality

Buffer management

  • add/strip headers, fragmentation/reassembly, avoid copy

    Look-up maps - address pair to session capability; protocol type to protocol capability (to create new session) - maintain look-up costs stable (e.g., hash tables) - Timeouts - Interfaces uniform - user does create_protocol() to create protocol object with functions in user space - Common optimizations - cache of open session, preallocate headers…

Experimental observations

compare with Unix to see cost of abstraction

  • ease of development (UDP, TCP, RPC) – in kernel, single abstraction, avoid context switching – performance improvement by optimizing support routines - compare with Sprite RPC - x-kernel can be as efficient as a system customized for a special protocol