37
1 Topic : Basics of WAN & WAN Protocols Sub-Topic : Describe Different Layers of TCP/IP

Layers of tcpip.65 to 66

Embed Size (px)

DESCRIPTION

LAYERS OF TCP/IP

Citation preview

Page 1: Layers of tcpip.65 to 66

1

Topic : Basics of WAN & WAN ProtocolsSub-Topic : Describe Different Layers of TCP/IP

Page 2: Layers of tcpip.65 to 66

2

Recap

In the previous classes, you have learnt about

• Packet transfer mechanism in Routers using IP address

2

Page 3: Layers of tcpip.65 to 66

3

Objectives

On completion of this period, you will be able to know about

• Functions of different layers of TCP/IP

• Various protocols used in different layers

• Importance of TCP/IP architecture

Page 4: Layers of tcpip.65 to 66

44

What is the network architecture that we have already studied ?

ISO – OSI Model

Recap

Page 5: Layers of tcpip.65 to 66

5

How many layers it has and name them ?

Seven -

Application

• Presentation

• Session

• Transport

• Network

• Data link

• Physical

Page 6: Layers of tcpip.65 to 66

6

OSI Model

Application

Presentation

Session

Transport

Network

Data link

Physical

Fig .1

Page 7: Layers of tcpip.65 to 66

7

• OSI model has seven layers in it

• Two of the layers namely presentation and session

layers were rarely used

• OSI architecture is rigidly structured

• As the technologies developed there was a need for a

new architecture

• Presentation and session layers are eliminated

• TCP/IP architecture has evolved to overcome the

shortcomings of OSI model

Need for TCP/IP

Page 8: Layers of tcpip.65 to 66

8

TCP/IP Model

Application

Transport

Internet

Host-to-network

Not present in the model

Fig .2

Page 9: Layers of tcpip.65 to 66

9

Layer Level Comparisons

OSI TCP / IP

Application Application

Transport Transport

Network Internet

Data link

Physical Host-to-Network

Page 10: Layers of tcpip.65 to 66

10

Differences in Architectural Models

• OSI Network architecture model does not permit

communication between different heterogeneous

networks

• It does not support the latest networks developed

Page 11: Layers of tcpip.65 to 66

Differences in Architectural Models (Contd…)

• TCP/IP network architecture allows us to communicate

between any heterogeneous networks

• It is flexible and ready to change its architectural

structure to support the newly introduced networks

• For Ex: The wireless communication networks also can

be interconnected to the existing wired networks

11

Page 12: Layers of tcpip.65 to 66

12

Functions of the TCP/IP Layers

Host-to-Network Layer

• It is the lowest layer in this model

• It is equivalent to the Physical layer of OSI model

• The TCP/IP reference model does not really say much about what happens in this layer

Page 13: Layers of tcpip.65 to 66

• It points out that the host has to connect to the network using some protocol so it can send IP packets over it

• This protocol is not clearly defined and varies from host to host and network to network

• It is concerned with the physical characteristics of the medium, connectors, voltage levels etc

13

Host-to-Network Layer (Contd…)

Page 14: Layers of tcpip.65 to 66

14

Internet Layer

• Internet layer is the lynchpin that holds the whole

architecture together

• Its job is to permit hosts to inject packets into any

network and have them travel independently to the

destination

• The destination can be in a local network or different

network

Page 15: Layers of tcpip.65 to 66

Internet Layer

15

•They may even arrive in a different order than they were

sent, in which case it is the job of higher layers to rearrange

them

•The internet layer defines an official packet format and

protocol called IP (Internet Protocol)

Page 16: Layers of tcpip.65 to 66

16

Internet Layer ( contd…)

• Packet routing is clearly the major issue here, as is avoiding congestion

• This layer also performs congestion control i.e. it can divert the data traffic to other routes to ease the congestion

• TCP/IP internet layer is very similar in functionality to the OSI network layer

Page 17: Layers of tcpip.65 to 66

17

Transport Layer

• The layer above the internet layer in the TCP/IP model

• It is designed to allow peer entities on the source and

destination hosts to carry on a conversation

• Two end-to-end protocols have been defined here

a) Transmission control protocol

b) User data gram protocol

Page 18: Layers of tcpip.65 to 66

Transport Layer (Contd…)

18

•The first one, TCP (Transmission Control Protocol) is a

reliable connection-oriented protocol.

•TCP allows a byte stream originating on one machine to

be delivered without error on to any other machine in the

internet.

•It fragments the incoming byte stream into discrete

messages and passes each one onto the internet layer.

Page 19: Layers of tcpip.65 to 66

19

Transport Layer (Contd…)

