SlideShare a Scribd company logo
1 of 11
Project 4 (P4): Distance Vector Routing (DV)
Instructor: Dr. Shengquan Wang
Due Time: 6PM, 12/05/2015
The purpose of this project is to learn how distributed dynamic
routing protocols like distance vector
accomplish routing in practice. In this assignment, you will be
asked to build a distance vector routing
protocol that implements the distributed Bellman-Ford
algorithm.
1 Design
Data Each router needs to maintain three different data:
• All link cost information to all active neighbors.
• Its own distance vector. It shall display as follows:
A B 7 1 B
A C 10 2 B
There are two entries in this distance vector. For each entry, the
five columns are source router
ID, destination router ID, distance, number of hops, the router
ID for the next router in routing,
respectively.
• Its neighboring routers’ distance vectors.
Events We will use the running processes to simulate routers.
Processes can be run on different hosts.
Each router is assigned with a unique router ID (English letter).
Two processes communicate with
another process through its UDP socket:
(1) Upon receiving any distance vector entries from any
neighboring router or detecting a new neighbor
or the link cost change to a neighbor, the router will use the
Bellman-Ford Equation to update its
distance vector;
(2) Then for any change in its distance vector, the router will
broadcast the changed distance vector
entries to its neighboring routers through a UDP socket and
print out the changed entries to the
console.
UDP sockets in all routers should alway be listening (for
potential messages from some neighbors).
1
Waleed
Typewriter
distributed Bellman-Ford algorithm
Waleed
Highlight
Waleed
Highlight
Waleed
Highlight
Waleed
Highlight
Commands Here is what are expected with the multiple running
routers. We use the same program
for all routers. Name it as dvrouter. For example with a Java
program, run Router A in the shell as
prompt> java dvrouter A 1000
where 1000 is the assigned UDP port number. Once a router A
starts, it shall display as shown in the
following example:
Router A (localhost, 1000) is active. Waiting for input and
output ...
where (localhost, 1000) is the pair of the hostname and the port
number.
The following input commands will be supported in the console
for a router (e.g., router A):
add It adds a new link to the router. For example
add B 2000 1
It will add the link between A and B (with hostname “localhost”
and port number 2000) with a link
cost 1 to Router A. If the router B is alive, a message will be
sent to B and it will add the link between
B and A with a link cost 1 to Router B. On Router A, it will
display “The link A-B is set!” message; on
Router B, it will display “The link B-A is set!” message. Keep
in mind the link cost is bidirectionally
symmetric.
change It changes an existing link to the router. For example
change B 7
It will change the link between A and B with a link cost 7 to
Router A. If the router B is alive, a message
will be sent to B and it will change the link cost between B and
A with a link cost 5 in Router B. On
Router A, it will display “The cost of link A-B is changed!”
message; on Router B, it will display “The
cost of link B-A is changed!” message. Keep in mind the link
cost is bidirectionally symmetric.
display It display the distance vector of the router. Input
display
then we have the output as
The distance vector for Router A is:
A B 7 1 B
A C 6 3 B
2 Testing
Start 4 processes (as 4 routers) in 4 different terminals (they
will be run on the same host). Each router
is given a router ID. Its running process is associated with its
host name and the port number. We
assume they are
Router A: (localhost, 1000)
Router B: (localhost, 2000)
Router C: (localhost, 3000)
Router D: (localhost, 4000)
2
Make sure they are active before adding any links. This 4
routers will form the following network
topology:
1 3
A ---- B --- D
 /
