ENGN2219/COMP6719 Computer Architecture & Simulation Ramesh - - PowerPoint PPT Presentation

engn2219 comp6719
SMART_READER_LITE
LIVE PREVIEW

ENGN2219/COMP6719 Computer Architecture & Simulation Ramesh - - PowerPoint PPT Presentation

ENGN2219/COMP6719 Computer Architecture & Simulation Ramesh Sankaranarayana Semester 1, 2020 (based on original material by Ben Swit and Uwe Zimmer) 1 Week 11: Networks 2 Outline basic concepts 7-layer OSI model Examples: standard


slide-1
SLIDE 1

ENGN2219/COMP6719

Computer Architecture & Simulation Ramesh Sankaranarayana Semester 1, 2020 (based on original material by Ben Swit and Uwe Zimmer)

1
slide-2
SLIDE 2

Week 11: Networks

2
slide-3
SLIDE 3

Outline

basic concepts 7-layer OSI model Examples: standard protocols

3
slide-4
SLIDE 4

Basic concepts

4
slide-5
SLIDE 5

We want to communicate with others

5
slide-6
SLIDE 6

What’s so hard about this?

communication is easy if both ends of the communication can share memory/registers e.g. function calls, shared global variables (in the .data section) but most of the time that’s not the case

6
slide-7
SLIDE 7 7
slide-8
SLIDE 8
slide-9
SLIDE 9

Information theory

information theory is a whole sub-eld of maths/CS—you can data requires diference! take a course on it here at the ANU

9
slide-10
SLIDE 10

talk

  • n a wire carrying electrical signals, what might diference look like?
10
slide-11
SLIDE 11

Aspects of network communication

there are a few fundamental “dimensions” to a given communications network transmission medium communications protocol(s) topology these are all (at least partially) orthogonal

11
slide-12
SLIDE 12

What’s a node?

the term node is used a lot when talking about networks a node is anything which communicates on the network computers mobile phones IoT devices nanobots

12
slide-13
SLIDE 13

Transmission medium

lots of options here: electrical voltages on a wire (or several wires) co-axial cable twisted-pair cable EM waves in the air light in an optic-ber cable

13
slide-14
SLIDE 14

Copper wires

14
slide-15
SLIDE 15

Fibre-optic cables

15
slide-16
SLIDE 16

Waves in some other medium…

16
slide-17
SLIDE 17

Physics refresher

In case you haven’t studied physics… a voltage is a relative measurement, it’s a voltage diference between two endpoints the ground pins are the reference point on your discoboard sometimes the values matter (low or high, 0 or 1) and sometimes the transitions are most important (rising/falling edge triggers)

17
slide-18
SLIDE 18

remember, we’re still talking about digital information (0 and 1)

18
slide-19
SLIDE 19

Communication protocol

an agreed-upon set of rules about what to “say” and how to understand the responses this is where heaps of the diferences between diferent communication networks are (and the creativity/innovation, too) how many wires? how big are the messages? lsb rst, or msb? both sides must agree! (somewhat) independent of the transmission medium

19
slide-20
SLIDE 20

Circuit-switched networks

circuit-switched means nodes set up & use a dedicated connection (physical or logical) example: phone lines in ye olden dayse—to route the phone call to the right place, the switchboard operator would literally make a physical connection between the caller & the receiver

20
slide-21
SLIDE 21

Bell System international switchboard in 1943

21
slide-22
SLIDE 22

Packet-switched networks

packet-switched means data transmitted over the network is segmented into packets (or frames) these packets contain both: a payload (what you want to send) an address (who you want to send it to) these days, most network protocols are packet-switched this allows diferent nodes to share the same physical connections (multiplexing)

22
slide-23
SLIDE 23

Directions of information low

simplex means information only lows one way: from sender to receiver half-duplex means information can low both ways, but not at the same time full-duplex means information can low both ways simultaneously

23
slide-24
SLIDE 24

Topology

topology is the way that the nodes are connected to one another (both physically and logically) there are several diferent ways to connect the nodes together, each with pros and cons

24
slide-25
SLIDE 25

Sending a message

how about sending a message to a specic node? circuit-switched vs packet-switched?

25
slide-26
SLIDE 26

Serial vs parallel

serial parallel data is sent one-bit-at-a-time multiple bits sent simultaneously (e.g. multiple wires) fewer bits sent per signal, but simpler need to keep all the connections in sync

26
slide-27
SLIDE 27

Timing & synchronisation

There are two main approaches: synchronous asynchronous transitions on a clock line allow both ends to co-ordinate (e.g. ) (independent) timers at each end are used to determine when to do things (e.g. RS232) no clock skew issues, but requires an extra connection no extra connections required, but more vulnerable to synchronisation issues SPI

