Question: Write a function to do forwarding in an IP router. The procedure has one parameter, an IP address. It also has access to a global

Write a function to do forwarding in an IP router. The procedure has one parameter, an IP address. It also has access to a global table consisting of an array of triples. Each triple contains three integers: an IP address, a subnet mask, and the outline line to use. The function looks up the IP address in the table using CIDR and returns the line to use as its value.

Step by Step Solution

3.41 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Forwarding is simply defined as the action applied by each router when a packet arrives at one of its interfaces When a router receives a packet from one of its attached networks it needs to forward t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

1790_61d57f25d9f0b_820575.pdf

180 KBs PDF File

Word file Icon

1790_61d57f25d9f0b_820575.docx

120 KBs Word File

Students Have Also Explored These Related Computer Networking Questions!