Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Network & Security Expert

Assignment: Introduction to Computer Networks

Objective:

Simulate the working of DHCP server using a client-server architecture.

Requirements:

1. Create a C-based client-server architecture using a UDP socket

2. The DHCP server should be able to receive DHCP messages from multiple clients

3. The server should run on cse01.cse.unt.edu machine and the client can run on any cse machines

4. Simulate the client requesting an IP address and the DHCP server offering one available IP address

5. The client should receive the IP address and send a DHCP request for the received IP address to the server

6. The DHCP server should register that the client selected IP address is taken and should acknowledge to the client

7. The client should randomly generate the transaction ID. The lifetime (lease time) should be set to 3600 seconds

8. Simulate several clients requesting IP address from the DHCP server.

Procedure:

1. Create a C-based server that can accept data from multiple clients using UDP sockets

2. Make sure the server runs on cse01.cse.unt.edu and the format to start the server is as follows.

dhcp_server
gateway:
subnet_mask:

where dhcp is the UDP server executable and port_number is the port number on which the UDP server can accept data. The gateway is the IP address of the gateway or the router. The subnet mask indicates the subnet part and the host part of the IP address. For example: A subnet mask of 255.255.254.0 tells that the higher 23 bits of the host's IP address is the subnet part which is same for all the hosts in the subnet and the lower 9 bits is the host part which changes according to each host.

3. Create a C-based client that can communicate with the server using UDP sockets

4. The client can run on any cse machine and sends and receives messages to the server as follows

client

where client is the client executable, port_number is the port number on which the client sends messages to the DHCP server

5. The client tries to request an IP address from the DHCP server by contacting the server and sending a packet with siaddr: 129.120.151.94, yiaddr: 0.0.0.0 and a randomly generated transaction ID

6. The DHCP server responds with the IP address offer, transaction ID, and a lifetime (lease time for 3600 seconds). The offer IP address is the next available IP address from the pool of available IP addresses. For example, if the gateway is 192.168.1.1 and the subnet mask is 255.255.255.0 then the available IP addresses are between the range 192.168.1.2 - 192.168.1.254

7. The client responds with a DHCP request by choosing the offered IP address and a new transaction ID (old transaction ID + 1)

8. The DHCP server responds with an acknowledgement confirming the chosen IP address. The DHCP server registers that the IP address is taken

9. Every new client connection to the DHCP server will start a new DHCP server transaction and an offer. Test for new client requesting IP address

10. When the simulation is in progress, do not close the server or clients and if the DHCP server is killed all the IP allocations are lost

11. Print all the communication between the DHCP server and the client on the terminal console

12. A structure can be used to store the IP addresses, transaction ID, and the lifetime as shown below. The structure is then used for all the communications

13. An example DHCP transaction is shown below in Figure 1

14. Test the DHCP server and client to make sure the demonstrations are working.

Computer Network & Security, Computer Science

  • Category:- Computer Network & Security
  • Reference No.:- M92784217
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Computer Network & Security

Network requirement analysis and planpurpose of the

Network requirement analysis and plan Purpose of the assessment (with ULO Mapping) Main objective of this assignment is to enable student to understand networking devices, gather requirements for a given business case st ...

If a router is attached to a network with a base ip address

If a router is attached to a network with a base IP address of 198.10.0.0/20 and receives a packet addressed to 198.10.10.144, answer the following questions: a. What is the network mask used by the router? (in dotted de ...

Assignment -global finance inc gfi - global finance inc gfi

Assignment - GLOBAL FINANCE, INC. (GFI) - Global Finance, Inc. (GFI) is a financial company that manages thousands of accounts across Canada, the United States, and Mexico. A public company traded on the NYSE, GFI specia ...

A certain device is used to determine the sex of an unborn

A certain device is used to determine the sex of an unborn baby, but the device is not very reliable. If the fetus is truly a boy, the device says BOY with probability 0:8 (but, mistakenly, GIRL with probability 0:2). If ...

About rsa please answer the following questionsa suppose

About RSA, please answer the following questions. (a) Suppose p=11 and q=7. What is ? (n), where n=p?q? (b) If the public key e is 11, find the private key d. (c) If the ciphertext is 4, what is the plaintext? (d) For en ...

Overviewthis assignment has three major aims- to help

Overview This assignment has three major aims: - To help students gain good understanding of theoretical and practical material. - To encourage students to use content analysis summaries to prepare for tests, examination ...

Sms use short message peer to peer smpp protocolimessage

SMS use Short Message Peer to Peer (SMPP) protocol IMessage based on Apple push notifications (APNS) - binary protocol WhatsApp uses standard Extensible Messaging and Presence Protocol (XMPP) Write a pragraph explaining ...

Advanced network design assessment - human factors in

Advanced Network Design Assessment - Human factors in network analysis and design Purpose of the assessment - This assignment is designed to assess students' knowledge and skills related to the following learning outcome ...

Below are the supply and demand schedules for fresh coffee

Below are the supply and demand schedules for fresh coffee in Vancouver: Price ($/cup) Quantity Demanded  (cups/day) Quantity Supplied (cups/day) 1 440 330 2 415 360 3 390 390 4 365 420 5 340 450 6 315 480 7 290 510 a. W ...

You just signed a 30-year lease agreement for a business

You just signed a 30-year lease agreement for a business property. The monthly rent for the first year is $1,000/month, with the ?rst month's rent due today. Starting from the second year onward, the monthly rent will be ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As