6  / 2
C
We assume all links are symmetric in terms of link cost in both
directions.
Perform the following actions:
• Add all links to the routers using the command add;
• Display the distance vector for each router using the command
display.
Once the system is stabilized, B detects a link cost of BA from
1 to 60. Perform the following actions:
• Change the link cost of B-A to 60 using the command change
at Router B;
• Print out the number of messages for all nodes before the
system is stabilized again;
You are required to print out to the console on any message
received by each router and any change of
DV at each router.
Next, apply Poison Reverse technique in the design of the DV.
Re-perform the above actions again
and show the difference after applying the Poison Reverse
technique.
3 Implementation Tips
Run each router as a separate process. In each router, you can
start multiple threads to handle different
communications:
• One thread for receiving input from the console;
• One thread per neighbor commutation.
4 Bonus
Each router will periodically broadcast advertisement (its
distance vector) to its neighbor (e.g., every
10s). The period will restart upon each broadcasting. If a router
doesn’t hear one of its neighbor’s
advertisement within a timeout interval (e.g., 30s), it will
remove this neighbor and update its distance
vector and broadcast the changed entries to its neighboring
routers.
You need to implement another function:
kill It kills the running router. Input
kill
then we have the output as
Router A is about to be terminated...
In your testing, kill Router D in the end and then display the
DV at Router A.
3
Waleed
Highlight
5 Submission
You are going to report the following things:
(a) Describe in details how you implemented the DV.
(b) Write a detailed report with the screenshots of the testing
results for the two scenarios: without
Poison Reverse and with Poison Reverse. Each screenshot
should include your username and
the current time, which show that you did it by yourself.
(c) Specify the contribution made by each member if you work
as a group.
The report should be written in a “.docx”, “.doc”, or “.pdf”
format. All source codes should be well
formatted with good comments. Submit the report and the
source code files to Project P4 on Canvas
separately. Any .zip or .tar format is not permitted.
4
Farrow Co. expects to sell 400,000 units of its product in the
next period with the following results.
Sales (400,000 units)
$
6,000,000
Costs and expenses
Direct materials
800,000
Direct labor
1,600,000
Overhead
400,000
Selling expenses
600,000
Administrative expenses
1,028,000
Total costs and expenses
4,428,000
Net income
$
1,572,000
The company has an opportunity to sell 40,000 additional units
at $13 per unit. The additional sales would not affect its current
expected sales. Direct materials and labor costs per unit would
be the same for the additional units as they are for the regular
units. However, the additional volume would create the
following incremental costs: (1) total overhead would increase
by 16% and (2) administrative expenses would increase by
$172,000.
Calculate the combined total net income if the company accepts
the offer to sell additional units at the reduced price of $13 per
unit.
Normal Volume
Additional Volume
Combined Total
Cost & Expense
Total Cost & Expense
0
0
0
Incremental income (loss) from new business
Should the company accept or reject the offer?
The company should accept the offer
The company should reject the offer

More Related Content

Similar to Project 4 (P4) Distance Vector Routing (DV)Instructor Dr.docx

Ccna exam 640 802
Ccna exam 640 802Ccna exam 640 802
Ccna exam 640 802
ccnaguide
 
Ccna final exam
Ccna final examCcna final exam
Ccna final exam
ccnaguide
 
The Network Ip Address Scheme
The Network Ip Address SchemeThe Network Ip Address Scheme
The Network Ip Address Scheme
Erin Rivera
 
Ccna discovery
Ccna discoveryCcna discovery
Ccna discovery
ccnaguide
 
640 802 exam
640 802 exam640 802 exam
640 802 exam
liemgpc2
 

Similar to Project 4 (P4) Distance Vector Routing (DV)Instructor Dr.docx (20)

NP-lab-manual.pdf
NP-lab-manual.pdfNP-lab-manual.pdf
NP-lab-manual.pdf
 
Clase 4. Routing IP.pdf
Clase 4. Routing IP.pdfClase 4. Routing IP.pdf
Clase 4. Routing IP.pdf
 
Netw 320 course project qo s design and implementation
Netw 320 course project qo s design and implementationNetw 320 course project qo s design and implementation
Netw 320 course project qo s design and implementation
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slides
 
Ccna exam 640 802
Ccna exam 640 802Ccna exam 640 802
Ccna exam 640 802
 
Intro to Ethernet
Intro to EthernetIntro to Ethernet
Intro to Ethernet
 
Ccna final exam
Ccna final examCcna final exam
Ccna final exam
 
Router commands
Router commandsRouter commands
Router commands
 
The Network Ip Address Scheme
The Network Ip Address SchemeThe Network Ip Address Scheme
The Network Ip Address Scheme
 
Ccna discovery
Ccna discoveryCcna discovery
Ccna discovery
 
640 802 exam
640 802 exam640 802 exam
640 802 exam
 
lecture note 2023 up10 stud2.ppt for ans
lecture note 2023 up10 stud2.ppt for anslecture note 2023 up10 stud2.ppt for ans
lecture note 2023 up10 stud2.ppt for ans
 
200-301-demo.pdf
200-301-demo.pdf200-301-demo.pdf
200-301-demo.pdf
 
Cisco 200-301 Exam Dumps
Cisco 200-301 Exam DumpsCisco 200-301 Exam Dumps
Cisco 200-301 Exam Dumps
 
Cisco 200-301 Exam Dumps
Cisco 200-301 Exam DumpsCisco 200-301 Exam Dumps
Cisco 200-301 Exam Dumps
 
