Posts

Showing posts from September, 2019

Lab - Manual

SPPU CN-Practicals (TE-Comp)   LIST OF LAB EXPERIMENTS Lab Expt. No. Problem Statement A1. Part A: Setup a wired LAN using Layer 2 Switch and then IP switch of minimum four computers. It includes preparation of cable, testing of cable using line tester, configuration   machine using IP addresses, testing using PING utility and demonstrate the PING packets   captured traces using Wireshark Packet Analyzer Tool. Part B: Extend the same Assignment for Wireless using Access Point A2. Write a program in C/C++   for error detection and correction for 7/8 bits ASCII codes using Hamming   Codes or CRC. Demonstrate the packets captured traces using Wireshark Packet Analyzer   Tool for peer to peer mode. ( 50% students will perform Hamming Code and others will   perform CRC) A3. Write a program   in Java/Python to demonstrate sub netting and find the sub net masks. A4. Installing and configure DHCP server a...

Assignment 4

SPPU CN-Practicals (TE-Comp) Installing and configure DHCP server and write a program (C++\Python\Java) to install the software on remote machine. We will require to Python Codes  1 . dhcp_client 2 . dhcp_server Following are the Python codes for above problem 1 . dhcp_client import os #Install DHCP Package os.system("dhclient -r") os.system("dhclient -r -v") os.system("dhclient -v") 2. dhcp_server import os #Install DHCP Package os.system("yum install dhcp") #Change Subnet mask ip address to 192.169.5.0 os.system("gedit /etc/dhcp/dhcpd.conf") #Starting DHCP Service os.system("systemctl start dhcpd.service") os.system("systemctl enable dhcpd.service") os.system("systemctl status dhcpd.service")

Assignment : 3

SPPU CN-Practicals (TE-Comp) Write a program in Java/Python to demonstrate sub netting and find the sub net masks. We will require to classes  1 . subnet 2 . subnetmask Following are the JAVA codes for above two classes 1 . subnet class import java.util.Scanner; import java.net.InetAddress; class subnet { public static void main(String args[]) { Scanner sc= new Scanner(System.in); System.out.print("Enter the ip address="); String ip=sc.nextLine(); //----Split the Ip Address------- String split_ip[] = ip.split("\\."); //----- Converting the Ip Address to binary---- String split_bip[]= new String[4]; String bip = ""; for(int i=0;i<4;i++) { split_bip[i]=appendZeroes(Integer.toBinaryString(Integer.parseInt(split_ip[i]))); bip+=split_bip[i]; } System.out.println("The binary IpAddress is="+bip); //----- Finding the Subent mask----- System.out.println("Enter the number of address"); int n=sc.nextInt(); int bits=(int)Math.cei...

Assignment 2-2

SPPU CN-Practicals (TE-Comp) Write a program in C/C++ for error detection and correction for 7/8 bits ASCII codes using Hamming Codes or CRC. Demonstrate the packets captured traces using Wireshark Packet Analyzer Tool for peer to peer mode. ( 50% students will perform Hamming Code and others will perform CRC) CRC Code-- #include <iostream> using namespace std; int main() {     int i,j,k,l;     //Get Frame     int fs;     cout<<"\n Enter Frame size: ";     cin>>fs;     int f[20];     cout<<"\n Enter Frame:";     for(i=0;i<fs;i++)     {         cin>>f[i];     }     //Get Generator     int gs;     cout<<"\n Enter Generator size: ";     cin>>gs;     int g[20];     cout<<"\n Enter Generator:";     for(i=0;i<gs;i++)     {      ...

Assignment : 2-1

SPPU CN-Practicals (TE-Comp) Write a program in C/C++ for error detection and correction for 7/8 bits ASCII codes using Hamming Codes or CRC. Demonstrate the packets captured traces using Wireshark Packet Analyzer Tool for peer to peer mode. ( 50% students will perform Hamming Code and others will perform CRC) Hamming Code-- #include <iostream> #include<math.h> using namespace std; int main() { int data[11],rec[11],parity[4]; cout << "Hamming Code" << endl; cout<<"\nSender's Side: \n"; cout<<"Enter 7 Bit data to send separated by space:"; for(int i=10;i>=0;i--) { if(i==0||i==1||i==3||i==7) continue; cin>>data[i]; } //Parity Bit Calculation data[0]=data[2]^data[4]^data[6]^data[8]^data[10]; data[1]=data[2]^data[5]^data[6]^data[9]^data[10]; data[3]=data[4]^data[5]^data[6]; data[7]=data[8]^data[9]^data[10]; cout<<"\nInput Data" ; for(int i=10;i>=0;i--) { if(i==0||i==1...

SPPU Engineering Question papers

Engineering All Question Papers (SPPU) Question Papers