Professional Documents
Culture Documents
LectureNotesU6 Last
LectureNotesU6 Last
UNIT-VI
Unit-IV: Performance; IPC performance, disk performance, network performance. Introduction to remote
procedure calls, transparency issues, Sun RPC, Linux RPC, Xerox courier, Appollo RPC. (ch 17&18 )
Section 17.5/#: Network performance
Section 18.1/#: Steps in RPC (fig 18.1)/ RPC Model
Section 18.2/#: Transparency issue
Section 18.3/#: Sun RPC F18.3/# files involved in Sun RPC
Section 18.5/#: Apollo RPC
Section 18.4/#: Xerox RPC
Performance:
• Performance of processes communicating on the single host
• Performance of processes communicating on different hosts
Network performance:
Maximum throughput of 10 megabits/sec Ethernet: with minimum interpacket gap, (i.e.
22 B Ethernet header + 20 B IP header + 20 B TCP header + 4 B Ethernet trailer)
Here maximum theoretical throughput is 1,185,840 bytes/sec.
Maximum Ethernet packet size is 1464 bytes
M2?
The single host transmitting 1024 byte packet as fast as it can, are able to obtain
throughput of 1000 packets/sec. This corresponds to 1,203,920 bytes/sec
Performance between VAX750 & VAX780 on an Ethernet shows TCP throughput
between 80,000 bytes/sec to 100,000 byets/sec
Dsf
Dsfdsf
Dsf
aup (8SR3)U6 2 / 5
Procedure Calls:
In general a function call or a subroutine call is called as procedure call.
Procedure call is a method of transferring control from a process to another, with return
of control to the caller.
Many computer architectures implement this with instruction of the form “jump-to-
subroutine”
There can be one or more return values from the called procedure
These types of procedure calls are called as “local procedure calls”
1 Conc
2 ept
Of
Host 1 Host 2 RPC
3 Procedure call
Client Serve
Proces r Different
s Proces hosts
Return s
Interconnected
N/W
STEPS in RPC
There are different steps which take place in RPC; they are executed in the order
Client process Server process
client server
routines routines
Fig: Remote Procedure
Call (RPC) Model
Local proc’r call (1) (10) (6) (5)
client server
stub stub
#694
Transparency issues
aup (8SR3)U6 4 / 5
Explain why the contents of the file data are output to the terminal in the
following example, when the program ttyname one generates output and never
reads its input.
$cat data a file with two lines
hello,
world
$pty –i < data ttyname -i says ignore eof on stdin,
hello, where did these two lines come from?
world
fd 0: /dev/ttyp5 we expect these three lines from ttyname
fd 1: /dev/ttyp5
fd 2: /dev/ttyp5
$who
$pty ttyname
/etc/ttytype
/etc/inittab
$echo $ttyname
Your unix – ultimate guide : sumitbha das (tmh)
ASSIGNMENT QUESTIONS:
1 What is network performance? Explain in brief.
2 Explain in brief the steps involved in RPC calls.
3 Explain Remote Procedure Call Model in brief.
4 What are issues related to transparency.
5 Explain in brief the model for remote procedure calls.
6 Compare following three RPC implementations
(i) SUN RPC
(ii) Xerox RPC
(iii) Apollo RPC
7 What files are needed in generating SUN RPC.
aup (8SR3)U6 5 / 5