Udp programming project journaling application

Assignment Help Computer Networking
Reference no: EM13808157

UDP Programming Project Journaling Application

We have been looking at using Java UDP Sockets to build networked applications. The example provided with this week's lecture demonstrates some of the basic ideas for setting up a networked application using UDP in Java. This week's programming assignment is to design and build a journal application using UDP.

The journaling application is to be designed so that a client can access their journal entries from anywhere. They can store any text information in their journal. This journaling system should be set up to support the following operations:

  1. The client's user name is used by the server to locate journal entries made by that client.
  2. When the client starts the journal application, he or she must identify themselves with their user name and indicate which journal entry they want to work on. Journal entries are identified by the month, day, and year. There is only one journal entry per month-day-year per client.
  3. A client can access the journal entry from any date. For example, a client may create a new journal entry in the morning. Later in the day, the client may continue working on the journal entry for that day. This means, the server retrieves the journal entry and sends it to the client where is it displayed in a text area. The client can change the entry or add to it. When finished, the client can once again save the entry, which sends the updated text to the server for storage.
  4. From the above operations, the journal server must support reading a journal entry for a specific client user name and month-day-year. It must also support saving a journal entry for a specific client user name and month-day-year.

The primary requirement for this lab is that you must use UDP for communications between the client and the server. All client journal entries must be saved to files. I am providing you with a Java class called: the JournalManager, which is designed to read and write journal entries to and from files. You should design your journal server to make use of this JournalManager class.

You should spend some time thinking about how to design this application, with particular focus on the application protocol you will need to develop to support this application. Refer to the Application Protocol Design document provided with this week's material. What can a client request? What replies can the server generate? What errors could occur that a client needs to know about? What information needs to be sent from the client to the server; from the server to the client? What is the maximum message size your client and server will be able to exchange? What is the structure of each message exchanged? How are you going to implement a structured message with a Datagram Packet? (Hint: I would suggest looking at the StringTokenizer class that is designed to break a String into a set of substrings.) What about synchronization? When will the client wait and for how long? When will the server wait and for how long?

Remember, at this point, we are still basically working with a single threaded server, so while the server is servicing one client request, all other client requests are waiting.

For the first part of the lab, I want you to capture the design of your message exchange in a written protocol specification. Be very specific about the structure of messages that will be exchanged. Define what values you are going to use as part of your message exchange. Fully define the message exchange scenarios. For instance, if the client sends message A, the server can respond with message B or C depending on how the server handles A. Include any possible error responses that could come back from the server. The protocol write-up should take no more than two pages. Include an event diagram that illustrates the message exchanges and the synchronization between clients and the server.

Once you have defined your protocol, you can proceed to implementing your program. Demo your program to the professor, get a sign-off, and turn in screen shots of the client and server at work, and print-outs of the source code for both the client and server. Also turn in your written protocol specification.

Reference no: EM13808157

Questions Cloud

Success of any business : A Quality Assurance (QA) Program is essential to the success of any business.In establishing your grocery delivery business, what are some of the Quality Control (QC) processes that you envision employing? Why? Provide examples of potential metric..
Cigarettes cause the pulse rate to increase : Describe the error in the conclusion. Given: There is a linear correlation between the number of cigarettes smoked and the pulse rate. As the number of cigarettes increases the pulse rate increases. Conclusion: Cigarettes cause the pulse rate to incr..
Important role in business success : You begin the meeting, going around the room and asking each staff member for his or her understanding of what logistics means, and how it can play an increasingly important role in business success.
Evaluation and control metrics : Evaluation and control metrics and methodology to measure performance - Contingency planning
Udp programming project journaling application : UDP Programming Project Journaling Application- We have been looking at using Java UDP Sockets to build networked applications. The example provided with this week's lecture demonstrates some of the basic ideas for setting up a networked applicatio..
The optimal order quantity based problems : What expected profit or loss will Jackson earn if it follows the production policy found in part ?
Expected value of the market research information : What is Gorman's optimal decision strategy? What is the expected value of the market research information? What is the efficiency of the information?
Supreme court justices must be approved by the senate : As it stands now, Supreme Court Justices must be approved by the Senate, but not the entire Congress. Why do you think the Framers of the Constitution excluded the entire Congress from this process
Compare and contrast two models of conceptualizing addiction : Compare and contrast two models of conceptualizing addiction

Reviews

Write a Review

Computer Networking Questions & Answers

  When collision has occurred then how does a host on

when collision has occurred then how does a host on ethernet lan know when to transmit more details explanation need?1.

  Does using bgp make it easier to change the isp provider

Given the choice of protocols (RIP, RIPv2, EIRGP, OSPF and IS-IS) in a mid-size network, which protocol would be most appropriate for the size of this network and why? Does using BGP make it easier to change the ISP provider? Explain why or why not

  Compare compilers and interpreters with respect to memory

Compare compilers and interpreters with respect to memory requirements for program execution and CPU requirements for program execution

  Goals of network management

One of the main goals of network management is to make operations more efficient and operators more

  What are the major business objectives and processes

What are the major business objectives and processes (operations) that the hotel company carries out and list the information systems that are used to support their portal and describe how they are related to the overall business objectives and pro..

  Compute the result of an add immediate 150 instruction

Compute the result of an ADD IMMEDIATE 150 instruction and Compute the result of an ADD DIRECT 150 instruction

  Transmission of radio frequency signals in a wireless lan

Discuss some of the issues associated with the transmission of radio frequency signals in a Wireless LAN

  Write research paper on intranets and extranets

Write research paper on Intranets and Extranets

  What network hardware needed for networking project

You are to network a ten story building capable of supporting 100 computers on each floor. What network hardware will be needed to accomplish the networking project?

  Discuss the remote connectivity needs for the system

Discuss the remote connectivity needs for the system. Identify the applications and hardware necessary to address the remote connectivity requirements

  Company-s interpretation of requirement of system

You have taken job with a software user who has contracted previous employer to develop a system for them. You discover that your company's interpretation of requirements is different from interpretation.

  Discuss the tools that you want to put in place immediately

You've just taken a position as a network administrator for an 80-person company, and you are the only network administrator there. On the surface, it looks like everything has been working fine in the three months since the previous network admin..

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