Data Networks ISOTDAQ 2012

Slides:



Advertisements
Similar presentations
Interconnecting Networks with TCP/IP
Advertisements

CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
CCNA – Network Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
Intermediate TCP/IP TCP Operation.
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
Chapter 5: TCP/IP and OSI Business Data Communications, 5e.
CP476 Internet Computing TCP/IP 1 Lecture 3. TCP / IP Objective: A in-step look at TCP/IP Purposes and operations Header specifications Implementations.
CS3505 The Internet and Info Hiway transport layer protocols : TCP/UDP.
ISO/OSI Model Layers Application: applications that use the network. This is were mail, browsers, ftp, etc reside Presentation: data formats, character.
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 2: Internet Protocols.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
Networking and Internetworking: Standards and Protocols i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg.
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 9 The TCP/IP Protocol Suite Paul Flynn.
Chapter 3 Review of Protocols And Packet Formats
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Gursharan Singh Tatla Transport Layer 16-May
CS 356 Systems Security Spring Dr. Indrajit Ray
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
Packet Analysis with Wireshark
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
Huda AL_Omairl - Network 71 Protocols and Network Software.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
10/13/2015© 2008 Raymond P. Jefferis IIILect 07 1 Internet Protocol.
10/13/20151 TCP/IP Transmission Control Protocol Internet Protocol.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Cisco Networking Academy S2 C9 TCP/IP. ensure communication across any set of interconnected networks Stack components such as protocols to support file.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Internet protocol Suite
1. Layered Architecture of Communication Networks: TCP/IP Model
Telecommunications Essentials John R. Durrett July 5, 2005.
1 DETAILS OF PROTOCOLS The Zoo Protocol - TCP - IP.
1 Review – The Internet’s Protocol Architecture. Protocols, Internetworking & the Internet 2 Introduction Internet standards Internet standards Layered.
Network Basics CS490 - Security in Computing Copyright © 2005 by Scott Orr and the Trustees of Indiana University.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
1 OSI Reference Model Benefits Standardizes interfaces Facilitates modular engineering Ensures interoperable technology Accelerates evolution Simplifies.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
Packet Switch Network Server client IP Ether IPTCPData.
DCN286 Introduction to Data Communication Technology Session 11.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP
Chapter 5 Network and Transport Layers
TCP/IP Transmission Control Protocol / Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
Wide Area Networks and Internet CT1403
Introduction to Networks
Transport Layer 9/22/2019.
Presentation transcript:

Data Networks ISOTDAQ 2012

Transport Internet Network access Application Ethernet Frame Relay Token RingPPP HTTP FTP Telnet DNS RIP SNMP TCP/IP protocol suite TCP UDP IP ARP IGMP ICMP / /162 TCP/IP Protocols Data Networks – ISOTDAQ 2012 –

Networks Networks connect s two or more computers –Computers can be located anywhere Networks can be categorized depending on the size: –Local Area Network –Metropolitan Area Network –Wide Area Network Data Networks – ISOTDAQ 2012 – 3

Protocols A protocol defines the syntax, semantics, and synchronization of communication the specified behavior is typically independent of how it is to be implemented A protocol can therefore be implemented as hardware or software or both 4 Data Networks – ISOTDAQ 2012 –

History and Standards 1969: ARPANET is commisioned by the USA defense department for reasearch into networking 1972: First program written –Telnet is specified 1973: Ethernet is outlined –FTP is specified 1974: TCP is specified 1976: First sent by Queen Elizabeth 1977: Number of hosts breaks : IP Standard is published in RFC : TCP/IP becomes the core Internet Protocol 1984: DNS is specified Data Networks – ISOTDAQ 2012 – 5

RFCs –Large, open, international community of network designers, operators, vendors and researchers concerned with the evolution of the Internet Architecture –Open to any interested individual Network managers will readily agree that networks need documentation. RFCs (Request for Comments) document the functions of the Internet and the protocols that support it The documentation process start with the Internet Draft 6 Data Networks – ISOTDAQ 2012 –

ISO/OSI Application Presentation Session Transport Network Data Link Physical 7 Data Networks – ISOTDAQ 2012 –

Network Components Hosts Hubs Switches Routers 8 Data Networks – ISOTDAQ 2012 –

Local Signaling Data formatting Session Handling Routing Local Signaling Local Signialing is not part of the TCP/IP family of protocols, but an IP datagram requires a physical interface to get to the target station Most popular LAN protocol in use today is Ethernet 9 Data Networks – ISOTDAQ 2012 –

Ethernet Destination address: –UNICAST: A4 BA 87 5B –MULTICAST: E –BROADCAST:FF FF FF FF FF FF 10 PreamblePhysical Dest. Address Physical Source Address TypeData/Paylo ad CRC 8Bytes6B B4B Data Networks – ISOTDAQ 2012 –

Internet Protocol The IP network moves datagrams with the same functionality that the Postal Service delivers letters. An IP datagram is placed on the network by the source host. – Letters are deposited in the mailbox by the mailer The IP network tries to deliver the datagrams, if the necessary physical and logical connections exists –The postal service tries to deliver the letter if the right trucks, planes, buses, and mail personal exists IP is connectionless and not reliable –Just as the postal service, IP make no guarantee of delivery 11 Data Networks – ISOTDAQ 2012 –

IP Addressing IP Address: Are 32-bits long Uniquely identify a particular network interface Contain two parts – Network ID or prefix –Locally administered bits – Data Networks – ISOTDAQ 2012 – 12

Reserved Address –The “unknown” address –The loopback address –The local broadcast address (all local bits off) –Our local network (all local bits on) –The broadcast address for our local network Data Networks – ISOTDAQ 2012 – 13

Private Addressing Can be used by anyone, anywhere Not routable on the global Internet Three blocks allocated by RFC 1918 – /8: About 16 million addresses – /12: About 1 million addresses – /16: addresses 14 Data Networks – ISOTDAQ 2012 –

Address Resolution Protocol IP address:   MAC address c When any system in an IP network begins the process of communicating with another system, a key part of the process is to identify the MAC address that matches the target IP address Data Networks – ISOTDAQ 2012 – 15

ARP Cache 16 [lxplus427] ~ $ /sbin/arp -n Address HWtype HWaddress Flags Mask Iface ether 0A:00:30:89:D2:C1 C eth ether 00:30:48:F0:DF:BC C eth ether 00:30:48:F0:E7:CA C eth0 [lxplus427] ~ $ Data Networks – ISOTDAQ 2012 –

ARP Restrictions ARP uses the network broadcast address to find the hardware address of the target host, which is only a concern when the two hosts share the same network and subnet. Since routers block broadcasts, the ARP requests never leaves the subnet 17 Data Networks – ISOTDAQ 2012 –

ARP Message Fields Hardware Type (16)Protocol Type (16) Hardware Lenght (8) Protocol Lenght (8) Operation (16) Source Hardware Address – Sender MAC address Source Protocol Address – Sender IP address Target Hardware Address – Receiver MAC address Target Protocol Address – Receiver IP address Data Networks – ISOTDAQ 2012 –

Prefix Notation PrefixMaskPre fix MaskPrefi x Mask / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / Data Networks – ISOTDAQ 2012 – 19

IP datagrams Header must be at least 20 bytes Header can increase in multiples of 4 bytes 20 Options (0 or 32 if any) Source IP Address (32) Destination IP Address (32) Time to Live (8) Identification (16) Data (varies if any) Total length (16) Header Checksum (16)Protocol (8) Flags (3) Fragment Offset (13) Type of Service (8) Version (4) Header Length (4) Bit 0Bit 31Bit 16Bit bytes Data Networks – ISOTDAQ 2012 –

Fragment Bytes Layout If the “More” bit is And the Offset is Then the datagram is 00Not fragmented 10The first fragment 1> 0A middle fragment 0> 0The last fragment Fragmentation Field Layout (16 Bits) Reserved Don’t Fragment More Fragments Fragment Offset (13 bits) Data Networks – ISOTDAQ 2012 –

Target Source Fragmenting Fragments 4,096 Router Gateway Data Networks – ISOTDAQ 2012 –

Target Source Fragmenting Fragments 1136 Router Gateway 1480 Data Networks – ISOTDAQ 2012 –

Fragmenting Fragments 4, Target Source Router Gateway Data Networks – ISOTDAQ 2012 –

Fragmenting Fragments 4, ,096 Target Source Router Gateway Data Networks – ISOTDAQ 2012 –

What Is IP Routing? Host Host Host Host Internet Router Routing Table Network #Interface # # # 3 #2 #1 Data Networks – ISOTDAQ 2012 –

Routing Function How do routers know where other networks are located? Data Networks – ISOTDAQ 2012 –

