การสื่อสาร อ.พรทิพย์

75
การสื่อสารขอมูลเบื้องตน Data Communication

Upload: namfon-phenpit

Post on 28-May-2015

1.121 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: การสื่อสาร อ.พรทิพย์

การสือ่สารขอมูลเบือ้งตน

Data Communication

Page 2: การสื่อสาร อ.พรทิพย์

ระบบการสื่อสารขอมลู

คอมพิวเตอร หรือ หนวยรับขอมูล หรือ แสดงผลขอมูลชองทางการสื่อสาร (Communication Channel) เพื่อสงขอมูลเครื่องมือการสื่อสารที่ใชชวยสง หรือ รับขอมูลโปรแกรมการสื่อสาร และ ควบคุมการทํางานของระบบ (Communication Software)

Page 3: การสื่อสาร อ.พรทิพย์

ระบบการสื่อสารขอมลูดวยคอมพิวเตอร

ชองทางการสื่อสาร คอมพิวเตอร ณ.จุดรับ

อุปกรณการสื่อสาร

เชน MODEMMultiplexer

อุปกรณการสื่อสาร

เชน MODEMMultiplexer

คอมพิวเตอร ณ.จุดสง

Page 4: การสื่อสาร อ.พรทิพย์

ช องทางก ารสื่อสาร (Communication Channel หรือ Communication Link )

อุปกรณ ที่ใช เปนตัวกลาง(Transmission Media)ชนิดของสัญญาณ (Types of Signals)อัตราความเร็วของการสง(Transmission Rate)ชนิดของการสงผาน (Transmission Mode)

ทิศทางการสงสัญญาณ(Direction of Transmission)

Page 5: การสื่อสาร อ.พรทิพย์

อุปกรณที่ใชเปนตัวกลาง (Transmission Media)

Twisted-Pair Wire (STP และ UTP)สายโคแอกเซียล (Coaxial Cables)ใยแกวนําแสง (Optical Fibers)ไมโครเวฟ (Microwave)ดาวเทียม (Satellite)

Page 6: การสื่อสาร อ.พรทิพย์

Twisted Pair CablingTwisted pair is a transmission medium consisting of two insulated wires that are twisted together to create a double helix that reduces noise levels and eliminates crosstalk between the wires.Unshielded twisted pair (UTP)Shielded twisted pair (STP) has an extra layer of insulation

Page 7: การสื่อสาร อ.พรทิพย์

Twisted Pair CablingTwisted-pair cabling is broken into categories.

CAT 5 means category 5.The wires terminate in an RJ-45 connector.

Page 8: การสื่อสาร อ.พรทิพย์

Coaxial CablingCoaxial cable, also known as coax, consists of a cylindrically braided outer conductor that surrounds and

shields a single solid inner copper wire conductor.

Page 9: การสื่อสาร อ.พรทิพย์

Coaxial CablingCoaxial cable comes in two forms:

ThinnetThin coaxial cableUsed in 10Base2 Ethernet networksCable segments up to 185 meters in length

ThicknetThick coaxial cableUsed in 10Base5 Ethernet networksCable segments up to 500 meters in length

Page 10: การสื่อสาร อ.พรทิพย์

Fiber Optic CablingFiber optics is a transmission method that transmits light-modulated video, voice, or data signals through hair-thin strands of glass called fibers.

These strands are encased by a layer of Kevlar-reinforced reflective material called cladding, which keeps the light inside the fiber.

Page 11: การสื่อสาร อ.พรทิพย์

ตัวอยางอุปกรณที่ใชเปนตัวกลาง

Twisted-Pair Wireสายโคแอกเซียล ใยแกวนําแสง

Page 12: การสื่อสาร อ.พรทิพย์

Wireless MediaIncludes cellular, radio, microwave, satellite, and infrared signals.Network nodes that use wireless connections must have a wireless NIC, which connects to a transceiver known as a wireless access point (WAP).Defined by the 802.11 standards.

For more information, go to www.microsoft.com/windowsxp/mediacenter

Page 13: การสื่อสาร อ.พรทิพย์

ตัวอย างการสงสญัญาผานดาวเทียม

Page 14: การสื่อสาร อ.พรทิพย์

ชนิดของสัญ ญ าณ (Types of Signals)

สัญญาณ อนาลอก (Analog Signal)

สัญญาณ ดจิติอล (Digital Signal)

Page 15: การสื่อสาร อ.พรทิพย์

อัตราความเร็วของก ารสง (Transmission Rate)

อัตราความเร็วในการสงผานขอมูล (Data Transfer Rate)หนวยเปน bits per second(bps)อัตราความเร็วในการสงสัญญาณ

(Data Signaling Rate)หนวยเปน baud (baud rate)

Page 16: การสื่อสาร อ.พรทิพย์

Transmission Mode

การสงขอมูลแบบขนาน (Parallel Transmission)การสงขอมูลแบบอนุกรม (Serial Transmission)

การซิงโครนัส (Synchronous) อะซิงโครนัส (Asynchronous)

Page 17: การสื่อสาร อ.พรทิพย์

ทิศทางก ารสงสัญ ญ าณ (Direction of Transmission)

การสงสัญญาณทางเดียว

(Simplex : SPX)การสงสัญญาณกึ่งทางคู

(Half-Duplex : HDX)การสงสัญญาณทางคูสมบูรณ

(Full-Duplex : FDX)

Page 18: การสื่อสาร อ.พรทิพย์

การสงสญัญาณทางเดียว (Simplex หรือ SPX)

DataCollection Device

คอมพวิเตอร

Page 19: การสื่อสาร อ.พรทิพย์

การสงสัญญาณกึ่งทางคู

(Half-Duplex หรือ HDX)

คอมพิวเตอร คอมพิวเตอร

Page 20: การสื่อสาร อ.พรทิพย์

การสงสัญญาณทางคูสมบรูณ (Full-Duplex หรือ FDX)

คอมพิวเตอร คอมพิวเตอร

Page 21: การสื่อสาร อ.พรทิพย์

เครื่องอาํนวยความสะดวกเกีย่วกบัการสือ่สาร

MODEM (MOdulation and DEMdulation)Multiplexer

Page 22: การสื่อสาร อ.พรทิพย์

เครือขายคอมพิวเตอร

Computer Networking

Page 23: การสื่อสาร อ.พรทิพย์

is a system of data terminal equipment(Exp.mainframe system, workstation,PC’s, terminals, other device) which communication with one another over media(Exp.electronic conductor, fibreoptic conductor) and are linked together by transmission equipment(modems,multiplexer) or subnetworks(LAN’s,MAN’s,WAN’s)

Computer Network

Page 24: การสื่อสาร อ.พรทิพย์

Networking

Page 25: การสื่อสาร อ.พรทิพย์

Characteristics of a NetworkAll networks require:

A physical connection (or wireless connection).A set of communication rules called protocols.One or more network services that will receive the communication.

Page 26: การสื่อสาร อ.พรทิพย์

Mainframe/Terminal ModelThe mainframe/terminal model

A mainframe is a centralized computer to which users connect to obtain network services.The terminal is a device with a keyboard, which you use to type commands or enter data to communicate with the mainframe computer.

Page 27: การสื่อสาร อ.พรทิพย์

Client-Server ModelClient-server refers to the manner in which computers exchange information by sending it (as servers) and receiving it (as clients).

Computers can serve dual roles as both servers and clients.

Page 28: การสื่อสาร อ.พรทิพย์

Multi-TierLarge organizations may subdivide complex applications into multiple stages called tiers.Multi-tier computing typically includes three tiers consisting of the user interface tier, the business tier, and the database tier.

Page 29: การสื่อสาร อ.พรทิพย์

A LAN

กลุมของ คอมพวิเตอรสวนบคุคลที่มี ฮารดแวร โปรแกรม และ ชองทางการสื่อสาร ที่เชือ่มกันตั้งแต 2 ตัวขึน้ไปภายในพื้นที่จํากัด ซึ่งอาจจะเปนตึกหลาย ๆ ชั้น หรือ กลุมของตึกที่อยูใกล ๆ กัน เพื่อวัตถุประสงคในการแลกเปลี่ยนขอมูล โปรแกรม และ อปุกรณตาง ๆเชน Harddisk เครื่องพมิพ เปนตน

Page 30: การสื่อสาร อ.พรทิพย์

รปูแสดงการตอ LAN

Page 31: การสื่อสาร อ.พรทิพย์

การเชื่อมตอแบบ LAN

แบงการออกแบบเปน 2 วธิีServer Based : แตละ Workstation พึ่งพา Central Computer ที่ จะใหบริการ File, PrintingPeer-to-peer (P2P) is a network architecture in which each workstation has equal responsibilities.

Page 32: การสื่อสาร อ.พรทิพย์

รูปแบบก ารเชื่ อมตอ Network แบบ Server Based

IBM PS/2 IBM PS/2 IBM PS/2 IBM PS/2

IBM PS/2IBM printer

IBM PS/2

Modem

IBM PS/2

Print ServerFile Server

Communication Server

Harddisk

Printer

Mainframe Gateway

LAN Workstation

Page 33: การสื่อสาร อ.พรทิพย์

รปูแบบการเชื่อมตอ Network แบบ Peer to Peer

Page 34: การสื่อสาร อ.พรทิพย์

Network Topologies

A network’s geographical shape is referred to as the network’s topology.The five kinds of network topologies are:

Bus topologyRing topologyStar topologyHybrid topologyMesh topology

Page 35: การสื่อสาร อ.พรทิพย์

Bus TopologyThe bus topology has a single cable, called the bus or the trunk, to which every device on the network connects.

All of the messages on the bus pass by each device, or node, on the bus.It uses inexpensive coaxial cable that is easy to install.A break anywhere along the cable causes all network traffic to stop.

Page 36: การสื่อสาร อ.พรทิพย์

Ring TopologyA ring topology forms when you connect a network’s nodes in a circle.

Messages flow in a single direction.A small packet called a token circulates the ring – a device must have the token to use the network.

Page 37: การสื่อสาร อ.พรทิพย์

Star TopologyIn a star topology, each device in the network connects to a central hub, which distributes messages from one node to another.

Provides centralized controlEasy expansionFault tolerance

Page 38: การสื่อสาร อ.พรทิพย์

Hybrid TopologyA hybrid topology in a network employs more than one topology to connect devices.

Page 39: การสื่อสาร อ.พรทิพย์

Mesh Topology

In a mesh topology, multiple connections are made.

In mission-critical operations, you want as much redundancy as possible so that if one part of the network goes down, the packets can find an alternate path to their destination.

Page 40: การสื่อสาร อ.พรทิพย์

ขอดีของ PC local Network

การใชอปุกรณตาง ๆ รวมกัน (Device Sharing)การใช ไฟล หรือ โปรแกรม รวมกัน (Shared File Access)การสื่อสารภายในองคกร (Communication Within Organization)การนําเอาโปรแกรมใหม ๆ มาใชงานไดงายขึ้น การจัดการบริหารที่งายขึ้น (Management)

Page 41: การสื่อสาร อ.พรทิพย์

ขอเสียของระบบเครือขาย

ไมสามารถแทนการทํางานบนเครื่องขนาดใหญไดแทจริง

การดูแลระบบตองการคนที่มีความรู เพระเปนเรื่องที่ยุงยากสลับซับซอนความปลอดภัยของขอมูลนอยกวาแบบ Stand Alone

Page 42: การสื่อสาร อ.พรทิพย์

What is a Server

A Server คือ Computer ที่ ใหบริการ Computer ตัวอื่นบนเครือขาย ชนิดของ Server สวนใหญใน เครือขาย คือ File Server และ Print Server

Page 43: การสื่อสาร อ.พรทิพย์

ชนดิของ Server

File ServerPrint ServerCommunication ServerDatabase Servers

Page 44: การสื่อสาร อ.พรทิพย์

ขอดีServer Based

เร็ว การทํางานบน Server จะทําไดเร็วกวา การทํางานแบบ Peer-to-PeerFull Featured มมีาตรฐานอุตสาหกรรม

สนับสนุนการทํางานกับเครือขายใหญ ๆ การรักษาความปลอดภัยของขอมลูทําไดดีกวา

Page 45: การสื่อสาร อ.พรทิพย์

ขอเสยี Server Based

ราคาคอนขางแพง

การติดตั้งระบบทําไดยาก

จําเปนตองคนดูแลระบบ

Page 46: การสื่อสาร อ.พรทิพย์

ขอดี Peer to Peer

ราคาไมแพง

การติดตั้งทําไดงาย

การใชงานทําไดงาย

ไมจําเปนจะตองมี Stand-alone server

Page 47: การสื่อสาร อ.พรทิพย์

ขอเสยี Peer to Peer

ชา

มีขอจํากัดในการขยายเครือขาย

ความปลอดภัยในขอมูลต่ํา

ยากในการจัดการ

Page 48: การสื่อสาร อ.พรทิพย์

Network Operating System

A network operating system is the software that adds to a computer the functions required for connecting computers together for networking.

Microsoft Windows (peer to peer)Windows 2003, Windows NTUNIX and LinuxMac OSNovell NetWare

Page 49: การสื่อสาร อ.พรทิพย์

Microsoft Windows is the most wide spread network operating system.

Every version of Windows contains networking capability, but some versions do not support all network services.For a history of Windows server products, visit www.microsoft.com/windows/winhistoryserver.mspx

Microsoft Windows

Page 50: การสื่อสาร อ.พรทิพย์

The UNIX and Linux operating systems support the full range of networking services, including both client- and server-side components.

The Open Group holds the trademark and defines the official version of UNIX at www.unix-systems.orgLinux is an open source version of UNIX

To learn more, go to www.linux.org

UNIX and Linux

Page 51: การสื่อสาร อ.พรทิพย์

Mac OS

The Macintosh OS X operating system has networking built in.

Behind the Macintosh user interface is a UNIX-based operating system.

To learn more, go to www.apple.com/macosx/features/unix

Page 52: การสื่อสาร อ.พรทิพย์

NetWare is a PC-based local area networking product that was one of the most dominant network operating systems during the decade following its invention in 1983.

However, when Microsoft marketed Windows NT in 1993, Novell NetWare’s market share dropped.For more information, go to www.novell.com/products/netware

Novell NetWare

Page 53: การสื่อสาร อ.พรทิพย์

หนาที่พื้นฐานของ Network Operating System

File ServerPrint ServiceBack upSecurity

Page 54: การสื่อสาร อ.พรทิพย์

Extending Network

WAN (Wide Area Network)MAN (Metropolitan area Network)InternetworksBig LANs

Page 55: การสื่อสาร อ.พรทิพย์

MAN

A metropolitan area network(MAN) connects local networks across a larger geographical region.

The term metropolitan implies that MANs cover an area the size of a city.

Page 56: การสื่อสาร อ.พรทิพย์

WANA wide area network (WAN) uses high-speed transmission lines to connect MANs and LANs over large geographical areas.

Page 57: การสื่อสาร อ.พรทิพย์

Big Network Hardware

RepeatersBridgesRoutersGateways

Page 58: การสื่อสาร อ.พรทิพย์

Network ComponentsA repeater interconnects two network cables so they can be treated as a single cable.

Allows one to extend the length of the cable.

A switch filters, forwards, and floods frames based on the destination MAC address of each frame.

To flood is to pass traffic out all of the switch’s connections except for the incoming interface through which the traffic was received.

Page 59: การสื่อสาร อ.พรทิพย์

Network ComponentsA bridge is used to connect two network segments and pass packets between them based on the destination MAC address of each frame.

A switch is a multiport bridge.

A router forwards network traffic along the optimal path based on information in the packet’s Network Layer header.

Page 60: การสื่อสาร อ.พรทิพย์

Bridges

Desktop System

Desktop System

Desktop System Desktop System Desktop System

Desktop System

BridgeBridge

LAN LAN

Bridge Bridge

Page 61: การสื่อสาร อ.พรทิพย์

Routers

Desktop System

Desktop System

Desktop System Desktop System Desktop System

Desktop System

Desktop System

Desktop System

Desktop System

Router

Router

Router

Page 62: การสื่อสาร อ.พรทิพย์

Network Components

A bridge router (brouter) is a relay that functions as both a router and a bridge.A gateway is a computer that routes traffic from a workstation on an internal network to an external network such as the Internet.

Page 63: การสื่อสาร อ.พรทิพย์

Gateway

Desktop System

Desktop System

Desktop System Desktop System Desktop System

Desktop System

Desktop System

Desktop System Desktop System Desktop System

Desktop System

Desktop System

GATEWAY

GATEWAY

GATEWAY

GATEWAY

Page 64: การสื่อสาร อ.พรทิพย์

Protocol

A protocol is a set of rules that define how computers communicate with each other.The International Standards Organization (ISO) developed an international standard called the Open System Interconnection (OSI) Reference Model (OSI/RM).

Page 65: การสื่อสาร อ.พรทิพย์

OSI Reference ModelThis model comprises of seven layers that describe the way data is shared on a network.Suppose you just clicked on a link on a Web page. The following slides describe the process from one layer to another.

Data is passed down from Layer 7 to Layer 1, is then transmitted over the medium, and then goes back up from Layer 1 to Layer 7 in the receiving device.Headers are added at each layer.

Page 66: การสื่อสาร อ.พรทิพย์

Layer 7: Application

Through an Application Programming Interface (API), the browser informs the Application Layer of your request.The Application Layer begins to form the packet that will eventually travel across the network.

Page 67: การสื่อสาร อ.พรทิพย์

Layer 6: Presentation

The Presentation Layer translates the data into a standard network data format.It can use data compression to streamline the packet so it does not consume unnecessary bandwidth on the network.It can also encrypt the data for sensitive data transmissions.

Page 68: การสื่อสาร อ.พรทิพย์

Layer 5: Session

The Session Layer negotiates the connection that will be made between the two computers exchanging data.It inserts a checkpoint, which is a marker used to signal that a certain amount of the data has arrived all right.

Page 69: การสื่อสาร อ.พรทิพย์

Layer 4: Transport

The Transport Layer works to ensure that the data arrives reliably at its destination.If the amount of data is large, the data is split into fragments that are numbered sequentially.

Page 70: การสื่อสาร อ.พรทิพย์

Layer 3: Network

The Network Layer organizes data into datagrams consisting of the data from the Transport Layer and routing information such as the source and destination addresses.

Page 71: การสื่อสาร อ.พรทิพย์

Layer 2: Datalink

The Data Link Layer transforms the data into data frames.It consists of two sublayers:

Logical Link Control (LLC)Performs error checking and regulates the flow of data.

Media Access Control (MAC)Handles the actual placement of the packets onto the Physical Layer.

Page 72: การสื่อสาร อ.พรทิพย์

CRC

The Data Link layer also calculates a cyclic redundancy check (CRC) based on the information in the frame.

The receiving machine calculates its own CRC and compares it to the value in the frame. If they do not match, the frame is corrupt and discarded.

Page 73: การสื่อสาร อ.พรทิพย์

Layer 1: Physical

The Physical Layer transforms the 0’s and 1’s into signals that flow over the transmission media.At the receiving end, the Physical Layer converts these signals back into 0’s and 1’s and passes them up to the Data Link Layer.

Page 74: การสื่อสาร อ.พรทิพย์

Communication

Page 75: การสื่อสาร อ.พรทิพย์

Reference

Hofstetter, Fred T, “Internet Technologies at Work”, McGraw-Hill Professional Books