EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
C++代做
您的位置: 主页 > 编程案例 > C++代做 >
代做C++/C:network代写 | 计算机网络 | 作业java | project代做 | 代做Python - C++代做
发布时间:2021-07-25 22:57:23浏览次数:
This is an individual project you cannot work as groups. Plagiarism in any form will
be treated as per Queens University Academic Integrity guidelines
Use either Java, C/C++, or Python only. java is preferred for better support.
Use the same language (the one you picked from the above list) for all codes across
the entire assignment
The source code is to be uploaded to OnQ.
Deliverables
1. Report, detailing:
a. Brief description of the code steps, operation, and considerations (if any).
b. Difficulties you faced and how you handled them (if you faced no difficulties discuss the
scalability of your  app and how you designed for it)
c. Possible improvements: If you had more time, what would you add or do differently?
2. Source file (Use comments to document/describe your code)
Description
Building on the client-server program you implemented in assignment 1, in this assignment, you will be required to implement and extend the server to DHCP and DNS servers. As you recall from your lectures that DHCP server assigns IP configuration dynamically within the subnet it is attached to.
 
The IP configuration includes: a unicast IP address and subnet mask, default gateway, and primary and secondary DNS servers IP addresses. Once accepted, the configuration is leased to the requesting machine for a predetermined duration. If not renewed, after the lease time expires, the unicast IP address returns automatically to the IP addresses pool to be assigned to other machines.
 
DNS server provide the service of mapping domain names to IP addresses. A machine submits a domain name in the request and DNS server replies with the associated IP address. The machine caches the domain name-IP mappings in a local cache for future needs. A typical home Internet connectivity is shown in figure 1. A router that acts as a DHCP server and the DNS server is located at the ISP premises.
 
In this assignment and for the sake of simplicity, you will create the DHCP and DNS servers on the same machine. Since the two servers will be on the same machine (same IP address), you will use the port number to distinguish between the two processes. Which means that client(s), DHCP sever and DNS server will run on the same machine.
 
Requirements
The sequence will be as follows:
 
Start the DHCP server (listens on port 7070) and the DNS server (listens on port 9090). Both servers must be able to handle multiple clients concurrently.
Start 4 clients (one for each website in the below table). Each client will connect to the DHCP server on socket localhost:7070 and sends a request to get the IP configurations.
Figure 1 Typical home internet connection components
The DHCP IP configurations include: IPv4 address and subnet mask (192.168.1.3/24), default gateway IP address (typically first usable IP address in the subnet: 192.168.1.1), DNS IP address (will use DNS port number 9090 instead), and lease time (24/48 hours, but you will use 60 sec) Sample configuration: {IP:192.168.1.2/24, GW: 192.168.1.1, DNS Server port#: 9090, lease: 60 }
Once retrieved the client will set his/her name to the received IP address
The DNS server will maintain Domain-name IP address V4 & V6 mappings. You can use the below mappings:
Domain Name
IP address
V4 V
http://www.sdxcentral.com 104.20.242.119^ 2606:4700:10::6814:f^
http://www.lightreading.com 104.25.195.108^ 2606:4700:20::6819:c46c^
http://www.linuxfoundation.org 23.185.0.2^ 2620:12a:800^0 ::^
http://www.cncf.io 23.185.0.3^ 2620:12a:8000::^
The client will use the DNS port number retrieved from the DHCP configuration to contact DNS server and request the IP address of one of the listed domain names in the table.
The client will form a complete packet to request the homepage of one website (after forming the packet, just print it on clients standard output). Packet should look like the one below (assuming you will send a packet to http://www.cncf.io)

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。