Preview

Interprocess Communication

Good Essays
Open Document
Open Document
2687 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Interprocess Communication
Distributed Systems 3. Interprocess Communication

Werner Nutt

1

Interprocess Communication
3.1 Principles

1. 2. 3. 4. 5.

Principles APIs for UDP and TCP External Data Representation Client Server Communication Group Communication
2

Middleware
Middleware offers an infrastructure that enables application processes to communicate with each other Processes issue requests to the transportation layer
(i.e., the application takes the initiative, not the middleware)

Applications access the middleware via APIs, e.g., – creation and manipulation of sockets Integration into programming languages – remote procedure call (RPC) – remote method invocation (RMI) For higher level APIs, data has to be transformed before it can be shipped (“data marshalling”) Protocols for Client/Server Interaction (“Request/Reply”)
3

Middleware Layers
ISO/OSI
Applications, services RMI and RPC
This This chapter chapter

7

request-reply protocol marshalling and external data representation UDP and TCP

Middleware layers

6

4,5

4

Characteristics of IPC
Message Passing Primitives: Send, Receive Message = Destination = – Port = destination within a host that identifies a receiving process – Ports are uniquely identified by their port number – Hosts are uniquely identified ... (or not?)

5

Assigned Port Numbers
FTP Data FTP Control SSH Telnet SMTP Domain Name Server Whois HTTP POP3 IMAP4 BGP HTTPS IMAP4 over SSL 20 21 22 23 25 42 43 80 110 143 179 443 993
Assigned by IANA (= Internet Assigned Numbers Authority) Numbers between 0 and 1023 are “well-known” ports — opening a port for such numbers requires privileges

can be found - on the Web - in “/etc/services” under Linux and MAC/OS
6

Sockets
Characteristics – Endpoint for inter-process communication – Message transmission between sockets – A socket is associated with either UDP or TCP – Sockets are bound to ports – One process can use many ports – Processes don’t share sockets (unless



References: In preparing the lectures I have used several sources. The main ones are the following: Books: Coulouris, Dollimore, Kindberg. Distributed Systems – Concepts and Design (CDK) Slides: Marco Aiello, course on Distributed Systems at the Free University of Bozen-Bolzano Andrew Tanenbaum, Slides from his website CDK Website Marta Kwiatkowska, U Birmingham, slides of course on DS 57

You May Also Find These Documents Helpful

  • Powerful Essays

    Nt1310 Unit 3 Quiz

    • 1152 Words
    • 5 Pages

    End system use port numbers to select the proper application what is the lowest port number that can be dynamically assigned by the host system?…

    • 1152 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    NT1210Unit3Lab3

    • 1288 Words
    • 4 Pages

    Exercise 3.3.3 The most common protocols used from this suite are IP, TCP, and UDP. Briefly describe the purpose and functions of each of these.…

    • 1288 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Applications in the enterprise come in different forms, client run apps, client/server apps, and distributed apps.…

    • 431 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The main difference between the two is that OSI has broken down the TCP/IP’s application layer to Session, Presentation, and…

    • 648 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    8. The TCP/IP and OSI models have some obvious differences, like the number of layers. Think about the more commonly used version of the TCP/IP model discussed in this chapter, and then think about how to talk about TCP/IP using OSI terms. Which of the following is a correctly phrased statement for how to use OSI terminology? IP is a network layer protocol…

    • 1038 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    netw 240 week 7

    • 330 Words
    • 3 Pages

    What Field in the TCP header contains a well known port number that maps to the Application that will handle the segment Data Stream?…

    • 330 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    5 - The software that runs on the mail server is referred to as the ____________…

    • 1464 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    nt1210 unit 1 lab1

    • 1325 Words
    • 5 Pages

    8. The TCP/IP and OSI models have some obvious differences, like the number of layers. Think about the more commonly used version of the TCP/IP model discussed in this chapter, and then think about how to talk about TCP/IP using OSI…

    • 1325 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 1

    • 4209 Words
    • 17 Pages

    83) Which process is responsible for establishing a connection between the client and the server?…

    • 4209 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    nt2640 week1

    • 1824 Words
    • 8 Pages

    4. The process of TCP on one computer marking a TCP segment as segment 1, and the receiving computer then acknowledging the receipt of TCP segment 1, is an example of what?…

    • 1824 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    unit 3 assignment 3

    • 854 Words
    • 3 Pages

    8. The TCP/IP and OSI models have some obvious differences, like the number of layers. Think about the more commonly used version of the TCP/IP model discussed in this chapter, and then think about how to talk about TCP/IP using OSI terms. Which of the following is a correctly phrased statement for how to use OSI terminology? B) IP is a…

    • 854 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Software from different vendors often do not work well together which may necessitate the need for middleware.…

    • 342 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Netstat

    • 481 Words
    • 2 Pages

    1. The Netstat command indicates that POP3 is in use on a remote server. Which port is the remote server most likely using?…

    • 481 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Two historical economic data where information can be found are Bureau of Economic Analysis, U.S. Department of Commerce and FRED, Economic Time-Series Database. The FRED database comprises the national economic and financial statistics as well as interest rates, consumer price indexes, employment and population and trade data. This database is a valuable source because this consents populaces to see how the country 's financial state is. The Bureau of Economic Analysis includes estimates concerning national, international, and regional economic activity. The first source that I would use is the U.S Department of Commerce/ Bureau of Economic Analysis. I would use this source because the data here is first accurate and for the most part of to date. This site gives you real up to date data on the real GDP. This resource gives you data on consumer spending which is one important resource that needs to be looked at and tells us how the economy is doing. The second source that I would use is the National Bureau of Economic Research. This site gives you additional sites for gathering data relating to historical economic data. For economic forecast data I would use information gathered from Dow Jones Average which provides not only historical data and can gives us an outlook on how the economy is doing and can predict the future on our economy. With these resources a qualitative factor can be that most of these resources can expert driven who can in turn see the short term goals of business and products. The quantitative factors in these resources eliminate the experts and rely on the people and focuses on the long run of the economy. It also provides statistics decision influenced by the government officials, business people, households and individuals. The quantitative of each site is that they included tax list information and census return evidence. The Bureau of Economic Analysis and FRED database qualitative used are they both expound…

    • 734 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Jrotc

    • 397 Words
    • 2 Pages

    The JROTC (Junior Reserve Officer Training Corps) is an Army ran cadet program established by the National Defense act in 1916 starting with just six units. Since then this program has flourished and now has over 1,000 units in schools and colleges throughout the nation with more than 274,000 cadets enrolled. The main purpose of JROTC is not to prepare cadets for the military, but to instill certain morals and values into the cadets that will prepare them for whatever path they choose to take in life. It also helps to build good character and leadership skills through the many activities and the concept of ranks enforced throughout the program.…

    • 397 Words
    • 2 Pages
    Satisfactory Essays

Related Topics