






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







11
A key design issue with the
network layer
is determining
how packets are routed
from source to destination. ^ Routes can be based on static tables that are “wired into” thenetwork and rarely changed. ^ They can also be determined at the start of each conversation,for example a terminal session. ^ Finally, the can be highly dynamic, being determined anew foreach packet, to reflect the current network load. If too many packets are present in the communicationline at the same time, they will get in each other’s way,forming bottlenecks. The control of such congestion alsobelongs to the network layer. There is often some accounting function built into thenetwork layer. At the very least, the software must counthow many packets or characters or bits are sent by eachcustomer, to produce billing information. When a packetcrosses a national border, with different rates on eachside, the accounting can become complicated.
12
14
15
The transport layer is a
true end-to-end layer
, from source to
destination. In other words, a program on the source machinecarries on a conversation with a similar program on thedestination machine, using the message headers and controlmessages. In the lower layers, the protocols are betweeneach machine and its immediate neighbors, and not by theultimate source and destination machines (which may beseparated by many routers). The difference between layers 1through 3, which are chained, and 4 through 7, which are end-to-end, is illustrated in Fig. 4. In addition to multiplexing several message streams onto onechannel, the transport layer must take care of
establishing
and deleting connections
across the network. This requires some kind of naming mechanism, so that a process on onemachine has a way of describing with whom it wishes toconverse. There must also be a mechanism to regulate the flow ofinformation, so that a fast host cannot overrun a slow one – flow control
17
18
performs certain functions that are requested sufficiently often to warrant finding ageneral solution for them, rather than letting each usersolve the problems. In particular, unlike all the lower layers, which are justinterested in moving bits reliably from here to there, thepresentation layer is concerned with the
syntax and
semantics of the information
transmitted.
A typical example of a presentation service is
encoding
data in a standard agreed upon way
. Most user
programs do not exchange random binary bit srings.They exchange thins such as people’s names, dates,amounts of money, and invoices. These items arerepresented as character strings, integers, floating-pointnumbers, and data structures composed of severalsimpler items. Computers may have different codes forrepresenting characters strings (e.g. ASCII andUnicode), integers (one’s compliment, two’scompliment), and so on.
20
network virtual terminal
can be written. Next, a piece of software must be writtento map the functions of the virtual network terminal ontothe functions of the real terminal. Another application layer function is file transfer. If twomachines have different files systems for example, thefiles may have incompatible naming conventions, waysto represent text lines, etc. Handling theseincompatibilities belongs to the application layer. As do: electronic mail, remote job entry, directory lookup, data encryption, handling multimedia, etc.