Docsity

DATA ACCESS AND WEB APPUNTI, Appunti di Database Distribuiti

Toggle sidebar
bg1
What is a communication system?
Source send Data to trasmitter (TX) send signal to channel, the destination receive data from the
signal withe the receiver (RX)!
The goal of a telecommunication engineer is put the TX and RX as close as possible to the input
one.!
What do we need to communicate?!
-we need to agree on some rules -> protocols
Protocols
• A protocol is a series of steps, involving two or more parties, designed to accomplish a task
• Everyone in the network must know the protocol and agree to follow it
• The protocol must be unambiguous (no chance of a misunderstanding)
• The protocol must be complete (specified action for each situation)
What is a computer network?
The ‘bones’
• Terminal devices (TX, RX) • PC, phones, screens, speakers, mics, storing units…
• Switching units • packet switches for data networks • circuit switches for telephone networks
• Links (channel) • fiber optic, copper, twisted pairs, radio, …
The ‘soul’
• Communication rules • protocols
Physical architecture
• Describes the point-to-point connections between devices (single link)
• Wired and wireless networks
Wired networks
•LAN local area network • private • limited scope (a couple of buildings) • high speed •
application: collage, school, hospital • example: Ethernet
•WAN wide area network • may be low speed • crosses a large span of space (continental) •
example: Internet
-SERIE DI PASSI DA SEGUIRE PER UN FINE
- TUTTI NEL NETWORK DEVONO
CONOSCERLO E ACCETTARLO
- NON DEVE ESSERE AMBIGUO
- DEVE ESSERE COMPLETO
SOURCE -> TX -> SIGNAL -> RX -> DESTINATION
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Anteprima parziale del testo

Scarica DATA ACCESS AND WEB APPUNTI e più Appunti in PDF di Database Distribuiti solo su Docsity!

What is a communication system? Source send Data to trasmitter (TX) send signal to channel, the destination receive data from the signal withe the receiver (RX) The goal of a telecommunication engineer is put the TX and RX as close as possible to the input one. What do we need to communicate?

  • (^) we need to agree on some rules -> protocols Protocols
  • A protocol is a series of steps, involving two or more parties, designed to accomplish a task
  • Everyone in the network must know the protocol and agree to follow it
  • The protocol must be unambiguous (no chance of a misunderstanding)
  • The protocol must be complete (specified action for each situation) What is a computer network? The ‘bones’
  • Terminal devices (TX, RX) • PC, phones, screens, speakers, mics, storing units…
  • Switching units • packet switches for data networks • circuit switches for telephone networks
  • Links (channel) • fiber optic, copper, twisted pairs, radio, … The ‘soul ’
  • Communication rules • protocols Physical architecture
  • Describes the point-to-point connections between devices (single link)
  • Wired and wireless networks Wired networks
  • LAN local area network • private • limited scope (a couple of buildings) • high speed • application: collage, school, hospital • example: Ethernet
  • WAN wide area network • may be low speed • crosses a large span of space (continental) • example: Internet

Wireless networks

  • WLAN wireless local area network • links two or mode wireless devices • home, office, small building • example: Wi-Fi
  • WSN wireless sensor network • small size, battery operated • small to wide areas (e.g., city-wide)
    • may host from tens to thousands of nodes example: Bluetooth Network connections – internet
  • An internetwork or internet is a connection of two or more networks Network topologies
    • Access (edge) network

LEZIONE 2 Logic architecture

  • Describes the end-to-end connection between the devices involved in the communication
  • Client-server and peer-to-peer Client-server clients
  • communicate with server
  • may be intermittently connected
  • do not communicate directly with each other server
  • always-on host
  • server farms for scaling Server farms Where server are located. Peer-to-peer
  • no always-on server
  • arbitrary end systems directly communicate
  • peers are intermittently connected
  • highly scalable but difficult to manage
  • (example: Gnutella, BitTorrent) The Internet: the most known internet network
  • 1961-64: Leonard Kleinrock proves that packet switching is very efficient in presence of burst traffic
  • 1967: Lawrence Roberts submits a project to interconnect heterogeneous computers through special nodes (switch) called interface message processors (IMPs) - the project was funded by the advanced research projects agency (ARPA), of the USA Department of Defense - it is the dawn of ARPANET
  • September 1969: first connection of a host computer to ARPANET
  • October 29, 1969: first host-to-host message (next slide)
    • one single protocol (network control protocol, NCP): RFC 001
    • the^ first telnet from UCLA to SRI crashes the system: the very^ first message sent over the Internet backbone was... LO like “lo and behold”
  • December 1969: 4 nodes: UCLA, UCSB, Stanford Research Inst. (SRI), Utha University

The born of Internet

  • 1970: ALOHANET: wireless network to interconnect campuses of Hawaii
  • 1970-1980: proliferation of different (not interconnected) networks
  • 1972: Vint Cerf & Bob Kahn à propose gateways to INTERconnect heterogeneous networks
    • transmission control protocol (TCP) to manage end-to-end communications over heterogeneous mix of networks
  • 1977: ARPANET, ALOHANET, Packet Radio network are interconnected as ARPA Internet, and TCP gets split into TCP & IP - 1983: Birth of the domain name server (DNS) system
  • 1989: Birth of world wide web (www)
  • 1995: the INTERNET becomes fully commercial Internet administrators Accessing the Internet
  • Users need to have an Internet (IP) address
  • The same host can be addressed in 3 different ways
    • Host Name:^ meneghello.dei.unipd.it
    • Internet (IP) address: 147.162.97.17 (only the device connected on a network and is unique for the device connected to this network)
    • MAC address: 0:0:c:6:13:4a (specific for the device)

What is a communication system? Communication system components

  • The TX and RX should agree on a protocol to exchange data via a transmission medium Protocol
  • A protocol is a series of steps , involving two or more parties, designed to accomplish a task
  • Everyone in the network must know the protocol and agree to follow it
  • The protocol must be unambiguous (no chance of a misunderstanding)
  • The protocol must be complete (specified action for each situation) A single protocol can do different operations but for better result we divide all the action in block of different protocol (A single protocol can do it all but development cost, complexity, energy, delay, etc) Layered approach The solution is partition into multiple layers of software for a better control, encapsulates the related details (so that other layers simply do not have to care about what that layer is in charge of)

TCP/IP protocol suite

  • Organized in five different layers
  • Dialogue between two entities of same layer via Protocol Data Units (PDUs)
  • The PDU of a layer is called Service Data Unit (SDU) at the lower layers
  • Underlying layers do not simply forward the PDU from higher layers -> they add their Protocol Control Information (PCI) (header), creating the new PDU PCI + SDU = PDU SENDER RECEIVER

Data link layer – DLL

  • Responsible for the delivery of a frame from one node to a physically adjacent node over a link
  • it is limited to local link (single hop)
  • it is divided into two sublayers
    • Medium Access Control (MAC) -> manages presence of multiple users on the same transmission medium (to avoid collisions)
    • Logical Link Control (LLC) -> performs^ flow and error control on a local basis Addressing at the link layer
  • If there are more than 2 devices on the connection, some form of addressing scheme is required to get the packet to the right destination -> MAC addresses
  • are local (known over the link only)
  • MUST be predefined for a given NIC (Network Interface Card)
  • MUST be unique to each card in the world (associated with a network adaptor)
  • are assigned by the device vendor MAC ADDRESS: A3:34:45:11:92:F MAC and IP addresses – disclaimer
  • MAC addresses used to identify devices, NOT connections, their validity is local, single hop MAC ADDRESS: A3:34:45:11:92:F
  • IP addresses used for routing, identify connections, their validity extends over multiple hops IP ADDRESS: 131.175.21.
  • To deliver a message we need the IP address of the final destination and the MAC address of the next hop -> the device on the next hop will keep the same IP address of the final destination and obtain the MAC address of the next hop à and so on Physical layer – PHY
  • Responsible for actual delivery of data over physical medium (channel) through signals
  • at the TX: takes the 1’s and 0’s coming from the data link layer (above of it) and turns them into some kind of signal that can go over the physical layer (electrical current, light pulses, etc.)
  • at the RX: takes this signal and turns it back into 1’s and 0’s to pass up the stack on the receiving end
  • message has a begin (header) and an end (tail)
  • data in between passed up to link layer

What is a computer network? The ‘bones’

  • Terminal devices (TX, RX)
    • PC, phones, screens, speakers, mics, storing units...
  • Switching units
  • Links (channel)
    • fiber optic, copper, twisted pairs, radio
  • The ‘soul’
  • Communication rules
    • protocols Switching devices

Packet-switched network

  • Packets forwarded using destination host address
    • need a header
  • Packets between same source-destination pair may take different paths Types of switching devices (Router, Layer-2 switch, Hub) Hub – physical layer

Layer-2 switch – data link layer

  • Earliest switches had static switching tables
  • not practical: if a station was added or deleted, the table had to be modified manually
  • A better solution is a dynamic switching table that maps addresses to ports (interfaces) automaticallythe switch gradually learns
    1. the switch inspects both the destination and the source addresses in each frame that passes through the switch
    2. the destination address is used for the forwarding decision (table lookup)
    3. the source address is used for adding entries to the table and for updating purposes

Physical layer Physical layer in the TCP/IP stack = ROUTER (IP) = SWITCH (MAC ADDRESS) = HUB

Analog VS digital DIGITAL ONLY 0 AND 1 Data and signal elements

  • Data element: smallest entity that can represent a piece of information  bit (digital)
  • (^) Bitrate!

[bit/s] or [bps]

  • maximum transmission speed at bit level [bit/s] of a link
  • number of bits exchanged in^ one second
  • sometimes called bandwidth (e.g., “ADSL connection with a bandwidth of 1 Gbit” “ADSL connection with a maximum bitrate of 1 Gbit/s”)
  • (^) Signal element shortest unit of an electromagnetic signal Analog data/signals DIFFERENZA TRA PICCCO MAGGIORE E PICCO INFERIORE

Encoding VS modulation

  • Encoding = use digital quantities (codes) to represent digital data
    • output:^ digital
    • reverse operation: decoding
  • Modulation = change the characteristics of an analog signal (carrier) to represent data
    • output:^ analog
    • reverse operation: demodulation Router VS Modem
  • The router is a switching element (see the previous slide set)
  • The modem is a device performing mod ulation and dem odulation operations, i.e., it changes the characteristics of an analog signal to represent data