TCP/IP and OSI

40
1 TCP/IP and OSI Network Protocol Architecture

description

TCP/IP and OSI. Network Protocol Architecture. What is a Protocol?. Allows entities (i.e. application programs) from different systems to communicate Shared conventions for communicating information are called protocols Includes Syntax – data format and signal levels - PowerPoint PPT Presentation

Transcript of TCP/IP and OSI

Page 1: TCP/IP and OSI

1

TCP/IP and OSI

Network Protocol Architecture

Page 2: TCP/IP and OSI

2

What is a Protocol?

• Allows entities (i.e. application programs) from different systems to communicate

• Shared conventions for communicating information are called protocols

• Includes • Syntax – data format and signal levels• Semantics – control info for coordination• Timing – speed matching and sequencing

Page 3: TCP/IP and OSI

3

Why Use Protocol Architecture?

• Data communications requires complex procedures– Sender identifies data path/receiver– Systems negotiate preparedness– Applications negotiate preparedness– Translation of file formats

• For all tasks to occur, high level of cooperation is required

Page 4: TCP/IP and OSI

4

Modular Approach

• Breaks complex tasks into subtasks

• Each module handles specific subset of tasks

• Communication occurs– between different modules on the same system– between similar modules on different systems

Page 5: TCP/IP and OSI

5

Advantages of Modularity

• Easier application development

• Network can change without all programs being modified

Page 6: TCP/IP and OSI

6

Three-Layer Model

• Distributed data communications involves three primary components:– Networks

– Computers

– Applications – ftp, email

• Three corresponding layers– Network access layer

– Transport layer

– Application layer

Page 7: TCP/IP and OSI

7

Network Access Layer

• Concerned with exchange of data between computer and network

• Includes addressing, routing, prioritizing, etc• Different networks require different software at

this layer• Example: X.25 standard for network access

procedures on packet-switching networks• IEEE 802 – for accessing a LAN

Page 8: TCP/IP and OSI

8

Transport Layer

• Concerned with reliable transfer of information between applications

• Data arrive at the destination application in the same order in which they were sent

• Independent of the nature of the application

• Includes aspects like flow control and error checking

Page 9: TCP/IP and OSI

9

Application Layer

• Logic needed to support various applications

• Each type of application (file transfer, remote access) requires different software on this layer

Page 10: TCP/IP and OSI

10

Addressing• Each computer on a network requires a unique

address on that network• Each application on a computer requires a unique

address (Service Access points, SAPs) within that computer

• This allows the transport layer to support multiple applications at each computer

• This means that each application is individually accessing the services of the Transport Layer

Page 11: TCP/IP and OSI

11

Data Transmission

• Application layer creates data block• Transport layer appends header to create PDU

(protocol data unit)• Info that is delivered as a unit between peer

entities of a network– Destination SAP, Sequence #, Error-Detection Code

• Network layer appends another header– Destination computer, facilities (e.g. “priority”)

Page 12: TCP/IP and OSI

12

Simplified Architecture

Page 13: TCP/IP and OSI

13

Protocol Architecture Operation

Page 14: TCP/IP and OSI

14

Standardized Protocol Architectures

• Vendors like standards because they make their products more marketable

• Customers like standards because they enable products from different vendors to interoperate

• Two protocol standards are well-known:– TCP/IP: widely implemented

– OSI: less used, but widely known and still useful for modeling/conceptualizing

Page 15: TCP/IP and OSI

15

TCP/IP

• Transmission Control Protocol/Internet Protocol

• Developed by DARPA

• No official protocol standard

• Identifies 5 Layers– Application

– Host-to-Host (transport)

– Internet

– Network Access

– Physical

Page 16: TCP/IP and OSI

16

TCP/IP Physical Layer

• Physical interface between a DTE (e.g. computer or terminal) and a transmission medium

• Specifies:– Characteristics of medium– Nature of signals– Data rate

Page 17: TCP/IP and OSI

17

TCP/IP Network Access Layer

• Exchange of data between systems on a shared network

• Utilizes address of host and destination• Can also prioritize transmission• Software at this layer depends on network

(e.g. X.25 vs. Ethernet)• Segregation means that no other software

needs to be concerned about net specifics

Page 18: TCP/IP and OSI

18

TCP/IP Internet Layer• An Internet is an interconnection of two or more

networks• Internet layer handles tasks similar to network

access layer, but between networks rather than between nodes on a network

• Uses IP for addressing and routing across networks – A standardized protocol that executes in hosts and routers to interconnect a number of independent networks

• Implemented in the end workstations and routers• Router – processor connecting two networks

Page 19: TCP/IP and OSI

19

TCP/IP Transport Layer

• Also called host-to-host layer

• Reliable exchange of data between applications

• Uses TCP protocols for transmission

Page 20: TCP/IP and OSI

20

TCP/IP Application Layer

• Logic needed to support variety of applications

• Separate module supports each type of application (e.g. file transfer)

Page 21: TCP/IP and OSI

21

TCP & UDP

• Most TCP/IP applications use TCP for transport layer

• TCP provides a connection (logical association) between two entities to regulate flow check errors

• UDP (User Datagram Protocol) does not maintain a connection, and therefore does not guarantee delivery, preserve sequences, or protect against duplication

• Example – Simple Network Management Protocol (SNMP)

Page 22: TCP/IP and OSI

22

IP and IPv6

• IPv4 provides for 32-bit source and destination addresses

• IPv6 (1996 standard) provides for 128-bit addresses

• Migration to IPv6 will be a very slow process

Page 23: TCP/IP and OSI

23

TCP/IP Applications

• SMTP (Simple Mail Transfer Protocol)– Basic e-mail facility, transferring messages among

hosts

• FTP (File Transfer Protocol)– Sends files from one system to another on user

command

• Telnet– Remote login capability, allowing a user to emulate a

terminal on the remote system

Page 24: TCP/IP and OSI

24

Internetworking

• Interconnected networks, usually implies TCP/IP

• Can appear to users as a single large network

• The global Internet is the largest example, but intranets and extranets are also examples

Page 25: TCP/IP and OSI

25

Routers

• Equipment used to interconnect independent networks

• Several essential functions– Provide a link between networks– Provide routing and delivery of data between

processes on systems from different networks– Provide the above functions without requiring

modification of the attached networks

Page 26: TCP/IP and OSI

26

Router Issues• Router must accommodate differences

among networks w.r.t.– Addressing schemes, LAN-binary, X.25-

decimal– Maximum packet size – fragmentation,

Ethernet-1500bytes, X.25-1000bytes– Interfaces – H/W, S/W– Reliability – operation of routers should not

depend on an assumption of network reliabilities

Page 27: TCP/IP and OSI

27

TCP Segment (TCP PDU)

• Source port (16 bits)

• Destination port (16 bits)

• Sequence number (32 bits)

• Acknowledgment number (32 bits)

• Data Offset (4 bits)

• Reserved (6 bits)

• Flags (6 bits) : URG, ACK, PSH, RST, SYN, FIN

• Window (16 bits)• Checksum (16 bits)• Urgent Pointer (16

bits)• Options (variable)

Page 28: TCP/IP and OSI

28

IPv4 Header

• Version (4 bits)

• Internet header length (4 bits)

• Type of Service (8 bits)

• Total Length (16 bits)

• Identification (16 bits)

• Flags (3 bits

• Fragment Offset (13 bits)

• Time to Live (8 bits)

• Protocol (8 bits

• Header Checksum (16 bits)

• Source Address ( 32 bits)

• Destination Address (32 bits)

• Options (variable)

• Padding (variable)

Page 29: TCP/IP and OSI

29

Why Study OSI?

• Still an excellent model for conceptualizing and understanding protocol architectures

• Key points:– Modular– Hierarchical– Boundaries between layers=interfaces

Page 30: TCP/IP and OSI

30

OSI

• Open Systems Interconnection

• Developed by ISO

• Contains seven layers

• Application• Presentation• Session• Transport• Network• Data Link• Physical

Page 31: TCP/IP and OSI

31

OSI Lower Layers

• Physical

• Data Link

• Network

Page 32: TCP/IP and OSI

32

OSI Physical Layer

• Responsible for transmission of bits streams

• Always implemented through hardware

• Encompasses mechanical, electrical, and functional interfaces

• e.g. RS-232

Page 33: TCP/IP and OSI

33

OSI Data Link Layer

• Responsible for error-free, reliable transmission of data

• Deals with handling frames

• Flow control, error correction

• e.g. HDLC, SDLC

Page 34: TCP/IP and OSI

34

OSI Network Layer

• Responsible for routing of messages through network

• Concerned with type of switching used (circuit v. packet)

• Handles and forwards packets

• Handles routing between networks, as well as through packet-switching networks

Page 35: TCP/IP and OSI

35

OSI Upper Layers

• Transport

• Session

• Presentation

• Application

Page 36: TCP/IP and OSI

36

OSI Transport Layer

• Isolates messages from lower and upper layers• Ensures that data units are delivered error free, in

sequence, with no loss or duplication• Optimizes use of network services, provides a

requested quality of service to session entities• Monitors quality of communications channel• Selects most efficient communication service

necessary for a given transmission• Example – TP4, TCP

Page 37: TCP/IP and OSI

37

OSI Session Layer• Provides a mechanism for controlling the

dialogue between presentation entities

• Establishes logical connections between systems – presentation entities

• Manages log-ons, password exchange, log-offs

• Terminates connection at end of session

• May provide recovery from failures thro’ check-pointing and retransmitting

Page 38: TCP/IP and OSI

38

OSI Presentation Layer• Services the applications with data

transformation services– Data translation – code, character set– Formatting – data layout modification services– Syntax selection – initial selection and

changes in the transformation used

• Examples – File conversion from ASCII to EBDIC– Invoking character sequences to generate bold,

italics, etc on a printer

Page 39: TCP/IP and OSI

39

OSI Application Layer

• Provides a means for application processes to access the OSI environment

• Contains applications and mechanisms to support distributed applications

• Provides access to network for end-user

• User’s capabilities are determined by what items are available on this layer

Page 40: TCP/IP and OSI

40

TCP/IP - OSI Comparison