Computer Networks Answers

Questions: 1 204

Answers by our Experts: 1 122

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

As part of the requirements analysis, list the requirements for each component or related area presented in the exhibit. Include the following components or network areas:

• Network systems and related network protocols;

• Network systems and related network traffic;

• Network systems and related embedded systems


1.      Dynamic loading of functions  

a.      Your main program and interpret function should be compiled separately. In the file ~/.bash_profile export the environment variable LD_LIBRARY_PATH      export  LD_LIBRARY_PATH=.  

This will take effect the next time you log in.  To make this effective in your current session you would have to export the variable manually.  

 

i.        replace the default config file with your 2nd config file and send a SIGHUP signal to your program. Verify that your program is now running the implemented functions. 

ii.       Include code that loads the functions (see example pluginShell.c) and modify it so that it also loads help.


1.      Dynamic loading of functions 

b.     Your main program and interpret function should be compiled separately. In the file ~/.bash_profile export the environment variable LD_LIBRARY_PATH      export  LD_LIBRARY_PATH=.  

This will take effect the next time you log in.  To make this effective in your current session you would have to export the variable manually.  

i.    replace the default config file with your 2nd config file and send a SIGHUP signal to your program. Verify that your program is now running the implemented functions. 

ii.       Include code that loads the functions (see example pluginShell.c) and modify it so that it also loads help.

iii.     When the program starts up it should call the routine that loads the 1st config file.  V


1.      Implement a Command Interpreteron apollo for the following commands. Note that each command follows a different pattern:  

d.     procs username ....  

 

Runs the pscommand and reads in and returns the result using popen.  

Append the following flag and option string to format the output:   

-o pid,ppid,user,group,state,psr,cmd

 

g.Describe your testing of the above in your final status report.     

Suggestion: Try using redirection to send your original history file from 1b to your client program. Did it work?) 


1.      Implement a Command Interpreteron apollo for the following commands. Note that each command follows a different pattern:  

d.     sumsqnum1 num2 num3 .... 

Squares each number sums the result.  Returns the sum and the square root of the sum as output. The numbers should be converted from their string values to doubles to do the calculation.  If no numbers are listed result should be 0.0 0.0.

e.     time timeformat

The example provided returns the current time in Japan. This command should return the current time in the specified format  In CENG 151 you learned to display the time in using different format codes using the -d flag. Use the C function timeto retrieve the current tim


1.  Implement a Command Interpreteron apollo for the following commands. Note that each command follows a different pattern:  

c.help  cmd1  cmd2 cmd3 ...

i.       The command helpby itself should list the names of all the commands supported by your program and only the names.

ii.      Extend the parallel data structure of command names and methods used in the example code to include a 3rd field containing a short help message. If the help command arrives with additional tokens display the help for each command listed..

d.     sumsqnum1 num2 num3

Squares each number sums the result.  Returns the sum and the square root of the sum as output. The numbers should be converted from their string values to doubles to do the calculation.  If no numbers are listed result should be 0.0 0.0..



Command Interpreter & AF_UNIX Sockets

1.      Implement a Command Interpreteron apollo for the following commands. Note that each command follows a different pattern:  

 

a.      Implement a command serverwith a set of stub routines for the commands listed in 1c,d,e,f and 2a. Test it to make sure each of the commands is recognized properly and that a bad command is also recognized.  

 

b.     Command server and client (

i.        Modify your command server so that it communicates via a pipe rather than stdin. Use your own name for the name of the pipe.

ii.      Modify pipeChatClient2 so that it communicates to the command server via your pipe. Refer to readlineDemo.cand modify the program so that saves the commands entered into a file.  This will create your client program.



Suppose 8 bit registers have following contents

X=00001111

Y=10101010

Z= 11011011

W=00110011

What will be the 8 bit values of each register after execution of following sequences of

microoperations ?

X ← 𝑋 + 𝑌

Z←Z⋀ 𝑊, 𝑌 ← 𝑌 + 1

X←X-Z


Suppose 8 bit registers have following contents
X=00001111
Y=10101010
Z= 11011011
W=00110011
What will be the 8 bit values of each register after execution of following sequences of
microoperations ?
X ←

Identify a suitable network scenario/case that can be used to explain and discuss

the relationship of concepts in the exhibit. Ensure that you provide details of the

following aspects of the scenario:

• Description of the scenario;

• Why the scenario is considered a network system.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS