7103_Proj1_update - structure> Type 2 format<IP...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Folks, Note that there has been a change from what was discussed in class: DUPLICATE FILES are ALLOWED within the user created directory structure. They will be handled by the resolver as described below. The input file should be a sequence of GET/PUT calls (Generate around 50 calls – the first 20 should be just PUTS, the rest a combination of GETS/PUTS). Each call should have the following format: GET calls: <IP address> <Time Stamp> GET <File Name> Note that the file name does not have a path associated with it. Your resolver identifies the file within your directory structure and retrieves it. If the file has duplicates – the resolver will return the file with the OLDER time stamp. PUT calls Two types: Type 1 format: <IP address> <Time Stamp> PUT <File Name with full path listing within directory
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: structure> Type 2 format: <IP address> <Time Stamp> PUT <File Name > Note that under type 2, there is no path associated with the file. Your resolver should do the following 1) If no such file exists anywhere, then indicate a PUT Error saying path needed. 2) If one copy of the file exists, resolver finds it within the directory structure and updates it. 3) If multiple copies exist, resolver updates all copies. Authenticator matches IP addresses to files for permissions. Use a (dynamically created) table for this. Assume there already exists a static directory substructure along a dynamically updated structure such as described in class. Make Cache size 4 files. Use LRU. Any other caching details are user-dependent (Make sure you have good documentation)....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online