COS70007 Data Communication: File Transfer Program

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

COS70007 Data Communication

Questions:

Aim
To design and develop a file transfer program utilising UDP socket-based communications between two networked PCs. The program should implement the RDT Stop and Wait (Idle RQ) protocol for flow control and a time out/ repeat sending, for lost or delayed transmissions to allow a file to be transferred from a client to a server.

Basic Requirements
1. The text file transfer program written in Stage 1 is to be extended to include an RDT Stop and Wait error scheme. To implement the RDT Stop and Wait protocol, the file must be transmitted in frames of data with the necessary fields for frame de-limiters, frame number and a frame check sequence. The appropriate control characters according to ASCII should be used for error control and messaging (ACK & NAK), frame delimiters (STX, ETX) and link management functions.

2. The program will build on the program developed in Stage 1. The client computer will ask the server to send a copy of a file to the client. The name of the file is to be sent to the server and the server asked if it has a copy. If it has, then the transfer starts, if not the server responds that it does not have the file and asked for another file name or to terminate the connection. The file is sent by the server in packets using RDT Stop and Wait protocol. The file is to be of only ASCII characters (no binary files). The version of Comms.java will delete the transmission of strings for 0% of strings sent at present. This rate of lost is to be altered to 20% once a timeout system has been implemented. That is if there is a delay in an ACK coming back, due to a lost packet (string), then the packet must be retransmitted. This retransmission must be shown on the server’s screen.

In RDT Stop and Wait if the server receives an ACK character, from the client it will transmit the next block. If it receives a NAK character from the server indicating the previous block has an error and another copy is needed. So if either a time out or an error in a block occurs then the block must be retransmitted. In part 1 you noted that the characters could be changed to To detect these errors then you will need to implement an error checking system. This should take the form of a total of the character’s ASCII numbers sent in the block (mod 128). The major change here is that the file contents are transmitted a line of characters at a time in frames.

3. The server will send the first line of characters of the file in a frame. To assist the transfer there are functions called writeString() and readString(). You are required to use these functions in the transfer of these frames. The function writeString() has a built in failure rate of 20%. When client computer receives a complete frame, it should first display the received frame and then check the frame for errors by looking at the FCS (frame check sequence). The FCS should be calculated using 1’s compliment binary addition of each character in each frame. It is an 8-bit (1-byte) checksum.
4. If there are no errors then an acknowledgment character (ACK) will be returned to the server computer and the client computer will store the frame in the file that has just been created. Upon receipt of the ACK, the server computer will then transmit the next frame. ACKs are sent in frames.
5. Should an error be detected, i.e. the received FCS byte does not equal the expected FCS byte, the client computer would return a NAK to the server. If the server receives a NAK, it will re-transmit the frame.
6. As some frames will fail to be sent (20% will fail) then the sender will not receive an acknowledgement back for it. In this case a timeout function at the sender’s end should detect the late arrival of the ACK and resend the frame.
7. This process of sending, checking and storing frames should continue until the complete file has been transmitted and received without error. Upon receipt of the final acknowledgement, the client computer should transmit an EOT (eg.ETX) character to the client to terminate the connection.
8. The program should implement both the timeout and error functionality as required by the RDT Stop and Wait protocol. The timer should run it it’s own thread to ensure accurate timing.
9. Note that since the ACKs are being sent using writeString() they too can be lost. This may lead to duplicate copies of a frame being sent. Both ACKs and Frames will need to be numbered with a “0” or a “1” alternatively to detect the duplicate transmissions.

COS70007 Data Communication

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

19 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com is here to reduce homework and coursework pressure of students from Australia, UK and US. Growing wisdom with improved academic assignment help is our prime concern. The brand image of MyAssignmenthelp.com lies in the precise and conceptual answers to questions crafted by our outstanding pool of 3000+ writers. Custom essay help, online assignment help and dissertation writing services along with homework and coursework help is our extended range of offerings under one roof. You can trust us with deadlines; we have years of record to deliver the jobs way before the stipulated time. Seek us even in the middle of night; we are all set to serve your queries 24×7. We value the worth of money and pledge to return more than what is invested by our clients.

More COS70007 COS70007 Data Communication: Questions & Answers

Management

Write a briefing paper (report) for your manager of 2800-3000 words which meets the following objectives:1.    Sets out what you consider to be the most important changes that would need to be made to the HR operating practices at the three Saltbeach Nights hotels were your company to …

View Answer

IFB104 Build IT Systems

Task:
Task Description
 
