Your SlideShare is downloading. ×
NachOS 3 - Practical presentation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

NachOS 3 - Practical presentation

478
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
478
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. NACHOS 3Networking and encryption
  • 2. Networking on NachosPractical partWe found that nachOS already providesmessage delivery with this characteristics:● Unreliable● Has fixed-size● Messages can be dropped
  • 3. PostOffice ClassThis class is defined in the files post.h and post.cc in thenetwork directoryThis class is like its name a postoffice or a collection ofmailboxes.Here its defined two main operations:● Send -> send a message to a remote machine● Receive-> waits for a message in the mailboxIn this class are used threads for sending messages and forreceiving messages in the mailbox.
  • 4. Mail ClassThis class defines the format of themessages that will be sent and receivedThe constructor of this class initialize onlyone message, by using:● PacketHeader● MailHeader
  • 5. MailHeader ClassIs a part of the message that is put at thebegining of the message by the PostOfficebefore the message is sent.This header contains:● Destination mailbox address● Number of bytes in the message
  • 6. MailBoxDefines a single mailbox for receivingmessages.Incoming messages are placed by thePostOffice into the mailbox.So the messages can be taken by a threadof the machine that is receiving the messageA mailbox is implemented as a list ofmessages using SynchList object
  • 7. NetworkThe emulation of a physical networkconnection is implemented in the filesnetwork.h and network.cc in the machinedirectory.In this file (network.cc) is defined the classPacketHeader, which defines that, a packetheader.

×