Find Jobs
Hire Freelancers

C++ Program: Wireless System - Homework Help

$30-100 USD

Completed
Posted over 15 years ago

$30-100 USD

Paid on delivery
I need to have five entities created in C++ for a wireless routing system: a Mobile Node, a Home Agent, 2 Foreign Agents, and a Data Source. The Foreign Agents and Mobile Node processes will be run on the same physical machine. You will ultimately be writing 4 programs (all very small). The Data Source opens a UDP port, sets the destination to the Home Agent IP/Mobile Node port, and sends a packet once per second, with increasing sequence numbers. The source IP/port do not matter. The Home Agent opens a UDP port with source bound to Home Agent IP/Mobile Node port and sets destination to Foreign Agent IP/Foreign Agent port. If it receives a packet on this port, it is either a registration request from the Mobile Node or a data packet from the Data Source. If it is a registration packet, the Home Agent changes the destination to Foreign Agent IP/ new Foreign Agent port. If it is a data packet, it sends the packet to the current care-of address. The 2 Foreign Agents open a UDP port, bind the source to Foreign Agent IP/Foreign Agent port, and set the destination to Foreign Agent IP/Mobile Node port. (Remember that Foreign Agent IP = Mobile Node IP.) Each time they receive a packet, they forward it on to the mobile. The Mobile Node opens a UDP port with source bound to Foreign Agent IP/Mobile Node port and destination set to Home Agent IP/Mobile Node port. Every 5 seconds, it sends a registration request to the Home Agent with the alternate Foreign Agent's care-of address in the packet. (We assume that the Mobile Node knows the care-of addresses for the 2 Foreign Agents.) When it receives a packet, it must make sure that it has come from the right Foreign Agent (by comparing the source port to the currently registered Foreign Agent). When the Mobile Node has run for 100 seconds it should exit. Upon acceptance of the bid, I will post two example programs which send and receive UDP packets respectively. If you choose to, you can use these as a starting point and modify them for the requirements specified above.
Project ID: 3411995

About the project

8 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$59.50 USD in 4 days
4.8 (93 reviews)
6.5
6.5
8 freelancers are bidding on average $331 USD for this job
User Avatar
See private message.
$423.30 USD in 4 days
4.9 (114 reviews)
6.2
6.2
User Avatar
See private message.
$85 USD in 4 days
4.5 (19 reviews)
5.6
5.6
User Avatar
See private message.
$1,700 USD in 4 days
4.9 (13 reviews)
4.1
4.1
User Avatar
See private message.
$106.25 USD in 4 days
5.0 (16 reviews)
3.8
3.8
User Avatar
See private message.
$76.50 USD in 4 days
3.9 (11 reviews)
3.9
3.9
User Avatar
See private message.
$30 USD in 4 days
5.0 (2 reviews)
1.1
1.1
User Avatar
See private message.
$170 USD in 4 days
5.0 (1 review)
0.8
0.8

About the client

Flag of UNITED STATES
United States
3.8
3
Member since Jul 1, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.