27
slide-28
SLIDE 28

so far we’ve been building our vocabulary now, let’s get a bit more formal

28
slide-29
SLIDE 29

7 layer OSI model

29
slide-30
SLIDE 30

What’s the OSI model?

standardised in 1977: 7 layer architecture, connection oriented hardy implemented anywhere in full… …but its concepts and terminology are widely used, when describing existing and designing new protocols

The Open Systems Interconnection model (OSI model) is a conceptual model that characterizes and standardizes the communication functions of a telecommunication or computing system without regard to its underlying internal structure and technology (from ) Wikipedia

30
slide-31
SLIDE 31

it’s an abstract model the layers are the key point

31
slide-32
SLIDE 32 32
slide-33
SLIDE 33

Layer 1: physical layer

Service: Transmission of a raw bit stream over a communication channel Functions: Conversion of bits into electrical or optical signals

33
slide-34
SLIDE 34

Layer 2: data link layer

Service: Reliable transfer of frames over a link Functions: Synchronization, error correction, low control

34
slide-35
SLIDE 35

Layer 3: network layer

Service: Transfer of packets inside the network Functions: Routing, addressing, switching, congestion control

35
slide-36
SLIDE 36

Layer 4: transport layer

Service: Transfer of data between hosts Functions: Connection establishment, management, termination, low-control, multiplexing, error detection

36
slide-37
SLIDE 37

Layer 5: session layer

Service: Coordination of the dialogue between application programs Functions: Session establishment, management, termination

37
slide-38
SLIDE 38

Layer 6: presentation layer

Service: Provision of platform independent coding and encryption Functions: Code conversion, encryption, virtual devices

38
slide-39
SLIDE 39

Layer 7: application layer

Service: Network access for application programs Functions: Application/OS specic

39
slide-40
SLIDE 40

talk

where does the most interesting stuf happen? which layer?

40
slide-41
SLIDE 41

Examples: standard protocols

41
slide-42
SLIDE 42

TCP/IP

42
slide-43
SLIDE 43

TCP/IP layers

43
slide-44
SLIDE 44

TCP/IP protocols

44
slide-45
SLIDE 45

Host-to-host communication in TCP/IP

45
slide-46
SLIDE 46

Layered communication at the source host

46
slide-47
SLIDE 47

The OSI network model revisited

47
slide-48
SLIDE 48

SPI: Serial Peripheral Interface

used by gazillions of devices… and it’s not even a formal standard! speed only limited by what both sides can survive usually push-pull drivers, i.e. fast and reliable, yet not friendly to wrong wiring/programming

48
slide-49
SLIDE 49

SPI connections

full duplex, 4-wire, lexible clock rate

49
slide-50
SLIDE 50

SPI timing & data representation

50
slide-51
SLIDE 51

SPI full-duplex with one slave

51
slide-52
SLIDE 52

SPI concurrent simplex with multi-slave

52
slide-53
SLIDE 53

SPI daisy-chaining (all slaves)

53
slide-54
SLIDE 54

Ethernet / IEEE 802.3

Local area network (LAN) developed by Xerox in the 70’s 10 Mbps specication 1.0 by DEC, Intel, & Xerox in 1980 First standardised as IEEE 802.3 in 1983 (10 Mbps over thick co-ax cables) currently 1 Gbps (802.3ab) copper cable ports used in most desktops and laptops currently standards up to 100 Gbps (IEEE 802.3ba 2010) more than 85% of current LAN lines worldwide (according to the International Data Corporation)

54
slide-55
SLIDE 55 Analyzing actual Ethernet encoding | Networking tutorial (4 of 13) Analyzing actual Ethernet encoding | Networking tutorial (4 of 13) Watch later Watch later Share Share 55
slide-56
SLIDE 56

Wi / IEEE 802.11

Wireless local area network (WLAN) developed in the 90’s First standard as IEEE 802.11 in 1997 (1-2 Mbps over 2.4 GHz) Typical usage at 54 Mbps over 2.4 GHz carrier at 20 MHz bandwidth Current standards up to 780 Mbps (802.11ac) over 5 GHz carrier at 160 MHz bandwidth Future standards are designed for up to 100 Gbps over 60 GHz carrier Direct relation to IEEE 802.3 and similar OSI layer association

56
slide-57
SLIDE 57

remember the basic concepts

57
slide-58
SLIDE 58

Further study

this was a really high-level overview; a whirlwind tour to go deeper, you could take COMP3310

58
slide-59
SLIDE 59

Questions

59