Transcript
Page 1: Network Basics Network Basics

Network BasicsNetwork Basics

염익준

Page 2: Network Basics Network Basics

2

What is a computer network?What is a computer network?

• a collection of computing nodes and links connecting the nodes

• why we need it?

– to transfer data to others

Page 3: Network Basics Network Basics

3

What is the Internet?What is the Internet?

• originally means “Inter-network”• a network of networks

• now means a network using IP (Internet Protocol) for inter-networking

• equivalent to IP networks

• deployed in the whole world

Page 4: Network Basics Network Basics

4

What is a network protocol?What is a network protocol?

• a pre-defined rule for data transfer

• examples: IP, TCP, UDP, HTTP, RTP

• why do we need it?

Page 5: Network Basics Network Basics

5

What we learn in this classWhat we learn in this class

• architecture of the current networks

• basic operations of network protocols

• how they are implemented

• several well-known network applications

Page 6: Network Basics Network Basics

6

Network LayeringNetwork Layering

• the current network protocols are implemented based on layering concept

• currently, there are five layers:

– physical, data-link, network, transport and application

• why ?

Page 7: Network Basics Network Basics

7

Physical LayerPhysical Layer

Computer A Computer B

NICNetwork Interface CardEthernet CardLAN card

Wire

Physical Layer

Data

Page 8: Network Basics Network Basics

8

Physical LayerPhysical Layer

• Twisted pair

• Coaxial Cable

• Fiber Optics

• RF

Page 9: Network Basics Network Basics

9

Physical MediaPhysical Media

• physical link:transmitted data bit propagates across link

• guided media:

– signals propagate in solid media: copper, fiber

• unguided media:

– signals propagate freelye.eg., radio

Twisted Pair (TP)

• two insulated copper wires

– Category 3: traditional phone wires, 10 Mbps ethernet

– Category 5 TP: 100Mbps ethernet

Page 10: Network Basics Network Basics

10

Physical Media: coax, fiberPhysical Media: coax, fiber

Coaxial cable:

• wire (signal carrier) within a wire (shield)

– baseband: single channel on cable

– broadband: multiple channel on cable

• bidirectional

• common use in 10Mbs Ethernet

Fiber optic cable:

• glass fiber carrying light pulses

• high-speed operation:

– 100Mbps Ethernet

– high-speed point-to-point transmission (e.g., 5 Gps)

• low error rate

Page 11: Network Basics Network Basics

11

Physical media: radioPhysical media: radio

• signal carried in electromagnetic spectrum

• no physical “wire”• bidirectional

• propagation environment effects:

– reflection

– obstruction by objects

– interference

Radio link types:

• microwave

– e.g. up to 45 Mbps channels

• LAN (e.g., waveLAN)

– 2Mbps, 11Mbps

• wide-area (e.g., cellular)

– e.g. CDPD, 10’s Kbps• satellite

– up to 50Mbps channel (or multiple smaller channels)

– 270 msec end-end delay

Page 12: Network Basics Network Basics

12

Hardware Building BlocksHardware Building Blocks

• General purpose computers such as PC, workstation, Laptop and PDA connected to a network.

• Either end-hosts or intermediate nodes (switch or router)

CPU

Cache

Memory I/O bus

Networkadaptor (To network)

Page 13: Network Basics Network Basics

13

Hardware Building Blocks Hardware Building Blocks --

LinksLinks• Implemented on a variety of different physical media, including twisted pair, coaxial cable, optical fiber and space.

• Used to propagate signals.

Page 14: Network Basics Network Basics

14

Wireless LinksWireless Links

• Global links – PCS, GSM

• Wireless LAN – IEEE 802.11a, b, g

• Piconet – Bluetooth (upto 1 Mbps)

Page 15: Network Basics Network Basics

15

Data Link LayerData Link Layer

Computer A Computer B Computer C

Data

DataMACData link layer Data link layer

Page 16: Network Basics Network Basics

16

Data Link LayerData Link Layer

• Unique ID

• Medium Access Control (MAC)

– CSMA/CD (Carrier Sense Multiple Access/Collision Detection)

– CSMA/CA (Collision Avoidance)

– Token Ring

– TDMA (Time Division Multiple Access)

Page 17: Network Basics Network Basics

17

Network LayerNetwork Layer

Data link layer

Router

IP

Page 18: Network Basics Network Basics

18

Network LayerNetwork Layer

• Routing

– RIP – Routing Information Protocol

– OSPF – Open Shortest Path First

Page 19: Network Basics Network Basics

19

IP Packet FormatIP Packet Format

Version HLen TOS Length

Ident Flags Offset

TTL Protocol Checksum

SourceAddr

DestinationAddr

Options (variable) Pad(variable)

0 4 8 16 19 31

Data

Page 20: Network Basics Network Basics

20

telnet

netscape

ftptelnet

netscape

ftp

Computer B

Data link layerIP

Computer A

Data link layerIPTCP TCP

Date

IP

MAC IPTCP

DateTCP

DateTCP

Date

Date

IP

MAC IPTCP

DateTCP

DateTCP

Date

Transport LayerTransport Layer

Page 21: Network Basics Network Basics

21

Transport LayerTransport Layer

• End-to-end delivery

• Transmission Control Protocol (TCP)

– Flow control – Advertised Window

– Error control – Checksum

– Reliable delivery – Loss detection and

retransmission

• User Datagram Protocol (UDP)

Page 22: Network Basics Network Basics

22

Typical Limitations of the Typical Limitations of the

NetworkNetwork• Drop messages

• Reorder messages

• Deliver duplicate copies of a given message

• Limit messages to some finite size

• Deliver messages after an arbitrarily long delay

Page 23: Network Basics Network Basics

23

UDP (User Datagram Protocol)UDP (User Datagram Protocol)

• Extending the host-to-host deliver service of the underlying network into a process-to-process communication service.

• Port number

– Well-known port number

– Port mapper

• Checksum – pseudoheader

• Used for delay-sensitive applications

Page 24: Network Basics Network Basics

24

UDP Header FormatUDP Header Format

SrcPort DstPort

Checksum Length

Data

0 16 31

Page 25: Network Basics Network Basics

25

Source Port Destination Port

Sequence Number

Acknowledgement Number

Checksum Urgent Pointer

Options Padding

0 4 10 16 24 31

URG

ACK

PSH

RST

SYN

FIN

HeaderLength Reserved Window Size

Data

TCP SegmentTCP Segment

Page 26: Network Basics Network Basics

26

Internet Protocol GraphInternet Protocol Graph

FTP HTTP NV TFTP

TCP UDP

IP

NET1 NET2 NETn

Page 27: Network Basics Network Basics

27

Alternative View of the Alternative View of the

Internet ArchitectureInternet Architecture

TCP UDP

IP

Network

Application


Top Related