Networking Aim Algorithm
Networking Aim Algorithm
AIM:
ALGORITHM:
AIM:
ALGORITHM:
SERVER:
CLIENT:
Step 13: Read the String data and print the string.
ALGORITHM:
SERVER:
CLIENT:
AIM:
To perform implementation of FTP.
ALGORITHM:
Step 4: Print the enter file name and declare the string variable fn=brl.readLine().
Step 6: Create an object for BufferedRreder and declare the string variable.
Step 8: Else and print file+fit dode bot exit and using catch block print not found port and goto
step17.
Step 12: Print the content of the file is them print the string values.
Step 14: Again using catch block and print the IOExeception and doti step15.
AIM:
Step 1: Create two program one for the server side and one for the client side.
Step 3: The retrun value of the accept() method is assigened to new socket client.
Step 4: Send the input receved from the client the server side back to the client.
Step 6: Create the object of DataInputStream to accept input from the server.
Step 8: Type _ quit at the client side to finish execution of both the programs.
Step 9: Stop.
RESULT:
Thus the above program has been executed successfully.
AIM:
Step 5: If your frames reach the server it will send ACK singal to client otherwise it will send
NACK signal to client.
AIM:
Step 5: If the frames reach the server it will send ACK signal to client otherwise it will send
NACK signal to client.
AIM:
To perform implementation of remote command execution using TCP.
ALGORITHM:
Step 1: Start.
Step 3: Create a socket at the client side and the connection is set to accept by the server socket
using the accept() method.
Step 5: The command is obtained using the readLine() method of Buffer Reader.
Step 6: Get the runtime object of the runtime class using getruntime(0.
Step 8: Stop.
RESULT:
AIM:
To perform implementation of ARP protocol.
ALGORITHM:
SERVER:
Step 2: Listen for new connection and when a connection arrives, accept it.
Step 9: Stop.
CLIENT:
Step 1: Create a client socket and connect it to the server’s port number.
Step 7: Stop.
RESULT:
ALGORITHM:
SERVER:
Step 2: Listen for new connection and when a connection arrives, accept it.
Step 9: Stop.
CLIENT:
Step 1: Create a client socket and connect it to the server"s port number.
Step 7: Stop.
RESULT:
AIM:
ALGORITHM:
Step 1: Write an interface program with method AddServerIntf that finds the sum of
2 values.
Step 5: Complie using the rmi complier the implementation program for creation of
the stub and skeleton.
Step 6: Bind the implementation object to the registry and name it.
Step 7: Write a client program in which the inputs of two values are obtaine from
the command line and the result is displayed.
Step 8: Stop.
RESULT:
AIM:
ALGORITHM:
Step 1: Start the sender program.
Step 9: If(nf<=sws.1) then print the enter +nf value message to be send.
Step 10: Using for loop upto i<nf and assign sbuff[sptr]=in.readLine().
Step 12: To assign aws+=nf then else print the no of frames exceeds windowsize.
Step 13: Print do you want to send some more frames and assign ch=in.readLine.
Step 22: if(nf<rws-1)the using for loop upto i<=nf and assign rptr=++rptr
%8,Rbuf[rptr]=in.readLine().
Step 23: Print the received frame+rptr+is+rbut[rptr]value then assign rws-=nf.