• No results found

Network: several computers who can communicate. bus. Main example: Ethernet (1980 today: coaxial cable, twisted pair, 10Mb 1000Gb).

N/A
N/A
Protected

Academic year: 2021

Share "Network: several computers who can communicate. bus. Main example: Ethernet (1980 today: coaxial cable, twisted pair, 10Mb 1000Gb)."

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

Networks

(2)

Networks

Networks Internet

2 / 17

Network: several computers who can communicate.

Bus topology:

bus

Main example: Ethernet (1980–today: coaxial cable, twisted pair, 10Mb–1000Gb).

Hardware has globally unique MAC addresses (IDs).

(3)

Networks

Networks

Internet Classic Ethernet:

Specify address when sending.

All processors can check if something is there.

Wait random amount before trying again.

Wait longer amount if failure again, etc.

but send for long enough that all can detect the collision.

Protocol says how to do this.

Compare: conversation at dinner table.

(4)

Networks

Networks Internet

4 / 17

Other topologies:

ring

star

— popular in wireless networks

— center is access point (AP)

— center is a switch for Ethernet

(5)

Wireless networks

Networks Internet

Hidden terminal problem:

AP

Can’t tell if another sends at same time.

Collision avoidance. Wait for longer quiet periods. Wait for ACK for sending (AP will only send ACK to one). Wait for ACK for reception (else, conclude collision).

Ethernet: collision detection. Nodes can hear and speak at the same time.

(6)

Connecting networks

Networks Internet

6 / 17

Connecting networks:

X

X:

repeater — sends further, required by physical limitations

bridge — only sends further if sent to address on other side

switch — like bridge, but connecting more than 2

(7)

Connecting networks

Networks

Internet Connecting dissimilar networks into internet (small i)

— point were connected is gateway

Connect with routers - often have firewall

packet filters, checking source, destination, port

Home wireless — AP and router in 1 box = gateway

Have network in home

Router connects to Internet

Router forwards messages towards proper destination

Forwarding table — used to figure out from address where to send next

(8)

Networks

Networks Internet

8 / 17

Peer-to-peer model (P2P) vs. Client server model

P2P: same roles/software at each end. Examples: file sharing.

Client-Server: different roles and software at each end. Example: web server, printer.

(9)

Internet

Networks

Internet Internet — an internet

Links together LANs, MANs, WANs, WLANs, globally

Started in late 1960’s.

Note: the Internet is the actual network, WWW is one concrete use of it (started in the 1990’s).

Example: wireless connection (or cell phone).

Wireless device connects to AP (access point)

AP connected to access ISP

— Internet service provider: TDC, AOL, SDU, etc.

often connect via cable or telephone

(10)

Internet

Networks Internet

10 / 17

IP addresses:

IPv4: 32 bits: 10.110.4.199

IPv6: 128 bits: 2001:0DB8:AC10:FE01 — hexadecimal (only first half shown)

Domain name server (DNS) — Internet directory 212.97.129.250 vs. www.sdu.dk

domain — region of Internet operated by 1 entity

(university, company, etc.). Domain names assigned by registrars.

Top-level domains — .edu, .com, .dk

Example: logon9.imada.sdu.dk — imada is a subdomain No more IPv4 addresses left (Jan 2011). IPv6 still in early

deployment. NAT translation (using port numbers) and private networks addresses (192.168.X.X, 10.X.X.X) has helped. DHCP.

(11)

Protocols

Networks

Internet Layered models

— abstraction to handle complexity Philosopher in Thailand

Translator in Thailand Computer sending e-mail

Philosopher in Denmark Translator in Denmark Computer receiving e-mail English ideas

Communication protocols at layer N

— see virtual machine connection at layer N − 1.

— invoke facilities at layer N − 1 to transmit layer N data units.

Note: most networks (including the Internet and other TCP/IP networks) are packet switched: message chopped up into several

packages, which may take individual routes, and which are assembled at the destination. Better use of bandwith, more robust. Higher

latency.

(12)

Protocols

Networks Internet

12 / 17

4 layer Internet Model — TCP/IP (vs. OSI 7 layer model).

Application — ssh, sftp, HTTP, SMTP. Generates message, gives destination address.

Transport — Converts messages to packets, orders packets

TCP — transmission control protocol

— establishes a connection before sending

— messages and acknowledgements

— example: e-mail

UDP — user datagram protocol

— no connection established — example: VoIP

Network – Assigns intermediate address to each packet.

IP — internet protocol

converts packets to datagrams

assigns intermediate addresses

Link – Transfers packets.

(13)

Protocols

Networks

Internet Internet Model — TCP/IP

Messages sent through a path in Internet.

Going from one machine to the next — hop

In intermediate stops for a message, only lower layers involved.

Determining which application protocol should get incoming message

— port number — 80 is HTTP

(14)

Hands-on Internet

Networks Internet

14 / 17

Start a command promt.

(Win 8: Win-X, choose command prompt, Win 7: Search for

“command” in start button, Ubuntu (Unity): search for “terminal” in Ubuntu-button (top, left), Mac OS X: search (top, right) for

“terminal”).

Try the following commands:

Show network interface info: ipconfig /all; ifconfig; /sbin/ifconfig

Show active connections: netstat

Contact host: ping google.com

Show route to host: traceroute google.com; tracert google.com (Some must be stopped by “ˆC”)

(15)

Application: email

Networks

Internet Some protocols involved:

SMTP — sending e-mail between machines

MIME — make data compatible with SMTP

accessing e-mail

POP3 — mail transferred to your own computer

IMAP — mail stays on mail server

— can access mail from other computers

(16)

Application: WWW

Networks Internet

16 / 17

hypertext — text documents containing hyperlinks.

hypermedia — more than text (audio and/or video) Hypertext Transfer Protocol (HTTP)

— to get Web pages displayed by your browser

HTTPS — using SSL or TLS — Transport Layer Security URL = Uniform Resource Locator — address

Example: http://imada.sdu.dk/∼joan/intro/13slides5.pdf

protocol://host with document/directory path/file (document) HTML — Hypertext Markup Language — can include JPEG, etc.

XML — more general than text

— standardized style organizing and making searching easy

— for recipes, one markup language — for music another

(17)

WWW

Networks

Internet Different systems for server-side or client-side functionality.

PHP, ASP, JSP for server side functionality (database operation, for example)

JavaScript, Applets, Flash — to run programs on client side Security problem — running programs from elsewhere

References

Related documents

Lots may be irregular in size and shape provided they conform to the natural topography and features of the parcel (e.g., the lot lines follow an existing stone wall, stream, or

West Valley Senior High School Yakima WA. Westsyde Secondary School

Twisted pair, AUI, and fiber optic Ethernet, and many proprietary network topologies use hubs to connect multiple cable segments together.. These cable segments could be a star or

The convergence of the Internet and a new packet-switched tele- phone network is possible in part because the TCP/IP protocol family is the most widely used network protocol today,

For example, a gateway can provide translation between entities in a packet switched network (example, IP network) and circuit switched network (example, PSTN network). Gateways

34 In order to overcome these deficits, researchers within the field of the digital humanities – including literary scholars, computer scientists, and GISc specialists

Our approach is a three-step process: (1) Historical Anomaly Detection: Evaluate the past updates announced by ASes for establishing hijacked or vacillating bindings, (2)

In this paper, the objec- tives were to (a) examine the prevalence and geographic distribution of overweight and obesity among women of reproductive age; (b) evaluate the change