Project Management and Control - PowerPoint
Document Sample


Data Communication and Network
Networking Protocols
Protocols
Protocols
หมายถึง กฎระเบียบที่ใช้กาหนดวิธีการติดต่อสื่อสารระหว่างอุปกรณ์
ื่
ซึ่งอาจจะเป็นเครื่องคอมพิวเตอร์ หรืออุปกรณ์สอสารใดๆ ผ่านระบบ
เครือข่าย
ประเด็นสาคัญ
รูปแบบการสื่อสาร (Syntax)
ความหมายที่ใช้ (Semantics)
จังหวะเวลา (Timing)
Proprietary and Confidential to Accenture 2
Protocols
Type of Protocols
่ ่
โปรโตคอลทีถูกกาหนดขึ้น จะใช้งานกับเครืองคอมพิวเตอร์และ
ื่
อุปกรณ์สอสารแต่ละชนิดแตกต่างกัน ซึ่งเครื่องคอมพิวเตอร์ขนาด
ใหญ่เช่น Mainframe กับ Desktop PC หรือเครือข่าย LAN กับ WAN ก็
จะมีข้อกาหนด หรือโปรโตคอลที่ใช้งาน แตกต่างกัน โดยเราสามารถ
แบ่งชนิดของโปรโตคอลเป็น 2 กลุ่มคือ
โปรโตคอลจัดการระดับตัวอักษร (Character-Oriented Protocols)
โปรโตคอลจัดการระดับบิต (Bit-Oriented Protocols)
Proprietary and Confidential to Accenture 3
Protocols
Character-Oriented Protocol / Character Synchronous Protocol
ู ้
เป็นโปรโตคอล ที่ถกสร้างขึนเพื่อใช้งานบนเครื่องคอมพิวเตอร์เมนเฟรม
้
(Mainframe) ซึ่งโปรโตคอลที่แพร่หลายและเป็นที่นิยมที่สุดในกลุ่มนีคือ
BSC หรือ BISYNC (Binary Synchronous Communication) ได้รับการ
พัฒนาโดย IBM โดยการใช้ตัวอักษรพิเศษกลุ่มหนึ่ง สาหรับควบคุมการ
ทางาน
Proprietary and Confidential to Accenture 4
Protocols
BSC – (Binary Synchronous Communication)
อักษรควบคุม ชื่อเต็ม หน้าที่
ACK Positive Acknowledgment ใช้ตอบรับข้อมูลที่ไม่มีข้อ
ผิดเพี้ยน
NAK Negative Acknowledgment ใช้ตอบรับข้อมูลที่พบว่ามี
ข้อผิดเพี้ยน
ENQ Enquiry ใช้แสดงความต้องการจะใช้
ช่องสื่อสาร
DLE Data Link Escape ใช้ร่วมกับตัวควบคุมอื่นๆ
SYN Synchronization ใช้สาหรับเปรียบเทียบจังหวะ
การรับ-ส่งสัญญาณ
STX Start of Text ใช้แสดงจุดเริ่มต้นของข้อมูล
SOH Start of Header ใช้แสดงจุดเริ่มต้นของส่วนควบคุม
ETX End of Text ใช้แสดงจุดสิ้นสุดของข้อมูล
ETB End of Block ใช้แสดงจุดสิ้นสุดของ Block
EOT End of Transmission ใช้แสดงความต้องการสิ้นสุด
หรือยกเลิกการสื่อสาร
Proprietary and Confidential to Accenture 5
Protocols
BSC – (Binary Synchronous Communication)
Sending Computer Receiving Computer
B E E E S S S S
C O T T Data T Y Y Y
C T X B X N N N
BCC = Block Check Character
มีไว้เพื่อตรวจสอบข้อผิดพลาดในการส่งข้อมูล
Proprietary and Confidential to Accenture 6
Protocols
Bit-Oriented Protocol
ี
เป็นโปรโตคอล ที่มการจัดการในระดับบิต โดยการทางานจะรวมข้อมูล
จริงและตัวควบคุมเข้าด้วยกัน เป็นโครงสร้างที่เรียกว่า เฟรม (Frame) แต่
ละส่วนของเฟรมจะถูกกาหนดรายละเอียดโครงสร้างไว้อย่างชัดเจน
เพื่อให้สามารถดึงส่วนต่างๆ ไปใช้ได้อย่างถูกต้อง
ตัวอย่างโปรโตคอลในกลุ่มนี้ เช่น
SDLC – Synchronous Data Link Control โดย IBM
HDLC – High-Level Data Link Control โดย ISO standard
BDLC – Burroughs Data Link Control โดย Unisys (Burroughs)
Etc.
Proprietary and Confidential to Accenture 7
Protocols
HDLC – (High-Level Data Link Control)
จุดเริ่มต้นเฟรม
Network Control
Flag Data FCS Flag
Address Data
8 bits 8 bits 8 bits n bits 16 bits 8 bits
Flag ข้อมูลควบคุมเพื่อแสดงขอบเขตของเฟรม
มีค่า 01111110
Address ่ ้
หมายเลขทีอยู่ของผูรับข้อมูลบนเครือข่าย
Data ้
ข้อมูลที่ตองการส่ง
FCS Frame Check Sequence
Control ่
ใช้เพื่อการควบคุมข้อมูลทีอยู่ในเฟรม มี 3 รูปแบบ
Proprietary and Confidential to Accenture 8
Protocols
HDLC – (High-Level Data Link Control)
Control data – 8 bits
1 2, 3, 4 5 6, 7, 8
0 N(S) P/F N(R)
Information Format ใช้ในกรณีการรับส่งข้อมูล
N(S) - หมายเลขเฟรมที่ส่ง
N(R) - หมายเลขเฟรมที่รับ
P/F - Poll/Final
Network Control
Flag Data FCS Flag
Address Data
8 bits 8 bits 8 bits n bits 16 bits 8 bits
Proprietary and Confidential to Accenture 9
Protocols
HDLC – (High-Level Data Link Control)
Control data – 8 bits
1, 2 3, 4 5 6, 7, 8
Supervisory
1 0 Codes
P/F N(R)
Supervisory Format ใช้ในการควบคุม Link
Supervisory Codes - รหัสควบคุม
N(R) - หมายเลขเฟรมที่รับ
P/F - Poll/Final
Network Control
Flag Data FCS Flag
Address Data
8 bits 8 bits 8 bits n bits 16 bits 8 bits
Proprietary and Confidential to Accenture 10
Protocols
HDLC – (High-Level Data Link Control)
Control data – 8 bits
1, 2 3, 4 5 6, 7, 8
Unnumbered Unnumbered
1 1 Codes
P/F Codes
Unnumbered Format ใช้ในการ Connect / Disconnect
Unnumbered Codes - รหัสควบคุม
P/F - Poll/Final
Network Control
Flag Data FCS Flag
Address Data
8 bits 8 bits 8 bits n bits 16 bits 8 bits
Proprietary and Confidential to Accenture 11
Protocols
Bit Staffing Technique
ี่
เป็นไปได้หรือไม่ทข้อมูลที่ส่ง จะมีหน้าตาเหมือนกับ Flag (0160)
คาตอบคือ เป็นไปได้
วิธีการแก้ไข ในกรณีเช่นนี้ เรียกว่า Bit Staffing คือถ้าพบว่าในส่วน
่
ของข้อมูลมี “1” เรียงติดกัน 5 ตัวเมือไร เราจะใส่ “0” ต่อทันที แล้วจึง
ค่อยนาข้อมูลใน bit ถัดไปมาต่อ ฉะนั้นจึงไม่มีโอกาสใดเลย ที่ส่วนของ
ข้อมูลจะมีหน้าตาเหมือนกับ Flag อีก
Proprietary and Confidential to Accenture 12
Protocols
Sample of Bit Staffing Technique
ถ้าต้องการส่งข้อมูล 0 16 0 0 15 0 0 1 0
ข้อมูลที่ส่งจริงคือ 0 1 5 0 1 0 0 15 0 0 0 1 0
“0” ส่วนที่เพิ่มเข้ามาตามข้อกาหนด
ตอนรับข้อมูล ผู้รับจะต้องตัด “0” ที่ถัดจากข้อมูลที่มี “1” ติดกัน 5 ตัว
ออกก่อน จึงจะได้เป็นข้อมูลที่แท้จริง
Proprietary and Confidential to Accenture 13
Protocols
H.323 Protocol
เป็นโปรโตคอลที่ใช้ในเครือข่ายแบบ Packet Switched Network
สาหรับการส่งข้อมูลทุกชนิดแบบ Real-Time โดยการส่งข้อมูลจากจุด
ิ ่
หนึ่งไปยังอีกจุดหนึ่งจะใช้วธีการแบ่งข้อมูลออกเป็นส่วนๆ ทีมีขนาดเล็ก
เรียกว่า Packet เพื่อส่งไปยังเป้าหมาย
D
Audio
Codec
A Audio
Codec 1 3
4
5
Video E
Codec
Video 2
B Codec 6
Video
7 Codec
F
Packet-Switched Network Using
H.323 for multimedia presentation
Proprietary and Confidential to Accenture 14
Protocols
Proprietary and Confidential to Accenture 15
TCP/IP Protocols
Transmission Control Protocol & Internet Protocol
ั ั
มาจากการศึกษาวิจยที่ได้รบทุนจากกระทรวงกลาโหม ของสหรัฐอเมริกา
ประมาณปี ค.ศ. 1969 ( เกิดก่อน OSI Model )
่
จุดประสงค์เพือต้องการเชื่อมโยงเครือข่ายระหว่างมหาวิทยาลัยต่าง ๆ
่
ตลอดจนหน่วยงานต่างๆ ของรัฐ เพือแลกเปลี่ยนข้อมูลข่าวสารระหว่าง
กันเช่น Email , File transfer เป็นต้น เรียกโครงการนี้ว่า ARPANET
(Advance Research Project Agency Network)
่ ้
การรับส่งข้อมูลต้องสามารถรับ-ส่งข้อมูลสาหรับต่างเครืองต่างยี่หอกันได้
(เช่น Unisys , IBM, DEC เป็นต้น )
Proprietary and Confidential to Accenture 16
TCP/IP Protocols
เปรียบเทียบแบบอ้างอิงระหว่าง OSI Model กับ TCP/IP
OSI Reference Model TCP/IP
7 Application
FTP, Telnet, HTTP, SMTP, SNMP,
6 Presentation Application
DNS, etc.
5 Session
4 Transport Transport TCP UDP
3 Network Internet ICMP, IGMP, IP ARP, RARP
2 Data link
Network Access Not Specified
1 Physical
Proprietary and Confidential to Accenture 17
TCP/IP Protocols
การส่งผ่านข้อมูลตามลาดับชั้นต่างๆ
Proprietary and Confidential to Accenture 18
TCP/IP Protocols
ตัวอย่างการส่งผ่านข้อมูลผ่านเครือข่าย Internet
Proprietary and Confidential to Accenture 19
TCP/IP Protocols
Protocols ที่ใช้ในระดับต่างๆ ของ TCP/IP Model
OSI Model Layer Protocol Description
Application HTTP Controls delivery of Web pages to
Web browser
POP3 Provides storage and forwarding of
e-mail
SMTP Sends e-mail between mail servers
on an IP network
IMAP4 Provides POP3 services, and
remote user access to mail server
FTP Enables file upload/download
between computers
Proprietary and Confidential to Accenture 20
TCP/IP Protocols
การทางานของโปรแกรมในระดับ Application ผ่าน Logical Port
Address
Client/Server applications use logical port addressing to connect
with specific applications across an IP network
There are 65,536 logical ports available on an IP network
Proprietary and Confidential to Accenture 21
E-Mail Protocols
The mail client and mail server can exchange information with
each other using a variety of protocols.
IMAP Protocol
Internet Message Access Protocol
POP3 Protocol
Post Office Protocol 3
SMTP Protocol
Simple Mail Transfer Protocol
MIME
Multipurpose Internet Mail Extensions
HTTP Protocol
The HTTP protocol is not a protocol dedicated for email
communications, but it can be used for accessing your mailbox
Proprietary and Confidential to Accenture 22
E-Mail Protocols
E-Mail system
SMTP
POP,
Mail Server IMAP,
HTTP
Mail Client
SMTP SMTP
POP,
IMAP,
HTTP
Mail Client Mail Server Internet
TP
SM
SM
TP
Mail Server
Proprietary and Confidential to Accenture 23
E-Mail Protocols
IMAP (Internet Message Access Protocol)
เดิมชื่อว่า Interactive Mail Access Protocol ออกแบบโดย Mark Crispin
ในปี 1981 เวอร์ชันล่าสุดคือ IMAP4 เป็นมาตรฐานโปรโตคอล สาหรับการ
เข้าถึง e-mail จากเครื่อง local service โดย IMAP เป็นโปรโตคอลแบบ
Client/Server ซึ่ง e-mail จะถูกเก็บไว้ในเครื่องแม่ข่าย ผู้ใช้สามารถเรียกดู
หัวข้อจดหมาย สร้าง ลบ หรือค้นหา และอื่นๆใน Mail Box บนเครื่อง
Server ได้ตลอดเวลา
IMAP4 works over a TCP/IP connection
using network port 143.
Proprietary and Confidential to Accenture 24
E-Mail Protocols
POP3 (Post Office Protocol 3)
เป็นโปรโตคอลแบบ Client/Server ที่ใช้ในการรับส่ง Email เช่นเดียวกับ IMAP
ซึ่งจะทางานในลักษณะ Store and Forward คือ Email ที่ได้รับจะถูกเก็บไว้ที่
เครื่อง Server เพียงระยะเวลาหนึ่ง เมื่อมีความต้องการอ่าน Mail ระบบจะทา
การส่งข้อมูลของ Mail มายังเครื่อง Client และลบข้อมูลบน Server ออก
้
ดังนั้น เราสามารถอ่าน Mail ของเราหลังจากดึงข้อมูลเสร็จแล้ว ได้โดยไม่ตอง
เชื่อมต่อ Internet
POP3 works over a TCP/IP connection
using network port 110.
Proprietary and Confidential to Accenture 25
E-Mail Protocols
POP3 - Dialog Example
S: <wait for connection on TCP port 110>
C: <open connection>
S: +OK POP3 server ready <abc@ku.ac.th>
C: APOP username c4c9334bac560ecc979e58001b3e22fb
S: +OK username's maildrop has 2 messages (320 octets)
C: STAT
S: +OK 2 320
C: LIST
S: +OK 2 messages (320 octets)
S: 1 120
S: 2 200 C: RETR 2
S: . S: +OK 200 octets
C: RETR 1 S: <the POP3 server sends message 2>
S: +OK 120 octets S: .
C: DELE 2
S: <the POP3 server sends message 1>
S: . S: +OK message 2 deleted
C: DELE 1 C: QUIT
S: +OK message 1 deleted +OK dewey POP3 server signing off (maildrop empty)
S:
C: <close connection>
S: <wait for next connection>
Proprietary and Confidential to Accenture 26
E-Mail Protocols
POP3 - Dialog Example
Older POP3 servers without APOP accept a plain USER and PASS
login:
C: USER username
S: +OK User Accepted
C: PASS password
S: +OK Pass Accepted
Proprietary and Confidential to Accenture 27
E-Mail Protocols
SMTP (Simple Mail Transfer Protocol)
เป็นโปรโตคอลที่ใช้โดย MTA (Mail Transfer Agent) สาหรับการส่ง Mail ไปยัง
่
Mail Server ของผู้รับ ซึ่งโปรโตคอลนี้ใช้เพือการส่ง Mail ระหว่าง Host-to-Host
เท่านั้น ใช้การติดต่อผ่าน TCP Port 25
Proprietary and Confidential to Accenture 28
E-Mail Protocols
SMTP - Dialog Example
S: 220 www.example.com ESMTP Postfix
C: HELO mydomain.com
S: 250 Hello mydomain.com
C: MAIL FROM:<sender@mydomain.com>
S: 250 Ok
C: RCPT TO:<friend@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: Subject: test message
C: From: sender@mydomain.com
C: To: friend@example.com
C:
C: Hello, This is a test.
C: Goodbye.
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye
Proprietary and Confidential to Accenture 29
E-Mail Protocols
MIME (Multipurpose Internet Mail Extensions)
MIME defines mechanisms for sending other kinds of information
in e-mail, including text in languages other than English using character
encodings other than ASCII as well as 8-bit binary content such as
files containing images, sounds, movies, and computer programs.
Proprietary and Confidential to Accenture 30
E-Mail Protocols
Proprietary and Confidential to Accenture 31
E-Mail Protocols
MIME – Sample Message
Content-type: multipart/mixed; boundary=“myseparator"
MIME-version: 1.0
This is a multi-part message in MIME format.
--myseparator
Content-type: text/plain
This is the body of the message.
--myseparator
Content-type: text/html; encoding=UTF-8
Content-transfer-encoding: base64
PGh0bWw+CiAgPGhlYWQ+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPHA
+VGhpcyBpcyB0aGUg
Ym9keSBvZiB0aGUgbWVzc2FnZS48L3A+CiAgPC9ib2R5Pgo8L2h0bWw+
Cg==
--myseparator--
Proprietary and Confidential to Accenture 32
E-Mail Protocols
SMTP - Dialog with MIME Example (1)
Proprietary and Confidential to Accenture 33
E-Mail Protocols
SMTP - Dialog with MIME Example (2)
บรรทัดแรกซ้า
กับบรรทัด
สุดท้ายในหน้า
ก่อน
Proprietary and Confidential to Accenture 34
File Transfer Protocol
FTP – File Transfer Protocol
โพรโตคอล FTP เป็นโพรโตคอลสาหรับการถ่ายโอนไฟล์ระหว่างสอง
เครื่องผ่านเครือข่าย
่ ่
การใช้งานโพรโตคอล FTP ต้องมีการระบุ ชื่อหรือทีอยูของ FTP server
่
พร้อมทั้งชือ login & password สาหรับการเข้าถึงข้อมูล server
ปลายทาง
โพรโตคอล FTP สร้างการเชื่อมต่อ 2 ทางคือ
• การเชื่อมต่อสาหรับการควบคุมการถ่ายโอนไฟล์ (Control Connection)
• การเชื่อมต่อสาหรับถ่ายโอนข้อมูลหรือไฟล์ (Data Connection)
Proprietary and Confidential to Accenture 35
File Transfer Protocol
FTP – File Transfer Protocol
คาสั่งของ FTP ได้แก่ USER Bring to Front
username, PASS password, LIST, FTP Server
RETR filename, STOR filename
Remote
File System
s fer
ran
ตัวอย่างการตอบกลับจาก server File T
• 331 Username OK, password
required Local
File System
Internet
• 125 Data connection already FTP Client
opened; transfer starting
• 425 Can’t open data connection FTP Control Connection
Port 21
• 452 Error writing file
Local Remote
File System File System
FTP Data Connection
Port 20
FTP Server
FTP Client
Proprietary and Confidential to Accenture 36
TCP/IP Protocols
Protocols ที่ใช้ในระดับต่างๆ ของ TCP/IP Model
OSI Model Protocol Description
Layer
Transport TCP Connects two computers,
transmits data packets, verifies
data delivery
UDP Sends data in packets, no data
verification
TCP setups a connection and sends acknowledgment, UDP does not.
UDP can move data faster but TCP guarantees delivery.
Proprietary and Confidential to Accenture 37
Protocols
Transmission Control Protocol (TCP)
Protocol at the Transport layer that is Connection Oriented and
Guarantees delivery of packets.
Three-ways handshake:
A three step conversation initiated by TCP to set up a connection
between hosts.
Proprietary and Confidential to Accenture 38
Protocols
Three-ways handshake:
Harry is any host computer
Wally is a Web Server
Proprietary and Confidential to Accenture 39
Protocols
Three-ways handshake:
Proprietary and Confidential to Accenture 40
Protocols
After three-ways handshake:
Proprietary and Confidential to Accenture 41
Protocols
TCP Header structure
Proprietary and Confidential to Accenture 42
Protocols
TCP Header Structure Description
Source port หมายเลข Port ต้นทาง ของผู้ส่ง
Destination port ้
หมายเลข Port ของผูรับปลายทาง
Sequence No. ฟิลด์ที่ระบุหมายเลขลาดับอ้างอิงในการส่งข้อมูล
่
แต่ละครั้ง เพือใช้ในการแยกแยะ และจัดลาดับ
Acknowledgment No. ใช้ในการตอบรับ
Data Offset ระบุความยาวของ Header หรือบอกตาแหน่ง
เริ่มต้นของส่วน Data
Reserved ไม่มีการใช้งาน
Flags [ URG,ACK,PUSH,RESET,SYN,FIN ]
• URG ใช้แสดงในความหมายว่าเป็นข้อมูลเร่งด่วน
• ACK ให้ใช้ข้อมูลในส่วนของ Acknowledgment No. ได้
• PSH เป็นการแจ้งผู้รับว่าให้ส่งข้อมูล Segment นี้ไปให้กับผู้รับ
ที่กาลังรออยู่
• RST ยกเลิกการติดต่อ
• SYN ใช้ในการเริ่มต้น ติดต่อกับปลายทาง
• FIN ใช้เพื่อแจ้งปลายทาง ถึงการยุติการติดต่อ
Proprietary and Confidential to Accenture 43
Protocols
TCP Header structure description (cont.)
Window ึ ่
ตัวเลขที่ผู้ส่งใช้ระบุถงชุดของข้อมูล ซึงสัมพันธ์
กับค่าของฟิลด์ Acknowledgment No.
Checksum ่
ค่าที่ได้จากการคานวณ เพือใช้ในการตรวจสอบ
ความถูกต้องของข้อมูล
Urgent Pointer ใช้เมื่อ Flags มีค่าเป็น URG
Data ข้อมูลที่จะส่ง
Proprietary and Confidential to Accenture 44
Protocols
TCP/IP – 2 protocols
Process-to-Process Host-to-Host
Proprietary and Confidential to Accenture 45
Protocols
User Datagram Protocol (UDP)
Protocol at the Transport layer that is Connectionless
Non-Guarantees communication. Does not set up a connection
and does not use acknowledgments.
Proprietary and Confidential to Accenture 46
Protocols
UDP Communication
Proprietary and Confidential to Accenture 47
Protocols
UDP Header structure
Source port หมายเลข Port ต้นทาง ของผู้ส่ง
Destination port ้
หมายเลข Port ของผูรับปลายทาง
Length ่
ความยาวของข้อมูลทีทาการส่ง Header อย่าง
(ขนาด 8 bytes เป็นอย่างน้อย) เดียวมี 64 bits
Checksum ่
ค่าที่ได้จากการคานวณ เพือใช้ในการ
ตรวจสอบความถูกต้องของข้อมูล
Data ข้อมูลที่จะส่ง
Proprietary and Confidential to Accenture 48
TCP/IP Protocols
Protocols ที่ใช้ในระดับต่างๆ ของ TCP/IP Model
OSI Model Layer Protocol Description
Network or IP Transmits data packets, routes over
Internet intranet/Internet, assembles at
destination
ARP Identifies host computer, converts
IP address to MAC address
Reverse ARP Converts MAC address to IP
address
ICMP Reports transmission errors to
routers and host computers
Proprietary and Confidential to Accenture 49
Protocols
IP – Internet Protocol
่
IP Protocol ทาหน้าที่จัดการเกียวกับ การรับส่งแพ็กเก็ต (Packet)
ั ่
ซึ่งเป็นหน่วยข้อมูลที่รบมาจากโพรโตคอลทีอยู่ชั้นที่สูงกว่า
IP จะรับผิดชอบในการจัดเส้นทาง (Routing) ให้แพ็กเกจส่งไปยัง
่
เครือข่ายที่โฮสต์นั้นอยู่โดยใช้เราเตอร์ในการเชือมต่อเครือข่าย
่
โพรโตคอล IP ให้บริการการเชือมต่อแบบ Connectionless มีความ
ี ่
เชื่อถือน้อย เนื่องจากไม่มการสร้างการเชื่อมต่อก่อนทีจะทาการรับส่ง
ข้อมูล
• ในการส่งข้อมูลแต่ละครั้ง ผู้ส่งจะไม่ทาการติดต่อ ผู้รับปลายทางเพื่อตกลง
เกี่ยวกับการรับส่งข้อมูลก่อน แต่ผู้ส่งจะทาการส่งแพ็กเก็ตออกไปทันที
โดยคาดหวังว่าผู้รับปลายทางจะได้รับแพ็กเก็ตนั้น
• แพ็กเก็ตที่ถึงปลายทางอาจไม่เรียงลาดับหรือมีการซ้ากันหรือมาถึงล่าช้า
ได้ การแก้ปัญหาจะเป็นหน้าที่ของโพรโตคอลในชั้นทีสูงกว่ารับผิดชอบ
Proprietary and Confidential to Accenture 50
Protocols
IP Header structure (IPv4)
The Header consists of 13 fields, of which only 12 are required.
Proprietary and Confidential to Accenture 51
Protocols
ARP – Address Resolution Protocol
ู ่ ่
เป็นโปรโตคอล ที่ถกใช้เมือต้องการข้อมูล MAC Address ของเครือง
่ ้
ปลายทาง ในขณะทีตองการส่งข้อมูล โดยเริ่มจาก
ผู้ส่งทาการตรวจสอบในตารางข้อมูล ARP ของตนเอง หากไม่พบ
ข้อมูล MAC Address ของปลายทาง ก็จะส่งคาร้องขอ (ARP
ั
Request) กระจายออกไป จากนั้นเครื่องต่างๆ ที่ได้รบจะทาการ
่
ตรวจสอบ IP Address ที่สงมาว่าใช่ตนหรือไม่ หากใช่ ก็จะตอบกลับ
้
(ARP Reply) ไปยังผูร้องขอ พร้อมกับหมายเลข MAC Address ของ
ตนเอง
Proprietary and Confidential to Accenture 52
Protocols
ARP Request
Whoever is 209.132.94.101, I
need your hardware
address1 My IP address is
209.132.94.100 and my
hardware address is
00:10:4B:74:91:12
Proprietary and Confidential to Accenture 53
Protocols
ARP Reply
Hey 209.132.94.100 with the
hardware address of
00:10:48:74:91:12, I am
209.132.94.101 and my
hardware address is
00:10:4B:6F:B3:92
Proprietary and Confidential to Accenture 54
Protocols
RARP – Reverse Address Resolution Protocol
่
โพรโตคอล RARP (Reversed ARP) เป็นโพรโตคอลทีทาหน้าที่
ตรงกันข้ามกับโพรโตคอล ARP คือจะช่วยโฮสต์ค้นหาหมายเลข IP
่
Address ปลายทาง เมือโฮสต์ดังกล่าวรู้เพียงหมายเลข MAC Address
แต่ไม่รู้หมายเลข IP
Proprietary and Confidential to Accenture 55
Protocols
ARP Conversation Captured
่
ส่ง ARP Reply โดยใช้เครืองมือช่วย
อะไรคือ Man in the middle with ARP Poisoning
Proprietary and Confidential to Accenture 56
Questions & Answers
Q&A
Proprietary and Confidential to Accenture 57
Related docs
Get documents about "