* DCE Questions
@ 1994-01-20 13:32 Jaqui Lynch
1994-01-21 13:53 ` Mark Hickey
` (3 more replies)
0 siblings, 4 replies; 20+ messages in thread
From: Jaqui Lynch @ 1994-01-20 13:32 UTC (permalink / raw)
I am currently looking for DCE training courses and was wondering whether
anyone out there is aware of any good classes.
Thanks a lot Jaqui
^ permalink raw reply [flat|nested] 20+ messages in thread* Re: DCE Questions 1994-01-20 13:32 DCE Questions Jaqui Lynch @ 1994-01-21 13:53 ` Mark Hickey 1994-01-21 14:23 ` Craig Weeks ` (2 subsequent siblings) 3 siblings, 0 replies; 20+ messages in thread From: Mark Hickey @ 1994-01-21 13:53 UTC (permalink / raw) In article <lynch.22.00088C42@delphi.bc.edu> lynch@delphi.bc.edu (Jaqui Lynch) writes: >I am currently looking for DCE training courses and was wondering whether >anyone out there is aware of any good classes. > >Thanks a lot Jaqui As I posted earlier, contact direct@osf.org. There are a number of classes taught by OSF about DCE including: DCE Features and Functionality - What is DCE for managers DCE Application Programming - Overveiw of components and basic steps in writing DCE Apps. DCE Internals - Data structs, etc that make it all work. If you send mail, you will get a list of dates a places for these courses. You can also arrange to have a course taught at your site, modulo sufficient interest and restitution. Mark ^ permalink raw reply [flat|nested] 20+ messages in thread
* DCE Questions 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-22 18:12 ` DCE Courses [Was Re: DCE Questions] Mark_Sherman 3 siblings, 0 replies; 20+ messages in thread From: Craig Weeks @ 1994-01-21 14:23 UTC (permalink / raw) In <lynch.22.00088C42@delphi.bc.edu>, lynch@delphi.bc.edu (Jaqui Lynch) writes: >I am currently looking for DCE training courses and was wondering whether >anyone out there is aware of any good classes. The folks at OSF could probably give you some good references. Try a note to direct@osf.org. Craig Weeks LAN Systems DCE Performance Analysis IBM Corp. Austin, Texas ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions 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-22 18:12 ` DCE Courses [Was Re: DCE Questions] Mark_Sherman 3 siblings, 0 replies; 20+ messages in thread From: Wanda Monroe @ 1994-01-21 19:12 UTC (permalink / raw) Subject: DCE Questions From: Jaqui Lynch, lynch@delphi.bc.edu In article <lynch.22.00088C42@delphi.bc.edu> Jaqui Lynch, lynch@delphi.bc.edu writes: >I am currently looking for DCE training courses and was wondering whether >anyone out there is aware of any good classes. > >Thanks a lot Jaqui The University of Michigan's Center for Information Technology Integration offers DCE training at its facility in Ann Arbor, Michigan. CITI instructors can provide onsite training at your facility. Current course offerings include: Business Value for Open Client/Server Technologies Implementing Open Client/Server Technologies DCE/DME Overview DCE Features and Functionality DME Features and Functionality Introduction to DCE System Administration DCE System Administration I DCE Application Programming DCE Internals For course descriptions, pricing information, and dates the courses are offered, please contact wgm@citi.umich.edu or call +1 313 747-4408. ^ permalink raw reply [flat|nested] 20+ messages in thread
* DCE Courses [Was Re: DCE Questions] 1994-01-20 13:32 DCE Questions Jaqui Lynch ` (2 preceding siblings ...) 1994-01-21 19:12 ` Wanda Monroe @ 1994-01-22 18:12 ` Mark_Sherman 3 siblings, 0 replies; 20+ messages in thread From: Mark_Sherman @ 1994-01-22 18:12 UTC (permalink / raw) Transarc also offers DCE classes. See below for more information. -Mark ---------------------------------------------------------------------- Transarc Educational Services DCE Product Education Transarc Corporation is the industry leader in distributed computing technologies. Transarc Educational Services offers courses in AFS 3, Encina, and the Open Software Foundation's (OSF) Distributed Computing Environment (DCE). Transarc classes are delivered by instructors highly skilled in Transarc products and dedicated to the transfer of this knowledge. Registration & Confirmation: Please call your Transarc Account Executive at (412) 338--4400 to register, or fax your registration form to (412) 338--4404. Once a registration form and purchase order are received at Transarc Corporation, a confirmation notice will be sent to course attendees. Course Location: Transarc Corporation, Pittsburgh, Pennsylvania, unless specified otherwise. Optional on-site classes can be arranged by contacting your Transarc Account Executive. Note, training at a customer site follows a different fee structure. ========================================================================= DCE Secure Core Application Development Course Number: ED-E910-01.3-C Course Length: 2 days. Course Description: This course addresses the issues and concepts necessary to develop a DCE application. Through use of several example programs, students learn about the application programming interfaces (APIs) to the OSF DCE Secure Core components: the Cell Directory Service (CDS), the Security Service, the Remote Procedure Call (RPC) Facility, and the Threads Facility. This curriculum is lecture-based, backed with the use of diagrams, and example code. Topics Include: Introduction to Distributed Computing and the DCE DCE Directory Services CDS and the NSI Interface RPC Endpoint Database Sample Program DCE Security Service Authentication Issues (Kerberos) Authorization Checking DCE RPC Facility The IDL Language DCE Threads Facility Thread Creation and Destruction Synchronization Exception Handling Prerequisites: C language application programming experience in a UNIX environment. Familiarity with distributed computing and the OSF DCE is recommended. Schedule: January 20 - 21, 1994, Location: Pittsburgh, PA February 3 - 4, 1994, Location: Los Angeles, CA February 25 - 26, 1994, Location: Orlando, FLA March 17 - 18, 1994, Location: Pittsburgh, PA April 14 - 15, 1994 Location: San Francisco, CA May 12 - 13, 1994, Location: Pittsburgh, PA June 16 - 17, 1994, Location: New York, NY ========================================================================= DCE Secure Core System Administration Course Number: ED-E910-01.2-C Course Length: 3 days. Course Description: This class teaches students the functionality of each component of the DCE Secure Core, as well as the interaction of the various components, to provide a complete, distributed computing environment. In addition to covering the basic functionality, and high-level internals of how the system works, this class addresses tasks that a system administrator will need to perform, such as backup/restore, cell re-configuration, and security issues. Where appropriate, this class also gives recommendations for use on topics such as configuration and security. This curriculum is lecture-based, backed with the use of many diagrams, and includes many command output sessions. Topics Include: Distributed Computing and the DCE Basic DCE Use Security Administration Time Service Administration Naming Administration Troubleshooting Backup and Restore Installation and Configuration Prerequisites: UNIX system administration experience. Familiarity with distributed computing and the OSF DCE is recommended. Schedule: December 13 - 15, 1993, Location: Pittsburgh, PA January 31 - February 2, 1994, Location: Los Angeles, CA February 24 - 26, 1994, Location: Orlando, FLA March 14 - 16, 1994, Location: Pittsburgh, PA April 11 - 13, 1994 Location: San Francisco, CA May 9 - 11, 1994, Location: Pittsburgh, PA June 13 - 15, 1994, Location: New York, NY ========================================================================= DFS System Administration Course Number: ED-E910-10.7-C Course Length: 2 days. Course Description: This class teaches students the functionality of DFS, and the different components that comprise the distributed filesystem. Students learn about the filesystem at a high internal level, which is necessary for effective troubleshooting, and for making informed configuration and administration decisions. Besides providing important background information, this class also focuses on tasks that a system administrator will need to perform, such as fileset administration, client and server machine administration, backup and restore, and DFS account administration. Where appropriate, this class also gives recommendations on topics such as fileset naming, location, and replication. This curriculum is lecture-based, backed with the use of many diagrams, and includes many command output sessions. Topics Include: Introduction to DFS Review of User-level DFS commands Client and Server Machine Administration Fileset Administration The DFS Backup System DFS Account Administration Troubleshooting Prerequisites: UNIX system administration experience. DCE system administration class, or equivalent experience. Schedule: February 3 - 4, 1994, Location: Los Angeles, CA February 28 - March 1, 1994, Location: Orlando, FLA March 17 - 18, 1994, Location: Pittsburgh, PA April 14 - 15, 1994 Location: San Francisco, CA May 12 - 13, 1994, Location: Pittsburgh, PA June 16 - 17, 1994, Location: New York, NY ^ permalink raw reply [flat|nested] 20+ messages in thread
* DCE Questions @ 1994-10-21 5:22 Carl Hoang 1994-10-24 22:42 ` Gerry Palo 0 siblings, 1 reply; 20+ messages in thread From: Carl Hoang @ 1994-10-21 5:22 UTC (permalink / raw) I have a few questions on DCE: 1) Can DCE run on NT 3.5 now? And with whose DCE? 2) Can I ship images as objects with DCE? With which object protocol and format? Thanks for your time. Carl Hoang choang@tdkt.mn.org ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions 1994-10-21 5:22 DCE Questions Carl Hoang @ 1994-10-24 22:42 ` Gerry Palo 1994-10-26 0:18 ` Dr. James W. Hong 0 siblings, 1 reply; 20+ messages in thread From: Gerry Palo @ 1994-10-24 22:42 UTC (permalink / raw) I have another DCE question: Can anyone recommend a good book or paper on DCE? also OODCE? I would appreciate an e-mail reply if possible. Thanks, Gerry Palo palo@netcom.com -- ---------------------------------------------------------- Gerry and Janet Palo palo@netcom.com ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions 1994-10-24 22:42 ` Gerry Palo @ 1994-10-26 0:18 ` Dr. James W. Hong 0 siblings, 0 replies; 20+ messages in thread From: Dr. James W. Hong @ 1994-10-26 0:18 UTC (permalink / raw) In article <paloCy78En.6CC@netcom.com>, Gerry Palo <palo@netcom.com> wrote: > >I have another DCE question: Can anyone recommend a good book >or paper on DCE? also OODCE? I found the following books very useful for DCE: W. Rosenberry, D. Kenney and G. Fisher, {\em Understanding DCE}, O'Reilly \& Associates, Inc., Sebastopol, CA, ISBN 1-56592-005-8, 1992. Cheers! James Hong ^ permalink raw reply [flat|nested] 20+ messages in thread
* DCE Questions.
@ 1994-01-31 16:55 Shridhar R Muppidi
1994-02-01 9:42 ` Bernd Dreier
` (3 more replies)
0 siblings, 4 replies; 20+ messages in thread
From: Shridhar R Muppidi @ 1994-01-31 16:55 UTC (permalink / raw)
Hello,
I have a few questions related to DCE RPC - would appreciate
if anybody could take some time and answer them. I'll post a
summary once I get all the answers.
1. Is it possible in DCE RPC to have one piece of code
act as both server and client?
2. Is it possible to have same server code running on
different processors/hosts? A perfect example is a
parallel machine. Lets say that a client requires
service and contacts the CDS and gets the address of
the host providing the service. Now a different client
needs the same service - is it possible to provide the
same service on a different processor/host. If 'yes' how
does the CDS know about it and direct the new client to the
new host?
3. Finally, can marshaling totally overruled by 'out_of_line'
attributes? Can it by substituted by some other user
defined packing?
Thanks a lot
-muppidi
(muppidi@cs.tamu.edu)
^ permalink raw reply [flat|nested] 20+ messages in thread* Re: DCE Questions. 1994-01-31 16:55 Shridhar R Muppidi @ 1994-02-01 9:42 ` Bernd Dreier 1994-02-01 12:45 ` Jon Mauney ` (2 subsequent siblings) 3 siblings, 0 replies; 20+ messages in thread From: Bernd Dreier @ 1994-02-01 9:42 UTC (permalink / raw) In article <2ijd6k$69t@news.tamu.edu>, muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: > Hello, > I have a few questions related to DCE RPC - would appreciate > if anybody could take some time and answer them. I'll post a > summary once I get all he answers. > > 1. Is it possible in DCE RPC to have one piece of code > act as both server and client? > Yes, no problem. Client & server are just theoretical terms to give an abstraction, that can be easily understood. You can have a client, which starts a new thread and this thread will act as a server. The other way round its possible, too. Think of the DCE core components itself. Almost every server of the core components is a client also. For example, the CDS proofs the identity of client via using security as a client. > 2. Is it possible to have same server code running on > different processors/hosts? A perfect example is a > parallel machine. Lets say that a client requires > service and contacts the CDS and gets the address of > the host providing the service. Now a different client > needs the same service - is it possible to provide the > same service on a different processor/host. If 'yes' how > does the CDS know about it and direct the new client to the > new host? > I'm not sure about what you're talking exactly. So, first it is also possible for the NEW client to use the same server as the older one. In addition to this you have no problem with starting the same service on a different processor or host. The selection, which server should be used, is done by the client. You have to make your client intelligent AND you have to make your new server registrated in CDS. The flow will now be: The second client comes to CDS and gets all addresses of servers, which provide the needed service. The client himself looks up, which of them he wants to use. > 3. Finally, can marshaling totally overruled by 'out_of_line' > attributes? Can it by substituted by some other user > defined packing? The "out_of_line" attribute can, as far as know, only be used on non-scalar types. Scalar types are marshalled anyway. Also this doesn't mean that you can use user defined packing. It have to be understood in the sense of out_of_line code, in opposite to the default in_line code for marshalling. So, what you gain is less code, what you loose is performance. > > Thanks a lot > -muppidi > (muppidi@cs.tamu.edu) Hope this helps! -- ++Benne, Bernd Dreier [Dreier@Uni-Augsburg.de] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions. 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 1994-02-03 21:46 ` Reilly F. Hayes 1994-02-08 17:04 ` Rich Salz 3 siblings, 1 reply; 20+ messages in thread From: Jon Mauney @ 1994-02-01 12:45 UTC (permalink / raw) muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: >Hello, > I have a few questions related to DCE RPC - would appreciate >if anybody could take some time and answer them. I'll post a >summary once I get all the answers. >1. Is it possible in DCE RPC to have one piece of code > act as both server and client? Yes. By "the same piece" I assume you mean the same process. The code, of course, must be written correctly. But it is quite easy, for example, for the server side of an RPC to turn around and make an RPC to another server. >2. Is it possible to have same server code running on > different processors/hosts? A perfect example is a > parallel machine. Lets say that a client requires > service and contacts the CDS and gets the address of > the host providing the service. Now a different client > needs the same service - is it possible to provide the > same service on a different processor/host. If 'yes' how > does the CDS know about it and direct the new client to the > new host? Yes. Two points: You can have multiple servers all providing the same service, on different hosts. The CDS will have all of them in its database. Queries to the CDS should be viewed as producing a list of possible servers, from which the client chooses one based on its own criteria. Clients that use the auto_handle method of binding will choose a server "at random" and be evenly distributed among the servers. If you have a multi-processor host, you will normally have only one server process (for a particular interface). Servers are multi-threaded by default, so the second request would simply be handled by a different thread. Of course, you must write your server to be thread-safe. -- Jon Mauney mauney@csc.ncsu.edu Mauney Computer Consulting (919) 828-8053 "Have TGT, will travel" ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions. 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> 0 siblings, 1 reply; 20+ messages in thread From: Ted W. Larson @ 1994-02-01 18:13 UTC (permalink / raw) In article <mauney.760106728@adm>, mauney@adm.csc.ncsu.edu (Jon Mauney) writes: > muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: > .........stuff deleted..... > > >2. Is it possible to have same server code running on > > different processors/hosts? A perfect example is a > > parallel machine. Lets say that a client requires > > service and contacts the CDS and gets the address of > > the host providing the service. Now a different client > > needs the same service - is it possible to provide the > > same service on a different processor/host. If 'yes' how > > does the CDS know about it and direct the new client to the > > new host? > > Yes. Two points: > You can have multiple servers all providing the same service, > on different hosts. The CDS will have all of them in its > database. Queries to the CDS should be viewed as producing > a list of possible servers, from which the client chooses one > based on its own criteria. Clients that use the auto_handle > method of binding will choose a server "at random" and be > evenly distributed among the servers. ^^^^^^^^^ > ^^^^^^^ Even distribution is not the case. At random is. There is no load balancing in CDS to guarantee that your clients will be evenly distributed to different servers. In fact, if you store all of your server bindings in one place in the CDS, it is quite possible that all of your clients will find one server and not the other, since the selection process is completely random. The best way to get around this problem is to build some smarts into your client so that your clients use different CDS entries based upon some geographic region or something like that, and then have them back off to other servers if the primary is down. If you want load balancing, you will need to use something like the Encina Transaction Monitor. - Ted Larson HP Corporate Network Services Client/Server Tools Group ted@corp.hp.com ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <2itvfm$77t@ftn.ftn.us-ny.citicorp.com>]
* Re: DCE Questions. [not found] ` <2itvfm$77t@ftn.ftn.us-ny.citicorp.com> @ 1994-02-06 12:33 ` Manfred Scheible 0 siblings, 0 replies; 20+ messages in thread From: Manfred Scheible @ 1994-02-06 12:33 UTC (permalink / raw) gjb@fig.citib.com (Greg Brail) writes: > ... > > But if you want real load balancing, you still need some more smarts. > If your client doesn't do it, you'll need to write an intermediate > server that all the clients contact that then issues RPCs to the > servers, and such an intermediate server could be a single point of > failure and generally a bad idea. So having your client keep a bunch > of valid binding handles and iterate through them is probably the > simplest and most efficient solution. The Encina Monitor can also do > load balancing, although it could be overkill for your application, > and it assumes you're running Encina. > > greg > -- > Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com Reading this thread there came up some questions to me: Is it possible to to use only the marshalling/unmarhalling part of DCE/RPC together with a message queing system to archive load balancing ? How is load balancing done in ENCINA ? Does ENCINA just use DCE/RPC or has ENCINA its own modified verion of DCE/RPC ? Loadbalancing for multiple single threaded server processes by randomizing through binding handles works only for remote calls with similar execution time ?! Thank you for any suggestions. Manfred Scheible PSI GmbH ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions. 1994-01-31 16:55 Shridhar R Muppidi 1994-02-01 9:42 ` Bernd Dreier 1994-02-01 12:45 ` Jon Mauney @ 1994-02-03 21:46 ` Reilly F. Hayes 1994-02-09 16:23 ` Jamison H Abbott 1994-02-08 17:04 ` Rich Salz 3 siblings, 1 reply; 20+ messages in thread From: Reilly F. Hayes @ 1994-02-03 21:46 UTC (permalink / raw) muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: >Hello, > I have a few questions related to DCE RPC - would appreciate >if anybody could take some time and answer them. I'll post a >summary once I get all the answers. >1. Is it possible in DCE RPC to have one piece of code > act as both server and client? Yes. Many servers are clients to other servers. I suspect what you may be asking about is whether or not a particular client can also act as a server to its server (yielding a "full-duplex" client/server server/client relationship.) This would be useful if, during a long term session, you wanted the server to be able to initiate unsolicited communications/actions. The answer to this is also yes. Some aspects of the how to do this are annoying, but not really difficult. >2. Is it possible to have same server code running on > different processors/hosts? A perfect example is a > parallel machine. Lets say that a client requires > service and contacts the CDS and gets the address of > the host providing the service. Now a different client > needs the same service - is it possible to provide the > same service on a different processor/host. If 'yes' how > does the CDS know about it and direct the new client to the > new host? Yes. All of them might have entries in the CDS, perhaps under the same name. No, the CDS does not know about who is using which servers. (n.b. The CDS is relatively slow at propagating data. It is a poor place to store highly dynamic data like this.) >3. Finally, can marshaling totally overruled by 'out_of_line' > attributes? Can it by substituted by some other user > defined packing? Why would you want to? There is a type called byte, which is immune to translation. -- _____________________________________________________________________________ Reilly Hayes | The Crystal Wind is the Storm, | This Space rfh@ml.com | the Storm is Data, and the Data is Life | Intentionally 212-236-9526 | - The Player's Litany | Left Blank ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions. 1994-02-03 21:46 ` Reilly F. Hayes @ 1994-02-09 16:23 ` Jamison H Abbott 1994-02-10 17:41 ` Seiichi Tatsukawa 0 siblings, 1 reply; 20+ messages in thread From: Jamison H Abbott @ 1994-02-09 16:23 UTC (permalink / raw) rfh@das.ml.com (Reilly F. Hayes) writes: >muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: >>Hello, >> I have a few questions related to DCE RPC - would appreciate >>if anybody could take some time and answer them. I'll post a >>summary once I get all the answers. >>1. Is it possible in DCE RPC to have one piece of code >> act as both server and client? >Yes. Many servers are clients to other servers. I suspect what you may >be asking about is whether or not a particular client can also act as >a server to its server (yielding a "full-duplex" client/server server/client >relationship.) This would be useful if, during a long term session, you wanted >the server to be able to initiate unsolicited communications/actions. The >answer to this is also yes. Some aspects of the how to do this are annoying, >but not really difficult. *** DANGER WILL ROBINSON... Yes, you can do this and its a useful capability. BUT, if your RPC calls have blocking semantics you can get yourself into a nasty distributed deadlock situation. ( I KNOW how big a problem this can be because a system I helped create a few years ago ran into this problem--and I had to diagnose it and fix it...). Beware! Regards, Jim >>2. Is it possible to have same server code running on >> different processors/hosts? A perfect example is a >> parallel machine. Lets say that a client requires >> service and contacts the CDS and gets the address of >> the host providing the service. Now a different client >> needs the same service - is it possible to provide the >> same service on a different processor/host. If 'yes' how >> does the CDS know about it and direct the new client to the >> new host? >Yes. All of them might have entries in the CDS, perhaps under the >same name. No, the CDS does not know about who is using which >servers. (n.b. The CDS is relatively slow at propagating data. It is >a poor place to store highly dynamic data like this.) >>3. Finally, can marshaling totally overruled by 'out_of_line' >> attributes? Can it by substituted by some other user >> defined packing? >Why would you want to? There is a type called byte, which is immune to >translation. >-- >_____________________________________________________________________________ >Reilly Hayes | The Crystal Wind is the Storm, | This Space >rfh@ml.com | the Storm is Data, and the Data is Life | Intentionally >212-236-9526 | - The Player's Litany | Left Blank ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions. 1994-02-09 16:23 ` Jamison H Abbott @ 1994-02-10 17:41 ` Seiichi Tatsukawa 0 siblings, 0 replies; 20+ messages in thread From: Seiichi Tatsukawa @ 1994-02-10 17:41 UTC (permalink / raw) In article <CKytIr.x4@world.std.com> jabbott@world.std.com (Jamison H Abbott) writes: >*** DANGER WILL ROBINSON... >Yes, you can do this and its a useful capability. BUT, if your RPC calls >have blocking semantics you can get yourself into a nasty distributed deadlock >situation. I completely agree with you. DCE's own CDS had this deadlock bug, which was fixed in OSF DCE 1.0.3. Be aware if you are using OSF DCE 1.0.2 based DCE product... --- Seiichi -- + Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@ch.hp.com + + Hewlett-Packard/Open Systems Software Division + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE Questions. 1994-01-31 16:55 Shridhar R Muppidi ` (2 preceding siblings ...) 1994-02-03 21:46 ` Reilly F. Hayes @ 1994-02-08 17:04 ` Rich Salz 3 siblings, 0 replies; 20+ messages in thread From: Rich Salz @ 1994-02-08 17:04 UTC (permalink / raw) Some other folks have answered some of these questions, let me try to give some additional info. >1. Is it possible in DCE RPC to have one piece of code > act as both server and client? Yes, but there is one mildly tricky point. Suppose the IDL file defines an operation foo(). By default, both the client and server stubs will have a routine named foo, but they do different things: the auto-generated client foo() makes the RPC call, while the server stub expects to call the programmer-written foo() routine to do the real work. Linking the "cstub" file into your server will either get "ld: multiply defined" errors at compile-time, or (most likely) infinite recursion at run-time. Use end-point vectors. Easiest thing to do is use the -no_mepv flag on your IDL line. Then you will have to define a global structure that contains function pointers for your server's functions. Use that global in your rpc_register_if() call. (This paragraph is probably too terse and confusing; see the DCE docs.) >2. Is it possible to have same server code running on > different processors/hosts? Sure. You can create an RPC group that contains the names of a set of servers; the import call will pick one server from the group. >3. Finally, can marshaling totally overruled by 'out_of_line' > attributes? Can it by substituted by some other user > defined packing? out_of_line means that rather then doing the marshalling in the stub by calling low-level routines directly, the IDL compiler generates "aux" files that contain subroutines to marshall each data type. So, out_of_line won't do what you want. You might like at the transmit_as attribute, or just pass your data as a conformant array of bytes. /r$ ^ permalink raw reply [flat|nested] 20+ messages in thread
* DCE questions
@ 1993-08-12 15:25 Per Igel
1993-08-12 19:47 ` Rich Salz
1993-08-13 15:01 ` Greg Brail
0 siblings, 2 replies; 20+ messages in thread
From: Per Igel @ 1993-08-12 15:25 UTC (permalink / 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
^ permalink raw reply [flat|nested] 20+ messages in thread* Re: DCE questions 1993-08-12 15:25 DCE questions Per Igel @ 1993-08-12 19:47 ` Rich Salz 1993-08-13 15:01 ` Greg Brail 1 sibling, 0 replies; 20+ messages in thread From: Rich Salz @ 1993-08-12 19:47 UTC (permalink / raw) In <2361@ncrsecp.Copenhagen.NCR.COM> pio@ncrsecp.Copenhagen.NCR.COM (Per Igel) writes: > 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 As an aside: it is generally a Bad Idea to do any real work inside a signal handler. The best way to do things is set a flag which you poll. Yes, this makes certain problems hard to solve. It is, however, the most portable way to do things. Anyhow, on to your DCE questions: > - DCE-RPC is extremely synchronous, therefore, the only way to make it > "asynchronous" is to create a thread for each RPC call you send off Yes, using threads is the way to do this. > - 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)? Spawn a thread which does rpc_server_listen(). > is there a point where my process runs out > of threads? Is 'rpc_c_listen_max_calls_default' that max limit or This depends on your implementation, but you should be able to have dozens, if not hundreds, of threads with no problem. Don't worry about it. /r$ ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: DCE questions 1993-08-12 15:25 DCE questions Per Igel 1993-08-12 19:47 ` Rich Salz @ 1993-08-13 15:01 ` Greg Brail 1 sibling, 0 replies; 20+ messages in thread From: Greg Brail @ 1993-08-13 15:01 UTC (permalink / raw) In article <2361@ncrsecp.Copenhagen.NCR.COM> pio@ncrsecp.Copenhagen.NCR.COM (Per Igel) writes: As I understand it, you want to use DCE to pass untyped streams of bytes. The server will recieve them and spit them back again. Unless your "scheduler" does something fun like set priorities and stuff, all you really need to do is write a server that accepts incoming RPCs with variable-length byte arrays in them, then calls RPCs that send them on their way. Each RPC will be transparently handled in a separate thread. The whole thing should take about 30 lines of code. Even if it's more complicated than this, I can't see what purpose DCE serves in this project, unless the point is to use it for the sake of using it. If you avoid security, naming, and even data marshalling, you might as well just use streams or sockets. Sadly, I see lots of people used to programming in the "message passing" style who learn about DCE, than start trying to use it to pass around those same untyped streams of bytes. >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). Your implementation of DCE may not let you catch SIGPOLL. Transarc DCE for Solaris 1.1 (SunOS 4.1.3), for instance, won't let you do this. DCE vendors usually re-implement the standard libraries in a thread-safe manner. If you're lucky, your vendor re-implemented whatever standard library functions and system calls you need to work in a multithreaded environment. For instance, it'll let you call "write" in several different threads using the same file descriptor without causing too much havoc. However, lots of signals (like SIGPOLL and SIGIO) are usually unavailable to users for this reason. >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? The "maybe" qualifier, possibly combined with "idempotent", makes the RPC asynchronous. You can't return anything from the RPC, you don't have to wait for it to complete, and you have no way of knowing whether or not it worked. > - 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? Spawn a thread to run the "rest" of your program, then call "rpc_server_listen" in the main thread. I've been told DCE gets unhappy on some platforms when you don't do it this way. If the maximum number of threads is busy, incoming calls go into a queue. If that fills up, RPCs fail with a communications error. greg -- Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~1994-10-26 0:18 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-22 18:12 ` DCE Courses [Was Re: DCE Questions] Mark_Sherman
-- strict thread matches above, loose matches on Subject: below --
1994-10-21 5:22 DCE Questions Carl Hoang
1994-10-24 22:42 ` Gerry Palo
1994-10-26 0:18 ` Dr. James W. Hong
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
1993-08-12 15:25 DCE questions Per Igel
1993-08-12 19:47 ` Rich Salz
1993-08-13 15:01 ` Greg Brail
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox