Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: pio@ncrsecp.Copenhagen.NCR.COM (Per Igel)
Subject: DCE questions
Date: 12 Aug 93 15:25:18 GMT	[thread overview]
Message-ID: <2361@ncrsecp.Copenhagen.NCR.COM> (raw)


Hi DCE gurus,

I'm going to try emulating asynchronous TLI behaviour using DCE RPC - I know
it is not meant for that and is really tweaking the concept of RPC. Anyways,
here is how the current implementation pretty much looks like:

        incoming                                incoming
        requests   output queue                 requests   output queue
         queue    /                              queue    /
           |     /                                 |     /
+----------v--------------+             +----------v--------------+
| scheduler processing    |             | scheduler processing    |
| incoming requests and   |             | incoming requests and   |
| sending receiving them  |             | sending receiving them  |
|-------------------------|             |-------------------------|
|     TLI layer           |             |     TLI layer           |
+-------------------------+             +-------------------------+
       | | | | |                                 | | | | |
     ------------------------ network -------------------------

Initially the scheduler process will setup a signal handling routine for
SIGPOLL and create a number of TLI endpoint/connections (to the servers it
wants to connect to), then reads (blocks on) the incoming request queue (IRQ).

When a request is written to the IRQ then the scheduler process reads it,
alters the request a little and then send it off on the right TLI file
descriptor - asynchronously, so the scheduler process gets back right away
and goes up to see if there are any new requests, then process the next one 
and so on...

When some requests popup from the network on one of the TLI file descriptors
a SIGPOLL is sent to the scheduler, the signal handling routine will then
take the data from the TLI file descriptor process it and write/put it on the
output queue. Then return from the signal handling routine and go back and
do what it was doing at the time it got the signal.

================

The little pilot project is now to use DCE-RPC purely as a transport (using
explicit bindings - no CDS, security and time service) to accomplish the
same thing as the TLI layer as in the current implementation. That is take
a buffer of bytes and send it asynchronously and acting as a server at the 
same time receiving incoming buffers.

I think the basic questions regarding this pilot project boils down to:
      - DCE-RPC is extremely synchronous, therefore, the only way to make it
        "asynchronous" is to create a thread for each RPC call you send of
        or for each RPC call or each "connection", because you could do
        something like regarding bindings as having the same function as
        TLI file descriptors. Or are there asynchronous RPC's in DCE RPC as
        there is in Sun RPC?
      - If I want to (and I really do!) keep the scheduler process pretty
        much as it is, then how do I get it to become both a client and a
        server (in DCE terms)? Say, I make an RPC routine from machine A,
        called send_data, which will take a buffer of bytes as input and when
        the server (which should be the famous scheduler process) gets it,
        it will "massage" the data a little and then write it to the output
        queue.
      - when I make the  scheduler process both a client and a server then
        I need to kick off the "rpc_server_listen" call in a separate thread
        (for the server part), right? Now that I have a "server"-thread and 
        a several client threads is there a point where my process runs out 
        of threads?? Is 'rpc_c_listen_max_calls_default' that max limit or 
        what? And what if that happens how do I solve this?

I'm would appreciate some qualified answers on these questions, thanks in
advance,

-Per
-- 
Per.Igel@Copenhagen.NCR.COM
Direct: +45 38 15 75 34  Switchboard: +45 38 15 75 00  Fax: +45 31 10 23 62
NCR Systems Engineering Copenhagen, Svanevej 14, DK 2400 NV, Denmark


             reply	other threads:[~1993-08-12 15:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-12 15:25 Per Igel [this message]
1993-08-12 19:47 ` DCE questions Rich Salz
1993-08-13 15:01 ` Greg Brail
  -- strict thread matches above, loose matches on Subject: below --
1994-01-20 13:32 DCE Questions Jaqui Lynch
1994-01-21 13:53 ` Mark Hickey
1994-01-21 14:23 ` Craig Weeks
1994-01-21 19:12 ` Wanda Monroe
1994-01-31 16:55 Shridhar R Muppidi
1994-02-01  9:42 ` Bernd Dreier
1994-02-01 12:45 ` Jon Mauney
1994-02-01 18:13   ` Ted W. Larson
     [not found]     ` <2itvfm$77t@ftn.ftn.us-ny.citicorp.com>
1994-02-06 12:33       ` Manfred Scheible
1994-02-03 21:46 ` Reilly F. Hayes
1994-02-09 16:23   ` Jamison H Abbott
1994-02-10 17:41     ` Seiichi Tatsukawa
1994-02-08 17:04 ` Rich Salz
1994-10-21  5:22 Carl Hoang
1994-10-24 22:42 ` Gerry Palo
1994-10-26  0:18   ` Dr. James W. Hong
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox