COMPUTER NETWORKS CS610 Lecture-4 Hammad Khalid Khan.

Slides:



Advertisements
Similar presentations
Packets, Frames & Error Detection. Packet Concepts A packet is a small block of data. Networks which use packets are called packet networks or packet-
Advertisements

IP: The Internet Protocol
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
COE 341: Data & Computer Communications (T062) Dr. Marwan Abu-Amara
Long distance communication Multiplexing  Allow multiple signals to travel through one medium  Types Frequency division multiplexing Synchronous time.
CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.
1 Part II: Packet Transmission Packets on a Network Packets, Frames, LAN, WAN, Hardware Addresses, Bridges, Switches, Routing and Protocols Fall 2005 Qutaibah.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 8: Multiplexing.
COE 341: Data & Computer Communications (T061) Dr. Marwan Abu-Amara Chapter 8: Multiplexing.
Data and Computer Communications
Integrity in Data Communications Packets, Frames and Error Detection.
Circuit & Packet Switching. ► Two ways of achieving the same goal. ► The transfer of data across networks. ► Both methods have advantages and disadvantages.
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
1 Part III Packet Transmission Chapter 7 Packets, Frames, and Error Detection.
1 Packets, Frames, and Error Detection. 2 The Problem Cannot afford individual network connection per pair of computers Reasons –Installing wires consumes.
Chapter 12 - Packet Switching Introduction Sharing Saves Money –Arranging for multiple devices to share a single transmission path lowers cost because.
Chapter 7 - Packets, Frames and Error Detection 1. Concepts of Packets 2. Motivation for Packet Switching 3. Framing 4. Frame Formats 5. Transmission Errors.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
Chapter 6 Multiplexers and Switching Concepts
Introduction to Computer Networks Introduction to Computer Networks.
Chapter 2 Network Models
1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs.
SEPT, 2005CSI Part I.2 Packets, Frames, Parity, Checksums, and CRCs Dr. R.L. Probert, SITE, University of Ottawa.
Lecture # 3: WAN Data Communication Network L.Rania Ahmed Tabeidi.
Why Is It All?  A Network is a set of connected devices. Whenever we have multiple devices, we have the problem of how to connect them to make one-to-one.
COMPUTER NETWORKS CS610 Lecture-7 Hammad Khalid Khan.
Chapter 2 PHYSICAL LAYER.
CS4470 Computer Networking Protocols
COMPUTER NETWORKS CS610 Lecture-15 Hammad Khalid Khan.
COMPUTER NETWORKS CS610 Lecture-21 Hammad Khalid Khan.
The University of Adelaide, School of Computer Science
COMPUTER NETWORKS CS610 Lecture-21 Hammad Khalid Khan.
CS408/533 Computer Networks Text: William Stallings Data and Computer Communications, 6th edition Chapter 1 - Introduction.
Data Link Layer.
Chap. 2 Network Models.
Local Area Networks: Topologies
COMPUTER NETWORKS CS610 Lecture-9 Hammad Khalid Khan.
Chapter 7 Packets, Frames, and Error Detection
Internet Protocol: Connectionless Datagram Delivery
Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various.
SWITCHING Switched Network Circuit-Switched Network Datagram Networks
CIS 321 Data Communications & Networking
DIGITAL DATA COMMUNICATION TECHNIQUES
Data Link Layer: Data Link Control
Packetizing Error Detection
Chapter 3: Open Systems Interconnection (OSI) Model
Chapter 14 User Datagram Protocol (UDP)
Communication Networks NETW 501
Packetizing Error Detection
Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various.
COMPUTER NETWORKS CS610 Lecture-10 Hammad Khalid Khan.
CS412 Introduction to Computer Networking & Telecommunication
Circuit Switching Packet Switching Message Switching
COMPUTER NETWORKS CS610 Lecture-6 Hammad Khalid Khan.
Lecture 5- Data Link Layer
Packetizing Error Detection
Net 323 D: Networks Protocols
Packets, Frames, Parity, Checksums, and CRCs
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Exercise 3 1. Describe what are the packet, the packet communication, and motivations using the packet in computer communications. 2. (1) An ASCII coded.
COMPUTER NETWORKS CS610 Lecture-18 Hammad Khalid Khan.
Packets, Frames, Parity, Checksums, and CRCs
Many to one/one to many Types of multiplexing Telephone system
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Switching, Packets, Frames, Parity, Checksums, and CRCs
NET 323D: Networks Protocols
Transport Layer 9/22/2019.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

COMPUTER NETWORKS CS610 Lecture-4 Hammad Khalid Khan

CHAPTER No. 7 PACKETS, FRAMES and ERROR DETECTION

Introduction Previous chapters describe how bits are transmitted across a physical network This chapter introduces the concept of packets

The Concept Of Packets The problems: A sender and a receiver need to coordinate to detect transmission errors Individual connections between each pair of computers is not possible

The Concept Of Packets The solution: Shared network connections among many workstations.

Reasons For Using Packets Resource Sharing To Detect The Errors

Use of Packets

Problems with the Sharing Demand high – Many computers need to use the shared networks Some applications have large data transfers – Holds the network for a long time Some applications cannot wait Need mechanism for fairness

Solution for Fairness Divide the data into small blocks/chunks called “PACKETS” Computers take turns to send one packet at a time over the shared connection. Because each packet is small, no computer experiences a long delay

Example

Example 5x 10 bytes * 8 bits / byte 60 secs minute 56x bits second WITHOUT PACKETS 5MB file transferred across network with 56Kbps capacity will require 12 minutes: All other computers will be forced to wait 12 minutes before initiating other transfers 5x 10 bytes * 8 bits / byte 60 secs minute 56x bits second 11.9 minut es 6 3 =

Example 1000 bytes * 8 bits / byte 56x 10 bits second .143 secon ds = WITH PACKETS If file is broken into packets, other computers must only wait until packet (not entire file) has been sent Suppose file is broken into 1000 byte packets Now each packet takes less than .2 seconds to transmit 1000 bytes * 8 bits / byte 56x 10 bits second .143 secon ds 3 =

Advantage Other computer must only wait .143 seconds before beginning to transmit Note: If both files are both 5MB long, each now takes 24 minutes to transmit BUT if second file is only 10KB long, it will be transmitted in only 2.8 seconds, while 5MB file still takes roughly 12 minutes

Packets and TDM Dividing data into small packets allows Time-Division Multiplexing Each packet leaves the source and is switched onto the shared communication channel through a Multiplexer At the destination, the packet is switched through a Demultiplexer to the destination

Packets and TDM

Packets and Frames Packet is ``generic'' term that refers to a small block of data Each hardware technology uses different packet format Frame or hardware frame denotes a packet of a specific format on a specific hardware technology

Frame Format Need to define a standard format for data to indicate the beginning and end of the frame Header and trailer used to “frame” the data

Frame Format

Disadvantages of Framing Incurs extra overhead - soh and eot take time to transmit, but carry no data Accommodates transmission problems: Missing eot indicates sending computer crashed Missing soh indicates receiving computer missed beginning of message Bad frame is discarded Advantages

Data Stuffing Sometimes, the special characters (i.e. soh or eot) may appear in the data Problem: soh and eot as part of data will be misinterpreted as framing data Solution: Data stuffing

Summary The Concept of Packets Why use Packets? Packets and Frames Data Stuffing

Frame Delimater