Ccna guide
Ccna guideCcna guide
Ccna guide
 
RIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme NetworksRIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme Networks
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
Ccna dumps
Ccna dumpsCcna dumps
Ccna dumps
 
Classless classful
Classless classfulClassless classful
Classless classful
 

More from wkyra78

Melissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docx
Melissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docxMelissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docx
Melissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docx
wkyra78
 
Melissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docx
Melissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docxMelissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docx
Melissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docx
wkyra78
 
member is a security software architect in a cloud service provider .docx
member is a security software architect in a cloud service provider .docxmember is a security software architect in a cloud service provider .docx
member is a security software architect in a cloud service provider .docx
wkyra78
 
Melissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docx
Melissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docxMelissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docx
Melissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docx
wkyra78
 
Measurement  of  the  angle  θ          .docx
Measurement  of  the  angle  θ          .docxMeasurement  of  the  angle  θ          .docx
Measurement  of  the  angle  θ          .docx
wkyra78
 
Measurement of the angle θ For better understanding .docx
Measurement of the angle θ     For better understanding .docxMeasurement of the angle θ     For better understanding .docx
Measurement of the angle θ For better understanding .docx
wkyra78
 
Meaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docx
Meaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docxMeaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docx
Meaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docx
wkyra78
 
MBA6231 - 1.1 - project charter.docxProject Charter Pr.docx
MBA6231 - 1.1 - project charter.docxProject Charter Pr.docxMBA6231 - 1.1 - project charter.docxProject Charter Pr.docx
MBA6231 - 1.1 - project charter.docxProject Charter Pr.docx
wkyra78
 
MediationNameAMUDate.docx
MediationNameAMUDate.docxMediationNameAMUDate.docx
MediationNameAMUDate.docx
wkyra78
 
Media Content AnalysisPurpose Evaluate the quality and value of.docx
Media Content AnalysisPurpose Evaluate the quality and value of.docxMedia Content AnalysisPurpose Evaluate the quality and value of.docx
Media Content AnalysisPurpose Evaluate the quality and value of.docx
wkyra78
 
MBA 5110 – Business Organization and ManagementMidterm ExamAns.docx
MBA 5110 – Business Organization and ManagementMidterm ExamAns.docxMBA 5110 – Business Organization and ManagementMidterm ExamAns.docx
MBA 5110 – Business Organization and ManagementMidterm ExamAns.docx
wkyra78
 

More from wkyra78 (20)

Melissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docx
Melissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docxMelissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docx
Melissa HinkhouseWeek 3-Original PostNURS 6050 Policy and A.docx
 
Melissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docx
Melissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docxMelissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docx
Melissa HinkhouseAdvanced Pharmacology NURS-6521N-43Professo.docx
 
Meiner, S. E., & Yeager, J. J. (2019). Chapter 17Chap.docx
Meiner, S. E., & Yeager, J. J. (2019).    Chapter 17Chap.docxMeiner, S. E., & Yeager, J. J. (2019).    Chapter 17Chap.docx
Meiner, S. E., & Yeager, J. J. (2019). Chapter 17Chap.docx
 
member is a security software architect in a cloud service provider .docx
member is a security software architect in a cloud service provider .docxmember is a security software architect in a cloud service provider .docx
member is a security software architect in a cloud service provider .docx
 
Melissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docx
Melissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docxMelissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docx
Melissa ShortridgeWeek 6COLLAPSEMy own attitude has ch.docx
 
Melissa is a 15-year-old high school student. Over the last week.docx
Melissa is a 15-year-old high school student. Over the last week.docxMelissa is a 15-year-old high school student. Over the last week.docx
Melissa is a 15-year-old high school student. Over the last week.docx
 
Measurement  of  the  angle  θ          .docx
Measurement  of  the  angle  θ          .docxMeasurement  of  the  angle  θ          .docx
Measurement  of  the  angle  θ          .docx
 
Measurement of the angle θ For better understanding .docx
Measurement of the angle θ     For better understanding .docxMeasurement of the angle θ     For better understanding .docx
Measurement of the angle θ For better understanding .docx
 
Meaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docx
Meaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docxMeaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docx
Meaning-Making Forum 2 (Week 5)Meaning-Making Forums 1-4 are thi.docx
 