• At the destination, the receiving TCP process reassembles the

received messages into the output stream

• TCP also handles flow control

• It makes sure that a fast sender cannot swamp a slow receiver

with more messages than it can handle

Page 20: Layers of tcpip.65 to 66

20

UDP Protocol

• The second protocol in this layer is UDP (User Datagram

Protocol)

• UDP an unreliable, connectionless protocol for

applications that do not want TCP’s sequencing or flow

control

Transport Layer (Contd…)

Page 21: Layers of tcpip.65 to 66

21

•It is widely used for one-short, client-server type request-

reply queries

•It is used in applications in which prompt delivery is more

important than accurate delivery, such as transmitting

speech or video

UDP Protocol contd…

Page 22: Layers of tcpip.65 to 66

22

Protocols and Networks in the TCP/IP Model Initially

TELNET FTP SMTP DNS

TCP UDP

IP

ARPANET SATNET PACKET RADIO

LAN

Layer (OSI names)

Application

Transport

Network

Physical + Data link

Protocols

Networks

Fig .3

Page 23: Layers of tcpip.65 to 66

23

Application Layer

• TCP/IP model does not have session or presentation layers

• On top of the transport layer is the application layer

• It contains all the higher-level protocols

• The early ones included virtual terminal (TELNET), file transfer (FTP), and electronic mail (SMTP)

• TELNET, the virtual terminal protocol allows a user on one machine to log into a distant machine and work there

Page 24: Layers of tcpip.65 to 66

24

Application Layer (Contd….)

• SMTP (Simple Mail Transfer Protocol) also called as Electronic mail

• It was originally just a kind of file transfer, later a

specialized protocol was developed for it

• Domain Name Service (DNS) for mapping host names

onto their network addresses

• The file transfer protocol provides a way to move data in

the form of files efficiently from one machine to another

Page 25: Layers of tcpip.65 to 66

25

•DNS is used to translate the email ID into IP address.

Users can identify themselves through email ID

•Network News Transfer Protocol (NNTP) the protocol

used for moving news articles, which will be used by the

news paper companies

•Hyper Text Transfer Protocol (HTTP), the protocol used

for fetching pages on the World Wide Web

Application Layer (Contd….)

Page 26: Layers of tcpip.65 to 66

26

Summary

In this class, you have learnt about

• Functions of various layers in TCP/IP

• The various protocols used in TCP/IP along with their

importance

• The TCP/IP architecture and its functions

Page 27: Layers of tcpip.65 to 66

27

Quiz

1) This layer deals with the physical transmission medium

a) Host-to-Network

b) Internet layer

c) Transport layer

d) Application layer

Page 28: Layers of tcpip.65 to 66

2) TCP protocol is related to which layer

a) Host-to-Network

b) Internet layer

c) Transport layer

d) Application layer

28

Quiz

28

Page 29: Layers of tcpip.65 to 66

Quiz

29

3) UDP protocol is related to which layer

a) Host-to-Network

b) Internet layer

c) Transport layer

d) Application layer

Page 30: Layers of tcpip.65 to 66

4) IP protocol is related to which layer

a) Host-to-Network

b) Internet layer

c) Transport layer

d) Application layer

30

Quiz

30

Page 31: Layers of tcpip.65 to 66

31

Quiz

5) WWW can be accessed using this protocol

a) IP

b) UDP

c) HTTP

d) NNTP

Page 32: Layers of tcpip.65 to 66

6) News publishing companies use this protocol

a) IP

b) UDP

c) HTTP

d) NNTP

32

Quiz

32

Page 33: Layers of tcpip.65 to 66

Quiz

7) E-mail is supported by this protocol

a) IP

b) SMTP

c) HTTP

d) NNTP

33

Page 34: Layers of tcpip.65 to 66

8) Traffic congestion is the function of this layer

a) Host-to-Network

b) Internet layer

c) Transport layer

d) Application layer

34

Quiz

34

Page 35: Layers of tcpip.65 to 66

35

Frequently Asked Questions

Short Questions

1. Name the various layers of TCP/IP architecture ?

2. What are the functions performed by Host-to-Network layer?

3. What are the functions performed by Internet layer ?

4. What are the functions performed by Transport layer ?

Page 36: Layers of tcpip.65 to 66

5. What are the functions performed by Application layer ?

6. What are the various protocols supported by TCP/IP architecture ?

7. Briefly describe about TCP and UDP ?

3636

Frequently Asked Questions

Page 37: Layers of tcpip.65 to 66

Essay Questions

37

1. Discuss in detail about TCP/IP architecture and explain

the functions performed by different layers ?

2. Discuss about all the types of protocols supported by

TCP/IP network architecture model ?