computer network project computer network project efficient handling of email messages with...

30
Computer Network Computer Network Project Project Efficient handling of Efficient handling of email messages with email messages with multimedia attachments multimedia attachments

Post on 20-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Computer Network Computer Network ProjectProject

Efficient handling of email Efficient handling of email messages with multimedia messages with multimedia

attachmentsattachments

Page 2: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

The ProblemThe Problem

In order to guaranty efficient handling of In order to guaranty efficient handling of email messages with multimedia email messages with multimedia attachments, we must insure the following:attachments, we must insure the following: End users capability to open the file attached.End users capability to open the file attached. Minimal network cost.Minimal network cost. Avoid wasting the networks resources, by Avoid wasting the networks resources, by

sending files that later can not be used.sending files that later can not be used.

Page 3: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

The Projects GoalThe Projects Goal

Investigate the different formats supported by Investigate the different formats supported by the multimedia standard.the multimedia standard.Define an algorithm, which will decide the format Define an algorithm, which will decide the format in which the Multimedia file will be send in and in which the Multimedia file will be send in and later stored in, by taking the following aspects later stored in, by taking the following aspects under consideration.under consideration. The conversions abilities available.The conversions abilities available. The conversions costs.The conversions costs. The conversion capabilities of the mail server and end The conversion capabilities of the mail server and end

user. user. Conversion times (between the different standards).Conversion times (between the different standards). The network efficiency.The network efficiency.

Page 4: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Standard multimedia formatsStandard multimedia formats

The AVI Format.The AVI Format.

The MPEG2 Format.The MPEG2 Format.

The MPEG4 Format.The MPEG4 Format.

Page 5: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Profiles and LevelsProfiles and Levels

The MPEG 2 & 4 formats are divided into many The MPEG 2 & 4 formats are divided into many profiles and levels.profiles and levels.

The common profiles and levels used today: The common profiles and levels used today: MPEG-2MPEG-2 Main profile in Main level.Main profile in Main level. SNR profile in Main level.SNR profile in Main level.

MPEG-4MPEG-4 Simple profile in L0 level.Simple profile in L0 level. Simple profile in L1 level.Simple profile in L1 level. Simple profile in L2 level.Simple profile in L2 level.

AVI formatAVI format

Page 6: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Solution description Solution description

Given a source format, a list of destination formats Given a source format, a list of destination formats and the converting abilities of the source and and the converting abilities of the source and destination server find the most suitable destination server find the most suitable conversions tree under the following restrictions:conversions tree under the following restrictions:

The tree should be the lightest tree that we can The tree should be the lightest tree that we can get in a manner of conversion and transmission get in a manner of conversion and transmission costs.costs.

There will be a limit on the number of file formats There will be a limit on the number of file formats that could be transferred over the network.that could be transferred over the network.

Page 7: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Solution description cont.Solution description cont.

InputsInputsSource file’s format.Source file’s format.End-user’s encoding capabilities (destination formats).End-user’s encoding capabilities (destination formats).Mail server’s conversions abilities and costs.Mail server’s conversions abilities and costs.Network costs for sending a specific file format. Network costs for sending a specific file format. Number of times we can transmit through the network.Number of times we can transmit through the network.All these inputs will be used to create an initial graph which it itself All these inputs will be used to create an initial graph which it itself will be the algorithms input.will be the algorithms input.

OutputsOutputsConversion-tree: after the algorithm is executed we will receive a Conversion-tree: after the algorithm is executed we will receive a minimal weighted path tree which represents the conversions minimal weighted path tree which represents the conversions should be made in order to deliver the multimedia file to the end-should be made in order to deliver the multimedia file to the end-users in the format they can encode. The tree will state where the users in the format they can encode. The tree will state where the conversions should be made and which file formats should be sent conversions should be made and which file formats should be sent through the network.through the network.

Page 8: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Creating the initial graph Creating the initial graph

Graph vertex: Different file formats.Graph vertex: Different file formats.Graph edges: Possible conversions between file formats or Graph edges: Possible conversions between file formats or transmission of file format through the network.transmission of file format through the network.Weights:Weights:Conversions time on the different servers.Conversions time on the different servers.Transmission costs through the networkTransmission costs through the networkThe initial graph has two layers. The upper layer represents the The initial graph has two layers. The upper layer represents the conversion abilities of the source mailing server and the bottom conversion abilities of the source mailing server and the bottom layer represents the conversion abilities of the destination mailing layer represents the conversion abilities of the destination mailing server. Connecting these layers are the edges representing the server. Connecting these layers are the edges representing the networks transfer abilities. Note that over the network the file must networks transfer abilities. Note that over the network the file must stay in the format in which it is sent. stay in the format in which it is sent. This initial graph will represent the algorithms input and we will This initial graph will represent the algorithms input and we will receive as output the minimal weighted path tree (the conversion receive as output the minimal weighted path tree (the conversion tree).tree).

Page 9: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

The algorithm The algorithm

