⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 571.htm

📁 unix高级编程原吗
💻 HTM
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://apue.dhs.org"><font face="黑体"><big><big>apue</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center">               ● UNIX网络编程                       (BM: clown)                </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p   align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="100" align="center" valign="top"><br><p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="572.htm">下一篇</a>]
<hr><p align="left"><small>发信人: cloudsky (小四), 信区: Security <br>

标  题: RPC/XDR/NFS系列之----W.Richard.Stevens的介绍 <br>

发信站: 武汉白云黄鹤站 (Mon Feb 28 18:30:36 2000), 站内信件 <br>

  <br>

标题:RPC/XDR/NFS系列之----W.Richard.Stevens的介绍 <br>

  <br>

原作:W.Richard.Stevens <br>

      << TCP/IP Illustrated Volume I >> <br>

  <br>

1. Sun RPC Ver 2定义在RFC 1057,当前版本号必须是2。 <br>

  <br>

2. The transaction ID(XID)由client设置,server忠实地返回它。 <br>

   client进行新的RPC时会改变XID,但是如果client属于重传RPC(没有收到应答) <br>

   这个XID不会改变。 <br>

  <br>

3. RPC由UDP支持时,XID和UDP HEADER之间没有其他字段,但是由TCP支持时,XID <br>

   和TCP HEADER之间有一个4字节的字段,告诉接收者这个RPC CALL总共多少字节, <br>

   于是允许一个RPC CALL分在几个TCP报文中传送,DNS系统使用了类似的技术。 <br>

  <br>

4. verifier由安全RPC使用,使用了DES加密算法。 <br>

   scz注:好象verifier是安全RPC用于鉴别server的,而credentials是用于鉴别 <br>

          client的。 <br>

  <br>

  <br>

5. server的应答中,status字段为0,表示client的call报文被接受了(call报文有 <br>

   可能被拒绝,比如RPC版本号不是2,或者server无法鉴别client)。 <br>

  <br>

   server的应答中,accept status字段为0,表示远程过程调用成功返回。一个非0 <br>

   的值可能指出无效远程程序版本号、无效远程过程号等等。 <br>

  <br>

6. NFS SERVER使用固定的2049端口,版本2中由UDP支持,版本3中可以由TCP支持了。 <br>

   使用固定端口仅仅意味着无须从操作系统动态获取端口,与NFS SERVER作为RPC SERVER <br>

   向PORTMAPPER注册不矛盾。 <br>

  <br>

   NFS使用固定端口是历史造成的,因为很多现有实现中硬编码了2049端口,尽管 <br>

   理论上可以动态获取端口。 <br>

  <br>

7. The lock manager and status monitor allow clients to lock portions of <br>

   files that reside on an NFS server. These two programs are independent <br>

   of the NFS protocol because locking requires state on both the client <br>

   and server, and NFS itself is stateless on the server. <br>

  <br>

8. NFS版本2中文件句柄32字节,版本3中成为最多64字节的变长字段。 <br>

  <br>

   Unix servers normally store the following information in the file handle: <br>

   the filesystem identifier(the major and minor device numbers of the <br>



   filesystem), the i-node number(a unique number within a filesystem), and <br>

   an i-node generation number(a number that changes each time an i-node is <br>

   reused for a different file). <br>

  <br>

9. If the same client mounts another filesystem on the same server, another <br>

   TCP connection is created.(使用TCP支持NFS的时候) <br>

  <br>

   Both the client and server set TCP's keepalive option on their ends of <br>

   the connection. This lets either end detect if the other end crashes, or <br>

   crashes and reboots. <br>

  <br>

scz < mailto: cloudsky@263.net > <br>

2000.02.28 17:50 (待续) <br>

  <br>

-- <br>

            我问飘逝的风:来迟了? <br>

            风感慨:是的,他们已经宣战。 <br>

            我问苏醒的大地:还有希望么? <br>

            大地揉了揉眼睛:还有,还有无数代的少年。 <br>

            我问长空中的英魂:你们相信? <br>

            英魂带着笑意离去:相信,希望还在。 <br>

</small><hr>
<p align="center">[<a href="index.htm">回到开始</a>][<a href="15.htm">上一层</a>][<a href="572.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -