310 likes | 439 Views
INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES. Chapter 2. Networks and and communication protocols. CONTENT. HISTORY Centralized Processing (1960 - 1970) Networks (1970 - 1980) Inter-networks (1980 - 1990) Internet: Network of networks RECALLS ON NETWORK SYSTEMS
E N D
INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES Chapter 2. Networks and and communication protocols
CONTENT • HISTORY • Centralized Processing (1960 - 1970) • Networks (1970 - 1980) • Inter-networks (1980 - 1990) • Internet: Network of networks • RECALLSONNETWORK SYSTEMS • OSI vs TCP/IP • THE SEVEN OSI LAYERS • OSI’s PROTOCOLS DATA TRANSMISSION • TCP/IP MODEL • TCP/IP NETWORKS SERVICES • WHAT ABOUT NETWORKS? • INTERCONNECTED NETWORKS • LOCAL NETWORKS STANDARDS • IRQ (Interrupted Request) AND ERRORS PROCESSING • SEQUENCE NUMBERS • FLOW CONTROL MECHANISMS • THE NETWORK LAYER • SWITCHING TECHNIQUES • ROUTING • TCP/IP • TCP/IP PROTOCOLS • THE IP PROTOCOL • IP ADRESSES • THE TCP PROTOCOL • THE UDP PROTCOL • SERVICES DEDICATED PORTS A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
NETWORKS HISTORY • The steps towards Internet : • Centralized Processing (1960 - 1970) • Networks (1970 - 1980) • Inter-networks (1980 - 1990) • Internet: Network of networks A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Mainframe Host A Mini-computer Host B terminal Remote terminal R.V.A. Centralized Processing (1960 - 1970) A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Networks (1970 - 1980) Token Ring Ethernet A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Ethernet Token Ring Serial WAN Connexion FDDI Inter-networks (1980 - 1990) A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Internet: Network of networks ATM Switcher Router A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Machine B Machine A layer N+1Protocol Layer N+1 Layer N+1 Layer N+1/NInterface layer NProtocol Layer N Layer N RECALLSONNETWORK SYSTEMS • The reference model for open systems interconnection is OSI. • Used to structured communication software components. • Created by the International Standard Organisation ISO. • Intended to enable interoperablity between protocols • and between networks applications. • OSI model: A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
THE SEVEN OSI LAYERS Protocole d'application : FTP, SMTP, HTTP, SIP Application 7 Application Message Presentation protocol: XDR, CORBA Présentation Présentation 6 Message Session protocol: TCP 5 Session Session Message Transport protocole: TCPUDP 4 Transport Transport Message 3 Network Network Network Network Paquet 2 Frame Data link Data link Data link Data link Physical 1 Physical Physical Bit Physical Device A Device B Sub-network Mostly used as framework for other network architectures. e.g TCP IP A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
OSI versus TCP IP • THE SEVEN OSI LAYERS • OSI’s PROTOCOLS DATA TRANSMISSION • TCP/IP MODEL • TCP/IP NETWORKS SERVICES
Layer Transmitted Received Layer 7 protocol m m 7 interface 6/7 interface 6/7 Layer6 protocol M M 6 interface 5/6 interface 5/6 Layer5 protocol M M 5 Layer4 protocol E M E M E M E M 4 4 1 4 1 4 2 4 2 Layer3 protocol 3 E E M E E M E M E E M E 3 4 1 3 4 2 3 4 1 3 4 2 Layer2 protocol E E E M Q E E E M Q E E E M Q E E E M Q 2 2 3 4 1 2 2 3 4 2 2 2 3 4 1 2 2 3 4 2 2 1 DEVICES - Receiver Sender OSI’sPROTOCOLS DATA TRANSMISSION • Following a downstream flow (up to down): • Every layer receives data from the upper layer, adds its own control • informations (overheads) before transmitting the new message to the • bottom layer A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
OSI versus TCP/IP • ISO has started recommended OSI by end of 70’s • TCP IP was already adopted and in use • There are very few OSI-based systems running • Nearly all the networking softwares and protocols are built on TCP IP model • OSI specifications are very complicated to implement as compare to TCP IP. • OSI is a 7 layers model and TCP IP, 5. • OSI is has a better description of networks and its services. A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
TCP/IP MODEL Application Application OSI 5-7 OSI 4 TCP UDP OSI 3 IP Hardware/Wired interfaces OSI 1-2 Internet softwares are built on TCP/IP model A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
TCP/IP NETWORKS SERVICES • The TCP/IPlayers controls the network and achieve the following tasks: • Data switching, • Packets routing • Flow control • Connexions,... • Two types of services are offered: • Datagram or best effort. • Virtual circuit or reliable delivery C A D B Datagram C A D B Virtual Circuit (V.C) A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
WHAT ABOUT NETWORKS? • INTERCONNECTED NETWORKS • LOCAL NETWORKS STANDARDS • IRQ (Interrupted Request) AND ERRORS PROCESSING • SEQUENCE NUMBERS • FLOW CONTROL MECHANISMS • THE NETWORK LAYER • SWITCHING TECHNIQUES • ROUTING
Modem 101001 Modem PSTN 101001 M M Mux Sub-network (e.g. X.25) Satellite R R R B INTERCONNECTED NETWORKS • Components of a network • Repeater • Bridge • Router • Gateway • LAN • MAN • WAN A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
LOCAL NETWORKS STANDARDS • The official standards for Local networks are IEEE 802 standards • IEEE 802.3 CSMA\CD (Local Area Network e.g Ethernet) • IEEE 802.4 Token Bus • IEEE 802.5 Token Ring • IEEE 802.6 MAN (Metropolitan Area Network) • IEEE 802.11 WLAN (Wireless LAN) • IEEE 802.2 describes Datalink layer. IEEE 802.2 LLC Link Layer Control MAC IEEE 802.3 IEEE 802.4 Token Bus IEEE 802.6 CSMA/CD MAN IEEE 802.5 Token Ring PHYSICAL LAYER A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
IRQ (Interrupted Request) AND ERRORS PROCESSING Timeout Timeout Timeout Timeout I(N) I(N) I(N) I(N) Erreur Ack(N) Nack(N) Ack(N) Ack(N) Erreur Erreur Expiré I(N+1) Expiré I(N) I(N) I(N) Ack(N+1) Ack(N) Ack(N) Ack(N) A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Timeout I(0) Livré Ack(N) Erreur Expiré I(0) Ignoré Ack(0) I(1) Livré SEQUENCE NUMBERS • To avoid repeating message transmission: • A counter is used to make the difference between a Frame and the • Frame that comes after: A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
FLOW CONTROL MECHANISMS • To control the flow, two techniques are used: • Stop and Wait. • Sliding window • Credits technique: A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
THE NETWORK LAYER • Routing consists of conveying data through the network. • All the routing techniques a based on minimal-cost policies: • Proportionnal to the network capacity • Proportionnal to the traffic load of the line • In relation with capacity and load • Equal to the length and amount of paquets in the • waiting queued on this node A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Switching node Hôte Sous-réseau 1 Node 1 SWITCHING TECHNIQUES • When a message is transmitted between two nodes, • it follows a dedicated path. • Sometimes, due to efficiency purposes, a message is cutted • into small pieces • These techniques depend on switches problems. A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
SWITCHING TECHNIQUES (2) • Switching modes: • circuits switching • messages switching • paquets switching • cells switching • Routing A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
ROUTING If J need to compute its new path towards G, it obtains the best cost through H, that is a total amount Of 18 (JH = 12 et HG = 6). Distributed routing techniques: RIP, OSPF,... New J table gives on the left the distance of the best route and on the rigth column, the next hope to take. A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
TCP IP • TCP/IP PROTOCOLS • THE IP PROTOCOL • IP ADRESSES • THE TCP PROTOCOL • THE UDP PROTCOL • SERVICES DEDICATED PORTS
TCP/IP PROTOCOLS FTP,TELNET, SMTP, HTTP APPLICATIONS TCP UDP TRANSPORT IP NETWORK 802.2 LLC Slip, HDLC, PPP DATA LINK Ethernet, Token Ring, ... PHYSICAL Internet softwares are built on TCP/IP model : A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
31 15 0 Type of service Version Header lenght Total IP paquet lenght Paquet identification Relative position Flags Checksum Protocol Lifetime counter Source Adress Destination Adress Bourrage Options Data THE IP PROTOCOL A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
0 32 Network Adress Netid 0 Host Adress Hostid Class A 16 0 32 Network Adress Netid 1 0 Host Adress Hostid Class B 32 24 0 Network Adress Netid Host Adress Hostid 1 1 0 Class C IP ADRESSES 8 A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
31 15 0 Source port Adress Destination port Adress Sequence Number Zone de conrôle d'erreur Acknowledgement number (Checksum) A U S P R E Header lenght Reserved C R Y S S N Sliding window K G N H T D Checksum field Emergency Area Options Bourrage Data THE TCP PROTOCOL A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
31 15 0 Source port Adress Destination port Adress Length Checksum Data THE UDP PROTCOL There is no delivery warranty: best effort A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES
Number Name Description 5 RJE Remote Job Entry 7 ECHO Echo 11 USERS Active Users 13 DAYTIME Daytime 20 FTP-DATA File Transfert Data 21 FTP-CONTROL File Transfert Control 23 TELNET Telent 25 SMTP Simple Mail 42 TIME Time 43 NAMESERV Host Name sever 53 NICKNAME Who Is 53 DOMAIN Domain Name Sever 67 BOOTPS Bootstrap Server 68 BOOTPC Bootstrap Client 69 TFTP Trivial FTP 79 FINGER Finger 80 HTTP Web Server 102 ISO-TSAP ISO transport 103 X400 X400 SERVICES DEDICATED PORTS Source and destination port adresses are the applications’ access points,. TCP identify an application with its dedicated port number A.Obaid-Wilfried Probst – Rufin Soh INE4481 DISTRIBUTED DATABASES & CLIENT-SERVER ARCHITECTURES