Our algorithm is based on the ASTAR algorithm, which uses Our algorithm is based on the ASTAR algorithm, which uses heuristic function in order to create a “minimal weighted path tree”. heuristic function in order to create a “minimal weighted path tree”. After building the initial graph and defining the source format (In the After building the initial graph and defining the source format (In the initial graph upper level) as the “head” and the vertexes that initial graph upper level) as the “head” and the vertexes that represent the formats we want the end users to receive (in the initial represent the formats we want the end users to receive (in the initial graph bottom level) as “target vertexes”, it starts the calculation.graph bottom level) as “target vertexes”, it starts the calculation.The algorithm builds the conversions-tree in the following method: The algorithm builds the conversions-tree in the following method: It runs the ASTAR algorithm. Each step the minimal tree created It runs the ASTAR algorithm. Each step the minimal tree created until that point is taken out of the open list and all its successors are until that point is taken out of the open list and all its successors are calculated and placed in the open list at their proper place. Again calculated and placed in the open list at their proper place. Again the minimal tree is chosen and so forth. The heuristic function is the minimal tree is chosen and so forth. The heuristic function is based on the number of “target vertexes” in the “minimal weighted based on the number of “target vertexes” in the “minimal weighted paths tree”. The algorithm stops when the tree which was built paths tree”. The algorithm stops when the tree which was built contains all the “target vertexes” and it is the lightest tree it can get.contains all the “target vertexes” and it is the lightest tree it can get.

Page 10: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

ExampleExampleThe initial treeThe initial tree

Source format : Mpeg2Source format : Mpeg2Destination Formats : Mpeg4 , AVIDestination Formats : Mpeg4 , AVINetwork crosses allowed: 1Network crosses allowed: 1

Mpeg2

Mpeg2 AVI

Mpeg4

Mpeg4

AVI

0.9

2

2

80.3

1

Page 11: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Step OneStep One

The open list:The open list:

Mpeg2

Open = } {

Page 12: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Step TwoStep Two

The open list:The open list:

Open = {Mpeg2

AVI

0.9

}Mpeg2

Mpeg2

2

Current minimal tree

Page 13: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Step ThreeStep Three

The open list:The open list:

Open = {}Mpeg2

Mpeg2

2

Current minimal tree

Mpeg2

AVI

AVI

0.9

8

Page 14: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Step FourStep Four

The open list:The open list:

Open = {}

Current minimal tree

Mpeg2

AVI

AVI

0.9

8

Mpeg2

Mpeg2

Mpeg4

2

2

Page 15: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Step FiveStep FiveThe open list:The open list:

All the destination formats reachedAll the destination formats reached

Open = {}

Current minimal tree

Mpeg2

AVI

AVI

0.9

8

Mpeg2

Mpeg2 AVI

Mpeg4

2

2

1

Page 16: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

The Conversion treeThe Conversion tree

The output of the algorithmThe output of the algorithm

Cost: Cost: 55

Mpeg2

Mpeg2 AVI

Mpeg4

2

2

1

Page 17: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Using the ProgramUsing the Program

Page 18: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Load from XMLLoad from XMLPress Form XML tab

Page 19: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Load from XMLLoad from XMLOpen XML file

1. Pressing Browser button

2. choosing the Path from Dialog box

3. Pressing Load Data From XML button

Page 20: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Load from XMLLoad from XMLInitial Data and start calculation

1. Choose Source & Destination Formats

2. Choose The number of times we can send data over the net

3. Choose Network transfer weight

4. Press Start Calculation button to start the algorithm

Page 21: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Load from ExcelLoad from ExcelPress Form Excel tab

Page 22: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Load from ExcelLoad from ExcelOpen XML file

1. Pressing Brower button

2. choosing the Path from Dialog box

3. Pressing Load Data From Excel button

Page 23: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Load from ExcelLoad from ExcelInitial Data and start calculation

1. Choose Source & Destination Formats

2. Choose The number of times we can send data over the net

3. Chooser Network transfer weight

4. Press Start Calculation button to start the algorithm

Page 24: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Create Excel fileCreate Excel filePress Create Excel File tab

Page 25: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Create Excel fileCreate Excel fileRetrieve Formats from text file

1. Pressing Brower button

2. choosing the Path from Dialog box

3. Pressing Load Formats from Text file

Page 26: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Create Excel fileCreate Excel fileCreate Excel file

1. Choose Formats

2. Press Create Excel File button

Page 27: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Create Excel fileCreate Excel fileFill the data in the new generated Excel File

1. Source Weights

2. Destination Weights

3. Network Weights

Page 28: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Calculation ResultCalculation ResultPress Result tab

Page 29: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Calculation ResultCalculation ResultThe result tree is printed as arcs holding the following data

1. Source node (Format)

2. Destination node (Format)

3. Platform (The type of arc Source / Destinaion / Network)

4. Weight

Page 30: Computer Network Project Computer Network Project Efficient handling of email messages with multimedia attachments

Calculation ResultCalculation ResultCreate XML file from the result

1. Press Browser button to choose path

2. choose path

3. Press Created XML Solution to create XML file