Java program on datagram socket for client/server to display the message on client side, typed at the server side

import java.util.*; import java.net.*; import java.io.*; public class udpserver { public static void main(String args[]) { DatagramSocket aSocket=null; Scanner scan=new Scanner(System.in); int ServerPort=999; System.out.println("Server ready n Waiting for connectionn"); try…

Continue ReadingJava program on datagram socket for client/server to display the message on client side, typed at the server side

Using TCP/IP sockets, write a client-server java program to make the client send the file name and to make the server send back the contents of the requested file if present and Implement the above program using as message queues or FIFOs as IPC channels

import java.util.*; import java.net.*; import java.io.*; public class tcpserver { public static void main(String[] args) { try { ServerSocket s=new ServerSocket(998); System.out.println("Server Readynwaiting for connection ....."); Socket s1=s.accept(); DataOutputStream dos=…

Continue ReadingUsing TCP/IP sockets, write a client-server java program to make the client send the file name and to make the server send back the contents of the requested file if present and Implement the above program using as message queues or FIFOs as IPC channels

Java program for error detecting code using CRC-CCITT

import java.util.*; public class Crc { public static int n; public static void main(String[] args) { Scanner in=new Scanner(System.in); Crc ob=new Crc(); String code, copy, rec,zero="0000000000000000"; System.out.println("Enter message"); code=in.nextLine(); n=code.length();…

Continue ReadingJava program for error detecting code using CRC-CCITT

Implement simple ESS and with transmitting nodes in wire-less LAN by simulation and determine the performance with respect to transmission of packets

#set ns simulator set ns [new Simulator] #open trace file set nt [open lab41.tr w] $ns trace-all $nt set topo [new Topography] $topo load_flatgrid 1000 1000 #open nam trace file…

Continue ReadingImplement simple ESS and with transmitting nodes in wire-less LAN by simulation and determine the performance with respect to transmission of packets

Implement an Ethernet LAN using n nodes and set multiple traffic nodes and plot congestion window for different source / destination

#Set ns simulation set ns [new Simulator] #Define color for data flows $ns color 1 Blue $ns color 2 Red #Open trace-file set tracefile1 [open lab3.tr w] set winfile [open…

Continue ReadingImplement an Ethernet LAN using n nodes and set multiple traffic nodes and plot congestion window for different source / destination