Professional Documents
Culture Documents
Session Layer
Session Layer
ISSUES
correct destination. In the digital world, this is like ensuring that
data from various sources is correctly directed to the right place
in a high-traffic environment.
• Session Prioritization: In a busy restaurant, they prioritize serving
food based on how hungry the customers are. Similarly, in a
network, some sessions are more important than others. For
example, video calls are more important than background
software updates, so the network must give more "food"
(bandwidth) to the video call.
Error Handling:
• Error Detection: Think of it like putting a label on
your package when sending it through the mail. If
the label gets messed up or torn, the post office can
notice the problem and try to fix it. In the digital
DESIGN world, error detection means labeling data, so if it
gets messed up during transmission, the system can
spot the issue and ask for a fresh copy.
ISSUES • Error Recovery: Imagine you're writing a letter, and
your little brother accidentally scribbles over a word.
To fix it, you ask for a clean sheet and rewrite that
part. In the digital world, error recovery is like having
a plan to replace or repair any data that gets
damaged or changed during transmission, just like
rewriting that word in your letter.
• Remote Procedure Call (RPC) is a
protocol which works in the session
layer of the OSI model and in the
REMOTE Application Layer of TCP/IP model.
• It is useful in developing network
PROCEDURE applications which need services from
a remote computer in the network.
CALL(RPC) • With the help of Remote Procedure
Call, the programmer need not worry
about the complex structure of OSI
layer.
1
ELEMENTS OF RPC
MECHANISM
• Client
• Client Stub
• RPC Runtime
• Server Stub
• Server
RPC
EXECUTION
RPC EXECUTION
1. Client procedure calls client stub in normal way.
2. Client stub builds message, calls local OS.
3. Client's OS sends messages to remote OS.
4. Remote OS gives message to server stub.
5. Server stub unpacks parameters, calls server.
6. Server does work, returns result to the stub.
7. Server stub packs it in message, calls local OS.
8. Server's OS sends message to client's OS.
9. Client's OS gives message to client stub.
10. Stub unpacks the result, returns to client.
PARAMETER PASSING SEMANTICS
1 2 3
CALL BY VALUE CALL BY REFERENCE CALL BY
• Call by Value copies all • Call by reference passes COPY/RESTORE
parameters into a pointers to the • Call by copy/restore
message before parameters that are uses temporary storage
transmission. passed from the client accessible to both the
to the server. programs.
THANK YOU