版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、introduction to tcp/ip summary: tcp and ip were developed by a department of defense (dod) research project to connect a number different networks designed by different vendors into a network of networks (the internet). it was initially successful because it delivered a few basic services that every
2、one needs (file transfer, electronic mail, remote logon) across a very large number of client and server systems. several computers in a small department can use tcp/ip (along with other protocols) on a single lan. the ip component provides routing from the department to the enterprise network, then
3、 to regional networks, and finally to the global internet. on the battlefield a communications network will sustain damage, so the dod designed tcp/ip to be robust and automatically recover from any node or phone line failure. this design allows the construction of very large networks with less cent
4、ral management. however, because of the automatic recovery, network problems can go undiagnosed and uncorrected for long periods of time. as with all other communications protocol, tcp/ip is composed of layers: ip - is responsible for moving packet of data from node to node. ip forwards each packet
5、based on a four byte destination address (the ip number). the internet authorities assign ranges of numbers to different organizations. the organizations assign groups of their numbers to departments. ip operates on gateway machines that move data from department to organization to region and then a
6、round the world. tcp - is responsible for verifying the correct delivery of data from client to server. data can be lost in the intermediate network. tcp adds support to detect errors or lost data and to trigger retransmission until the data is correctly and completely received. sockets - is a name
7、given to the package of subroutines that provide access to tcp/ip on most systems. network of lowest bidders the army puts out a bid on a computer and dec wins the bid. the air force puts out a bid and ibm wins. the navy bid is won by unisys. then the president decides to invade grenada and the arme
8、d forces discover that their computers cannot talk to each other. the dod must build a network out of systems each of which, by law, was delivered by the lowest bidder on a single contract. the internet protocol was developed to create a network of networks (the internet). individual machines are fi
9、rst connected to a lan (ethernet or token ring). tcp/ip shares the lan with other uses (a novell file server, windows for workgroups peer systems). one device provides the tcp/ip connection between the lan and the rest of the world. to insure that all types of systems from all vendors can communicat
10、e, tcp/ip is absolutely standardized on the lan. however, larger networks based on long distances and phone lines are more volatile. in the us, many large corporations would wish to reuse large internal networks based on ibms sna. in europe, the national phone companies traditionally standardize on
11、x.25. however, the sudden explosion of high speed microprocessors, fiber optics, and digital phone systems has created a burst of new options: isdn, frame relay, fddi, asynchronous transfer mode (atm). new technologies arise and become obsolete within a few years. with cable tv and phone companies c
12、ompeting to build the national information superhighway, no single standard can govern citywide, nationwide, or worldwide communications. the original design of tcp/ip as a network of networks fits nicely within the current technological uncertainty. tcp/ip data can be sent across a lan, or it can b
13、e carried within an internal corporate sna network, or it can piggyback on the cable tv service. furthermore, machines connected to any of these networks can communicate to any other network through gateways supplied by the network vendor. addresses each technology has its own convention for transmi
14、tting messages between two machines within the same network. on a lan, messages are sent between machines by supplying the six byte unique identifier (the mac address). in an sna network, every machine has logical units with their own network address. decnet, appletalk, and novell ipx all have a sch
15、eme for assigning numbers to each local network and to each workstation attached to the network. on top of these local or vendor specific network addresses, tcp/ip assigns a unique number to every workstation in the world. this ip number is a four byte value that, by convention, is expressed by conv
16、erting each byte into a decimal number (0 to 255) and separating the bytes with a period. for example, the pc lube and tune server is 34. an organization begins by sending electronic mail to hostmasterinternic.net requesting assignment of a network number. it is still possible for almost
17、 anyone to get assignment of a number for a small class c network in which the first three bytes identify the network and the last byte identifies the individual computer. the author followed this procedure and was assigned the numbers 192.35.91.* for a network of computers at his house. larger orga
18、nizations can get a class b network where the first two bytes identify the network and the last two bytes identify each of up to 64 thousand individual workstations. yales class b network is 130.132, so all computers with ip address 130.132.*.* are connected through yale. the organization then conne
19、cts to the internet through one of a dozen regional or specialized network suppliers. the network vendor is given the subscriber network number and adds it to the routing configuration in its own machines and those of the other major network suppliers. there is no mathematical formula that translate
20、s the numbers 192.35.91 or 130.132 into yaleuniversity or new haven, ct. the machines that manage large regional networks or the central internet routers managed by the national science foundation can only locate these networks by looking each network number up in a table. there are potentially thou
21、sands of class b networks, and millions of class c networks, but computer memory costs are low, so the tables are reasonable. customers that connect to the internet, even customers as large as ibm, do not need to maintain any information on other networks. they send all external data to the regional
22、 carrier to which they subscribe, and the regional carrier maintains the tables and does the appropriate routing. new haven is in a border state, split 50-50 between the yankees and the red sox. in this spirit, yale recently switched its connection from the middle atlantic regional network to the ne
23、w england carrier. when the switch occurred, tables in the other regional areas and in the national spine had to be updated, so that traffic for 130.132 was routed through boston instead of new jersey. the large network carriers handle the paperwork and can perform such a switch given sufficient not
24、ice. during a conversion period, the university was connected to both networks so that messages could arrive through either path. subnets although the individual subscribers do not need to tabulate network numbers or provide explicit routing, it is convenient for most class b networks to be internal
25、ly managed as a much smaller and simpler version of the larger network organizations. it is common to subdivide the two bytes available for internal assignment into a one byte department number and a one byte workstation id. the enterprise network is built using commercially available tcp/ip router
26、boxes. each router has small tables with 255 entries to translate the one byte department number into selection of a destination ethernet connected to one of the routers. messages to the pc lube and tune server (34) are sent through the national and new england regional networks based on
27、 the 130.132 part of the number. arriving at yale, the 59 department id selects an ethernet connector in the c& is building. the 234 selects a particular workstation on that lan. the yale network must be updated as new ethernets and departments are added, but it is not effected by changes outsid
28、e the university or the movement of machines within the department. a uncertain path every time a message arrives at an ip router, it makes an individual decision about where to send it next. there is concept of a session with a preselected path for all traffic. consider a company with facilities in
29、 new york, los angeles, chicago and atlanta. it could build a network from four phone lines forming a loop (ny to chicago to la to atlanta to ny). a message arriving at the ny router could go to la via either chicago or atlanta. the reply could come back the other way. how does the router make a dec
30、ision between routes? there is no correct answer. traffic could be routed by the clockwise algorithm (go ny to atlanta, la to chicago). the routers could alternate, sending one message to atlanta and the next to chicago. more sophisticated routing measures traffic patterns and sends data through the
31、 least busy link. if one phone line in this network breaks down, traffic can still reach its destination through a roundabout path. after losing the ny to chicago line, data can be sent ny to atlanta to la to chicago. this provides continued service though with degraded performance. this kind of rec
32、overy is the primary design feature of ip. the loss of the line is immediately detected by the routers in ny and chicago, but somehow this information must be sent to the other nodes. otherwise, la could continue to send ny messages through chicago, where they arrive at a dead end. each network adop
33、ts some router protocol which periodically updates the routing tables throughout the network with information about changes in route status. if the size of the network grows, then the complexity of the routing updates will increase as will the cost of transmitting them. building a single network tha
34、t covers the entire us would be unreasonably complicated. fortunately, the internet is designed as a network of networks. this means that loops and redundancy are built into each regional carrier. the regional network handles its own problems and reroutes messages internally. its router protocol upd
35、ates the tables in its own routers, but no routing updates need to propagate from a regional carrier to the nsf spine or to the other regions (unless, of course, a subscriber switches permanently from one region to another). undiagnosed problems ibm designs its sna networks to be centrally managed.
36、if any error occurs, it is reported to the network authorities. by design, any error is a problem that should be corrected or repaired. ip networks, however, were designed to be robust. in battlefield conditions, the loss of a node or line is a normal circumstance. casualties can be sorted out later
37、 on, but the network must stay up. so ip networks are robust. they automatically (and silently) reconfigure themselves when something goes wrong. if there is enough redundancy built into the system, then communication is maintained. in 1975 when sna was designed, such redundancy would be prohibitive
38、ly expensive, or it might have been argued that only the defense department could afford it. today, however, simple routers cost no more than a pc. however, the tcp/ip design that, errors are normal and can be largely ignored, produces problems of its own. data traffic is frequently organized around
39、 hubs, much like airline traffic. one could imagine an ip router in atlanta routing messages for smaller cities throughout the southeast. the problem is that data arrives without a reservation. airline companies experience the problem around major events, like the super bowl. just before the game, e
40、veryone wants to fly into the city. after the game, everyone wants to fly out. imbalance occurs on the network when something new gets advertised. adam curry announced the server at and his regional carrier was swamped with traffic the next day. the problem is that messages come in from the entire w
41、orld over high speed lines, but they go out to over what was then a slow speed phone line. occasionally a snow storm cancels flights and airports fill up with stranded passengers. many go off to hotels in town. when data arrives at a congested router, there is no place to send the overflow. excess p
42、ackets are simply discarded. it becomes the responsibility of the sender to retry the data a few seconds later and to persist until it finally gets through. this recovery is provided by the tcp component of the internet protocol. tcp was designed to recover from node or line failures where the netwo
43、rk propagates routing table changes to all router nodes. since the update takes some time, tcp is slow to initiate recovery. the tcp algorithms are not tuned to optimally handle packet loss due to traffic congestion. instead, the traditional internet response to traffic problems has been to increase
44、 the speed of lines and equipment in order to say ahead of growth in demand. tcp treats the data as a stream of bytes. it logically assigns a sequence number to each byte. the tcp packet has a header that says, in effect, this packet starts with byte 379642 and contains 200 bytes of data. the receiv
45、er can detect missing or incorrectly sequenced packets. tcp acknowledges data that has been received and retransmits data that has been lost. the tcp design means that error recovery is done end-to-end between the client and server machine. there is no formal standard for tracking problems in the mi
46、ddle of the network, though each network has adopted some ad hoc tools. need to know there are three levels of tcp/ip knowledge. those who administer a regional or national network must design a system of long distance phone lines, dedicated routing devices, and very large configuration files. they
47、must know the ip numbers and physical locations of thousands of subscriber networks. they must also have a formal network monitor strategy to detect problems and respond quickly. each large company or university that subscribes to the internet must have an intermediate level of network organization
48、and expertise. a half dozen routers might be configured to connect several dozen departmental lans in several buildings. all traffic outside the organization would typically be routed to a single connection to a regional network provider. however, the end user can install tcp/ip on a personal comput
49、er without any knowledge of either the corporate or regional network. three pieces of information are required: 1.the ip address assigned to this personal computer the part of the ip address (the subnet mask) that distinguishes other machines on the same lan (messages can be sent to them directly) f
50、rom machines in other departments or elsewhere in the world (which are sent to a router machine) 2.the ip address of the router machine that connects this lan to the rest of the world. 3.in the case of the pclt server, the ip address is 34. since the first three bytes designate this depa
51、rtment, a subnet mask is defined as (255 is the largest byte value and represents the number with all bits turned on). it is a yale convention (which we recommend to everyone) that the router for each department have station number 1 within the department network. thus the pclt router
52、is . thus the pclt server is configured with the values: my ip address: 34 subnet mask: default router: the subnet mask tells the server that any other machine with an ip address beginning 130.132.59.* is on the same department lan, so messages are
53、sent to it directly. any ip address beginning with a different value is accessed indirectly by sending the message through the router at (which is on the departmental lan). additional information is available in self-study courses from sra (1-800-sra-1277) tcp/ip 34610 copyright 1995 pc
54、lt - introduction to tcp/ip - h. gilbert tcp/ip 的介紹說明摘要: tcp/ip 是由美國國防部( dod)開發(fā)的一個研究項目,用以將不同的網(wǎng)絡(luò)廠商設(shè)計的不同網(wǎng)絡(luò)連接到由許多網(wǎng)絡(luò)組成的一個網(wǎng)絡(luò)中(即 互聯(lián)網(wǎng) ) 。它取得了初步的成功, 因為它通過穿越大量的客戶機與服務(wù)器系統(tǒng)向人們提供了一些基本的需求服務(wù)(如文件傳輸?shù)幕痉?wù),電子郵件,遠程登錄)。在一個單一局域網(wǎng)中一個小部門多臺計算機可以使用tcp / ip(同其他協(xié)議)。ip 組件提供的路由可以從部門到企業(yè)網(wǎng)絡(luò),然后再到區(qū)域網(wǎng)絡(luò),并最終接入全球互聯(lián)網(wǎng)。在戰(zhàn)場上,通信網(wǎng)絡(luò)將面臨被破壞的危險,因此,
55、美國國防部設(shè)計的tcp / ip要很健全穩(wěn)定, 并能從任何節(jié)點或電話線路故障中自動恢復(fù)。這樣的設(shè)計允許在較少的中央控制下組建龐大的網(wǎng)絡(luò)。此外,由于自動恢復(fù)機制, 網(wǎng)絡(luò)問題可以在很長一段時間內(nèi)不被進行問題診斷和錯誤糾正。正如其他所有通信協(xié)議, tcp / ip 協(xié)議是由多個層組成的:?ip - 負責(zé)將數(shù)據(jù)包從一個節(jié)點移動到另一個節(jié)點。每個數(shù)據(jù)包的ip 轉(zhuǎn)發(fā)基于四字節(jié)的目的地址( ip 地址) 。互聯(lián)網(wǎng)管理機構(gòu)對不同地區(qū)組織分配了一定數(shù)量的 ip 地址。各地區(qū)組織將他們所擁有的地址劃分成數(shù)個組再分配到各個部門。ip 運行在被稱為網(wǎng)關(guān)的機器上面,而網(wǎng)關(guān)的作用是將數(shù)據(jù)包層層轉(zhuǎn)發(fā),從部門到組織再到地區(qū)最
56、后送達全世界。?tcp - 負責(zé)核查從客戶傳送到服務(wù)器的數(shù)據(jù)正確性。數(shù)據(jù)在傳遞時可能會在中間的網(wǎng)絡(luò)發(fā)生丟失。 tcp 增加了對錯誤以及丟失數(shù)據(jù)的檢測并且能在發(fā)生問題時激活數(shù)據(jù)重傳機制直到數(shù)據(jù)被正確和完整的接收。?sockets 是一個數(shù)據(jù)包子程序的名稱,該子程序能提供在大多數(shù)系統(tǒng)上接入 tcp/ip 的功能。網(wǎng)絡(luò)的最低投標(biāo)美國陸軍提出了一個計算機上系統(tǒng)上的競標(biāo)由dec 公司贏得。美國空軍也提出一個競標(biāo)并由ibm 公司贏得。而美國海軍的競標(biāo)則由unisys 公司贏得。當(dāng)美國總統(tǒng)決定入侵格林納達時, 美國軍方發(fā)現(xiàn)他們的陸??杖姼髯运鶕碛械挠嬎銠C不能與其他軍種的計算機相互通信。因此,美國國防部必須
57、建立一個網(wǎng)絡(luò)體系, 它不依賴于陸??杖姼髯愿鶕?jù)法律法規(guī)由最低競價者按照合同所交付的計算機系統(tǒng)。開發(fā) internet 協(xié)議是為了建立一個將許多不同網(wǎng)絡(luò)集合在一起的網(wǎng)絡(luò)(以下簡稱 互聯(lián)網(wǎng) ) 。獨立的機器都首先連接到局域網(wǎng)(以太網(wǎng)或令牌環(huán))。 tcp/ip協(xié)議與其他應(yīng)用共同使用局域網(wǎng) (如 novell 文件服務(wù)器,windows for workgroups的對等系統(tǒng))。一臺設(shè)備在局域網(wǎng)和世界的剩余地區(qū)提供tcp/ip 連接。為了確保所有供應(yīng)商的所有類型的系統(tǒng)可以彼此相互溝通,tcp/ip 協(xié)議是局域網(wǎng)上的絕對標(biāo)準(zhǔn)。不過,基于長途電話線介質(zhì)基礎(chǔ)上的較大網(wǎng)絡(luò)更加不穩(wěn)定。在美國,許多大公司希望重
58、新使用以ibm 的 sna 為基礎(chǔ)的龐大的內(nèi)部網(wǎng)絡(luò)。 在歐洲,國家通信公司傳統(tǒng)上以x.25 為標(biāo)準(zhǔn)。然而,隨著高速微處理器、光纖以及數(shù)字電話系統(tǒng)的迅猛發(fā)展產(chǎn)生了一些新的選擇:綜合業(yè)務(wù)數(shù)字網(wǎng)(isdn) ,幀中繼,光纖分布式數(shù)據(jù)介面(fddi) ,異步傳輸模式( atm) 。新技術(shù)誕生并在幾年內(nèi)就成為了過時產(chǎn)品。 隨著有線電視和電話公司競相建立國家信息高速公路,沒有一個標(biāo)準(zhǔn)可以統(tǒng)治全市,全國或全球通信。tcp/ip 將眾多網(wǎng)絡(luò)再次組合成為一個網(wǎng)絡(luò), 在當(dāng)今技術(shù)存在不確定性的條件下,tcp/ip 的原始設(shè)計是非常適合的。tcp/ip 數(shù)據(jù)可以通過局域網(wǎng)發(fā)送,也可以在企業(yè) sna 網(wǎng)絡(luò)內(nèi)部被傳輸,也
59、可以搭載在有線電視服務(wù)網(wǎng)上。此外,接入這些網(wǎng)絡(luò)的機器設(shè)備可以在網(wǎng)絡(luò)供應(yīng)商提供支持的情況下通過網(wǎng)關(guān)與其他任何網(wǎng)絡(luò)進行通信交流。地址每一項技術(shù)都有其自己的公約使兩臺機器在同一個網(wǎng)絡(luò)內(nèi)的傳遞信息。在一個局域網(wǎng)內(nèi),根據(jù)所提供的六字節(jié)唯一標(biāo)示符(即網(wǎng)卡物理地址mac )使得消息在機器設(shè)備之間傳遞。在一個sna 網(wǎng)絡(luò),每一臺機器擁有自己的網(wǎng)絡(luò)地址邏輯單元。 decnet,appletalk 以及 novell ipx 都一套體系用來給每個本地網(wǎng)絡(luò)以及接入網(wǎng)絡(luò)的每一個工作站分配地址。在這些地方或供應(yīng)商特定的網(wǎng)絡(luò)地址中,tcp/ip 給全球每一個工作站分配一個獨一無二的地址。 這種ip 地址 是一個 4 字節(jié)
60、的值, 按照約定, 每一個字節(jié)通過將其轉(zhuǎn)變成一個范圍從0 到 255 的十進制數(shù)來表示, 并且每一個字節(jié)通過句點來作為間隔。例如, pc lube and tune的服務(wù)器 ip 地址是 34。一個組織起初可以通過向hostmasterinternic.net 發(fā)送電子郵件來申請獲得一個網(wǎng)絡(luò)地址。幾乎對于任何人來說申請得到一個小的c 類網(wǎng)絡(luò)地址也是可能的,這個c 類網(wǎng)絡(luò)地址前三個字節(jié)用于識別網(wǎng)絡(luò)而最后一個字節(jié)用于標(biāo)明獨立的電腦。 作者根據(jù)這個流程, 為他放置在房屋里的電腦所組成的網(wǎng)絡(luò)分配到了 192.35.91.*這個地址群。大型組織可以得到b類 網(wǎng)絡(luò),其中前兩個字節(jié)識別網(wǎng)絡(luò)而最后
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度綠色建筑商品房建筑工程施工監(jiān)理合同5篇
- 2024有關(guān)設(shè)備購銷合同
- 2024無房產(chǎn)證房屋使用權(quán)轉(zhuǎn)讓與物業(yè)管理服務(wù)合同3篇
- 2025年度全國連鎖餐飲品牌標(biāo)準(zhǔn)化轉(zhuǎn)讓合同范本共4冊3篇
- 2025年度生物醫(yī)藥研發(fā)合作與股權(quán)投資合同3篇
- 無人機配送物流服務(wù)合同
- 2025年度水廠應(yīng)急救援能力建設(shè)承包合同3篇
- 2024年股權(quán)轉(zhuǎn)讓合同標(biāo)的股權(quán)轉(zhuǎn)讓服務(wù)合同
- 二零二五年度房地產(chǎn)項目廉政建設(shè)合同樣本3篇
- 2024版地鐵口商鋪租賃合同(含物業(yè)管理及商業(yè)設(shè)施共享)3篇
- G -B- 43630-2023 塔式和機架式服務(wù)器能效限定值及能效等級(正式版)
- 工作總結(jié)中的不足之處
- 城市軌道交通安全防范系統(tǒng)技術(shù)要求
- 電科院:儲能構(gòu)網(wǎng)控制及并網(wǎng)測試
- 廣東省初級中學(xué)學(xué)生學(xué)籍表
- 生鮮超市供貨超市供貨服務(wù)方案
- 銀行營銷拆遷戶活動方案
- 25道長江存儲固件工程師崗位常見面試問題含HR常問問題考察點及參考回答
- 《交通規(guī)劃原理》課件
- 警察急救能力培訓(xùn)課件模板
- 倍加福-KFU8-UFC-信號隔離或轉(zhuǎn)換模塊中文操作指導(dǎo)
評論
0/150
提交評論