• No results found

Unit-5 Data Link Control & Internet.ppt

N/A
N/A
Protected

Academic year: 2020

Share "Unit-5 Data Link Control & Internet.ppt"

Copied!
47
0
0

Loading.... (view fulltext now)

Full text

(1)

Unit -5

Data Link Control & Internet

(2)

Contents

Framing

Flow & Error Control Protocols

Noiseless Channels

Noisy Channels

HDLC

P2P Protocols

Architecture of WWW

(3)

FRAMING

FRAMING

The data link layer needs to pack bits into

The data link layer needs to pack bits into framesframes, so that , so that each frame is distinguishable from another. Our postal

each frame is distinguishable from another. Our postal

system practices a type of framing. The simple act of

system practices a type of framing. The simple act of

inserting a letter into an envelope separates one piece of

inserting a letter into an envelope separates one piece of

information from another; the envelope serves as the

information from another; the envelope serves as the

delimiter.

delimiter.

(4)

Figure 2 Byte stuffing and unstuffing

(5)

Figure 3 Bit stuffing and unstuffing

(6)

FLOW AND ERROR CONTROL PROTOCOLS

FLOW AND ERROR CONTROL PROTOCOLS

The most important responsibilities of the data link

The most important responsibilities of the data link

layer are

layer are flow controlflow control and error control and error control. Collectively, . Collectively, these functions are known as

these functions are known as data link controldata link control..

Flow control refers to a set of procedures used to

restrict the amount of data that the sender can send before waiting for acknowledgment.

Error control in the data link layer is based on

(7)

Contd….

Contd….

Now let us see how the data link layer can combine

Now let us see how the data link layer can combine

framing, flow control, and error control to achieve the

framing, flow control, and error control to achieve the

delivery of data from one node to another. The

delivery of data from one node to another. The

protocols are normally implemented in software by

protocols are normally implemented in software by

using one of the common programming languages. To

using one of the common programming languages. To

make our discussions language-free, we have written

make our discussions language-free, we have written

in pseudocode a version of each protocol that

in pseudocode a version of each protocol that

concentrates mostly on the procedure instead of

concentrates mostly on the procedure instead of

delving into the details of language rules.

(8)
(9)

NOISELESS CHANNELS

NOISELESS CHANNELS

Let us first assume we have an ideal channel in which

Let us first assume we have an ideal channel in which

no frames are lost, duplicated, or corrupted. We

no frames are lost, duplicated, or corrupted. We

introduce two protocols for this type of channel.

(10)
(11)

Figure 6 shows an example of communication using this protocol. It is very simple. The sender sends a sequence of frames without even thinking about the receiver. To send three frames, three events occur at the sender site and three events at the receiver site. Note that the data frames are shown by tilted boxes; the height of the box defines the transmission time difference between the first bit and the last bit in the frame.

Example 1

(12)
(13)

Figure 8 shows an example of communication using this protocol. It is still very simple. The sender sends one frame and waits for feedback from the receiver. When the ACK arrives, the sender sends the next frame. Note that sending two frames in the protocol involves the sender in four events and the receiver in two events.

Example 2

(14)

NOISY CHANNELS

NOISY CHANNELS

Although the Stop-and-Wait Protocol gives us an idea

Although the Stop-and-Wait Protocol gives us an idea

of how to add flow control to its predecessor, noiseless

of how to add flow control to its predecessor, noiseless

channels are nonexistent. We discuss three protocols

channels are nonexistent. We discuss three protocols

in this section that use error control. These

in this section that use error control. These

are:--Stop-and-Wait Automatic Repeat Request Go-Back-N Automatic Repeat Request

(15)
(16)

Error correction in Stop-and-Wait ARQ is done by keeping a copy of the sent frame and retransmitting of the frame when the timer expires.

In Stop-and-Wait ARQ, we use sequence numbers to

number the frames. The sequence numbers are based on modulo-2 arithmetic.

(17)

Figure 10 shows an example of Stop-and-Wait ARQ. Frame 0 is sent and acknowledged. Frame 1 is lost and resent after the time-out. The resent frame 1 is acknowledged and the timer stops. Frame 0 is sent and acknowledged, but the acknowledgment is lost. The sender has no idea if the frame or the acknowledgment is lost, so after the time-out, it resends frame 0, which is acknowledged.

(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)

HDLC

HDLC

High-level Data Link Control (HDLC)

High-level Data Link Control (HDLC) is a bit-oriented is a bit-oriented

protocol for communication over point-to-point and

protocol for communication over point-to-point and

multipoint links. It implements the ARQ mechanisms.

(30)
(31)
(32)
(33)
(34)
(35)

POINT-TO-POINT PROTOCOL

POINT-TO-POINT PROTOCOL

Although HDLC is a general protocol that can be used

Although HDLC is a general protocol that can be used

for both point-to-point and multipoint configurations,

for both point-to-point and multipoint configurations,

one of the most common protocols for point-to-point

one of the most common protocols for point-to-point

access is the

access is the Point-to-Point Protocol (PPP). Point-to-Point Protocol (PPP). PPP is a PPP is a

byte-oriented

byte-oriented protocol. protocol.

(36)
(37)
(38)
(39)
(40)
(41)
(42)
(43)

ARCHITECTURE OF WWW

(44)
(45)
(46)
(47)

HTTP

HTTP

The Hypertext Transfer Protocol (HTTP) is a protocol

The Hypertext Transfer Protocol (HTTP) is a protocol

used mainly to access data on the World Wide Web.

used mainly to access data on the World Wide Web.

HTTP functions as a combination of FTP and SMTP.

HTTP functions as a combination of FTP and SMTP.

Figure

Figure 2   Byte stuffing and unstuffing
Figure 3  Bit stuffing and unstuffing
Figure 4  Taxonomy of protocols discussed in this chapter
Figure 5   The design of the simplest protocol with no                    flow or error control
+7

References

Related documents

This knowledge of student misconceptions is crucial to student learning and effective teaching (Nilsson, 2014; Sadler et al., 2013). In describing the unit on plant life Ann

Table 4.1: Comparison between original and improved radio 97 Table 4.2: ESD susceptible level test setup with different conditions 97 Table 4.3: GCAI contact pins arrangement 99

Inside the station are the newly designed Advance Termite Monitoring Base (TMB) and the Advance Termite Inspection Cartridge (TIC) with Puri-Cell monitoring tablets.. The TMB is

Analog Synchronous Applications • Page 16-5 &M7 Dial using the High Level Data Link Control (HDLC)

As part of the Singapore Post Group of Companies, SingPost eCommerce is a full service eCommerce partner that provides global brands with Asia Pacific’s first end-to-end

The survey assessed participants’ percep- tions of the magnitude of the faculty shortage, their in- terest in pursuing an academic career and teaching in various capacities,

The algorithm will only match applicants employers preferred for NESP positions to NESP positions and applicants employers preferred for NETP positions to NETP positions. This way