DOC PREVIEW
UMD CMSC 433 - Distributed Computing

This preview shows page 1-2-3-4 out of 13 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Distributed ComputingCMSC 433Distributed Computing• Computations running across multiplemachines• Computations that shouldn’t fail justbecause one machine failsCommunications• Generally, TCP and UDP• TCP: stream-based two waycommunication• UDP: one way packet communication– no built in acknowledgement• Multicast UDP: broadcast packetcommunication to local networkIP terminology• IP address– hostname• Port– port space for UDP and TCP are separate– each service typically has a standard portfor initiating communicationTCP Server Sockets• bound to a particular port• accept() waits for a connection requeston that port– returns a standard Socket for furthercommunication– ServerSocker can be immediately reusedInetAddress• InetA d dress.getByName(h)– static factory for InetAddress• InetA d dress.getLoc a lHost( )– gets local host name (does DNS)• InetAddress.getByName(“127.0.0.1”)– gets local loopback address, no DNSSocket• new Socket(InetAddress a, int port)– creates a TCP socket connection to aserver socket at the specified address andport• For each socket, you can callgetInputStream()getOutputStream()Streams• You should all know InputStream,OutputStream, Reader, Writer• DataOutputStream adds writeInt,writeLong, writeDouble, writeUTF• DataInputStream provides matchingread methodsObject Streams• ObjectOutputStream andObjectInputStream allow objects to besent– any serializable object• Any object that implements Serializablecan be serialized– if all of its fields are serializableObject graphs• Writing to an object output streamwrites a graph of objects– writing a map sends all the elements– writing one node of a graph sends allconnected nodes• Reconstructed into an isomorphic graphpotential problems• You write a class that received doesn’thave– error• You write a different version of a classthan the receiver has– maybe OKRMI• Remote method invocation• Provides remote proxies for objects– invoke method on local proxy/stub– method is invoked over the network, usingobject serialization– wait for responseremote code base• RMI provides an extension to objectserialization• allows you to provide a URL from whichyour classes can be downloaded inreceived doesn’t have


View Full Document

UMD CMSC 433 - Distributed Computing

Documents in this Course
Trace 1

Trace 1

62 pages

Reflection

Reflection

137 pages

Testing

Testing

25 pages

Paradigms

Paradigms

10 pages

Testing

Testing

17 pages

Java RMI

Java RMI

17 pages

Java RMI

Java RMI

17 pages

Java RMI

Java RMI

17 pages

Trace 1

Trace 1

46 pages

Jini

Jini

4 pages

Final

Final

15 pages

Java RMI

Java RMI

13 pages

Testing

Testing

16 pages

Load more
Download Distributed Computing
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Distributed Computing and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Distributed Computing 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?