Lớp 7: Các lớp ứng dụng lớp ứng dụng là người dùng cuối truy cập vào cácmạng. Mục đích chính là cung cấp một tập các tiện ích cho chương trình ứng dụng.Mỗi chương trình người dùng xác định các thiết lập của thư và bất kỳ hành động nào nó có thể mất trênnhận được một tin nhắn. Các ứng dụng dành riêng cho mạng ở lớp này bao gồm mạngquản lý mạng và giám sát.1.3.2 Internet mô hìnhCác mô hình mạng thống trị hiện tại phần cứng và phần mềm là một đơn giản hơnnăm lớp Internet mô hình. Không giống như mô hình OSI đã được phát triển bởi Ủy ban chính thức, các mô hình Internet đã tiến hóa từ các công việc của hàng ngàn những người phát triểnmiếng của Internet. Mô hình OSI là một tiêu chuẩn chính thức là tài liệu ở một tiêu chuẩn, nhưng không bao giờ được chính thức xác định mô hình Internet; nó đã được giải thích từmột số standards.1 hai mô hình có rất nhiều điểm chung (xem hình 1.3);chỉ cần đặt, mô hình Internet sụp đổ trên ba OSI lớp vào một lớp. Bởi vìnó là rõ ràng rằng Internet đã giành được chiến tranh"," chúng tôi sử dụng trong 5-tầng Internet mô hình chophần còn lại của cuốn sách này.Lớp 1: Tầng vật lý vật lý lớp trong mô hình Internet, như trong OSIMô hình, kết nối vật lý giữa người gửi và người nhận. Vai trò của nó là để chuyển mộtdòng điện, Đài phát thanh, hoặc ánh sáng tín hiệu thông qua các mạch. Tầng vật lý bao gồmTất cả các thiết bị phần cứng (ví dụ: máy tính, modem và thiết bị chuyển mạch) và vật lý phương tiện truyền thông(ví dụ, cáp và vệ tinh). Tầng vật lý chỉ định kiểu kết nối và cáctín hiệu điện, Đài phát thanh sóng hoặc xung ánh sáng đi qua nó. Thảo luận về chương 3tầng vật lý trong chi tiết.Lớp 2: Tầng liên kết dữ liệu lớp liên kết dữ liệu là trách nhiệm di chuyển mộtthư từ một máy tính sang máy tính tiếp theo trong đường dẫn mạng từ người gửi vàongười nhận. Tầng liên kết dữ liệu trong mô hình Internet thực hiện các chức năng ba cùng mộtnhư lớp liên kết dữ liệu trong mô hình OSI. Đầu tiên, nó kiểm soát tầng vật lý bởi quyết địnhkhi truyền tải thông điệp trên các phương tiện truyền thông. Thứ hai, nó định dạng thư bằng cách chỉ ratrong đó, họ bắt đầu và kết thúc. Thứ ba, nó phát hiện và có thể khắc phục bất kỳ lỗi nào đã xảy ratrong quá trình truyền. Chương 4 thảo luận về lớp liên kết dữ liệu chi tiết.Lớp 3: Tầng mạng lớp mạng trong mô hình Internet thực hiệnCác chức năng tương tự như các lớp mạng trong mô hình OSI. Đầu tiên, nó thực hiện định tuyến, trongnó chọn máy tính tiếp theo mà thư này nên được gửi. Thứ hai, nó có thểTìm địa chỉ của máy tính đó nếu nó không đã biết điều đó. Chương 5 thảo luận về cáctầng mạng chi tiết.Lớp 4: Tầng giao vận tầng giao vận trong mô hình Internet là rấttương tự như tầng giao vận trong mô hình OSI. Nó thực hiện hai chức năng. Đầu tiên, nó làchịu trách nhiệm cho các liên kết phần mềm lớp ứng dụng đến mạng và thiết lậpkết thúc để kết thúc kết nối giữa người gửi và nhận khi kết nối như vậy1Over những năm qua, chúng tôi xem các lớp Internet đã phát triển, như có Internet riêng của mình. Nó bây giờ đã rõ ràng rằng đặtcủa Internet cộng đồng nghĩ về mạng bằng cách sử dụng một cái nhìn 5-lớp, do đó, chúng tôi sẽ sử dụng nó như là tốt. Như nàybằng văn bản, Tuy nhiên, Microsoft sẽ sử dụng một cái nhìn bốn lớp của Internet cho các kỳ thi chứng nhận.1.3 MẠNG MÔ HÌNH 19cần thiết. Thứ hai, nó là trách nhiệm phá vỡ các thư dài thành nhiều nhỏ hơnCác tin nhắn để làm cho họ dễ dàng hơn để truyền và sau đó recombining các thông điệp nhỏ hơntrở lại vào thư gốc lớn hơn vào cuối nhận. Tầng giao vận cũng có thểphát hiện bị mất thư và yêu cầu rằng họ được resent. Chương 5 thảo luận về việc vận chuyểnlớp cụ thể.Tầng 5: Tầng ứng dụng lớp ứng dụng là phần mềm ứng dụng được sử dụng bởingười sử dụng mạng và bao gồm phần lớn những gì mô hình OSI chứa trong ứng dụng,trình bày, và các phiên làm việc lớp. Nó là của người dùng truy cập vào mạng. Bằng cách sử dụng cácphần mềm ứng dụng, người sử dụng xác định những thông điệp được gửi qua mạng. Bởi vìđó là lớp mà hầu hết mọi người hiểu tốt nhất và vì bắt đầu ở đầu đôi khigiúp mọi người hiểu tốt hơn, các chương tiếp theo, chương 2, bắt đầu với các ứng dụnglớp. Nó bàn về kiến trúc của các ứng dụng mạng và một số loại mạngphần mềm ứng dụng và các loại thư họ tạo ra.Groups of Layers The layers in the Internet are often so closely coupled thatdecisions in one layer impose certain requirements on other layers. The data link layerand the physical layer are closely tied together because the data link layer controls thephysical layer in terms of when the physical layer can transmit. Because these twolayers are so closely tied together, decisions about the data link layer often drive thedecisions about the physical layer. For this reason, some people group the physical anddata link layers together and call them the hardware layers. Likewise, the transportand network layers are so closely coupled that sometimes these layers are called theinternetwork layer. See Figure 1.3. When you design a network, you often think aboutthe network design in terms of three groups of layers: the hardware layers (physical anddata link), the internetwork layers (network and transport), and the application layer.1.3.3 Message Transmission Using LayersEach computer in the network has software that operates at each of the layers andperforms the functions required by those layers (the physical layer is hardware, notsoftware). Each layer in the network uses a formal language, or protocol, that is simplya set of rules that define what the layer will do and that provides a clearly defined set ofmessages that software at the layer needs to understand. For example, the protocol usedfor Web applications is HTTP (Hypertext Transfer Protocol, which is described in moredetail in Chapter 2). In general, all messages sent in a network pass through all layers.All layers except the Physical layer add a Protocol Data Unit (PDU) to the messageas it passes through them. The PDU contains information that is needed to transmitthe message through the network. Some experts use the word packet to mean a PDU.Figure 1.4 shows how a message requesting a Web page would be sent on the Internet.Application Layer First, the user creates a message at the application layer using aWeb browser by clicking on a link (e.g., get the home page at www.somebody.com).The browser translates the user’s message (the click on the Web link) into HTTP. Therules of HTTP define a specific PDU—called an HTTP packet—that all Web browsersmust use when they request a Web page. For now, you can think of the HTTP packetas an envelope into which the user’s message (get the Web page) is placed. In the sameway that an envelope placed in the mail needs certain information written in certain20 CHAPTER 1 INTRODUCTION TO DATA COMMUNICATIONSApplicationLayerTransportLayerNetworkLayerData LinkLayer Ethernet IP TCP HTTP RequestIP TCP HTTP RequestTCP HTTP RequestRequest PacketSegmentPacketFrameBitHTTPPhysicalLayerSender PDU ReceiverApplicationLayerTransportLayerNetworkLayerData LinkLayer Ethernet IP TCP HTTP RequestIP TCP HTTP RequestTCP HTTP RequestHTTP RequestPhysicalLayerFIGURE 1.4 Message transmission using layers. IP = Internet Protocol; HTTP/HypertextTransfer Protocol; TCP = Transmission Control Protocolplaces (e.g., return address, destination address), so too does the HTTP packet. The Webbrowser fills in the necessary information in the HTTP packet, drops the user’s requestinside the packet, then passes the HTTP packet (containing the Web page request) to thetransport layer.Transport Layer The transport layer on the Internet uses a protocol called TCP(Transmission Control Protocol), and it, too, has its own rules and its own PDUs. TCP isresponsible for breaking large files into smaller packets and for opening a connection tothe server for the transfer of a large set of packets. The transport layer places the HTTPpacket inside a TCP PDU (which is called a TCP segment), fills in the informationneeded by the TCP segment, and passes the TCP segment (which contains the HTTPpacket, which, in turn, contains the message) to the network layer.Network Layer The network layer on the Internet uses a protocol called IP (InternetProtocol), which has its rules and PDUs. IP selects the next stop on the message’s routethrough the network. It places the TCP segment inside an IP PDU, which is called an1.3 NETWORK MODELS 21IP packet, and passes the IP packet, which contains the TCP segment, which, in turn,contains the HTTP packet, which, in turn, contains the message, to the data link layer.
Data Link Layer If you are connecting to the Internet using a LAN, your data link
layer may use a protocol called Ethernet, which also has its own rules and PDUs. The
data link layer formats the message with start and stop markers, adds error checking
information, places the IP packet inside an Ethernet PDU, which is called an Ethernet
frame, and instructs the physical hardware to transmit the Ethernet frame, which contains
the IP packet, which contains the TCP segment, which contains the HTTP packet, which
contains the message.
Physical Layer The physical layer in this case is network cable connecting your
computer to the rest of the network. The computer will take the Ethernet frame (complete
with the IP packet, the TCP segment, the HTTP packet, and the message) and send it as
a series of electrical pulses through your cable to the server.
When the server gets the message, this process is performed in reverse. The physical
hardware translates the electrical pulses into computer data and passes the message to
the data link layer. The data link layer uses the start and stop markers in the Ethernet
frame to identify the message. The data link layer checks for errors and, if it discovers
one, requests that the message be resent. If a
đang được dịch, vui lòng đợi..