Routing Table Basics Most routing tables contain: –Destination network address –Subnet mask –Cost or metric –Next hop address or gateway address –Exit interface Data Networks – ISOTDAQ 2012 –

Routing Table Contents Data Networks – ISOTDAQ 2012 –

Router Routing Table Data Networks – ISOTDAQ 2012 –

Reliable Transport Services Segments TCP is connection-oriented and reliable. UDP is connectionless and unreliable. Data Networks – ISOTDAQ 2012 –

Connectionless Protocol Connection-Oriented Protocol Transport (Host-to-Host) Layer Protocols Data Setup request Setup response Data Acknowledge Connection clear Clear response Data Networks – ISOTDAQ 2012 –

UDP Not reliable Connectionless Provides ports –Ports identifies the application that send or recieve the data Checksum is optional –Reliability reduced even further if it is not used –Checksum cover also the data field Data Networks – ISOTDAQ 2012 –

UDP Header EthernetIPUDPUPD PayloadCRC Variable4 Data Networks – ISOTDAQ 2012 –

UDP Message Length (16) Destination Port Number (16) Data (if any) UDP checksum (16) Source Port Number (16) Bit 0Bit 31 8 bytes Bit 16Bit 15 UDP Header Layout Data Networks – ISOTDAQ 2012 –

TCP Header Ethernet Header IPTCP Payload Checksum 1420 to 6020 or 24 Varies (may not exist) 4 Data Networks – ISOTDAQ 2012 –

Options (if any) Header Length (4) TCP Checksum (16) Sequence Number (32) Data (if any) Destination Port Number(16) Acknowledgment Number (32) Source Port Number (16) Bit 0Bit bytes Bit 16Bit 15 TCP Header Layout Window Size (16)Reserved (6)Code Bits (6) Urgent Pointer (16) Data Networks – ISOTDAQ 2012 –

Client port Server port 21 TCP Three-Way Handshake Host 1 Host 2 SYN ACK, SYN 33 ACK Sequence number = 7577 Acknowledge = 896 Flags = ACK, SYN Window = 4096 MSS = 1024 Sequence number = 895 Acknowledge = 0 Flags = SYN Window = 4096 MSS = 1460 Sequence number = 896 Acknowledge = 7578 Flags = ACK Window = 4096 MSS = 1460 Data Networks – ISOTDAQ 2012 –

Example of DAQ Network 39 Data Networks – ISOTDAQ 2012 – Experiment, composed by several sub detectors: Our data is produced here Experiment, composed by several sub detectors: Our data is produced here Readout boards

Backup slides 40 Data Networks – ISOTDAQ 2012 –

Step 1: Request for Synchronization Data Networks – ISOTDAQ 2012 –

Step 2: Acknowledgment of the Client Request Data Networks – ISOTDAQ 2012 –

Step 3: Acknowledgment of the Server Request Data Networks – ISOTDAQ 2012 –

Congestion and TCP Buffer When a host is congested it sets its window size to 0. An indication of a network congestion is a large window size and no change in the returned ACK numbers. Data Networks – ISOTDAQ 2012 –

Client port 12288Server port 21 Normal End of the Session Host 1Host 2 ACK, FYN ACK ACK, FIN Sequence number = 900 Acknowledge = 8542 Flags = ACK, FYN Window = 4096 Sequence number = 8542 Acknowledge = 901 Flags = ACK Window = 4096 Sequence number = 8542 Acknowledge = 901 Flags = ACK, FIN Window = 4096 Sequence number = 901 Acknowledge = 8543 Flags = ACK Window = 4096 Data Networks – ISOTDAQ 2012 –

Step 1: Sending a FIN Data Networks – ISOTDAQ 2012 –

Step 2: Acknowledging the FIN Data Networks – ISOTDAQ 2012 –

Step 3: Client Sends a FIN Data Networks – ISOTDAQ 2012 –

Step 4: The Server Acknowledges the FIN Data Networks – ISOTDAQ 2012 –

Reset Session Client Server Reset bit turned on System failure Data Networks – ISOTDAQ 2012 –

Network Address Translation Nat includes: –Static NAT Permanent one-to-one mapping Allows outbound and inbound sessions –Dynamic NAT Mappings dynamically assigned from pool Allow outbound sessions only –PAT One public address serves many internal sessions Allows oubound sessions only 51 Data Networks – ISOTDAQ 2012 –