Here you will develop a complete computer program whichdraws a visualisation of given data sets. The data sets are generated by a template program which you must extend to complete your solution. To do so you will need to design appropriate symbols for the visualis …

View Answer

DATA7703 Machine Learning For Data Scientists

Task:
You are encouraged to keep your solutions concise — these questions require thoughts, not long answers.1. We consider linear combinations of threshold classifiers for classifying real numbers in this question. Specifically, a threshold classifier for classifying real numbers is one of the f …

View Answer

UZWS4V40M Dissertation

Question:
A Deep Learning Framework for Spatiotemporal Ultrasound Localization Microscopy
Introduction
Ultrasound Localization Microscopy (ULM) bypasses the intrinsic spatial resolution of conventional contrast-enhanced ultrasound imaging via the localization of sparse microbubble (MB) popula …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Browne Monroe

I am an MA in Linguistics, and I have completed my post-graduation from the University of Leeds.

550 – Completed Orders

Hire Me

Bond Horn

I got my PhD in Physics from Cardiff University, UK.

350 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

38983 Genuine Reviews With a Rating of 4.9/5.

Assignment

Thesis: 8 Pages, Deadline:
2 days

I appreciate the hard work in this. I got a good grade and will be using this again. Thank you!

User ID: 8***19 Norfolk, United States

Statistics

Assignment: 0 Pages, Deadline:
2 days

Great work and fantastic job on completing the assignment. You did a wonderful job and I am thankful.

User ID: 4***64 Norfolk, United States

Psychology

Assignment: 2 Pages, Deadline:
16 days

thanks to reaching out fast. It’s well written and followed every details and instructions. thanks.

User ID: 6***55 Norfolk, Canada

Physics

Course Work: 4 Pages, Deadline:
1 day

Excellent work! Because of this site and the professionals who do the work, I received a 100 on the assignment

User ID: 8***20 Norfolk, United States

Physics

Course Work: 4 Pages, Deadline:
1 day

Thank you so much! The work you did helped me to receive a 100 on the assignment.

User ID: 8***20 Norfolk, United States

Assignment

Thesis: 2 Pages, Deadline:
7 days

Thanks to your efforts and well written and researched.Thanks to reaching out before the due time.

User ID: 6***55 Norfolk, Canada

Management

Assignment: 8 Pages, Deadline:
11 days

thank you u guys. i really appreciate your effort, i always happy when purchase with u guys

User ID: 6***24 Norfolk, Australia

Tax

Home Work: 11 Pages, Deadline:
7 days

thank you u guys, even i dont have high marks but i appreciate your efforts . thank you so much

User ID: 6***24 Norfolk, Australia

Audit

Assignment: 2 Pages, Deadline:
3 days

thanks expert, it really a good efforts. Im always happy to let u guys done my assignment/ report

User ID: 6***24 Norfolk, Australia

It Write Up

Assignment: 20 Pages, Deadline:
2 days

excellent, so helpful .Professional writing and good services. all the content is relevant and also provided creative new anaylsis .

User ID: 2***58 Hunters Hill, Australia

Management

Home Work: 3 Pages, Deadline:
2 days

Great job on the Assignment! I will continue to use My Assignment Help in the future.

User ID: 6***97 Hunters Hill, United States

Healthcare

Assignment: 3 Pages, Deadline:
16 days

Excellent paper professor was very pleased and so was I. Nice work on my paper. Keep them coming

User ID: 7***99 Hunters Hill, United States

Statistics

Essay: 3.2 Pages, Deadline:
15 days

Glad I pass the paper. It was of great help. The follow up was excellent on their end. Cheers

User ID: 8***71 Hunters Hill, Singapore

Assignment

Home Work: 3 Pages, Deadline:
4 hours

everything was completed in a timely manner submitted on time s promised i have enjoyed using the services of my assignments

User ID: 7***73 Hunters Hill, United States

Audit

Home Work: 1 Page, Deadline:
2 days

Thanks expert, i got 12/15 for this quiz. I really appreciate for it. Thank you so much

User ID: 6***24 Hunters Hill, Australia

Management

Home Work: 6 Pages, Deadline:
15 hours

I was able to meet deadline because i relied on myassignmenthelp.com, i had the best mark among students who submitted their work for making

User ID: 2***85 Hunters Hill, Ghana

Management

Home Work: 6 Pages, Deadline:
15 hours

I was so excited when I was announced to be the best among students who submitted their work for making

User ID: 2***85 Hunters Hill, Ghana

Marketing

Assignment: 6 Pages, Deadline:
4 days

i got passed in this project. thank you very much for your help. im happy i didnt need to explain much about assgnment brief.

