============================================================ 18CS54 - network programming and security ============================================================ Q1: Write a networking program consisting of a client and server components. The client must request for a file by providing a file name, and the server must respond with the contents of the file or an appropriate error message. Modify the client to accept the filname via a command line argument. A1: https://u.peppe.rs/qt.png ------------------------------------------------------------ Q2: Write a program to illustrate the function of Distance-Vector routing using Bellman-Ford algorithm. Handle the situation where negative edges are present. A2: https://u.peppe.rs/LS.png https://u.peppe.rs/ep.png ------------------------------------------------------------ Q3: Write a program to showcase a) Checksum - error detection b) Hamming code - error detection and correction A3: https://u.peppe.rs/qQ.png https://u.peppe.rs/qr.png ------------------------------------------------------------ Q6: Write a networking program to demonstrate the following: a) Concurrent TCP server b) Iterative TCP server c) Connectionless UDP server A6: a) https://u.peppe.rs/E3.png b) https://u.peppe.rs/VA.png c) https://u.peppe.rs/ei.png ------------------------------------------------------------ Q7: Write a networking program that recieves a shell command from a client and returns the output of the command to the client. A7: https://u.peppe.rs/QD.png ============================================================ PART B ============================================================ Q1: Setup an IEEE 802.3 network with a) hub b) switch c) hierarchy of switch Apply the FTP, Telnet applications between nodes. Vary the number of nodes. Vary the bandwidth, queue size and observe the packet drop probability. A1: https://u.peppe.rs/qualnet/exp1 https://u.peppe.rs/qualnet/exp2 ------------------------------------------------------------ Q2. Setup a wireless sensor networks with atleast two device co-coordinators and nodes. Provide Constant Bit Rate (CBR), Variable Bit Rate (VBR) application between several nodes. Increase the number of co-coordinators and nodes in the same area and observe the performance at physical and MAC layers. A2: https://u.peppe.rs/qualnet/exp3 ------------------------------------------------------------ Q3. Setup an IEEE 802.11 network with at least two access points. Apply the CBR, VBR applications between devices belonging to same access points and different access points. Provide roaming of any device. Vary the number of access points and devices. Find out the delay in MAC layer, packet drop probability. A3: https://u.peppe.rs/qualnet/exp4 ============================================================ mirror of git.peppe.rs/university/nps