exercise 2 in this exercise you will write a simple program to simulat
Exercise 2: In this exercise, you will write a simple program to simulate the bridge-processing flowchart for a bridge
that we discussed in the lectures. You are given a text file (BridgeFDB.txt) that contains the forwarding database of a
bridge with four ports. The entries in the text file are arranged as shown below:
You are given another text file (Random Frames.txt) that contains the source MAC address, the destination MAC
address of a random frame on the network that the bridge is connected to, and the port number of the bridge that it
arrives on. The entries in this text file are arranged as shown below:
Your program should read the two text files, and for each random frame, it should make a decision either to
forward/discard/broadcast the frame. If the source MAC address is not in the database, then it should update it.
Ignore the CRC error detection part (that is, assume that the frames are error free). Store the resulting output in
another text file (BridgeOutput.txt).
Your output would look something like this (for the above three sample frames).
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.