MBA6231 - 1.1 - project charter.docxProject Charter Pr.docx
MBA6231 - 1.1 - project charter.docxProject Charter Pr.docxMBA6231 - 1.1 - project charter.docxProject Charter Pr.docx
MBA6231 - 1.1 - project charter.docxProject Charter Pr.docx
 
Medication Errors Led to Disastrous Outcomes1. Search th.docx
Medication Errors Led to Disastrous Outcomes1. Search th.docxMedication Errors Led to Disastrous Outcomes1. Search th.docx
Medication Errors Led to Disastrous Outcomes1. Search th.docx
 
Meet, call, Skype or Zoom with a retired athlete and interview himh.docx
Meet, call, Skype or Zoom with a retired athlete and interview himh.docxMeet, call, Skype or Zoom with a retired athlete and interview himh.docx
Meet, call, Skype or Zoom with a retired athlete and interview himh.docx
 
Medication Administration Make a list of the most common med.docx
Medication Administration Make a list of the most common med.docxMedication Administration Make a list of the most common med.docx
Medication Administration Make a list of the most common med.docx
 
media portfolio”about chapter 1 to 15 from the book  Ci.docx
media portfolio”about chapter 1 to 15 from the book  Ci.docxmedia portfolio”about chapter 1 to 15 from the book  Ci.docx
media portfolio”about chapter 1 to 15 from the book  Ci.docx
 
MediationNameAMUDate.docx
MediationNameAMUDate.docxMediationNameAMUDate.docx
MediationNameAMUDate.docx
 
Media coverage influences the publics perception of the crimina.docx
Media coverage influences the publics perception of the crimina.docxMedia coverage influences the publics perception of the crimina.docx
Media coverage influences the publics perception of the crimina.docx
 
Media Content AnalysisPurpose Evaluate the quality and value of.docx
Media Content AnalysisPurpose Evaluate the quality and value of.docxMedia Content AnalysisPurpose Evaluate the quality and value of.docx
Media Content AnalysisPurpose Evaluate the quality and value of.docx
 
Mayan gods and goddesses are very much a part of this text.  Their i.docx
Mayan gods and goddesses are very much a part of this text.  Their i.docxMayan gods and goddesses are very much a part of this text.  Their i.docx
Mayan gods and goddesses are very much a part of this text.  Their i.docx
 
Media and SocietyIn 1,100 words, complete the followingAn.docx
Media and SocietyIn 1,100 words, complete the followingAn.docxMedia and SocietyIn 1,100 words, complete the followingAn.docx
Media and SocietyIn 1,100 words, complete the followingAn.docx
 
