SlideShare a Scribd company logo
Computer Networks
Computer Network




A computer network is defined as the
interconnection of 2 or more independent computers
or/and peripherals.
Network



Source             Destination
Need of Networks
– Communicate and collaborate
– Share information
– Share resources
– Sharing computer files and disk space
– Sharing high-quality printers
– Access to common fax machines
– Access to common modems
– Multiple access to the Internet
Classification of Networks
– Local Area Networks (LANs) - a computer
  network covering a small geographic area, like
  a home, office, or group of buildings. Typically
  within 5-mile radius.
– Metropolitan Area Networks (MANs)- are
  large computer networks usually spanning a
  city. (within 30 miles)
– Wide-Area Networks (WANs) - any network
  whose communications links cross
  metropolitan, regional, or national boundaries.
Network Topology

The way in which the computers are
interconnected together is known as
TOPOLOGY.
Types of topologies

• Physical topology
• Logical topology
Types of physical topologies

• Bus/Linear
• Star
• Ring
• Tree
• Mesh
Linear or bus topology

• Consists of a main cable, known as
  backbone cable, with a terminator at
  each end .
• All nodes (file server, workstations,
  and peripherals) are connected to the
  cable.
• Ethernet and LocalTalk networks use
  bus topology.
Unit2.2
Advantages of Bus Topology

• Easy to connect a computer or peripheral
  to a linear bus.
• Requires less cable length.
• Easy to extend.
• If one node of the N/W is faulty, the N/W
  can still remain working.
Disadvantages of Bus
                Topology
• Entire network shuts down if there is a
  break in the main cable.
• Terminators are required at both ends of
  the backbone cable.
• Difficult to identify the problem if the entire
  network shuts down.
• Not meant to be used as a stand-alone
  solution in a large building.
Star topology

• A star topology is designed with each node (file
  server, workstations, and peripherals) connected
  directly to a central network hub.
• Data on a star network passes through the hub
  before continuing to its destination.
• The hub manages and controls all functions of
  the network.
• It also acts as a repeater for the data flow.
Unit2.2
Advantages of Star
                Topology
• Easy to install.
• No disruptions to the network other than
  connecting or removing devices.
• Easy to detect faults and to remove parts.
Disadvantages of Star
               Topology
• Requires more cable length than a bus
  topology.
• If the hub fails, nodes attached are
  disabled.
• More expensive than bus topology
  because of the cost of the hub.
Tree Topology

• A tree topology combines characteristics
  of bus and star topologies.
• It consists of groups of star-configured
  workstations connected to a bus
  backbone cable.
• Tree topologies allow for the expansion of
  an existing network.
Unit2.2
Advantages of a Tree
                Topology
• Point-to-point wiring for individual
  segments.
• Supported by several hardware and
  software venders.
Disadvantages of Tree
               Topology
• Overall length of each segment is limited
  by the type of cabling used.
• If the backbone line breaks, the entire
  segment goes down.
• More difficult to configure than other
  topologies.
Ring topology

• Is a type of computer network configuration
  where each network computer and device are
  connect to each other forming A large circle.
• Data is divided into packets when transmitted.
• Packet is sent around the ring until it reaches
  its final destination.
Unit2.2
Advantages of ring
                  topology
• Requires lesser amount of cable and there are
  not much of installation problems
• All stations have equal access
Disadvantages of ring
                   topology

• Failure of one computer may impact others
• Data transfer is slow
Mesh topology

• It requires that every terminal should be
  attached to each other.
• All the computers must have adequate
  number of interfaces for the connections
  to be made.
• Because of this requirement the
  installations is somewhat difficult.
• The length of cable required is quite
  higher as compared to other topologies.
Unit2.2
Advantages of mesh
               topology
• Ease of troubleshooting.
• Data transfer is faster.
Disadvantages of mesh
              topology
• uses a lot of cabling.
• Complex
• Most expensive topology
Considerations When
           Choosing a Topology
• Money. A linear bus network may be the least
  expensive way to install a network; you do not
  have to purchase concentrators.
• Length of cable needed. The linear bus
  network uses shorter lengths of cable.
• Future growth. With a star topology, expanding
  a network is easily done by adding another
  concentrator.
• Cable type. The most common cable in schools
  is unshielded twisted pair, which is most often
  used with star topologies.
Transmission Technology

Two types of transmission technologies are
   there:
2. Broadcast Network
  Single communication channel is shared by all
     the machines in the network.
Transmission Technology

1. Point to Point Network
  Data is routed directly from source machine to
     destination machine directly.




               Dedicated link
Routing

•  When data is to be transmitted between two
   remote machines using intermediate machines,
   certain routing techniques have to be applied.
• The intermediate machines may be:
  1. Gateway
  2. Hub
  3. Router
  4. Repeater
  5. Bridge
Gateway
•   A gateway is a network point that acts as an
    entrance to another network.
•   Acts as a bridge between two networks so that
    data can be transferred between a number of
    computers.
•   In enterprises, the gateway is the computer that
    routes the traffic from a workstation to the outside
    network that is serving the Web pages.
•   In homes, the gateway is the ISP that connects
    the user to the internet.
•   For example, when you send an e-mail to a friend
    or when you log in to a Web site, there is a
    gateway that allows the connection take place.
Hub
•   A common connection point for devices in a
    network.
•   Hubs are commonly used to connect
    segments of a LAN.
•   A hub contains multiple ports.
•   When a packet arrives at one port, it is
    copied to the other ports so that all
    segments of the LAN can see all packets
Router
•   A router is a device that forwards data packets
    along networks.
•   A router is connected to at least two networks.
•   Routers are located at gateways.
•   Routers use headers and forwarding tables to
    determine the best path for forwarding the
    packets.
•   They use protocols to communicate with each
    other and configure the best route between any
    two hosts.
Switch
•   In networks, a device that filters and
    forwards packets between LAN segments.
•   LANs that use switches to join segments are
    called switched LANs.
Repeater
•   Repeaters are used in transmission systems
    to    regenerate   signals   distorted   by
    transmission loss.
•   Analog repeaters frequently can only amplify
    the signal while digital repeaters can
    reconstruct a signal to near its original
    quality.
Bridge
•   A device that connects two local-area
    networks (LANs), or two segments of the
    same LAN that use the same protocol is
    known as bridge.
More Concepts…
• Network protocols.
• Layering.
• Network/protocol architecture.
Network Protocols

• A communication protocol is a set of rules
  that specify the format and meaning of
  messages exchanged between computers
  across a network.
• A set of related protocols that are designed
  for compatibility are called protocol suite.
Human and Computer
                  Protocols
Human Protocol           Computer Protocol
                     Web client
      Hi                      open
                              connection
      Hi
                            OK               Web server
    Got the
     time?                    send me data
    2:00
                               <data>
                  time
Protocol Architecture
• Task of communication broken up into modules
• For example file transfer could use three
  modules
   – File transfer application
   – Communication service module
   – Network access module
Layers
• Layers are the different components that
  need to be designed/implemented when
  designing/implementing networks.
• Each layer responsible for a set of
  functions.
• Top layer relies on services provided by
  bottom layer.
• Layer makes it service available to higher
  layer through an interface.
Layering

• Building complex systems is hard!
   – Approach: “Divide and conquer”.
   – Split job into smaller jobs, or layers.
• Analogy to other fields.
   – Building a house: digging, foundation, framing, etc.
   – Car assembly line…
• Basic idea: each step dependent on the previous
  step but does not need to be aware of how the
  previous step was done.
Analogy: Air Travel
• The problem: air travel.
• Decomposed into series of steps:
  Arrival at airport         Departure from airport

  Check-in                   Baggage claim

  Boarding                   Deplane

  Takeoff                    Landing


                 Traveling
More on the air travel analogy…

                    Arrival                                   Departure
Departing airport




                                                                              Arriving airport
                    Check-in                                  Baggage claim


                    Boarding                                  Deplane

                    Takeoff                                   Landing


                               intermediate air traffic sites
                                Airplane routing      Airplane routing


                                          Traveling
A Three Layer Model


• Application Layer
• Transport Layer
• Network Access Layer
Network Access Layer
• Exchange of data between the computer
  and the network
• Sending computer provides address of
  destination
• May invoke levels of service
• Dependent on type of network used (LAN,
  packet switched etc.)
Transport Layer
• Reliable data exchange
• Independent of network being used
• Independent of application
Application Layer
• Support for different user applications
• e.g. e-mail, file transfer
Layered Protocol Design
• Layering model is a solution to the problem
  of complexity in network protocols
• The model divides the network protocols into
  layers, each of which solves part of the
  network communication problem
  – Each layer has its own protocol!
• Each layer implements a service to the layer
  above
  – Relying on services provided by the layers
    below.
Network/Protocol Architecture
• Set of layers, what their functions are, the
  services each of them provide, and the
  interfaces between them.
• A.k.a, protocol architecture or protocol
  stack.
• Examples:
  – ISO-OSI 7 layer architecture.
  – TCP-IP architecture (Internet).
Protocol Data Units (PDU)
• At each layer, protocols are used to
  communicate.
• At the source, control information is added
  to user data at each layer, a.k.a.,
  encapsulation.
• At the receiver, control information is
  stripped off at each layer going up the
  stack, a.k.a., decapsulation.
Example 1: ISO OSI
           Architecture
• ISO: International Standards Organization
• OSI: Open Systems Interconnection.
                   Application
                   Presentation
                    Session
                   Transport
                   Network
                   Data link
                   Physical
ISO Model
• Layer 7: Application
   – Application-specific protocols (e.g. ftp, http, smtp)
• Layer 6: Session
   − establish sessions between machines.
• Layer 5: Presentation
   − performs proper co ordination between machines
• Layer 4: Transport
   – Delivery of data between computers (end-to-end).
• Layer 3: Network
   – Data routing across a network.
• Layer 2: Data Link
   – Reliable transmission over physical medium.
• Layer 1: Physical
   - Transmission of bits between two nodes.
Example 2: TCP/IP
                  Architecture
• Model employed by the Internet.

      TCP/IP                  Application    ISO OSI
                Application   Presentation
                               Session
                Transport
                              Transport
                Internet      Network
                Network
                Access        Data link
                              Physical
                Physical
TCP/IP Protocol Architecture
Routing Technologies

•  Computer Networks may use the
   following routing technologies:
2. Circuit Switching
3. Packet Switching
4. Message Switching
Circuit Switching

•   A physical circuit is established between
    two machines.
•   Once the connection is established, the
    data transfer takes place and then the
    connection is released.
•   The data transfer rate is high but error
    prone.
Packet Switching

•   Data is divided into small, fixed size packets.
•   Each packet contains the address of destination.
•   All the intermediate machines inspect the address
    and route it to the right machine.
•   If any packet is missing, the destination machine can
    request the source machine to retransmit it.
Message Switching

•   Message as a whole is transmitted.
•   Each message contains the address of the
    destination.
•   Message switching N/W is “Store and Forward” N/W.
•   Once the message arrives at the intermediate
    machine, it is stored in it completely and transmitted
    when the line is free.

More Related Content

PPTX
Techniques of achieving google quality of service
PPTX
MOBILE COMPUTING Unit 1.pptx
PPT
PHYSICAL LAYER.ppt
PPTX
Computer network switches & their structures
PPT
NETWORK LAYER.ppt
PPTX
Network Topology And Its Types
PPTX
PPT
Types of Network And Devices
Techniques of achieving google quality of service
MOBILE COMPUTING Unit 1.pptx
PHYSICAL LAYER.ppt
Computer network switches & their structures
NETWORK LAYER.ppt
Network Topology And Its Types
Types of Network And Devices

What's hot (20)

PPTX
Networking devices
PPTX
MOBILE COMPUTING Unit 2.pptx
PPT
wireless application protocol
PPT
PPTX
PPSX
Networking Devices and Networking Topologies
PPTX
CND_22634_UNIT1_MSBTE_Computer network and Data Communication
PPTX
Mobile telephone system
PPTX
Message queue architecture
PPTX
Network Devices
PPT
DATA-LINK LAYER.ppt
PPTX
Network devices
PDF
Mobile ad hoc networks (MANET) for KTU
PPTX
OSI and TCP/IP reference models in networking
PPTX
Network devices
PPTX
Types of network computer : LAN MAN WAN.pptx
PPTX
Transport Layer.pptx
PPTX
Mobile Computing (Part-2)
PDF
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
PPTX
Physical layer of OSI model
Networking devices
MOBILE COMPUTING Unit 2.pptx
wireless application protocol
Networking Devices and Networking Topologies
CND_22634_UNIT1_MSBTE_Computer network and Data Communication
Mobile telephone system
Message queue architecture
Network Devices
DATA-LINK LAYER.ppt
Network devices
Mobile ad hoc networks (MANET) for KTU
OSI and TCP/IP reference models in networking
Network devices
Types of network computer : LAN MAN WAN.pptx
Transport Layer.pptx
Mobile Computing (Part-2)
VTU 6TH SEM CSE COMPUTER NETWORKS 2 SOLVED PAPERS OF JUNE-2013 JUNE-14 & JUNE...
Physical layer of OSI model
Ad

Viewers also liked (14)

PPTX
Computer Networking: Internet Protcol (IP) and IP Addressing
PPT
Unit i packet switching networks
DOCX
Computer Network Notes UNIT II
PPT
Routing algorithm network layer
PDF
Computer Network notes (handwritten) UNIT 1
PPT
Lecture application layer
PPTX
Osi model
PPTX
Transport layer protocol
PPTX
Ipv4 addresses
PPTX
Osi model vs TCP/IP
PPTX
Internet protocol (ip) ppt
PPT
Ipv4 vs Ipv6 comparison
PDF
IPv4 and IPv6
PPT
OSI Model
Computer Networking: Internet Protcol (IP) and IP Addressing
Unit i packet switching networks
Computer Network Notes UNIT II
Routing algorithm network layer
Computer Network notes (handwritten) UNIT 1
Lecture application layer
Osi model
Transport layer protocol
Ipv4 addresses
Osi model vs TCP/IP
Internet protocol (ip) ppt
Ipv4 vs Ipv6 comparison
IPv4 and IPv6
OSI Model
Ad

Similar to Unit2.2 (20)

PPTX
454548 634160871407732500
PPT
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS2:005
PDF
Install network cable module CSS NC2
PPTX
Networking presentation
PPTX
Network topology and devices
PPTX
Computer Networking
PDF
Unit 1.pdf
PPTX
CS-222-Lect1-week1 UIT UNIVERSITY KARACHI
PPTX
Network Topology & Networking Devices
PPTX
Computer Networks like lan man wan and all the transmission media
PPT
Computer Networking
PPTX
1.introduction to computer networks
PPTX
Computer network and its topologies
PPTX
Data Communication Network Unit 1 sgbau .pptx
PPT
networking.ppt
PPTX
CN unit 1- part 1- Computer networks introduction
PPT
1 introduction to-networking
PPT
Networking fundamentals
PPT
Networking fundamentals
PPT
454548 634160871407732500
HHCJ AMUMARA:COMPUTER STUDIES LECTURE NOTE FOR SS2:005
Install network cable module CSS NC2
Networking presentation
Network topology and devices
Computer Networking
Unit 1.pdf
CS-222-Lect1-week1 UIT UNIVERSITY KARACHI
Network Topology & Networking Devices
Computer Networks like lan man wan and all the transmission media
Computer Networking
1.introduction to computer networks
Computer network and its topologies
Data Communication Network Unit 1 sgbau .pptx
networking.ppt
CN unit 1- part 1- Computer networks introduction
1 introduction to-networking
Networking fundamentals
Networking fundamentals

More from Anshumali Singh (20)

DOC
DOC
Unit2[1]
DOC
Unit2[1]
PPT
PPT
PPT
Unit2(Cont.)
DOC
PPT
Outputdevice
PPT
Lecture 9
PPT
Lecture 8
PPT
Lecture 7
PPT
Lecture 6
PPT
Lecture 4
PPT
Lecture 3
PPT
Lecture 2
PPT
Lecture 1
PPT
Lecture 6
PPT
Lecture2
PPT
Lecture2
Unit2[1]
Unit2[1]
Unit2(Cont.)
Outputdevice
Lecture 9
Lecture 8
Lecture 7
Lecture 6
Lecture 4
Lecture 3
Lecture 2
Lecture 1
Lecture 6
Lecture2
Lecture2

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
1_English_Language_Set_2.pdf probationary
PDF
Classroom Observation Tools for Teachers
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
IGGE1 Understanding the Self1234567891011
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
RMMM.pdf make it easy to upload and study
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Cell Types and Its function , kingdom of life
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Indian roads congress 037 - 2012 Flexible pavement
A powerpoint presentation on the Revised K-10 Science Shaping Paper
1_English_Language_Set_2.pdf probationary
Classroom Observation Tools for Teachers
LDMMIA Reiki Yoga Finals Review Spring Summer
IGGE1 Understanding the Self1234567891011
202450812 BayCHI UCSC-SV 20250812 v17.pptx
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
What if we spent less time fighting change, and more time building what’s rig...
Paper A Mock Exam 9_ Attempt review.pdf.
Practical Manual AGRO-233 Principles and Practices of Natural Farming
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Computing-Curriculum for Schools in Ghana
RMMM.pdf make it easy to upload and study
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc

Unit2.2

  • 2. Computer Network A computer network is defined as the interconnection of 2 or more independent computers or/and peripherals.
  • 3. Network Source Destination
  • 4. Need of Networks – Communicate and collaborate – Share information – Share resources – Sharing computer files and disk space – Sharing high-quality printers – Access to common fax machines – Access to common modems – Multiple access to the Internet
  • 5. Classification of Networks – Local Area Networks (LANs) - a computer network covering a small geographic area, like a home, office, or group of buildings. Typically within 5-mile radius. – Metropolitan Area Networks (MANs)- are large computer networks usually spanning a city. (within 30 miles) – Wide-Area Networks (WANs) - any network whose communications links cross metropolitan, regional, or national boundaries.
  • 6. Network Topology The way in which the computers are interconnected together is known as TOPOLOGY.
  • 7. Types of topologies • Physical topology • Logical topology
  • 8. Types of physical topologies • Bus/Linear • Star • Ring • Tree • Mesh
  • 9. Linear or bus topology • Consists of a main cable, known as backbone cable, with a terminator at each end . • All nodes (file server, workstations, and peripherals) are connected to the cable. • Ethernet and LocalTalk networks use bus topology.
  • 11. Advantages of Bus Topology • Easy to connect a computer or peripheral to a linear bus. • Requires less cable length. • Easy to extend. • If one node of the N/W is faulty, the N/W can still remain working.
  • 12. Disadvantages of Bus Topology • Entire network shuts down if there is a break in the main cable. • Terminators are required at both ends of the backbone cable. • Difficult to identify the problem if the entire network shuts down. • Not meant to be used as a stand-alone solution in a large building.
  • 13. Star topology • A star topology is designed with each node (file server, workstations, and peripherals) connected directly to a central network hub. • Data on a star network passes through the hub before continuing to its destination. • The hub manages and controls all functions of the network. • It also acts as a repeater for the data flow.
  • 15. Advantages of Star Topology • Easy to install. • No disruptions to the network other than connecting or removing devices. • Easy to detect faults and to remove parts.
  • 16. Disadvantages of Star Topology • Requires more cable length than a bus topology. • If the hub fails, nodes attached are disabled. • More expensive than bus topology because of the cost of the hub.
  • 17. Tree Topology • A tree topology combines characteristics of bus and star topologies. • It consists of groups of star-configured workstations connected to a bus backbone cable. • Tree topologies allow for the expansion of an existing network.
  • 19. Advantages of a Tree Topology • Point-to-point wiring for individual segments. • Supported by several hardware and software venders.
  • 20. Disadvantages of Tree Topology • Overall length of each segment is limited by the type of cabling used. • If the backbone line breaks, the entire segment goes down. • More difficult to configure than other topologies.
  • 21. Ring topology • Is a type of computer network configuration where each network computer and device are connect to each other forming A large circle. • Data is divided into packets when transmitted. • Packet is sent around the ring until it reaches its final destination.
  • 23. Advantages of ring topology • Requires lesser amount of cable and there are not much of installation problems • All stations have equal access
  • 24. Disadvantages of ring topology • Failure of one computer may impact others • Data transfer is slow
  • 25. Mesh topology • It requires that every terminal should be attached to each other. • All the computers must have adequate number of interfaces for the connections to be made. • Because of this requirement the installations is somewhat difficult. • The length of cable required is quite higher as compared to other topologies.
  • 27. Advantages of mesh topology • Ease of troubleshooting. • Data transfer is faster.
  • 28. Disadvantages of mesh topology • uses a lot of cabling. • Complex • Most expensive topology
  • 29. Considerations When Choosing a Topology • Money. A linear bus network may be the least expensive way to install a network; you do not have to purchase concentrators. • Length of cable needed. The linear bus network uses shorter lengths of cable. • Future growth. With a star topology, expanding a network is easily done by adding another concentrator. • Cable type. The most common cable in schools is unshielded twisted pair, which is most often used with star topologies.
  • 30. Transmission Technology Two types of transmission technologies are there: 2. Broadcast Network Single communication channel is shared by all the machines in the network.
  • 31. Transmission Technology 1. Point to Point Network Data is routed directly from source machine to destination machine directly. Dedicated link
  • 32. Routing • When data is to be transmitted between two remote machines using intermediate machines, certain routing techniques have to be applied. • The intermediate machines may be: 1. Gateway 2. Hub 3. Router 4. Repeater 5. Bridge
  • 33. Gateway • A gateway is a network point that acts as an entrance to another network. • Acts as a bridge between two networks so that data can be transferred between a number of computers. • In enterprises, the gateway is the computer that routes the traffic from a workstation to the outside network that is serving the Web pages. • In homes, the gateway is the ISP that connects the user to the internet. • For example, when you send an e-mail to a friend or when you log in to a Web site, there is a gateway that allows the connection take place.
  • 34. Hub • A common connection point for devices in a network. • Hubs are commonly used to connect segments of a LAN. • A hub contains multiple ports. • When a packet arrives at one port, it is copied to the other ports so that all segments of the LAN can see all packets
  • 35. Router • A router is a device that forwards data packets along networks. • A router is connected to at least two networks. • Routers are located at gateways. • Routers use headers and forwarding tables to determine the best path for forwarding the packets. • They use protocols to communicate with each other and configure the best route between any two hosts.
  • 36. Switch • In networks, a device that filters and forwards packets between LAN segments. • LANs that use switches to join segments are called switched LANs.
  • 37. Repeater • Repeaters are used in transmission systems to regenerate signals distorted by transmission loss. • Analog repeaters frequently can only amplify the signal while digital repeaters can reconstruct a signal to near its original quality.
  • 38. Bridge • A device that connects two local-area networks (LANs), or two segments of the same LAN that use the same protocol is known as bridge.
  • 39. More Concepts… • Network protocols. • Layering. • Network/protocol architecture.
  • 40. Network Protocols • A communication protocol is a set of rules that specify the format and meaning of messages exchanged between computers across a network. • A set of related protocols that are designed for compatibility are called protocol suite.
  • 41. Human and Computer Protocols Human Protocol Computer Protocol Web client Hi open connection Hi OK Web server Got the time? send me data 2:00 <data> time
  • 42. Protocol Architecture • Task of communication broken up into modules • For example file transfer could use three modules – File transfer application – Communication service module – Network access module
  • 43. Layers • Layers are the different components that need to be designed/implemented when designing/implementing networks. • Each layer responsible for a set of functions. • Top layer relies on services provided by bottom layer. • Layer makes it service available to higher layer through an interface.
  • 44. Layering • Building complex systems is hard! – Approach: “Divide and conquer”. – Split job into smaller jobs, or layers. • Analogy to other fields. – Building a house: digging, foundation, framing, etc. – Car assembly line… • Basic idea: each step dependent on the previous step but does not need to be aware of how the previous step was done.
  • 45. Analogy: Air Travel • The problem: air travel. • Decomposed into series of steps: Arrival at airport Departure from airport Check-in Baggage claim Boarding Deplane Takeoff Landing Traveling
  • 46. More on the air travel analogy… Arrival Departure Departing airport Arriving airport Check-in Baggage claim Boarding Deplane Takeoff Landing intermediate air traffic sites Airplane routing Airplane routing Traveling
  • 47. A Three Layer Model • Application Layer • Transport Layer • Network Access Layer
  • 48. Network Access Layer • Exchange of data between the computer and the network • Sending computer provides address of destination • May invoke levels of service • Dependent on type of network used (LAN, packet switched etc.)
  • 49. Transport Layer • Reliable data exchange • Independent of network being used • Independent of application
  • 50. Application Layer • Support for different user applications • e.g. e-mail, file transfer
  • 51. Layered Protocol Design • Layering model is a solution to the problem of complexity in network protocols • The model divides the network protocols into layers, each of which solves part of the network communication problem – Each layer has its own protocol! • Each layer implements a service to the layer above – Relying on services provided by the layers below.
  • 52. Network/Protocol Architecture • Set of layers, what their functions are, the services each of them provide, and the interfaces between them. • A.k.a, protocol architecture or protocol stack. • Examples: – ISO-OSI 7 layer architecture. – TCP-IP architecture (Internet).
  • 53. Protocol Data Units (PDU) • At each layer, protocols are used to communicate. • At the source, control information is added to user data at each layer, a.k.a., encapsulation. • At the receiver, control information is stripped off at each layer going up the stack, a.k.a., decapsulation.
  • 54. Example 1: ISO OSI Architecture • ISO: International Standards Organization • OSI: Open Systems Interconnection. Application Presentation Session Transport Network Data link Physical
  • 55. ISO Model • Layer 7: Application – Application-specific protocols (e.g. ftp, http, smtp) • Layer 6: Session − establish sessions between machines. • Layer 5: Presentation − performs proper co ordination between machines • Layer 4: Transport – Delivery of data between computers (end-to-end). • Layer 3: Network – Data routing across a network. • Layer 2: Data Link – Reliable transmission over physical medium. • Layer 1: Physical - Transmission of bits between two nodes.
  • 56. Example 2: TCP/IP Architecture • Model employed by the Internet. TCP/IP Application ISO OSI Application Presentation Session Transport Transport Internet Network Network Access Data link Physical Physical
  • 58. Routing Technologies • Computer Networks may use the following routing technologies: 2. Circuit Switching 3. Packet Switching 4. Message Switching
  • 59. Circuit Switching • A physical circuit is established between two machines. • Once the connection is established, the data transfer takes place and then the connection is released. • The data transfer rate is high but error prone.
  • 60. Packet Switching • Data is divided into small, fixed size packets. • Each packet contains the address of destination. • All the intermediate machines inspect the address and route it to the right machine. • If any packet is missing, the destination machine can request the source machine to retransmit it.
  • 61. Message Switching • Message as a whole is transmitted. • Each message contains the address of the destination. • Message switching N/W is “Store and Forward” N/W. • Once the message arrives at the intermediate machine, it is stored in it completely and transmitted when the line is free.