Write a simple program to simulate processing of a packet


Please you need help in this Question:

Write a (simple) program to simulate processing of a packet at a router interface with an ACL bound to that interface.

Given an ACL (standard or extended) bound to a router interface, your program should accept as input a packet with a source IP address, destination IP address, source port number and destination port number, check the ACL permit and deny statements in sequence and determine if the packet gets discarded or forwarded.

In order to do this, your program should read two text files:

File no. 1 contains the ACL (for example):

access-list 1 deny 172.16.4.13 0.0.0.0

access-list 1 deny 172.16.5.0 0.0.0.255

etc.

interface EO

ip access-group 1 out

File no.2 contains a list of packets (just source and destination addresses)

172.16.4.13 172.16.3.2

172.16.5.2 172.16.3.4

etc.

Your output should be something like this:

172.16.4.13 172.16.3.2 denied

172.16.5.2 172.16.3.4 denied

etc. etc. permitted

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a simple program to simulate processing of a packet
Reference No:- TGS02892394

Expected delivery within 24 Hours