netdev
[Top] [All Lists]

Help on Kernel-Application Programme Communication

To: linux-kernel@xxxxxxxxxxxxxxxx
Subject: Help on Kernel-Application Programme Communication
From: zam_ustc@xxxxxxx
Date: Mon, 3 Jan 2000 21:06:03 +0800 (CST)
Cc: netdev@xxxxxxxxxxx, netdev@xxxxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
Hi,everyone!
  I am writing a IPv6 packet scheduling algorithm for the Linux 
kernel.I want to schedule the packets according to the priority
assigned to them by a Priority Server. My thoughts goes as follows:
  The kernel maitains a priority table for each packet-flow(the
packets who share the same src and dst addr, and the same ports,and
so on.) Before the output of a IPv6 packet, the kernel searches its
priority table,if it finds a priority for the packet,it then queues
the packet in the according queue; otherwise, it sends part of the
packet to a daemon programme running at the application layer.
The daemon programme then transfers the packet to the Priority
Server(usually not the same machine with the daemon programme)
for priority. The Server respones with the priority assigned
to the packet-flow. Then the daemon programme update the kernel's
priority table by some mechanism(how?).
   The difficulty comes when I want the kernel wants to communicate
with the daemon. I don't know how to implement this. Maybe it is a 
bad idea.But how can I? I'd really appreciate any assistance--I have
been thinking on it for such a long time.

 Thanks a lot.

 Mikel


_____________________________________________
Ê×¶¼ÔÚÏß--ÏȽøÖйúÈ˵ÄÍøÉϼÒÔ° http://www.263.net
Ãâ·ÑÓÊÏä ÓʼþÔÓÖ¾ Ç©ÃûÓʼþ Óʼþ¼ÓÃÜ Óʼþ×·Éíºô
ËÑË÷ÒýÇæ ¸öÈËÕ¾µã ÔÚÏßÓÎÏ· ÍøÉÏÁÄÌì ÍøÉϹҺÅ
½ðÈÚÍõ¹ú ÔÚÏßɱ¶¾ ÌøÔéÊг¡ Èí¼þÏÂÔØ ÐÝÏÐÓéÀÖ
ŵ·½°²È«£¬ÖúÄúe·ƽ°²

<Prev in Thread] Current Thread [Next in Thread>
  • Help on Kernel-Application Programme Communication, zam_ustc <=