Vi t Virtual Environments: l E i t Networking Basics g Anthony - - PowerPoint PPT Presentation

vi t virtual environments l e i t networking basics g
SMART_READER_LITE
LIVE PREVIEW

Vi t Virtual Environments: l E i t Networking Basics g Anthony - - PowerPoint PPT Presentation

Vi t Virtual Environments: l E i t Networking Basics g Anthony Steed Anthony Steed Department of Computer Science Department of Computer Science University College London http://www.cs.ucl.ac.uk/teaching/VE Introduction Networks at


slide-1
SLIDE 1

Vi t l E i t Virtual Environments: Networking Basics g

Anthony Steed Anthony Steed

Department of Computer Science Department of Computer Science University College London http://www.cs.ucl.ac.uk/teaching/VE

slide-2
SLIDE 2

Introduction

  • Networks at the heart of networked VR

M t k t l t th

  • Many network protocols are out there

– TCP, UDP, multicast, RTP, etc C – Choice based on needs

  • Programming networking in XVR

2

slide-3
SLIDE 3

Network properties

  • Latency (Round Trip Time)

Jitt

  • Jitter
  • Bandwidth (Capacity)
  • Loss (Congestion, Reliability)

3

slide-4
SLIDE 4

Internet Protocol - IP

Application

FTP SMTP DNS SNMP

Transport

TCP UDP

Internet Protocol Transport

IP ICMP IGMP

Data Link

G ARP/RARP Ethernet FDDI

4

Ethernet, FDDI

slide-5
SLIDE 5

Protocols: UDP Protocols: UDP

  • Connectionless

No state is maintained – No state is maintained – No setup time Light weight – Light-weight

  • No Quality of Service

Postal Service Postal Service

– No guarantee delivery – No order delivery

slide-6
SLIDE 6

TCP

  • Connection Oriented

– State is maintained at routers – State is maintained at routers – Setup Handshake – Heavy-weight Heavy weight

  • Quality of Service

– FIFO delivery – FIFO delivery – Flow Control – Error Recovery Error Recovery

  • Mechanisms

– Timers Acknowledgements etc Timers, Acknowledgements, etc

6

slide-7
SLIDE 7

Multicast: Overview Multicast: Overview

WAN

Broadcast

WAN

Unicast

WAN

Multicast

7

slide-8
SLIDE 8

Multicast: Model Multicast: Model

  • UDP class D address – No physical meaning

M lti t i f LAN

  • Multicast is free on LANs
  • An address defines a logical group
  • A sender is oblivious to receivers
  • Join/Leave operations

Join/Leave operations

  • Tree Based Routing

8

slide-9
SLIDE 9

Socket

  • End-point for communication

N t k ti b d k t

  • Network connections based on sockets
  • Socket identified by

– Host address – numeric or name – Port number

  • 0-1023 : well known services (e.g. http traffic on 80)
  • 1024-49151: registered ports (less well known)

49152 65536: private applications or dynamic use

  • 49152-65536: private applications or dynamic use

9

slide-10
SLIDE 10

Socket communication

Listener Client N d t t k t Needs to create a socket to connect t li t i k t Needs to create a socket to listen to incoming connection requests to listening sockets

10

slide-11
SLIDE 11

The Client/Server logic

Server Client

C t k t f li t i Create socket for listening incoming connections Create socket for connecting to Server Listen Request connection Accept and create thread Send/Receive message Send/Receive message

11

slide-12
SLIDE 12

XVR functions

Server Client

N tC t Ch lTCP( ) NetCreateChannelTCP( ) NetConnectTCP( ) NetAcceptTCP ( ) Accept and create thread NetSendToTCP() / NetReceiveFromTCP() NetSendToTCP() / NetReceiveFromTCP()

12