Create a c-based client-server architecture using udp socket

Assignment Help Computer Networking
Reference no: EM131945561

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 <port_number>
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 <port_number>

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.

Reference no: EM131945561

Questions Cloud

Calculate the variable overhead efficiency variance : Actual machine hours used last month were 1,550 and the actual variable MOH rate last month was $17.00. Calculate the variable overhead efficiency variance
Damage of sympathetic nerves : A patient has been diagnosed with Horner's syndrome, a disorder that is due to damage of sympathetic nerves
What would you expect the levels of c-peptide : What would you expect the levels of C-peptide to be in an individual with Type 1 diabetes, and why?
Why is the concept or term petro-yuan : Why is the concept or term “Petro-Yuan“ so Compare and contrast new debt offerings to new offerings of equity in the form of stock.
Create a c-based client-server architecture using udp socket : Create a C-based client-server architecture using a UDP socket. The DHCP server should be able to receive DHCP messages from multiple clients.
What is the maximum price you would pay for bond : Assuming that the security characteristics of the bond are satisfactory, what is the maximum price you would pay for this bond?
How ethnocentrism and racism may influence the case : Identify a specific peer-reviewed article and explain how it could inform understanding of the problem/population, development of goals, or intervention.
How your service company applies the services marketing mix : Evaluate how well your Service Company applies each relevant ‘P' of the services marketing mix. Provide evidence and apply the appropriate weight
Why is abortion considered a moral issue : What is the most just type of society? What would it be like?Why is abortion considered a moral issue?

Reviews

Write a Review

Computer Networking Questions & Answers

  Networking and types of networking

This assignment explains the networking features, different kinds of networks and also how they are arranged.

  National and Global economic environment and ICICI Bank

While working in an economy, it has a separate identity but cannot operate insolently.

  Ssh or openssh server services

Write about SSH or OpenSSH server services discussion questions

  Network simulation

Network simulation on Hierarchical Network Rerouting against wormhole attacks

  Small internet works

Prepare a network simulation

  Solidify the concepts of client/server computing

One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.

  Identify the various costs associated with the deployment

Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.

  Describe how the modern view of customer service

Describe how the greater reach of telecommunication networks today affects the security of resources which an organisation provides for its employees and customers.

  Technology in improving the relationship building process

Discuss the role of Technology in improving the relationship building process Do you think that the setting of a PR department may be helpful for the ISP provider? Why?

  Remote access networks and vpns

safekeeping posture of enterprise (venture) wired and wireless LANs (WLANs), steps listed in OWASP, Securing User Services, IPV4 ip address, IPV6 address format, V4 address, VPN, Deploying Voice over IP, Remote Management of Applications and Ser..

  Dns

problems of IPV, DNS server software, TCP SYN attack, Ping of Death, Land attack, Teardrop attack, Smurf attack, Fraggle attack

  Outline the difference between an intranet and an extranet

Outline the difference between an intranet and an extranet A programmer is trying to produce an applet with the display shown in Figure 1 below such that whenever one of the checkboxes is selected the label changes to indicate correctly what has..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd