![Page 1: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/1.jpg)
Chapter 2 Communicating Over the Network
![Page 2: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/2.jpg)
2
Elements of Communication
![Page 3: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/3.jpg)
3
Communicating the Messages
Single communications (e.g. video, e-mail message) could be: Continuous stream of bits Take over (hog) the network. Significant delays Inefficient use Any loss - resend entire message
00101010100101010101010101010101010
I have to wait…
Continuous stream of bits
![Page 4: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/4.jpg)
4
Communicating the Messages
Better approach – segmentation.
Multiplexing: Different conversations can be interleaved.
Segmentation
001010
001010
001010
001010
001010
001010
![Page 5: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/5.jpg)
5
Communicating the Messages
Benefits Reliability (3)
Different paths Alternate path Only the missing segments need to be retransmitted
X
![Page 6: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/6.jpg)
6
Disadvantage of Segmentation
Disadvantage – added level of complexity. Analogy: 100 page letter one page at a time
Separate envelopes Sequencing
![Page 7: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/7.jpg)
7
Components of the Network
Devices (hardware) End devices, switch, router, firewall, hub
Media (wired, wireless) Cables, wireless mediums
Services (software) Network applications, routing protocols, processes, algorithms
![Page 8: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/8.jpg)
8
End devices
End devices or hosts: The source or destination of a message.
![Page 9: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/9.jpg)
9
Each host is identified by an address. IP (Internet Protocol) address (later)
Source Address: 209.67.102.55 Destination Address: 107.16.4.21
209.67.102.55 107.16.4.21
![Page 10: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/10.jpg)
10
Servers and Clients
A host Client, Server, or both. Software determines the role.
Servers provide information and services to clients e-mail or web pages
Clients request information from the server.
Server
Client
![Page 11: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/11.jpg)
11
Intermediary Devices
Intermediary devices: Connectivity to and between networks
Examples (4): Network Access Devices (Hubs, switches, and wireless access points) Internetworking Devices (routers) Communication Servers and Modems Security Devices (firewalls)
routers
switch or hub
switch or hub
![Page 12: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/12.jpg)
12
Network Media
Network media: The medium over which the message travels. Metallic wires - electrical impulses. Fiber optics – pulses of light Wireless – electromagnetic waves.
![Page 13: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/13.jpg)
13
Network Media
Different media considerations (4): Distance it will carry signal Environment it works in Bandwidth (speed) Cost
![Page 14: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/14.jpg)
14
Local Area Network (LAN)
Local Area Network (LAN) An individual network usually spans a single geographical area, providing
services and applications to people within a common organizational structure, such as a single business, campus or region.
![Page 15: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/15.jpg)
15
Wide Area Network (WAN)
Wide Area Networks (WANs) Leased connections through a telecommunications service provider
network. Networks that connect LANs in geographically separated locations
Telecommunications service provider (TSP) interconnect the LANs at the different locations. Voice and data on separate networks or converged networks
T1, DS3, OC3 PPP, HDLC Frame Relay, ATM ISDN, POTS
![Page 16: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/16.jpg)
16
The Internet – A Network of Networks
ISPs (Internet Service Providers) Often also TSPs Connect their customers to the Internet.
The Internet – ISPs connected to other ISPs
![Page 17: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/17.jpg)
17
Network Representations
Network Interface Card (NIC) Ports and interfaces (used interchangeably)
Physical Port Interface - Connect to individual networks.
![Page 18: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/18.jpg)
Protocols
![Page 19: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/19.jpg)
19
Protocol
Protocol – Rules that govern communications. Protocol suite - A group of inter-related protocols - Example: TCP/IP
![Page 20: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/20.jpg)
20
Message uses Multiple protocols (encapsulated)
Message: Data Multiple protocols
HTTP Header Data
Frame Header IP Header TCP Header App Header Frame Trailer Data
Protocols
![Page 21: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/21.jpg)
21
Multiple protocols (encapsulated)
Encapsulation – Process of adding a header to the data or any previous set of headers.
Decapsulation – Process of removing a header.
HTTP Header Data
Frame Header IP Header TCP Header App Header Frame Trailer Data
Protocols
![Page 22: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/22.jpg)
22
Example: Protocol – IPv4
Frame Header IP Header TCP Header Frame Trailer Data HTTP Header
![Page 23: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/23.jpg)
23
209.67.102.55 107.16.4.21
Frame Header IP Header TCP Header Frame Trailer
Data
209.67.102.55 107.16.4.21
HTTP Header
![Page 24: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/24.jpg)
24
Protocols
Networking protocols suites include rules for: (4) Format Accessing the media Error detection Setup and termination
![Page 25: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/25.jpg)
25
Early days – proprietary network equipment and protocols. Now – Industry standards Institute of Electrical and Electronics Engineers (IEEE)
Examples: 802.3 (Ethernet), 802.11 (WLAN) Internet Engineering Task Force (IETF)
Internet standards RFCs (Request for Comments) Example: TCP, IP, HTTP, FTP
Protocol Suites and Standards
![Page 26: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/26.jpg)
26
Example: RFC 791 IPv4
![Page 27: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/27.jpg)
27
Interaction of Protocols
Hypertext Transfer Protocol (HTTP) Protocol that governs interaction between web server and a web client.
HTTP Header Data
Frame Header IP Header TCP Header App Header Frame Trailer Data
Protocols
![Page 28: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/28.jpg)
28
Interaction of Protocols
Transmission Control Protocol (TCP) Responsible for controlling the information exchanged between the server and
the client: Size of data Flow control Reliability
segment
HTTP Header Data Protocols
![Page 29: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/29.jpg)
29
Internetwork Protocol (IP) Assigns the appropriate source and destination addresses,
Original source address of host Final destination address of host Used by routers in selecting the best path
packet
HTTP Header Data Protocols
![Page 30: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/30.jpg)
30
Interaction of Protocols
Network access protocols (Data link and Physical layer protocols) Format and physical transmission of data on the media.
frame
HTTP Header Data Protocols
![Page 31: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/31.jpg)
31
Technology-Independent Protocols
IP is a protocol that will travel over different types of media.
Frame Header IP Header TCP Header Frame Trailer HTTP Header
T1, DS3, OC3 PPP, HDLC Frame Relay, ATM ISDN, POTS
Ethernet Ethernet
IP Packet IP Packet
data
![Page 32: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/32.jpg)
Using Layered Protocols
![Page 33: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/33.jpg)
33
Using a layered model: Fosters competition Prevents changes in one layer from affecting other layers above and
below. Provides a common language to describe networking functions and
capabilities.
Benefits of a Layered Model HTTP Header Data Protocols
![Page 34: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/34.jpg)
34
Protocol and Reference Models
![Page 35: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/35.jpg)
35
Protocol and Reference Models
The Open Systems Interconnection (OSI) model is the most widely known internetwork reference model.
The International Organization for Standardization (ISO) released the OSI reference model in 1984, was the descriptive scheme they created.
![Page 36: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/36.jpg)
36
TCP/IP Model
TCP/IP Model and Protocol Suite is an open standard.
![Page 37: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/37.jpg)
37
The Communication Process - Encapsulation
Server
Data HTTP Header
TCP Header
IP Header
Data Link Header
Data Link Trailer
HTTP Data
Encapsulation – Process of adding control information as it passes down through the layered model.
![Page 38: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/38.jpg)
38
The Communication Process - Decapsulation Data HTTP
Header TCP Header
IP Header
Data Link Header
Data Link Trailer
Client
HTTP Data
Decapsulation – Process of removing control information as it passes upwards through the layered model.
![Page 39: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/39.jpg)
39
Wireshark will let us examine protocols!
![Page 40: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/40.jpg)
40
The Communication Process
Protocol Data Unit (PDU) - The form that a piece of data takes at any layer. PDUs are named according to the protocols of the TCP/IP suite.
Data - Application layer PDU Segment - Transport Layer PDU Packet - Internetwork Layer PDU Frame - Network Access Layer PDU Bits - A PDU used when physically transmitting data over the medium
![Page 41: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/41.jpg)
41
The sending host builds message with multiple encapsulations.
Dest. MAC 00-10
Source MAC 0A-10
Type 800
Trailer
Layer 2 Data Link Frame
Dest. IP 192.168.4.10
Source IP 192.168.1.10
IP fields Data
Layer 3 IP Packet
Dest. MAC 0B-31
Source MAC 00-20
Type 800
Trailer Dest. IP 192.168.4.10
Source IP 192.168.1.10
IP fields Data Dest. Add FF-FF
Source Add Type 800
Trailer Dest. MAC 0B-20
Source MAC 0C-22
Type 800
Trailer
Data HTTP Header
TCP Header
IP Header
Data Link Header
Data Link Trailer
Data HTTP Header
TCP Header
IP Header
Data Link Header
Data Link Trailer
The receiving host receives the message with multiple decapsulations.
![Page 42: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/42.jpg)
42
Getting Data to the Right Application
Layer 4 (TCP/UDP) contains a port number which represents the application or service carried in the IP packet. Destination port – destination application Source port – source application
HTTP Header Data Protocols
![Page 43: Chapter 2 Communicating Over the Network - univ-reims.frcosy.univ-reims.fr/.../FC/2-CommunicatingOverTheNetwork.pdf · 2014-06-13 · Chapter 2 Communicating Over the Network . 2](https://reader031.vdocuments.site/reader031/viewer/2022021711/5e60d18d4c610908c8096279/html5/thumbnails/43.jpg)
43
Getting Data to the Right Application
Destination port number tells the OS (TCP/IP) stack which application to hand the data to.
Examples: 80 = HTTP (www) 23 = Telnet 20, 21 = FTP 25 = SMTP