Docsity

The Transport Layer - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

Toggle sidebar
bg1
11
OSI
–
The Network Layer
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” the
network 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 for
each packet, to reflect the current network load.
If too many packets are present in the communication
line at the same time, they will get in each other’s way,
forming bottlenecks. The control of such congestion also
belongs to the network layer.
There is often some accounting function built into the
network layer. At the very least, the software must count
how many packets or characters or bits are sent by each
customer, to produce billing information. When a packet
crosses a national border, with different rates on each
side, the accounting can become complicated.
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download The Transport Layer - E-Commerce - Lecture Slides and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

11

OSI^ –

The Network Layer

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

OSI – The Network Layer When a packet has to travel from one network toanother to get to its destination, many problems canarise:  The addressing used by the second network may be differentfrom the first one  The second one may not accept the packet at all because it istoo large  The protocols may differ, and so on It is up to the network layer to overcome all theseproblems to allow heterogeneous networks to beinterconnected. In broadcast networks, the routing problem is simple, sothe network layer is often thin or even nonexistent.

14

OSI – The Transport Layer The transport layer also determines what type ofservice to provide the session layer, andultimately, the users of the network:  The most popular type of transport connection is anerror-free point-to-point channel that deliversmessages or bytes in the order in which they weresent.  However, other possible kinds of transport serviceare transport of isolated messages with no guaranteeabout the order of delivery, and  broadcasting of messages to multiple destinations. The type of service is determined when theconnection is established.

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

OSI – The Transport Layer.

17

OSI – The Session Layer Another session service is synchronization.  Consider the problems that might occur when tryingto do a 2-hour file transfer between two machineswith 1-hour mean time between crashes.  After each transfer was aborted, the whole transferwould have to start over again and would probablyfail again the next time as well. To eliminate this problem, the session layerprovides a way to insert checkpoints into thedata stream so that after a crash, only the datatransferred after the last checkpoint have to berepeated.

18

OSI – The Presentation Layer The^ presentation layer

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

OSI – The Application Layer The application layer contains a variety of protocols thatare commonly needed. For example, there are hundreds of incompatibleterminal types in the world. Consider a full screen editorthat is supposed to work over a network with manydifferent terminal types (each may have different screenlayouts, keys for inserting ad deleting text, moving thecursor, etc.) To handle each terminal type, a

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.