DOC PREVIEW
U of I CS 241 - Communications

This preview shows page 1-2-3-4-5 out of 16 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CommunicationsContentsMore Specialized Network NodesGatewayContentionCollision DetectCollision Detect (cont.)Token PassingMessage SlotsTCP/IP Protocol LayersNetwork ServiceSocketsPortsSocket CommunicationServers and ThreadsSummary01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved1CommunicationsCS 241 Lecture 33T: Ch 8Roy Campbell01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved2ContentsConnection StrategiesContentionTypes of NetworksServer ClientSummary01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved3More Specialized Network Nodes Bridges. Overcome difficulties of joining Ethernets/physical networks together.Intelligent Hubs. On a star Ethernet, filters out traffic not destined for host down link.Passive Hubs. On a star Ethernet, broadcasts every packet down each link.Firewall. Filter on link that removes/transfers selected packets based on IP numbers, applications, or port addresses.01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved4Gateway01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved5ContentionCollision DetectToken PassingMessage Slots01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved6Collision DetectBefore transmitting, listen to network for free link.During transmission, listen to make sure that there is not a simultaneous transmission.When collision occurs, use back off strategy to avoid busy wait.Wait for random number of time units.01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved7Collision Detect (cont.)Wait for exponential amount of time based on number of attemptsDoes not prevent indefinite wait to transmit.01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved8Token PassingPass token around network -- special message.When receive token, can transmit one message but must then pass on the token.Provides fair message transmission.Lost tokens must be replaced. Use time out.Use election algorithm to choose a node to create a token.01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved9Message SlotsA number of empty messages continuously circulate around the network.Node grabs empty slot, fills it with message.Receiving node removes message and replaces empty message.01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved10TCP/IP Protocol LayersEND USER APPLICATIONIEEE802.X/X.25IPTCP UDPFTP, TELNET, SMTP, NSP, SNMPLAN/WANLayers 5-7Layers 1-3Layers 401/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved11Network ServiceService ExampleConnection-orientedReliableMessage streamPages in bookReliable byte stream Remote loginUnreliable connection Digitized VoiceConnectionless Unreliable datagram Test packetsAcknowledged Datagram Registered mailRequest-Reply Database query01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved12SocketsCommunication endpoint(IP address, Port number)Client-server – server listens to a portTelnet Port 23, ftp port 21, web server port 8001/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved13PortsPorts < 1024, standardPorts > 1024, user createdAll connections unique(161.25.19.8:20)01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved14Socket CommunicationClient socket(146.86.5.2/1625)Web server socket(161.25.19.9/80)01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved15Servers and ThreadsServerReq 1 Req 2 Req 3 Req 4Create a thread for each request to avoid blocking in a single threadIncoming requests01/13/19 CS241 © 2005 Roy Campbell, All Rights Reserved16SummaryContentionTypes of NetworksNodes in a NetworkServer


View Full Document

U of I CS 241 - Communications

Documents in this Course
Process

Process

28 pages

Files

Files

37 pages

File I/O

File I/O

52 pages

C Basics

C Basics

69 pages

Memory

Memory

23 pages

Threads

Threads

14 pages

Lecture

Lecture

55 pages

C Basics

C Basics

24 pages

Signals

Signals

27 pages

Memory

Memory

45 pages

Threads

Threads

47 pages

Threads

Threads

28 pages

LECTURE

LECTURE

45 pages

Threads

Threads

30 pages

Threads

Threads

55 pages

Files

Files

37 pages

SIGNALS

SIGNALS

22 pages

Files

Files

37 pages

Threads

Threads

14 pages

Threads

Threads

13 pages

Load more
Download Communications
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Communications and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Communications 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?