Write a program that illustrates packet routing at a router

Assignment Help JAVA Programming
Reference no: EM13866964

In this assignment, you will write two simulation programs, one for bridge processing and one for routing. You may use Java, C, C++ or Python as the language for building your programs.

1. Write a simple program to simulate the bridge processing flowchart discussed. The program should read a text file that contains the (a) forwarding database and (b) the port numbers of a bridge. The program should randomly generate frames - just the source and destination numbers. For each frame, the program should use the flowchart to make an update of the forwarding database and/or to forward/discard the frame. Ignore the CRC error detection part (that is, assume that the frames are error free). Include the source code and sample runs of the program.

2. Write a program that illustrates packet routing at a router. The program should accept as input the following:

a. A text file containing a routing table (the five column generic routing table with mask, destination address, next hop, flag and interface).

b. A text file containing a list of packets (with just destination addresses)

It should produce an output showing a list of how each packet will be handled by the router. For instance, it should output

"Packet with destination address 192.168.1.1 will be forwarded to 192.168.5.2 out on interface S1".

Your program should be written in ageneralmanner, in the sense, it should work for any routing table and any packet. It should work for both network specific and host specific entries. However, you need not consider subnetting, that is, the masks can be the default ones for Class A (255.0.0.0), Class B (255.255.0,0) and Class C (255.255.255.0). Test your program for different types of packets and different types of entries in the routing table. Submit the source code and sample runs of the program.

Reference no: EM13866964

Questions Cloud

Question regarding the sunspension insulators : Explain on how the voltage can be distibuted over sunspension insulators and how string efficiency can be obtained?
Write a value-returning method namedreversedigit : Write a value-returning method namedreverseDigit, that takes an int (integer) as a parameter and returns the number with its digits reversed as an int. For example, callingreverseDigit(12345) returns the int value of 54321.
Calculations and the motivation for paul henley : What questions might you raise from an ethical perspective with respect to these calculations and the motivation for Paul Henley to include the DSS transaction in 2013?
Multiple access and the cellular principle : An analog cellular system has 250 duplex channels available (250 channels in each direction). To obtain acceptable transmission quality, the relation between reuse distance (D) and cell radius (R) has to be at least D/R = 7. The cell structure is d..
Write a program that illustrates packet routing at a router : Write a program that illustrates packet routing at a router. The program should accept as A text file containing a list of packets (with just destination addresses)
What types of financial shenanigans were used by the trio : What types of financial shenanigans were used by the trio to manipulate earnings? Do you agree with the decision of Judge Marrocco in not holding the trio legally liable? Why or why not?
Explain the controversy of establishing a court system : Explain the controversy of establishing a court system at the creation of the U.S. Constitution. Your responses must include the major elements of the controversy, the varying viewpoints for the needs for U.S. courts, and the ultimate outcome
Thickness for a unit working stress : A cast-iron cylinder of 300mm bore carries a pressure of 30 Newtons per squaremillimetre; what should be its thickness for a unit working stress of 25 newtons persquare millimetre?
Create a student learning objective : Create a student learning objective

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd