untitled

Similar documents
untitled

untitled

1 telnet WWW 1.1 telnet WWW URL html 1.2 URL 1 % telnet 80 Trying 2001:2f8:1c:d048::850d: telnet: c

Macintosh HD:Users:ks91:Documents:lect:nm2002s:nm2002s03.dvi

main main Makefile Makefile C.5 Makefile Makefile Makefile A Mech (TA ) 1. Web ( iku

r4.dvi

buho210.dvi

2011 I/ 2 1

TCP/IP Internet Week 2002 [2002/12/17] Japan Registry Service Co., Ltd. No.3 Internet Week 2002 [2002/12/17] Japan Registry Service Co., Ltd. No.4 2

2 1: OSI OSI,,,,,,,,, 4 TCP/IP TCP/IP, TCP, IP 2,, IP, IP. IP, ICMP, TCP, UDP, TELNET, FTP, HTTP TCP IP

Mac OS X Server QuickTime Streaming Server 5.0 の管理(バージョン 10.3 以降用)

演算増幅器

r4.dvi

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

Microsoft Word - EGX100によるH663通信手引

1 : telnet WWW telnet WWW URL (html ) ( URL ) [Kenta-Oshiro:network/slab2-np/rep01] j06012% telnet 80 nkf -e GET /index.html HTTP/1

Flow Control Information Network 1 /

untitled

wide93.dvi

1 Linux UNIX-PC LAN. UNIX. LAN. UNIX. 1.1 UNIX LAN. 1.2 Linux PC Linux. 1.3 studenta odd kumabari studentb even kumabari studentc odd kumabari student

para02-2.dvi

演算増幅器

untitled

<4D F736F F F696E74202D D54352D6B61746F2D D B82C988CB91B682B582C882A2835C D834F E F205B8CDD8AB B83685D>

Testing XML Performance

untitled

/*

BSDソケットによるIPv6プログラミングを紐解く

エラー処理・分割コンパイル・コマンドライン引数

卒研 .PDF

Packet Tracer: 拡張 ACL の設定 : シナリオ 1 トポロジ アドレステーブル R1 デバイスインターフェイス IP アドレスサブネットマスクデフォルトゲートウェイ G0/ N/A G0/

実験 6 通信基礎実験 1 目的 ネットワークを通じてデータ転送を行うことを体験的に学ぶために 本実験ではT CP/IPプロトコルを使い ワークステーション間で通信を行うクライアントサーバモデルのプログラムを作成する 2 解説 1 ネットワークとプロトコルネットワーク ( コンピュータネットワーク

3 3.1 LAN ISDN (IP) 2 TCP/UDP IP IP IP IP (Ethernet) Ethernet LAN TCP/UDP LAN Ethernet LAN 2: Ethernet ATM, FDDI, LAN IP IP IP 3 IP 2 IP IP IP IP IP 3

J.JSSAC Vol. 7, No. 2, Mathematica Maple,., Open asir Open xxx asir. Open xxx Open asir, asir., Open xxx, Linux Open asir Open sm1 (kan/sm1). C

図解でわかるVoIPのすべて - IP電話の技術から構築まで -

Logitec NAS シリーズ ソフトウェアマニュアル

IP IP DHCP..

TCP UDP TCP UDP send()sendto()sendmsg() recv()recvfrom()recvmsg() OS Passive Active TCP UDP IP TCP UDP MTAMail Transf

1 $ cat aboutipa 2 IPA is a Japanese quasi-government 3 organization established in accor- 4 dance with The Law for Information 5 Processing Technolog

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

DA100データアクイジションユニット通信インタフェースユーザーズマニュアル

IT講習会

Logitec NAS シリーズ ソフトウェアマニュアル

untitled

untitled

TCP/IPの概要

1) // 2) I/O 3) Japan Advanced Institute of Science and Technology 2013/07/26 1

LSM-L3-24設定ガイド(初版)

Mac OS X Server メールサービスの管理(バージョン 10.3 以降用)

$ cal ) ( cal $ cal cal cal 1. () ( clear) 2. ( cal) 3. ( man) \() ( ) --() +()

Web STEPS Web Web Form Cookie HTTP STEPS Web

i TCP/IP NIC Intel 3com NIC TCP/IP *1 20 IPv4 IPv6 IPv6 TCP/IP TCP/IP *1 3

目次 1. DB 更新情報受信 SW 仕様書 構成および機能 全体の構成 DB 更新情報受信 SW の機能 ソフトウェアの設計仕様 DB 更新情報受信 SW の仕様 資料編... 5

AirMac ネットワーク構成の手引き

untitled

SRT/RTX/RT設定例集

TM-T88VI 詳細取扱説明書

untitled

NEC Storage series NAS Device

4 実験結果 // 用意されたヘッダファイル #include < stdio.h> #include < fcntl.h> #include < netdb.h> #include < sys/types.h> #include < sys/socket.h> #include < sys/sta

Gnutella Peer-to-Peer(P2P) P2P Linux P2P

untitled

AsteriskのIPv6対応について

LHD-LAN_E_G_PDF.}.j...A...p65

ppt

AirMac ネットワーク for Windows

TTC技術書

GA-1190J

08+11Extra

<Documents Title Here>

橡_東_130627ADSL技参資Ver2.PDF

ネットワークプログラミング

Makefile, TCPソケットサーバ, コマンドライン引数

total-all-nt.dvi

rzab6pdf.ps

untitled

SIP SDP(Session Description Protocol) RTSP(Real-time Streaming Protocol) RTP(Real-time Transport Protocol) IP 1 [1] 1: IP RTP(Real-Time RFC1889 Transf

double float

wide90.dvi

設定例集_Rev.8.03, Rev.9.00, Rev.10.01対応

Baud Rate 9600 Parity NONE Number of Data Bits 8 Number of Stop Bits 1 Flow Control NONE 1 RS232C 200mm 2,000mm DIMM ( ) Telescope East/West LX200 * 1

TCP/IP Protocols and Services

LAN

I /07/30 Dependable Network Innovation Center, Japan Advanced Institute of Science and Technology

tcp/ip.key

通信プログラムの試作ーーー UDP を用いたじゃんけんゲームシステム ーーーー裘彬濱 南山大学情報理工学部 ソフトウェア工学科青山研究室

(1) CCITT X.25 (HDLC/LAPB) SDLC (Synchronous Data Link Control protocol) HDLC High-speed Data Link Control protocol ITU-T/ISO ADCCP Advanced Data Comm

I TCP 1/2 1

FileMaker Server Getting Started Guide

wpEnterpriseSvr.doc

Mac OS X Server Windows NTからの移行

2

NetEng-04.ppt

untitled

TM-m30 詳細取扱説明書

nakayama15icm01_l7filter.pptx

fusion.PDF

PowerPoint プレゼンテーション

thesis.dvi

ERA-201D1

Transcription:

RPC ((

Remote Procedure Call (RPC: Message-Oriented Middleware (MOM) data-streaming

=(protocol) A B A B

Connection protocol = connection oriented protocol TCP (Transmission Control Protocol) connectionless protocol UDP (Universal Datagram Protocol)

OSI model, ISO OSI OSI7 International Standards Organization (ISO) Open System Interconnection (OSI) Reference Model 7( Application protocol Presentation protocol Session protocol Transport protocol Network protocol Data Link protocol Physical protocol Application Presentation Session Transport Network Data Link

Lower-Level Level Protocol Physical Layer) 01 ethernet RS-232C frame Data Link Layer) (frame checksum - ethernethub, PPP(point-to-point protocol), MACMedia Access Control Address,

Lower-Level Level Protocol Network Layer routing IP: Internet protocol IP addressrouting C D

Transport Protocol TCP (Transmission Control Protocol) connection-oriented stream TCP/IP UDP (Universal Datagram Protocol) connection-less RTP (Real-time Transport Protocol)

Higher-level Protocol 4(Transport layer) FTP: File Transfer Protocol HTTP: Hyper Text Transfer Protocol web POP: Post-office Protocol SMTP: Simple Mail Transfer protocol

persistent communication transient communication asynchronous communication synchronous communication blocking

socket TCPUDPend-point UNIX file descriptor

s = socket(); /* socket*/ bind(s,adress); /* */ listen(s,backlog); /* backlog */ ss = accept(s); /* connection file descriptor */ close(s); /* sclose */ recv(ss, ); /* read */ s = socket(); /* socket*/ connect(s,address); /* connection*/ send(s, ); /* send */

// int my_fd; struct sockaddr_in my_sin; static int _setup_server_socket(struct sockaddr_in *sinp, int port, int backlog); int main(int argc,char *argv[]) { int sinlen; struct sockaddr_in client_sin; char buf[128]; Server int r,s; int port; if(argc!= 2){ fprintf(stderr,"%s #port n",argv[0]); exit(1); port = atoi(argv[1]); printf("server test program... wait on port %d n",port); my_fd = _setup_server_socket(&my_sin,port,1); sinlen = sizeof(struct sockaddr_in); s = accept(my_fd,(struct sockaddr *)&client_sin,&sinlen); if(s < 0){ perror("accept failed"); exit(1); while((r = read(s,buf,128)) >= 0){ write(1,buf,r); printf("terminated... n"); close(s); close(my_fd); exit(0);

static int _setup_server_socket(struct sockaddr_in *sinp,int port, int backlog) { int sinlen,r; struct sockaddr_in sin; char hostname[maxhostnamelen]; struct hostent *hp; int fd; fd = socket(af_inet, SOCK_STREAM, 0); if(fd < 0){ perror("socket failed"); exit(1); r = gethostname(hostname,maxhostnamelen); if(r < 0){ perror("hostname"); exit(1); printf("hostname=%s n",hostname); Server2 hp = gethostbyname(hostname); if(hp == NULL){ perror("gethostbyname"); exit(1); memset(&sin, 0, sizeof(sin)); sin.sin_family = AF_INET; sin.sin_port = htons(port); bcopy(hp->h_addr,&sin.sin_addr.s_addr,hp->h_length);

sinlen = sizeof(sin); Server3 r = bind(fd, (struct sockaddr *) & sin, sizeof(sin)); if (r < 0){ perror("bind"); exit(1); r = listen(fd,backlog); /* set backlog */ if (r < 0){ perror("listen"); exit(1); r = getsockname(fd,(struct sockaddr *)sinp, &sinlen); if(r < 0){ perror("getsockname"); exit(1); return fd;

#include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> Client #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 #endif int main(int argc,char *argv[]) { int r; struct sockaddr_in sin; char hostname[maxhostnamelen]; struct hostent *hp; int fd,port; char buf[128]; if(argc!= 3){ fprintf(stderr,"%s: hostname port n"); exit(1); strcpy(hostname,argv[1]); port = atoi(argv[2]); printf("client test... connect to %s:%d n",hostname,port); hp = gethostbyname(hostname); if(hp == NULL){ perror("gethostbyname"); exit(1);

memset(&sin, 0, sizeof(sin)); sin.sin_family = AF_INET; bcopy(hp->h_addr,&sin.sin_addr.s_addr,hp->h_length); sin.sin_port = port; fd = socket(af_inet, SOCK_STREAM, 0); if(fd < 0){ perror("socket failed"); exit(1); r = connect(fd,(struct sockaddr *)&sin,sizeof(sin)); if(r < 0){ perror("connect failed"); exit(1); sprintf(buf,"hello world... n"); write(fd,buf,strlen(buf)+1); Client close(fd); exit(0);

Remote Procedure Call: TCP/IPUDP RPC(remote procedure call SUN RPC CORBA (JavaC++) Web Service RMI, Jini. JAX RPC

RPC call fooa,b) foo goo call goo(c,d)

call fooa,b) foo call goo(c,d) client stub sever stub goo

RPC client stub client stubos OSremoteOS remote OSserver stub sever stub server stub server stub OS OSclient stub client stub

RPC IDL RPC RPC(IDL: Interface Description Language)client stubserver stub SUN RPC Java RMI RPC

RPC RPC RPC RPC naming RPC

ISO socket RPC