1 / 36

DCN286 INTRODUCTION TO DATA COMMUNICATION TECHNOLOGY

DCN286 INTRODUCTION TO DATA COMMUNICATION TECHNOLOGY. TCP/IP Transport and Application protocols. TCP/IP model. TCP and UDP. The two important Transport layer protocols:

asta
Télécharger la présentation

DCN286 INTRODUCTION TO DATA COMMUNICATION TECHNOLOGY

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DCN286 INTRODUCTION TO DATA COMMUNICATION TECHNOLOGY TCP/IP Transport and Application protocols

  2. TCP/IP model

  3. TCP and UDP The two important Transport layer protocols: They help to transfer data from one application process on one computer to the correct application process on another computer. TCP (Transmission Control Protocol) Connection-oriented protocol, more reliable and slower. UDP (User Datagram Protocol) Connection-less, faster, simpler and not reliable (no error checking).

  4. TCP and UDP comparison

  5. To use TCP or UDP (optional)

  6. Flow Control Receiver needs time to process data and inform sender how fast the data could be sent to it. Two methods to control flow: *Dynamic sliding windows **Withholding acknowledgments

  7. Dynamic Sliding Windows Receiver advises window (size of data limit) Sender keeps sending data until the limit. Stop and wait for ACK. Receiver processed data and sent ACK and next window value to sender. Sender starts sending data until reach the limit. Then, wait for ACK and next window value.

  8. Withholding Acknowledgments Another option of receiver is wait to send ACK. Receiver informs sender the window size. Sender keeps sending data until limit of window. Receiver only sends out ACK after complete the processing Sender receives ACK and window size and starts next round sending.

  9. Window The max value of data sender can send before an acknowledgment.

  10. TCP Three way handshake First segment has a SYN flag but does not have the ACK flag set. (SYN=1 and ACK=0) The second has both SYN and ACK set The third and ongoing segment have only ACK

  11. TCP error recovery (reliability) TCP acknowledges the receipt of data by the Acknowledgment Number filed of the TCP header. It identifies the next byte expected to be received. NOT the last byte received. Sender  1000  1002  1003  Receiver Sender  1001  Receiver (because received 1000)

  12. Segmentation TCP received data from application protocols and break them into small pieces for transmission. TCP header is put in front of each chunk. Maximum Segment Size (MSS) : max length of TCP data filed. Ethernet frames allow 1500 data bytes in data field. TCP and IP header are 20 bytes each. 1460 is the MSS in Ethernet

  13. Reassembly and in-order delivery In-order delivery: Sent by sequence. Reassembly: according to the SEQ number. Receiver may temporary store segments into memory and wait for other segments for reassembly by sequence.

  14. TCP and UDP header TCP header UDP header

  15. Port number Application may use multiple port numbers in the same time. A unique port number is needed for each TCP or UDP connection. Such port numbers are dynamic port number. A host can dynamic allocate 1024 (2^10) to 65,535 (2^16) port numbers

  16. Uses of port number

  17. Well-known ports

  18. Application layer In DoD model, application layer, application protocols define the format of the data being transferred (such as binary or ASCII text); encryption and the rules for transferring data. In ISO/OSI model, application layer is only responsible for application interface. Encryption is in Presentation layer which is also responsible for data representation. Session layer is to combine message communication between hosts.

  19. DNS (Domain Name Service) Tranlate between Full Qualified Domain Name and IP address. Domain name is in human language such as www.cisco.com and IP address is in the numbering format. Top level domain could be in 3 categories: Tradition: .com, .net, .edu, .gov, .mil, .org Country code: ck, uk, jp, pl, ru, etc, etc. New released: .info, .aero, .museum, .name, .coop, .biz, .pro.

  20. HTTP (Hypertext Transfer Protocol) Application layer protocol Distribute, collaborate and retrieve inter-linked resource from web pages Default port is 80 (*could use different port) Typical requests:  Head: asks for the meta-information Get: requests a representation of the specified resource. Post: submit data to be processed Put: Uploads a representation of the specified resource. Delete: Deletes the specified resource. Trace: echoes back the received request Options: returns the HTTP methods that the server supports for specified URL

  21. HTTPS (Hypertext Transfer Protocol Secure) (Optional) HTTPS is a combination of the HTTP and a network security protocol HTTPS has also been known as "Hypertext Transfer Protocol over Secure Socket Layer", but now HTTPS may be secured by the Transport Layer Security (TLS) instead of Secure Sockets Layer (SSL) protocol. An https: URL may specify a TCP port. If it does not, the connection uses port 443 (unsecured HTTP typically uses port 80)

  22. HTML, DHTML and XML (Optional) HTML (HyperText Markup Language): the predominant markup language for Web pages. DHTML (Dynamic HyperText Markup Language): is a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model. XML (Extensible Markup Language): is a general-purpose specification for creating custom markup languages. It can perfectly present shared structured data.

  23. Sample code of HTML (optional) Sample html code: <!DOCTYPE html> <html> <head> <title>Title bar display</title> </head> <body> <p>Hello This is my page!!</p> </body> </html>

  24. Web server (optional) The web server is to Host web pages Answer HTTP requests Logging clients visits Offer authentication if it is required Bandwidth throttling Could be running on Windows IIS or Unix/Linux system

  25. Web client and browser (optional) Web clients are using browser to display and interact with text, images, videos, music, games and other information typically located on a Web page at a Web site on the World Wide Web or a local area network. Typical browsers: Internet Explorer, Opera, Mozilla Firefox, Safari, Avant Browser Maxthon, AOL Explorer

  26. E-Mail protocols: SMTP, POP3 and IMAP SMTP (Simple Mail Transfer Protocol) is an Internet standard for electronic mail (e-mail) transmission across Internet Protocol (IP) networks. POP3 (Post Office Protocol version 3) is an application-layer Internet standard protocol used by local e-mail clients to retrieve e-mail from a remote server over a TCP/IP connection. Internet Message Access Protocol (commonly known as IMAP or IMAP4, and previously called Internet Mail Access Protocol, Interactive Mail Access Protocol and Interim Mail Access Protocol is an application layer Internet protocol operating on port 143 that allows a local client to access e-mail on a remote server.

  27. Email access (optional) Web mail (hotmail, yahoo, gmail, and exchange web access) Outlook Outlook express Telnet Blackberry (BIS and BES) Many freeware: courier, Eudora, Foxmail, Opera Mail, Window Live Mail, etc, etc.

  28. telnet smtp.example.com 25 (optional) S: 220 smtp.example.com ESMTP Postfix C: HELO relay.example.org S: 250 Hello relay.example.org, I am glad to meet you C: MAIL FROM:<bob@example.org> S: 250 Ok C: RCPT TO:<alice@example.com> S: 250 Ok C: DATA S: 354 End data with <CR><LF>.<CR><LF> C: From: "Bob Example" <bob@example.org> C: To: Alice Example <alice@example.com> C: Date: Tue, 15 Jan 2008 16:02:43 -0500 C: Subject: Test message C: C: Hello Alice. C: This is a test message with 5 headers and 4 lines in the body. C: Your friend, C: Bob C: . S: 250 Ok: queued as 12345 C: QUIT S: 221 Bye {The server closes the connection}

  29. File transfer application protocols HTML can also be used to transfer files TFTP: is faster and using UDP port 69 FTP: support authentication and using TCP port 20 and 21 FTP (TFTP) server hosts the files and documents in a structured directory tree. Client uses various programs to get, upload files and documents. The programs could be SmartFTP, FileZilla, CuteFTP, WISE-FTP, etc, etc.

  30. Telnet Telnet is a network protocol used on the Internet or local area networks The term telnet also refers to software which implements the client part of the protocol. Telnet clients are available for virtually all computer platforms. (Start  Run “cmd”  telnet /?) The client-server protocol is using TCP port 23 by default. And it does not encrypt any data sent over the connection (including the password). Thus, all information can be captured by network sniffer.

  31. SSH (optional) Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. SSH was designed as a replacement for TELNET which is an insecure remote shells and transfer password in clear text format.

  32. SNMP (Simple Network Management Protocol) An SNMP-managed network consists of three key components: Managed devices (a computer or a network host such as router and switch) Agents (software running in the managed devices) Network-management station (central management work station in which application server is executed) It is possible to configure a Cisco router as a SNMP server

  33. What is the Network address of 172.16.132.70/20?

  34. Another Example of Network Address172.16.4.35/27

  35. Private IP addressJust to remember Thus, it is possible for many companies / organizations using same network address internally. (For instance, 10.10.10.10 could be used for computer Tom in company Apple and by computer Jerry in company Boss) But, again, the potential duplicated addresses are used internally.

  36. Class B table

More Related