Outlines requirements and time allocation 2.42 Comparison with HTTP 20分钟 http:pull email:push both have ASCII command/response interaction,status codes http:each object is encapsulated in its own response message smtp:multiple objects message sent in a multipart message 2.4.3 Mail Message Fomats and MIME 25分钟 RFC822:standard for text message format header lines,e.g, To: from Subject: different fromsmtp commands body the "message",ASCII characters only MIME:multimedia mail extension,RFC2045 25分钟 2.4.4 Mail Access Protocol POP:Post Office Protocol [RFC 1939] authorization(agent <->server)and download IMAP:Internet Mail Access Protocol [RFC 1730] more features(more complex),manipulation of stored msgs on server HTTP:Hotmail,Yahoo!Mail,etc POP3 protocol 10分钟 2.4.5 Continus Media E-mail (重点讲解Mail Message Formats和POP3 protocol,用启发、讨论式教学方式教 学。) 5分钟 复习本次课的主要内容。 11
11 Outlines, requirements and time allocation 2.4.2 Comparison with HTTP http: pull email: push both have ASCII command/response interaction, status codes http: each object is encapsulated in its own response message smtp: multiple objects message sent in a multipart message 2.4.3 Mail Message Formats and MIME RFC 822: standard for text message format: header lines, e.g., To: From: Subject: different from smtp commands! body the “message”, ASCII characters only MIME: multimedia mail extension, RFC 2045 2.4.4 Mail Access Protocol POP: Post Office Protocol [RFC 1939] authorization (agent <->server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex), manipulation of stored msgs on server HTTP: Hotmail , Yahoo! Mail, etc. POP3 protocol 2.4.5 Continus Media E-mail (重点讲解 Mail Message Formats 和 POP3 protocol,用启发、讨论式教学方式教 学。) 复习本次课的主要内容。 20 分钟 25 分钟 25 分钟 10 分钟 5 分钟
Teaching Plan Name Zhang Yu-fei Academic Year 2013-2013 Term 2 Date 2013.03.27 Period 5-7 Textbook COMPUTER NETWORK 10计算机科学与技术本科 Content Chapter2应用层 3 Objectives 了解Socket编程方法,熟悉TCP API编程:掌握DNS提供的服务类型。 Key points How DNS Works Poin to Socket Programming with TCP Content for self sudy htpwdthp/wwrf-edit/fe35.xt Teaching equipment Multimedia Related knowledge VC+6.0 Teaching methds 启发式、讨论式教学 复习上次课FTP、SMTP等重要内容 5分钟 2,5DNS-The Intemet's Directory Service(DNS:因特网的目录最务) 10分钟 2.5.1 Services Provided by DNS Transation host-names to IPddresses Host altasing Mail server aliasing Load distribution 2.52 Overview of How DNS Works 20分钟 No server has all name-to-IP address mappings Host DNS query first goes to local name server root name server authoritative name server for a host:stores that host's IP address,name can perfor name/address transation for that host name recursive query: iterated query: 2.5.3 DNS Records 15分钟 RR fommat:(name,value,type.tl) 2.54 DNS Mess 15分钟 query and repy messages,both with same message fomat (重点讲解DNS工作流程,DNS Message Format;用讨论式教学方式教学
12 Teaching Plan Name Zhang Yu-fei Academic Year 2013-2013 Term 2 Date 2013.03.27 Period 5-7 Textbook COMPUTER NETWORK Specialty and Stratification 10 计算机科学与技术 本科 Content Chapter 2 应用层 Teaching hours 3 Objectives 了解 Socket 编程方法,熟悉 TCP API 编程;掌握 DNS 提供的服务类型。 Key points How DNS Works Points difficult to understand Socket Programming with TCP Content for self study http://www.rfc-editor.org/rfc/rfc1034.txt http://www.rfc-editor.org/rfc/rf c1035.txt Teaching equipment Multimedia Related knowledge VC++6.0 Teaching methods 启发式、讨论式教学 Outlines, requirements and time allocation 复习上次课 FTP、SMTP 等重要内容 2.5 DNS-The Internet’s Directory Service(DNS:因特网的目录服务) 2.5.1 Services Provided by DNS Translation host-names to IP addresses Host aliasing Mail server aliasing Load distribution 2.5.2 Overview of How DNS Works No server has all name-to-IP address mappings local name servers: Each ISP, company has local (default) name server Host DNS query first goes to local name server Root name server Authoritative name server: for a host: stores that host’s IP address, name can perform name/address translation for that host’s name recursive query: iterated query: 2.5.3 DNS Records RR format: (name, value, type,ttl) 2.5.4 DNS Message query and repy messages, both with same message format (重点讲解 DNS 工作流程,DNS Message Format;用讨论式教学方式教学。) 5 分钟 10 分钟 20 分钟 15 分钟 15 分钟
2.6P2 Pfile sharing(P2P文件共享) 2.7 Socket Programming wth TCP(TCP套接字编程) 25分钟 2.7.1 Socket Programming wth TCP Socket APl explicitly created,used,released by apps client/server parad igm two types of transport service via socket API: unreliable datagram reliable,byte stream-oriented Client must contact server server process must first be running server must have created socket(door)that welcomes client's contact Client contacts server by: creating client-local TCP socket 25分钟 specifying Paddresspor number of erver proces 2.72 An Example Clients/Server Application in Java import ava.io.* mport javanet.◆: class TCPClient public statie vod main(String argv)throws Exeeption String sentence; String modifiedSentence: BufferedReader inFromUser Socket clientSocket =new Socket("hostname",6789). DataOutputStream outToServer 25分钟 new DataOutputStream(clientSocket.getOutputStream(): Buffered Reader infromServer new BufferedReader(new InputStreamReader(() sentence =inFromUser.readLine(); outToServerwriteBytes(sentence +'n'), modifiedSentence =inFromServerreadLine(): System.outprint("FROM SERVER:+modifedSentence) 讲解程序框图,讲解Java程序工作流程,用讨论式教学方式教学。)
13 Outlines, requirements and time allocation 2.6 P2P file sharing(P2P 文件共享) 2.7 Socket Programming wth TCP(TCP 套接字编程) 2.7.1 Socket Programming wth TCP Goal: learn how to build client/se rver application that communicate using sockets Socket API: introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm two types of transport service via socket API: unreliable datagram reliable, byte stream-oriented Client must contact server server process must first be running server must have created socket (door) that welcomes client’s contact Client contacts server by: creating client-local TCP socket specifying IP address, port number of server process 2.7.2 An Example Clients/Server Application in Java import java.io.*; import java.net.*; class TCPClient { public static void main(String argv[]) throws Exception { String sentence; String modifiedSentence; BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); Socket clientSocket = new Socket("hostname", 6789); DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream()); BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); sentence = inFromUser.readLine(); outToServer.writeBytes(sentence + '\n'); modifiedSentence = inFromServer.readLine(); System.out.println("FROM SERVER: " + modifiedSentence); clientSocket.close(); } } (讲解程序框图,讲解 Java 程序工作流程,用讨论式教学方式教学。) 25 分钟 25 分钟 25 分钟
10分钟 复习本次课及本章的主要内容。 application service requirements reliability,bandwidth,delay client-server paradigm Internet transport service model connection-oriented,reliable:TCP unreliable,datagrams:UDP specific protocols: http ftp smtp,pop3 dns socket programming client/server implementation using tcp,udp sockets 课后作业
14 复习本次课及本章的主要内容。 application service requirements: reliability, bandwidth, delay client-server paradigm Internet transport service model connection-oriented, reliable: TCP unreliable, datagrams: UDP specific protocols: http ftp smtp, pop3 dns socket programming client/server implementation using tcp, udp sockets 课后作业 10 分钟
Teaching Plan Name Zhang Yu-fei Academic Year 2013-2013 Term 2 Date 2013.04.03 Period 5-7 Textbook COMPUTER NETWORK10计算机科学与技术本科 Content Chapter3运输层 3 Objectives 了解运输层提供的服务,熟悉检验码检错:掌握TCP/UDP segment format。. Key points TCP/UDP segment format Poinso UDP Checksum Contfor fsuy htp/w6xhttp//wwwrf-dior/frfe071.txt Teaching equipment Multimedia Related knowedge Checksum Calculation Teaching methods 启发式、讨论式教学 Outlines requirements and time allocation 复习上章节的重要内容,从应用层需要运输层的服务,引入本章 5分钟 Transport Layer(运输层) .3 Transpor-Layer Services and Principles(概述和运输层服务) 20分钟 3.1.1 Relationship between Transport and Network Layers Provide logical communication between app'processes running on different hosts Transport protocols run in end systems Network layer.data transfer between end systems Transpor layer:data transfer between processes Relies on,enhances,network layer services 30分钟 3.12 Overview of the Transport Layer in the Intemet Internet transnort services: reliable,in-order nast delivery (TCP) congestion flow control connection setup unreliable ("best-effort"),unordered unicast or multicast delivery:UDP services not available: real-time;bandwidth guarantees 与网络层对比讲解,重点讲解运输层提供的服务;用讨论式教学方式教学
15 Teaching Plan Name Zhang Yu-fei Academic Year 2013-2013 Term 2 Date 2013.04.03 Period 5-7 Textbook COMPUTER NETWORK Specialty and Stratification 10 计算机科学与技术 本科 Content Chapter 3 运输层 Teaching hours 3 Objectives 了解运输层提供的服务,熟悉检验码检错;掌握 TCP/UDP segment format。 Key points TCP/UDP segment format Points difficult to understand UDP Checksum Content for self study http://www.rfc-editor.org/rfc/rf c768.txt, http://www.rfc-editor.org/rfc/rfc1071.txt Teaching equipment Multimedia Related knowledge Checksum Calculation Teaching methods 启发式、讨论式教学 Outlines, requirements and time allocation 复习上章节的重要内容,从应用层需要运输层的服务,引入本章 3 Transport Layer(运输层) 3.1 Transport-Layer Services and Principles(概述和运输层服务) 3.1.1 Relationship between Transport and Network Layers Provide logical communication between app’ processes running on different hosts Transport protocols run in end systems Transport vs network layer services: Network layer: data transfer between end systems Transport layer: data transfer between processes Relies on, enhances, network layer services 3.1.2 Overview of the Transport Layer in the Internet Internet transport services: reliable, in-order unicast delivery (TCP) congestion flow control connection setup unreliable (“best-effort”), unordered unicast or multicast delivery: UDP services not available: real-time; bandwidth guarantees reliable multicast (与网络层对比讲解,重点讲解运输层提供的服务;用讨论式教学方式教学。) 5 分钟 20 分钟 30 分钟