Protocol Between Service Broker and Service Provider - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 


Program 1: This program will be the service broker application using a well known port (a port that both client applications as well as service providers know to request services from the broker. The broker will interact with both service providers as well as clients.
 
As far as requests from service providers, the broker should be able to receive registration and unregistration requests. The registration requests from service providers, should be handled by entering (and maintaining) a table of IP address/port #/Service name (e.g., echo, time, etc.) for each registered service provider (server). The unregistration requests from service providers which are shuting down and will not be able to provide service to clients anymore should be handled by removing the server from the table. It is up to each team to decide if you want to use UDP or TCP to provide the brokerage service.
 
As far as requests from clients, the broker should be able to receive query request from clients wanting to know where a particular server is located. The broker should look up the service that the client is inquiring about (e.g., time, echo, etc.) and return the information of a server is providing that service which has previously registered itself with the broker, i.e., IP address and port number being used by the server to provide the inquired for service.
 
The broker program should print out enough information to the screen to verify that it is working correctly. i.e., after every request, it should print IP Address and Port Number of sender, the request type, the reply sent and the current state of the table after the request was processed.
 
Program 2 – Server A: Case Normalizer Server. This server should register with the broker upon start and then proceed to accept requests from clients and service them. You will also need to have a graceful way for the server to shut down after unregistering with the broker. This server could be iterative or concurrent (preferably concurrent so you can service multiple clients at the same time). This server will receive from client(s)requests to change a line of text and either make it ALL upper case or all lower case depending on what the client wants.
 
 
 
Program 3 – Server B: Fortune Cookie server. Your server should also register its IP address and port number with the broker service and then proceed to accept requests from clients and service them. You will also need to have a graceful way for the server to shut down after unregistering with the broker. The server, upon accepting a connection from a client, it should receive requests from clients for a “fortune cookie”, it should draw a fortune cookie at random from a predefined set of fortune cookies (or get one from an internet based fortune cookie provider if you find one) and return it to the client. Client(s) should be able to request another one, until the client decides that no more fortune cookies are needed (either send a “BYE” message to the server or close the connection).
 
Any of the servers could be terminated and started in another machine, new clients should be able to find the new server transparently.
 
Both servers should print information to the screen after each request to indicate which client is requesting what and what the response is.
 
Program 5 - Client: The client should: 
Interact with the user (you) and asks what the user wants to do? a) interact with the Case Normalizer Server b) interact with the fortune cookie server or c) quit. Before it interacts with the requested server, the client should inquire from the service broker what is the IP address and port number where the corresponding server can be found.
For a) the client should ask the user for a line of text and whether it should be turned to Upper Case or Lower Case, send the request to the appropriate server, receive the reply and display it on the screen. Then go back to ask again what the user wants to do.
For b) the client should ask the user how many (n) fortune cookies he/she wants and then make n requests for fortune cookies and display each cookie received in the screen. Repeat until the user chooses to stop, in which case it should close the connection with the server and go back to ask the user which server to interact with or quit.
 
Client should be in a loop asking the user a choice a), b), or c) until the user chooses c) and decides to quit.
 
PART A:
Turn in a word/spreadsheet document describing the protocols you will be implementing between your applications:
1. Protocol between Service Broker and Service Provider
2. Protocol between Service Requester and Service Broker
3. Protocols between Service Requester and Service Provider(s)
 
 



This IT Assignment has been solved by our IT Experts at My Uni Papers. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
    
Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.