Understanding TCP/IP Networking 385same time (like two people talking  dịch - Understanding TCP/IP Networking 385same time (like two people talking  Việt làm thế nào để nói

Understanding TCP/IP Networking 385

Understanding TCP/IP Networking 385
same time (like two people talking on a telephone). Hubs permit only half-duplex
transmission, in which the two computers must take turns (like two people using
walkie-talkies). The result is that switches let two pairs of computers engage in full-speed data
transfers with each other; with a hub, these two transfers would interfere with each other.
Computers with Wi-Fi adapters can be confi gured to communicate directly with one
another, but it’s more common to employ a wireless router, which links together both
wireless and Ethernet devices. Such routers also provide connections to an outside
network—typically the Internet, sometimes via a broadband connection.
Understanding Network Packets
Modern networks operate on discrete chunks of data known as packets. Suppose you want
to send a 100KiB fi le from one computer to another. Rather than send the fi le in one burst
of data, your computer breaks it down into smaller chunks. The system might send 100
packets of 1KiB each, for instance. This way, if there’s an error sending one packet, the
computer can resend just that one packet rather than the entire fi le. (Many network
protocols include error-detection procedures.)
When the recipient system receives packets, it must hold on to them and reassemble them
in the correct order to re-create the complete data stream. It’s not uncommon for packets
to be delayed or even lost in transmission, so error-recovery procedures are critical for
protocols that handle large transfers. Some types of error recovery are handled transparently
by the networking hardware.
There are several types of packets, and they can be stored within each other. For
instance, Ethernet includes its own packet type (known as a frame), and the packets
generated by networking protocols that run atop Ethernet, such as those described in the
next section, are stored within Ethernet frames. All told, a data transfer can involve several
layers of wrapping and unwrapping data. With each layer, packets from the adjacent layer
may be merged or split up.
Understanding Network Protocol Stacks
It’s possible to think of network data at various levels of abstractness. For instance, at one
level, a network carries data packets for a specifi c network type (such as Ethernet); the data
packets are addressed to specifi c computers on a local network. Such a description, while
useful for understanding a local network, isn’t very useful for understanding higher-level
network protocols, such as those that handle email transfers. These high-level protocols
are typically described in terms of commands sent back and forth between computers,
frequently without reference to packets. The addresses used at different levels also vary, as
explained in the upcoming section “Using Network Addresses.”
A protocol stack is a set of software that converts and encapsulates data between layers
of abstraction. For instance, the stack can take the commands of email transfer protocols,
and the email messages that are transferred, and package them into packets. Another layer
of the stack can take these packets and repackage them into Ethernet frames. There are
c08.indd 385 11/12/12 12:12 PM
386 Chapter 8 ■ Configuring Basic Networking
several layers to any protocol stack, and they interact in highly specifi ed ways. It’s often
possible to swap out one component for another at any given layer. For instance, at the top
of each stack is a program that uses the stack, such as an email client. You can switch
from one email client to another without too much diffi culty; both rest atop the same
stack. Likewise, if you change a network card, you have to change the driver for that card,
which constitutes a layer very low in the stack. Applications above that driver can remain
the same.
Each computer in a transaction requires a compatible protocol stack. When they communicate,
the computers pass data down their respective stacks and then send data to the
partner system, which passes the data up its stack. Each layer on the receiving system sees
the data as packaged by its counterpart on the sending computer.
Protocol stacks are frequently represented graphically in diagrams like Figure 8.2, which
shows the confi guration of the TCP/IP protocol stack that dominates the Internet today. As
shown in Figure 8.2, client programs at the application layer initiate data transfers. These
requests pass through the transport, internet, and link layers on the client computer,
whereupon they leave the client system and pass to the server system. (This transfer can
involve a lot of complexity not depicted in Figure 8.2.) On the server, the process reverses
itself, with the server program running at the application layer replying to the client
program. This reply reverses the journey, traveling down the server computer’s stack, across
the network, and up the stack on the client. A full-fl edged network connection can involve
many back-and-forth data transfers.
FIGURE 8.2 Information travels “down” and “up” protocol stacks, being checked and
re-packed at each step of the way.
Application
Transport
Internet
Link
Client
Reply
Request
Application
Transport
Internet
Link
Server
c08.indd 386 11/12/12 12:12 PM
Understanding TCP/IP Networking 387
When spelled with an uppercase I, the word Internet refers to the
globe-spanning network of networks with which you’re no doubt familiar.
When spelled with a lowercase i, however, the word internet refers to any
collection of networks. An internet in this sense could be a couple of
small networks in somebody’s basement with no outside connections.
Internet networking protocols such as TCP/IP can work on any internet, up
to and including the Internet.
Each component layer of the sending system is equivalent to a layer on the receiving
system, but these layers need not be absolutely identical. For instance, you can have different
models of network card at the link layer, or you can even use entirely different network
hardware types, such as Ethernet and Token Ring, if some intervening system translates
between them. The computers may run different OSs and hence use different—but logically
equivalent—protocol stacks. What’s important is that the stacks operate in compatible ways.
Linux was designed with TCP/IP in mind, and the Internet is built atop TCP/IP. Other
protocol stacks are available, though, and you may occasionally run into them. In particular,
NetBEUI was the original Microsoft and IBM protocol stack for Windows, AppleTalk
was Apple’s initial protocol stack, and the Internet Packet Exchange/Sequenced Packet
Exchange (IPX/SPX) was Novell’s favored protocol stack. All three are now fading in
importance, but you may still need to use them in some environments. Linux supports
AppleTalk and IPX/SPX but not NetBEUI.
Knowing TCP/IP Protocol Types
Within TCP/IP, several different protocols exist. Each of these protocols can be classifi ed
as falling on one of the four layers of the TCP/IP stack, as shown in Figure 8.2. The most
important of the internet- and transport-layer protocols are the building blocks for the
application-layer protocols with which you interact more directly. These important
internet- and transport-layer protocols include the following:
IP The Internet Protocol (IP) is the core protocol in TCP/IP networking. Referring to
Figure 8.2, IP is an internet-layer (aka a network-layer or layer 2) protocol. IP provides
a “best effort” method for transferring packets between computers—that is, the packets
aren’t guaranteed to reach their destination. Packets may also arrive out of order or
corrupted. Other components of the TCP/IP stack must deal with these issues and have
their own ways of doing so. IP is also the portion of TCP/IP with which IP addresses are
associated. (The Real World Scenario sidebar “The Coming of IPv6” describes a change in
the IP portion of TCP/IP that’s underway.)
ICMP The Internet Control Message Protocol (ICMP) is a simple protocol for communicating
data. ICMP is most often used to send error messages between computers—for instance, to
signal that a requested service isn’t available. This is often done by modifying an IP packet
and returning it to its sender, which means that ICMP is technically an internet-layer
c08.indd 387 11/12/12 12:12 PM
388 Chapter 8 ■ Configuring Basic Networking
protocol, although it relies upon IP. In most cases, you won’t use programs that generate
ICMP packets on demand; they’re created behind the scenes as you use other protocols.
One exception is the ping program, which is described in more detail in “Testing Basic
Connectivity.”
UDP The User Datagram Protocol (UDP) is the simplest of the common transport-layer
(aka layer 3) TCP/IP protocols. It doesn’t provide sophisticated procedures to correct for
out-of-order packets, guarantee delivery, or otherwise improve the limitations of IP. This
fact can be a problem, but it also means that UDP can be faster than more-sophisticated
tools that provide such improvements to IP. Common application-layer protocols that are
built atop UDP include the Domain Name System (DNS), the Network File System (NFS),
and many streaming-media protocols.
TCP The Transmission Control Protocol (TCP) may be the most widely used transportlayer
protocol in the TCP/IP stack. Unlike UDP, TCP creates full connections with error
checking and correction as well as other features. These features simplify the creation of
network protocols that must exchange large amounts of data, but the features come at a
cost: TCP imposes a small performance penalty. Most of the application-layer protocols
with which you may already be familiar, including the Simple Mail Transfer Protocol
(SMTP), the Hypertext Transfer Protocol (HTTP), and the File Transfer Protocol (FTP),
are built atop TCP.
You may notice that the name of the TCP/IP stack is built up of two of the stack’s
protocol names: TCP and IP. This is because these two protocol
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Sự hiểu biết TCP/IP mạng 385cùng một lúc (như hai người nói chuyện trên điện thoại). Trung tâm cho phép chỉ một nửa-songbộ truyền động, trong đó hai máy tính phải thay phiên nhau (giống như hai người sử dụnggác). Kết quả là thiết bị chuyển mạch cho phép hai cặp máy tính tham gia vào các dữ liệu tốc độ đầy đủchuyển với nhau; với một trung tâm, các giao dịch chuyển hai sẽ ảnh hưởng đến với nhau.Máy vi tính với Wi-Fi bộ điều hợp mạng có thể là cấu gured để giao tiếp trực tiếp với mộtkhác, nhưng nó là phổ biến hơn để sử dụng một router không dây, liên kết với nhau cả haikhông dây và thiết bị Ethernet. Các bộ định tuyến cũng cung cấp các kết nối đến một bên ngoàimạng — thường là Internet, đôi khi thông qua một kết nối băng thông rộng.Sự hiểu biết mạng góiMạng lưới hiện đại hoạt động trên rời rạc khối dữ liệu được gọi là gói. Giả sử bạn muốnđể gửi một 100KiB fi le từ một máy tính khác. Thay vì gửi fi le trong một burstdữ liệu, máy tính của bạn phá vỡ nó xuống thành nhiều phần nhỏ hơn. Hệ thống có thể gửi 100Các gói tin của 1KiB mỗi, ví dụ. Bằng cách này, nếu có lỗi trong khi gửi một gói, cácmáy tính có thể gửi lại chỉ rằng gói một chứ không phải là toàn bộ fi le. (Nhiều mạnggiao thức bao gồm thủ tục phát hiện lỗi.)Khi hệ thống người nhận nhận được gói dữ liệu, nó phải giữ cho họ và lắp ráp lại chúngtheo thứ tự đúng để tái tạo các dòng dữ liệu đầy đủ. Nó không phải là phổ biến cho các gói dữ liệuđể được trì hoãn hoặc thậm chí bị mất trong truyền tải, vì vậy thủ tục khôi phục lỗi rất quan trọng choprotocols that handle large transfers. Some types of error recovery are handled transparentlyby the networking hardware.There are several types of packets, and they can be stored within each other. Forinstance, Ethernet includes its own packet type (known as a frame), and the packetsgenerated by networking protocols that run atop Ethernet, such as those described in thenext section, are stored within Ethernet frames. All told, a data transfer can involve severallayers of wrapping and unwrapping data. With each layer, packets from the adjacent layermay be merged or split up.Understanding Network Protocol StacksIt’s possible to think of network data at various levels of abstractness. For instance, at onelevel, a network carries data packets for a specifi c network type (such as Ethernet); the datapackets are addressed to specifi c computers on a local network. Such a description, whileuseful for understanding a local network, isn’t very useful for understanding higher-levelnetwork protocols, such as those that handle email transfers. These high-level protocolsare typically described in terms of commands sent back and forth between computers,frequently without reference to packets. The addresses used at different levels also vary, asexplained in the upcoming section “Using Network Addresses.”A protocol stack is a set of software that converts and encapsulates data between layersof abstraction. For instance, the stack can take the commands of email transfer protocols,and the email messages that are transferred, and package them into packets. Another layerof the stack can take these packets and repackage them into Ethernet frames. There arec08.indd 385 11/12/12 12:12 PM386 Chapter 8 ■ Configuring Basic Networkingseveral layers to any protocol stack, and they interact in highly specifi ed ways. It’s oftenpossible to swap out one component for another at any given layer. For instance, at the topof each stack is a program that uses the stack, such as an email client. You can switchfrom one email client to another without too much diffi culty; both rest atop the samestack. Likewise, if you change a network card, you have to change the driver for that card,which constitutes a layer very low in the stack. Applications above that driver can remainthe same.Each computer in a transaction requires a compatible protocol stack. When they communicate,the computers pass data down their respective stacks and then send data to thepartner system, which passes the data up its stack. Each layer on the receiving system seesthe data as packaged by its counterpart on the sending computer.Protocol stacks are frequently represented graphically in diagrams like Figure 8.2, whichshows the confi guration of the TCP/IP protocol stack that dominates the Internet today. Asshown in Figure 8.2, client programs at the application layer initiate data transfers. Theserequests pass through the transport, internet, and link layers on the client computer,whereupon they leave the client system and pass to the server system. (This transfer caninvolve a lot of complexity not depicted in Figure 8.2.) On the server, the process reversesitself, with the server program running at the application layer replying to the clientprogram. This reply reverses the journey, traveling down the server computer’s stack, acrossthe network, and up the stack on the client. A full-fl edged network connection can involvemany back-and-forth data transfers.FIGURE 8.2 Information travels “down” and “up” protocol stacks, being checked andre-packed at each step of the way.ApplicationTransportInternetLinkClientReplyRequestApplicationTransportInternetLinkServerc08.indd 386 11/12/12 12:12 PMUnderstanding TCP/IP Networking 387When spelled with an uppercase I, the word Internet refers to theglobe-spanning network of networks with which you’re no doubt familiar.When spelled with a lowercase i, however, the word internet refers to anycollection of networks. An internet in this sense could be a couple ofsmall networks in somebody’s basement with no outside connections.Internet networking protocols such as TCP/IP can work on any internet, upto and including the Internet.Each component layer of the sending system is equivalent to a layer on the receivingsystem, but these layers need not be absolutely identical. For instance, you can have differentmodels of network card at the link layer, or you can even use entirely different networkhardware types, such as Ethernet and Token Ring, if some intervening system translatesbetween them. The computers may run different OSs and hence use different—but logicallyequivalent—protocol stacks. What’s important is that the stacks operate in compatible ways.Linux was designed with TCP/IP in mind, and the Internet is built atop TCP/IP. Otherprotocol stacks are available, though, and you may occasionally run into them. In particular,NetBEUI was the original Microsoft and IBM protocol stack for Windows, AppleTalkwas Apple’s initial protocol stack, and the Internet Packet Exchange/Sequenced PacketExchange (IPX/SPX) was Novell’s favored protocol stack. All three are now fading inimportance, but you may still need to use them in some environments. Linux supportsAppleTalk and IPX/SPX but not NetBEUI.Knowing TCP/IP Protocol TypesWithin TCP/IP, several different protocols exist. Each of these protocols can be classifi edas falling on one of the four layers of the TCP/IP stack, as shown in Figure 8.2. The mostimportant of the internet- and transport-layer protocols are the building blocks for theapplication-layer protocols with which you interact more directly. These importantinternet- and transport-layer protocols include the following:IP The Internet Protocol (IP) is the core protocol in TCP/IP networking. Referring toFigure 8.2, IP is an internet-layer (aka a network-layer or layer 2) protocol. IP providesa “best effort” method for transferring packets between computers—that is, the packetsaren’t guaranteed to reach their destination. Packets may also arrive out of order orcorrupted. Other components of the TCP/IP stack must deal with these issues and havetheir own ways of doing so. IP is also the portion of TCP/IP with which IP addresses areassociated. (The Real World Scenario sidebar “The Coming of IPv6” describes a change inthe IP portion of TCP/IP that’s underway.)ICMP The Internet Control Message Protocol (ICMP) is a simple protocol for communicatingdata. ICMP is most often used to send error messages between computers—for instance, tosignal that a requested service isn’t available. This is often done by modifying an IP packetand returning it to its sender, which means that ICMP is technically an internet-layerc08.indd 387 11/12/12 12:12 PM388 Chapter 8 ■ Configuring Basic Networkingprotocol, although it relies upon IP. In most cases, you won’t use programs that generateICMP packets on demand; they’re created behind the scenes as you use other protocols.One exception is the ping program, which is described in more detail in “Testing BasicConnectivity.”UDP The User Datagram Protocol (UDP) is the simplest of the common transport-layer(aka layer 3) TCP/IP protocols. It doesn’t provide sophisticated procedures to correct forout-of-order packets, guarantee delivery, or otherwise improve the limitations of IP. This
fact can be a problem, but it also means that UDP can be faster than more-sophisticated
tools that provide such improvements to IP. Common application-layer protocols that are
built atop UDP include the Domain Name System (DNS), the Network File System (NFS),
and many streaming-media protocols.
TCP The Transmission Control Protocol (TCP) may be the most widely used transportlayer
protocol in the TCP/IP stack. Unlike UDP, TCP creates full connections with error
checking and correction as well as other features. These features simplify the creation of
network protocols that must exchange large amounts of data, but the features come at a
cost: TCP imposes a small performance penalty. Most of the application-layer protocols
with which you may already be familiar, including the Simple Mail Transfer Protocol
(SMTP), the Hypertext Transfer Protocol (HTTP), and the File Transfer Protocol (FTP),
are built atop TCP.
You may notice that the name of the TCP/IP stack is built up of two of the stack’s
protocol names: TCP and IP. This is because these two protocol
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Hiểu TCP / IP Networking 385
cùng một thời gian (giống như hai người nói chuyện trên điện thoại). Hubs cho phép chỉ một nửa-duplex
truyền, trong đó hai máy tính phải thay phiên nhau (giống như hai người sử dụng
máy bộ đàm). Kết quả là công tắc cho hai cặp của máy tính tham gia vào toàn dữ liệu tốc độ
chuyển với nhau; với một trung tâm, hai chuyển những sẽ can thiệp với nhau.
Máy vi tính với Wi-Fi adapter có thể gured confi để giao tiếp trực tiếp với
nhau, nhưng nó phổ biến hơn để sử dụng một bộ định tuyến không dây, trong đó liên kết với nhau cả hai
thiết bị không dây và Ethernet. Định tuyến như vậy cũng cung cấp kết nối đến một bên ngoài
mạng thường là Internet, đôi khi thông qua một kết nối băng thông rộng.
Hiểu Mạng gói
mạng hiện đại hoạt động trên những phần rời rạc của các dữ liệu được gọi là các gói tin. Giả sử bạn muốn
gửi một 100KiB fi le từ máy này sang máy khác. Thay vì gửi các fi le trong một vụ nổ
của dữ liệu, máy tính của bạn phá vỡ nó xuống thành những phần nhỏ hơn. Hệ thống này có thể gửi 100
gói 1KiB nhau, ví dụ. Bằng cách này, nếu có một lỗi gửi một gói tin, các
máy tính có thể gửi lại chỉ là một gói tin thay vì toàn bộ fi le. (Nhiều mạng
giao thức bao gồm các thủ tục báo lỗi phát hiện.)
Khi hệ thống người nhận nhận được gói tin, nó phải giữ cho họ và sắp xếp chúng lại
theo thứ tự chính xác để tái tạo các luồng dữ liệu hoàn chỉnh. Nó không phải là hiếm đối với các gói tin
bị trì hoãn hoặc thậm chí bị mất trong truyền tải, do vậy các quy phục hồi lỗi rất quan trọng cho
các giao thức xử lý các giao dịch chuyển lớn. Một số loại khôi lỗi được xử lý một cách minh bạch
của các phần cứng mạng.
Có một số loại của các gói tin, và chúng có thể được lưu trữ trong mỗi khác. Ví
dụ, Ethernet bao gồm các loại của riêng mình gói (được biết đến như một khung hình), và các gói
được tạo ra bởi các giao thức chạy trên Ethernet, như được mô tả trong các mạng
phần tiếp theo, được lưu trữ trong khung Ethernet. Tất cả đã nói, một truyền dữ liệu có liên quan đến nhiều
lớp của gói dữ liệu và unwrapping. Với mỗi lớp, các gói dữ liệu từ các lớp kế cận
có thể sáp nhập hoặc chia tay.
Hiểu Network Protocol Stacks
Có thể suy nghĩ của dữ liệu mạng ở các cấp khác nhau của trừu tượng. Ví dụ, ở một
mức độ, một mạng mang các gói dữ liệu cho một loại mạng c specifi (như Ethernet); các dữ liệu
gói tin được gửi đến máy tính c specifi trên một mạng cục bộ. Một mô tả như vậy, trong khi
hữu ích cho sự hiểu biết một mạng cục bộ, không phải là rất hữu ích cho sự hiểu biết cấp trên
giao thức mạng, chẳng hạn như những người có thể xử lý chuyển email. Những giao thức cấp cao
thường được mô tả bằng các lệnh được gửi qua lại giữa các máy tính,
thường xuyên mà không tham chiếu đến các gói tin. Các địa chỉ được sử dụng ở các cấp độ khác nhau cũng khác nhau, như
đã giải thích trong phần sắp tới "Sử dụng địa chỉ mạng."
Một giao thức ngăn xếp là một tập hợp các phần mềm có thể chuyển đổi và đóng gói dữ liệu giữa các lớp
trừu tượng. Ví dụ, các ngăn xếp có thể mất các lệnh của giao thức chuyển thư điện tử,
và các tin nhắn email được chuyển giao, và gói chúng thành các gói. Một lớp
của ngăn xếp có thể có những gói dữ liệu và đóng gói chúng thành các khung Ethernet. Có
c08.indd 385 11/12/12 12:12
386 Chương 8 ■ Cấu hình mạng cơ bản
nhiều lớp vào bất kỳ giao thức ngăn xếp, và chúng tương tác trong cách ed cao specifi. Nó thường
có thể trao đổi trên một phần cho người khác ở bất kỳ lớp nào. Ví dụ, ở đầu
của mỗi ngăn xếp là một chương trình sử dụng stack, chẳng hạn như một máy khách email. Bạn có thể chuyển đổi
từ một ứng dụng email khác mà không cần quá nhiều gặp khó diffi; cả hai lại bên trên cùng
stack. Tương tự như vậy, nếu bạn thay đổi một card mạng, bạn phải thay đổi các trình điều khiển cho card,
tạo thành một lớp rất thấp trong ngăn xếp. Ứng dụng trên trình điều khiển mà có thể vẫn
giống nhau.
Mỗi máy tính trong một giao dịch đòi hỏi một giao thức ngăn xếp tương thích. Khi họ giao tiếp,
các máy tính truyền dữ liệu xuống ngăn xếp tương ứng của họ và sau đó gửi dữ liệu đến các
hệ thống đối tác, trong đó chuyển dữ liệu lên stack của nó. Mỗi lớp trên hệ thống nhận thấy
các dữ liệu như được đóng gói bởi đối tác của mình trên máy tính gửi đi.
Chồng giao thức thường được biểu diễn bằng đồ thị trong sơ đồ như hình 8.2, trong đó
cho thấy các guration confi của chồng giao thức TCP / IP mà thống trị Internet ngày nay. Như
thể hiện trong hình 8.2, khách hàng chương trình ở lớp ứng dụng khởi truyền dữ liệu. Những
yêu cầu đi qua các phương tiện giao thông, internet, và các lớp liên kết trên các máy tính của khách hàng,
và rồi họ rời khỏi hệ thống của khách hàng và chuyển cho các hệ thống máy chủ. (Chuyển giao này có thể
liên quan đến rất nhiều phức tạp không được mô tả trong hình 8.2.) Trên máy chủ, quá trình đảo ngược
bản thân, với chương trình máy chủ chạy ở lớp ứng dụng trả lời cho khách hàng
chương trình. Trả lời này đảo ngược hành trình, đi du lịch xuống các máy chủ máy tính của chồng, qua
mạng, và lên stack trên máy khách. A full-fl lưỡi kết nối mạng có thể liên quan đến
nhiều back-và-ra chuyển dữ liệu.
HÌNH 8.2 Thông tin đi "xuống" và "lên" ngăn xếp giao thức, được kiểm tra và
tái đóng gói tại mỗi bước của con đường.
Application
Transport
Internet
Liên kết
khách hàng
Trả lời
yêu cầu
ứng dụng
Giao thông vận tải
Internet
liên kết
máy chủ
c08.indd 386 11/12/12 12:12
Hiểu TCP / IP Networking 387
Khi viết với chữ viết hoa I, Internet từ đề cập đến các
mạng toàn cầu hạn các mạng mà bạn đang Không nghi ngờ gì quen thuộc.
Khi viết với một chữ thường tôi, tuy nhiên, internet từ đề cập đến bất kỳ
bộ sưu tập của các mạng. An internet theo nghĩa này có thể là một cặp vợ chồng của
các mạng nhỏ trong tầng hầm của ai đó không có kết nối bên ngoài.
Giao thức mạng Internet như TCP / IP có thể làm việc trên bất kỳ internet, lên
đến và bao gồm cả Internet.
Mỗi lớp thành phần của hệ thống gửi là tương đương để một lớp trên tiếp nhận
hệ thống, nhưng các lớp không cần phải hoàn toàn giống hệt nhau. Ví dụ, bạn có thể có khác nhau
mô hình của card mạng ở tầng liên kết, hoặc thậm chí bạn có thể sử dụng mạng hoàn toàn khác nhau
các loại phần cứng, chẳng hạn như Ethernet và Token Ring, nếu một số hệ thống can thiệp dịch
giữa chúng. Các máy tính có thể chạy các HĐH khác nhau và do đó sử dụng khác nhau, nhưng một cách hợp lý
ngăn xếp tương đương với giao thức. Điều quan trọng là các ngăn xếp hoạt động theo cách tương thích.
Linux được thiết kế với giao thức TCP / IP trong tâm trí, và Internet được xây dựng trên đỉnh TCP / IP. Khác
ngăn xếp giao thức có sẵn, mặc dù, và bạn có thể thỉnh thoảng chạy vào chúng. Đặc biệt,
NetBEUI là bản gốc của Microsoft và IBM chồng giao thức cho Windows, AppleTalk
là của Apple ban đầu giao thức ngăn xếp, và / giải mã trình tự Packet Internet Packet Trao đổi
Exchange (IPX / SPX) là Novell ưa thích giao thức ngăn xếp. Tất cả ba đang mờ dần trong
tầm quan trọng, nhưng bạn vẫn có thể cần phải sử dụng chúng trong một số môi trường. Linux hỗ trợ
AppleTalk và IPX / SPX nhưng không NetBEUI.
Biết TCP / IP Giao thức loại
Trong TCP / IP, các giao thức khác nhau tồn tại. Mỗi một trong các giao thức có thể được ed classifi
như rơi vào một trong bốn lớp của TCP / IP stack, như thể hiện trong hình 8.2. Nhất
quan trọng của trên internet và lớp vận chuyển giao thức là các khối xây dựng cho các
giao thức tầng ứng dụng mà bạn tương tác trực tiếp hơn. Những quan trọng
trên internet và lớp vận chuyển giao thức bao gồm những điều sau đây:
IP Internet Protocol (IP) là giao thức cốt lõi trong mạng TCP / IP. Đề cập đến
hình 8.2, IP là một lớp internet (aka một lớp mạng hoặc lớp 2) giao thức. IP cung cấp
một "nỗ lực tốt nhất" phương pháp để chuyển các gói dữ liệu giữa các máy tính, nghĩa là, các gói tin
không được đảm bảo để đạt được điểm đến của họ. Các gói tin cũng có thể đến không theo thứ tự hoặc
bị hỏng. Các thành phần khác của giao thức TCP / IP stack phải đối phó với những vấn đề này và có
cách riêng để làm như vậy. IP cũng là một phần của TCP / IP với các địa chỉ IP được
kết hợp. (The Real World Scenario sidebar "The Coming of IPv6" mô tả một sự thay đổi trong
phần IP của TCP / IP đó là tiến hành.)
ICMP Internet Control Message Protocol (ICMP) là một giao thức đơn giản để giao tiếp
dữ liệu. ICMP được sử dụng nhiều nhất để gửi các thông báo lỗi giữa các máy tính-ví dụ, để
báo hiệu rằng một dịch vụ yêu cầu không có sẵn. Điều này thường được thực hiện bằng cách thay đổi một gói tin IP
và trả lại cho người gửi, có nghĩa là ICMP là kỹ thuật một lớp internet
c08.indd 387 11/12/12 12:12
388 Chương 8 ■ Cấu hình mạng cơ bản
giao thức, mặc dù nó dựa trên IP. Trong hầu hết các trường hợp, bạn sẽ không sử dụng chương trình mà tạo ra
các gói tin ICMP theo yêu cầu; họ đang tạo ra đằng sau hậu trường khi bạn sử dụng các giao thức khác.
Một ngoại lệ là các chương trình ping, được mô tả chi tiết hơn trong "Thử nghiệm cơ bản
kết nối."
UDP Các User Datagram Protocol (UDP) là đơn giản nhất của việc vận chuyển lớp phổ biến
(aka lớp 3) giao thức TCP / IP. Nó không cung cấp các thủ tục phức tạp để sửa chữa cho
out-of-order gói, đảm bảo giao hàng, hoặc nếu không cải thiện những hạn chế của IP. Điều này
thực tế có thể là một vấn đề, ​​nhưng nó cũng có nghĩa là UDP có thể được nhanh hơn phức tạp hơn
công cụ cung cấp những cải tiến đó để IP. Các giao thức tầng ứng dụng phổ biến được
xây dựng trên đỉnh UDP bao gồm các hệ thống tên miền (DNS), các Network File System (NFS),
và nhiều tuyến giao thức truyền thông.
TCP The Transmission Control Protocol (TCP) có thể là transportlayer sử dụng rộng rãi nhất
giao thức trong giao thức TCP / IP stack. Không giống như UDP, TCP tạo ra các kết nối đầy đủ với lỗi
kiểm tra và điều chỉnh cũng như tính năng khác. Những tính năng đơn giản hóa việc tạo ra các
giao thức mạng mà phải trao đổi một lượng lớn dữ liệu, nhưng các tính năng đến tại một
chi phí: TCP áp đặt một hình phạt hiệu quả nhỏ. Hầu hết các giao thức lớp ứng dụng
mà bạn có thể đã quen thuộc, bao gồm các Simple Mail Transfer Nghị định thư
(SMTP), Hypertext Transfer Protocol (HTTP), và File Transfer Protocol (FTP),
được xây dựng trên đỉnh TCP.
Bạn có thể nhận thấy rằng tên của giao thức TCP / IP phải được xây dựng của hai trong ngăn xếp của
tên giao thức: TCP và IP. Điều này là bởi vì hai giao thức này
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: