Algorithm1. Create a simulator object2. Set routing protocol to Link State routing3. Trace packets on all links onto NAM trace and text trace file4. Define finish procedure to close files, flush tracing and run NAM5. Create twelve nodes6. Specify the link characteristics between nodes7. Describe their layout topology in an adhoc manner.8. Create CBR traffic … Continue reading Link State Routing Protocol
Author: Shanthosh Lakshman
Write a program to implement distance vector routing algorithm
Algorithm1. Create a simulator object2. Set routing protocol to Distance Vector routing3. Trace packets on all links onto NAM trace and text trace file4. Define finish procedure to close files, flush tracing and run NAM5. Create eight nodes6. Specify the link characteristics between nodes7. Describe their layout topology as a octagon8. Add UDP agent for … Continue reading Write a program to implement distance vector routing algorithm
Write a file server program using TCP sockets.
AlgorithmServerStep1: Import java packages and create class file server.Step2: Create a new server socket and bind it to the port.Step3: Accept the client connectionStep4: Get the file name and stored into the BufferedReader.Step5: Create a new object class file and realine.Step6: If file is exists then FileReader read the content until EOF is reached.Step7: Stop … Continue reading Write a file server program using TCP sockets.
Write a Program to implement inter process communication(chat) using stream sockets with thehelp of socket interfaces provided TCP sockets.
AlgorithmTCP Server1. Create a socket2. Bind it to the operating system.3. Listen over it.4. Accept connections.5. Receive data from client and send it back to client.6. Close the socket.TCP Client 1.Create a socket.2.connect to the server using connect().3.send data to server and receive data from the server.4.Close the socket. Client //TCP Client #include<sys/socket.h> #include<stdio.h> #include<string.h> … Continue reading Write a Program to implement inter process communication(chat) using stream sockets with thehelp of socket interfaces provided TCP sockets.
Webpage Download
Algorithm1. Get URL from the user.2. Create a file instance to store the downloaded page.3. Download the page using java URL methods.4. View the download page5. Stop import java.io.*; import java.net.*; class MyDownload { public void Download() throws Exception { try { String WebPage, MyPage; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // URL Instance System.out.print("Enter … Continue reading Webpage Download
TCP echo client server
ALGORITHM:SERVER: STEP 1: Start STEP 2: Declare the variables for the socket STEP 3: Specify the family, protocol, IP address and port number STEP 4: Create a socket using socket() function STEP 5: Bind the IP address and Port number STEP 6: Listen and accept the client’s request for the connection STEP 7: Read the … Continue reading TCP echo client server
Implement the DNS using UDP sockets
Algorithm1.Start the program.2.Get the frame size from the user3.To create the frame based on the user request.4.To send frames to server from the client side.5.If your frames reach the server it will send ACK signal to client otherwiseit will send NACK signal to client.6.Stop the program UDP DNS Server import java.io.*; import java.net.*; public class … Continue reading Implement the DNS using UDP sockets
Simulating ARP /RARP protocols
ALGORITHM: Client Start the program Using socket connection is established between client and server. Get the IP address to be converted into MAC address. Send this IP address to server. Server returns the MAC address to client. Server Start the program Accept the socket which is created by the client. Server maintains the table in … Continue reading Simulating ARP /RARP protocols
Industry 4.0
Ns 2 Easy installation step by step guide
First of all open the terminal in your Ubuntu/debain/linux mint. And then type following code in terminal and then click enter. sudo apt-get install ns2 After Completing the installation, then type the following code to begin installation of NAM sudo apt-get purge nam After Completing the previous step and then download the Deb file. And … Continue reading Ns 2 Easy installation step by step guide