分享
 
 
 

RFC133 - File Transfer and Error Recovery

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Network Working Group R. L. Sunberg

Request for Comments: 133 Harvard University

NIC 6710 27 April 1971

[Categories C.4, C.5, C.6, D.4, D.7, D.7]

FILE TRANSFER AND ERROR RECOVERY

1 FILE TRANSFER PROTOCOL

1A Handshaking

I think that Mr Bhushan(RFC#114, NIC 5823) is not strict enough in

his concept of a transaction sequence. Every transaction should

prompt a response from its recipient (recall Kalin's crates --

RFC#60, NIC 4762). Control should pass back and forth until the

server terminates. The server _always_ gets the last Word (more on

error recovery later).

Some sample interchanges are given.

User Server Comments

<...> ==> Establish a connection

<== <...>

<I><...> ==> Identify self

<== <+> Ok, ready

<R><...> ==> Retrieval request

<== <rs> I've got your file

<rr> ==> Send it

<== <,><...> Here's the first part

<rr> ==> Got it

<== <+> All done

<S><...> ==> Store request

<== <rr> Ok, go ahead

<#><...> ==> Here's some protection stuff

<== <rr> Ok

<*><...> ==> Here's the file

<== <+> Got it. All done.

See section 2B, below, for examples of error recovery.

1B Extensions to the file transfer protocol

The file transfer protocol needs a mechanism for Accessing individual

records of a file. This will be particularly useful when very large

data bases appear on the network. The following definitions should

be added to the protocol:

The store(S) and retrieve(R) requests have the data field format

<key>, where <key> has the syntax:

<key>::=<devicename>RS<filename>US<keyname> <filename>US<keyname>.

-- -- --

The <pathname> syntax is changed to:

<pathname>::=<devicename> <filename> <pathname>RS<filename>.

--

If a retrieve(R) request is given with a data field with <key>

syntax rather than <pathname> syntax, then the returned data will

consist of the record following the matching <key>. If a store(S)

request is given with a data field of <key> syntax, then the

supplied data will replace the record following the matching

<keyname>. If the keyname does not exist, the record will be

appended to the named file. The individual installation must

provide the linkage between the <keyname> and the record it

references.

In addition, the lookup(L) request will provide a list of keynames

into a file (or the name of a file which contains the keynames).

Transaction code F (request File Directory) requests a listing of

available files. The data field of the F transaction is of the

form: <pathname>GS<pathname>GS... All files in the server system

-- --

which match one or more of the given <pathname> specifiers are

listed in a return file. The format of the data fields of this

file is: <pathname>GS<pathname>GS... If a <pathname> field in

-- --

the request transaction does not include a <name> field, the

default is all files on the given device. Some examples are given:

<F><DC1 DSK[62,50]] GS JOE>

--- --

This example requests a list of all files on the disk specified by

[62,50] plus all files named JOE. The response could contain in

the data field:

<DC1 DSK[62,50] RS ALPHA RS BETA RS JOE GS DC1 DSK[10,50] RS JOE>

--- -- -- -- -- --- --

This message states that in the [62,50] area of the disk there are

files ALPHA, BETA, and JOE, and that JOE is also a file in the

[10,50] area of the disk.

2 ERROR RECOVERY

2A Error recovery procedures have been noticeably lacking to date.

The usual approach has been to close the connection and start from

scratch. Mr Bhushan proposes a third level abort but doesn't

really detail the implementation. I propose a multilevel error

recovery procedure as follows.

2B If an error occurs which does not cause a loss of third level

transaction boundaries and only affects one side of a duplex

connection, a third level recovery is possible via a transaction

sequence abort. An example is given:

User Server Comments

<R><...> ==> Send me this file

<== <rs> Ok, I've got it

<rr> ==> Ready

<== <*><...error> Here it is (with an error)

<-><D> ==> No. (data) error

<== <-><D> Sorry, forget it

<R><...> ==> Send the file (again)

<== <rs> Ready (doesn't get there)

... (waiting)

<-><0> ==> Error, timeout

<== <-><0> Sorry, forget it

<R><...> ==> Send the file (third time)

<== <rs> Got it

<rr> ==> Ready

<== <*><...> There it is

<rr> ==> Got it

<== <+> Done (finally>

Note that the server always gets the last word in error situations

as well as normal transmission.

2C Although the above examples are given in terms of Bhushan's

transaction codes, this form of error recovery is implementable in

any protocol which uses flagged blocking and duplex connections.

2D If errors cannot be recovered as above, then some means must be

available to clear the link completely and resynchronize. I

suggest that an 8-bit argument be appended to the interrupt-on-link

NCP message (INR, INS). The receiver would send <INR><error> to

indicate that the block boundaries were lost and all incoming data

is being discarded. The sender, upon receiving the INR, would

flush all queued output and wait for the link to clear. The NCP

would then send a <INS><newsync> message and, when it was received

(RFNM returned), a negative termination would be sent on the link.

The receiver begins accepting data again when the INS is received.

This assumes that any process can flush untransmitted data and

detect a clear link. Note that this method is useable on any

simplex connection.

2E If all else fails, one can resort to closing the faulty socket.

3 NCP VERSION NUMBERS

3A I suggest that the NCP be given a version number and the next

version include two new message types: <WRU> ('Who aRe yoU?')

requests a version number from the receiving host and <IAM><version>

('I AM') supplies that number.

3B The messages would probably be initially used in a 'can I talk to

you?' sense or not at all. Eventually, it would take on a 'what

can you do?' meaning. Accordingly, the <version> field should be

large (32 bits?) for eXPansion.

[ This RFCwas put into machine readable form for entry ]

[ into the online RFCarchives by Jose Tamayo 4/97 ]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有