User ID: 8***40 West drayton, Great Britain

Economics

Programming: 1 Page, Deadline:
7 days

Awesome work. you guys helped me on-time. which helped me a lot and i got very good grade on my course and i am really happy.Thanks for your help

User ID: 2***33 Norfolk, United States

Healthcare

Assignment: 3 Pages, Deadline:
3 days

I need the references beside the article not numbered. please kindly review. THANKS.

User ID: 3***25 Norfolk, United States

Assignment

Thesis: 8 Pages, Deadline:
2 days

I appreciate the hard work in this. I got a good grade and will be using this again. Thank you!

User ID: 8***19 Norfolk, United States

Statistics

Assignment: 0 Pages, Deadline:
2 days

Great work and fantastic job on completing the assignment. You did a wonderful job and I am thankful.

User ID: 4***64 Norfolk, United States

Psychology

Assignment: 2 Pages, Deadline:
16 days

thanks to reaching out fast. It’s well written and followed every details and instructions. thanks.

User ID: 6***55 Norfolk, Canada

Physics

Course Work: 4 Pages, Deadline:
1 day

Excellent work! Because of this site and the professionals who do the work, I received a 100 on the assignment

User ID: 8***20 Norfolk, United States

Physics

Course Work: 4 Pages, Deadline:
1 day

Thank you so much! The work you did helped me to receive a 100 on the assignment.

User ID: 8***20 Norfolk, United States

Assignment

Thesis: 2 Pages, Deadline:
7 days

Thanks to your efforts and well written and researched.Thanks to reaching out before the due time.

User ID: 6***55 Norfolk, Canada

Management

Assignment: 8 Pages, Deadline:
11 days

thank you u guys. i really appreciate your effort, i always happy when purchase with u guys

User ID: 6***24 Norfolk, Australia

Tax

Home Work: 11 Pages, Deadline:
7 days

thank you u guys, even i dont have high marks but i appreciate your efforts . thank you so much

User ID: 6***24 Norfolk, Australia

Audit

Assignment: 2 Pages, Deadline:
3 days

thanks expert, it really a good efforts. Im always happy to let u guys done my assignment/ report

User ID: 6***24 Norfolk, Australia

It Write Up

Assignment: 20 Pages, Deadline:
2 days

excellent, so helpful .Professional writing and good services. all the content is relevant and also provided creative new anaylsis .

User ID: 2***58 Hunters Hill, Australia

Management

Home Work: 3 Pages, Deadline:
2 days

Great job on the Assignment! I will continue to use My Assignment Help in the future.

User ID: 6***97 Hunters Hill, United States

Healthcare

Assignment: 3 Pages, Deadline:
16 days

Excellent paper professor was very pleased and so was I. Nice work on my paper. Keep them coming

User ID: 7***99 Hunters Hill, United States

Statistics

Essay: 3.2 Pages, Deadline:
15 days

Glad I pass the paper. It was of great help. The follow up was excellent on their end. Cheers

User ID: 8***71 Hunters Hill, Singapore

Assignment

Home Work: 3 Pages, Deadline:
4 hours

everything was completed in a timely manner submitted on time s promised i have enjoyed using the services of my assignments

User ID: 7***73 Hunters Hill, United States

Audit

Home Work: 1 Page, Deadline:
2 days

Thanks expert, i got 12/15 for this quiz. I really appreciate for it. Thank you so much

User ID: 6***24 Hunters Hill, Australia

Management

Home Work: 6 Pages, Deadline:
15 hours

I was able to meet deadline because i relied on myassignmenthelp.com, i had the best mark among students who submitted their work for making

User ID: 2***85 Hunters Hill, Ghana

Management

Home Work: 6 Pages, Deadline:
15 hours

I was so excited when I was announced to be the best among students who submitted their work for making

User ID: 2***85 Hunters Hill, Ghana

Marketing

Assignment: 6 Pages, Deadline:
4 days

i got passed in this project. thank you very much for your help. im happy i didnt need to explain much about assgnment brief.

User ID: 8***40 West drayton, Great Britain

Economics

Programming: 1 Page, Deadline:
7 days

Awesome work. you guys helped me on-time. which helped me a lot and i got very good grade on my course and i am really happy.Thanks for your help

User ID: 2***33 Norfolk, United States

Healthcare

Assignment: 3 Pages, Deadline:
3 days

I need the references beside the article not numbered. please kindly review. THANKS.

User ID: 3***25 Norfolk, United States

Have any Query?

The post COS70007 Data Communication: File Transfer Program appeared first on My Blog.

✍️ Get Writing Help