MBA 5110 – Business Organization and ManagementMidterm ExamAns.docx
MBA 5110 – Business Organization and ManagementMidterm ExamAns.docxMBA 5110 – Business Organization and ManagementMidterm ExamAns.docx
MBA 5110 – Business Organization and ManagementMidterm ExamAns.docx
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Project 4 (P4) Distance Vector Routing (DV)Instructor Dr.docx

  • 1. Project 4 (P4): Distance Vector Routing (DV) Instructor: Dr. Shengquan Wang Due Time: 6PM, 12/05/2015 The purpose of this project is to learn how distributed dynamic routing protocols like distance vector accomplish routing in practice. In this assignment, you will be asked to build a distance vector routing protocol that implements the distributed Bellman-Ford algorithm. 1 Design Data Each router needs to maintain three different data: • All link cost information to all active neighbors. • Its own distance vector. It shall display as follows: A B 7 1 B A C 10 2 B There are two entries in this distance vector. For each entry, the five columns are source router ID, destination router ID, distance, number of hops, the router ID for the next router in routing, respectively. • Its neighboring routers’ distance vectors.
  • 2. Events We will use the running processes to simulate routers. Processes can be run on different hosts. Each router is assigned with a unique router ID (English letter). Two processes communicate with another process through its UDP socket: (1) Upon receiving any distance vector entries from any neighboring router or detecting a new neighbor or the link cost change to a neighbor, the router will use the Bellman-Ford Equation to update its distance vector; (2) Then for any change in its distance vector, the router will broadcast the changed distance vector entries to its neighboring routers through a UDP socket and print out the changed entries to the console. UDP sockets in all routers should alway be listening (for potential messages from some neighbors). 1 Waleed Typewriter distributed Bellman-Ford algorithm Waleed Highlight Waleed Highlight Waleed Highlight
  • 3. Waleed Highlight Commands Here is what are expected with the multiple running routers. We use the same program for all routers. Name it as dvrouter. For example with a Java program, run Router A in the shell as prompt> java dvrouter A 1000 where 1000 is the assigned UDP port number. Once a router A starts, it shall display as shown in the following example: Router A (localhost, 1000) is active. Waiting for input and output ... where (localhost, 1000) is the pair of the hostname and the port number. The following input commands will be supported in the console for a router (e.g., router A): add It adds a new link to the router. For example add B 2000 1 It will add the link between A and B (with hostname “localhost” and port number 2000) with a link cost 1 to Router A. If the router B is alive, a message will be sent to B and it will add the link between B and A with a link cost 1 to Router B. On Router A, it will display “The link A-B is set!” message; on Router B, it will display “The link B-A is set!” message. Keep in mind the link cost is bidirectionally
  • 4. symmetric. change It changes an existing link to the router. For example change B 7 It will change the link between A and B with a link cost 7 to Router A. If the router B is alive, a message will be sent to B and it will change the link cost between B and A with a link cost 5 in Router B. On Router A, it will display “The cost of link A-B is changed!” message; on Router B, it will display “The cost of link B-A is changed!” message. Keep in mind the link cost is bidirectionally symmetric. display It display the distance vector of the router. Input display then we have the output as The distance vector for Router A is: A B 7 1 B A C 6 3 B 2 Testing Start 4 processes (as 4 routers) in 4 different terminals (they will be run on the same host). Each router is given a router ID. Its running process is associated with its host name and the port number. We assume they are Router A: (localhost, 1000)
  • 5. Router B: (localhost, 2000) Router C: (localhost, 3000) Router D: (localhost, 4000) 2 Make sure they are active before adding any links. This 4 routers will form the following network topology: 1 3 A ---- B --- D / 6 / 2 C We assume all links are symmetric in terms of link cost in both directions. Perform the following actions: • Add all links to the routers using the command add; • Display the distance vector for each router using the command display. Once the system is stabilized, B detects a link cost of BA from 1 to 60. Perform the following actions:
  • 6. • Change the link cost of B-A to 60 using the command change at Router B; • Print out the number of messages for all nodes before the system is stabilized again; You are required to print out to the console on any message received by each router and any change of DV at each router. Next, apply Poison Reverse technique in the design of the DV. Re-perform the above actions again and show the difference after applying the Poison Reverse technique. 3 Implementation Tips Run each router as a separate process. In each router, you can start multiple threads to handle different communications: • One thread for receiving input from the console; • One thread per neighbor commutation. 4 Bonus Each router will periodically broadcast advertisement (its distance vector) to its neighbor (e.g., every 10s). The period will restart upon each broadcasting. If a router doesn’t hear one of its neighbor’s advertisement within a timeout interval (e.g., 30s), it will remove this neighbor and update its distance vector and broadcast the changed entries to its neighboring routers. You need to implement another function:
  • 7. kill It kills the running router. Input kill then we have the output as Router A is about to be terminated... In your testing, kill Router D in the end and then display the DV at Router A. 3 Waleed Highlight 5 Submission You are going to report the following things: (a) Describe in details how you implemented the DV. (b) Write a detailed report with the screenshots of the testing results for the two scenarios: without Poison Reverse and with Poison Reverse. Each screenshot should include your username and the current time, which show that you did it by yourself. (c) Specify the contribution made by each member if you work as a group. The report should be written in a “.docx”, “.doc”, or “.pdf” format. All source codes should be well formatted with good comments. Submit the report and the
  • 8. source code files to Project P4 on Canvas separately. Any .zip or .tar format is not permitted. 4 Farrow Co. expects to sell 400,000 units of its product in the next period with the following results. Sales (400,000 units) $ 6,000,000 Costs and expenses Direct materials 800,000 Direct labor 1,600,000 Overhead
  • 9. 400,000 Selling expenses 600,000 Administrative expenses 1,028,000 Total costs and expenses 4,428,000 Net income $ 1,572,000
  • 10. The company has an opportunity to sell 40,000 additional units at $13 per unit. The additional sales would not affect its current expected sales. Direct materials and labor costs per unit would be the same for the additional units as they are for the regular units. However, the additional volume would create the following incremental costs: (1) total overhead would increase by 16% and (2) administrative expenses would increase by $172,000. Calculate the combined total net income if the company accepts the offer to sell additional units at the reduced price of $13 per unit. Normal Volume Additional Volume Combined Total Cost & Expense
  • 11. Total Cost & Expense 0 0 0 Incremental income (loss) from new business Should the company accept or reject the offer? The company should accept the offer The company should reject the offer