MAIL ROUTING AND THE DOMAIN SYSTEM 指導教授:梁德昭博士 報告學生:蕭有廷 報告日期: 11 月 30 日.

Slides:



Advertisements
Similar presentations
Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support.
Advertisements

Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CCNA – Network Fundamentals
Internet Control Message Protocol (ICMP)
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
DNS: Revising the Current Protocol Matt Gustafson Matt Weaver CS522 Computer Communications University of Colorado, Colorado Springs.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
Presented by Neeta Jain CISC 856 TCP/IP and Upper Layer Protocols RFC 1034 & RFC 1035.
1 Internet Control Message Protocol (ICMP) RIZWAN REHMAN CCS, DU.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5 Sandra Coleman, CCNA, CCAI.
A question of protocol Geoff Huston APNIC 36. Originally there was RFC791: “All hosts must be prepared to accept datagrams of up to 576 octets (whether.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 9 Internet Control Message.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Internet Control Message Protocol (ICMP)
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Domain Name System HISTORY File hosts (the size of Internet became more than 1000.
DNS: Domain Name System
User Datagram Protocol, UDP 指導老師:梁德昭 老師 學生:吳雅真 學號: 日期:
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
Deploying a Web Application Presented By: Muhammad Naveed Date:
UNIT IP Datagram Fragmentation Figure 20.7 IP datagram.
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 ICMP: A helper protocol to IP The Internet Control Message Protocol (ICMP) is the protocol used for error.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
Internet and Intranet Protocols and Applications Lecture 5 Application Protocols: DNS February 20, 2002 Joseph Conron Computer Science Department New York.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
CPSC 441: DNS 1. DNS: Domain Name System Internet hosts: m IP address (32 bit) - used for addressing datagrams m “name”, e.g., - used by.
A Survey of Geocast Routing Protocols 指導教授:許子衡 教授 報告學生:馬敏修 指導教授:許子衡 教授 報告學生:馬敏修.
AODV: Introduction Reference: C. E. Perkins, E. M. Royer, and S. R. Das, “Ad hoc On-Demand Distance Vector (AODV) Routing,” Internet Draft, draft-ietf-manet-aodv-08.txt,
1 A Practical Routing Protocol for Vehicle-formed Mobile Ad Hoc Networks on the Roads 指導教授:許子衡 教授 報告學生:董藝興 學生 作者: Wang, S.Y.; Lin, C.C.; Hwang, Y.W.; Tao,
Chapter 20 Network Layer: Internet Protocol
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
A Quick Look At How Works Understanding the basics of how works can make life a lot easier for any user. Especially those who are interested.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
1 CMPT 471 Networking II DNS © Janice Regan,
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
TCP/IP Illustrated, Volume 1: The Protocols Chapter 6. ICMP: Internet Control Message Protocol ( 월 ) 김 철 환
COMP 431 Internet Services & Protocols
Internet Naming Service: DNS* Chapter 5. The Name Space The name space is the structure of the DNS database –An inverted tree with the root node at the.
Time-stable geocast for ad hoc networks and its application with virtual warning signs Volume 27, Issue 11, 1 July 2004, Pages Applications and.
Basics of the Domain Name System (DNS) By : AMMY- DRISS Mohamed Amine KADDARI Zakaria MAHMOUDI Soufiane Oujda Med I University National College of Applied.
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
IP: Addressing, ARP, Routing
Internet Control Message Protocol (ICMP)
Chapter 9 ICMP.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
IP : Internet Protocol Surasak Sanguanpong
Networking Theory (part 2)
Net 323 D: Networks Protocols
William Stallings Data and Computer Communications
Domain Name System Refs: Chapter 9 RFC 1034 RFC 1035.
Network Architecture Models
Managing Routing Module 9 In this module we will look at the techniques required to ensure that messages are delivered to their intended destinations.
Process-to-Process Delivery: UDP, TCP
ITIS 6167/8167: Network and Information Security
Networking Theory (part 2)
Presentation transcript:

MAIL ROUTING AND THE DOMAIN SYSTEM 指導教授:梁德昭博士 報告學生:蕭有廷 報告日期: 11 月 30 日

What the Domain Servers Know The domain servers store information as a series of resource records (RRs), each of which contains a particular piece of information about a given domain name (which is usually, but not always, a host). For the purposes of message routing, the system stores RRs known as MX RRs.

MX RRs [ttl] IN MX A.EXAMPLE.ORG IN MX 15 B.EXAMPLE.ORG 定 義 主 機 或 網 域 的 信 件 交 換 器 (Mail Exchanger) , 我 們 可 為 同一 部 主 機 或 同 一 網 域 定 義 數 個 信 件 交 換 器 , 是 個 16 位 元 無 符 號 整 數 值 , 它 可 決 定 交 換 器 的 優 先 順 序 , 其 值 越 小 , 其 優 先 性 越 高 , 是 信 件 交 換 器 的 網 域 名 稱 。其 中 , [] 表 示 該 欄 位 為 選 擇 性 , 表 示 該欄 必 須 存在。

What the Domain Servers Know In addition to mail information, the servers store certain other types of RR's which mailers may encounter or choose to use. These are: the canonical name (CNAME) RR; and the Well Known Service (WKS) RR. [ttl] IN WKS A.EXAMPLE.ORG IN WKS TCP SMTP 定 義 主 機 採 用 的 傳 輸 協 定 , 可 以 是 TCP 或 UDP , 是 該 主 機 透 過 此 協 定 所 提 供 的 服 務 名稱 列 表 , 名 稱 之 間 須 以 空 白 字 元 隔 開 , 一 般 內 定 為 UDP 。

General Routing Guidelines The major principle is derived from the definition of the preference field in MX records, and is intended to prevent mail looping. If the mailer is on a host which is listed as an MX for the destination host, the mailer may only deliver to an MX which has a lower preference count than its own host. It is also possible to cause mail looping because routing information is out of date. The incomplete data problem also requires some care when handling domain queries.

Issuing a Query The first step for the mailer at LOCAL is to issue a query for MX RRs for REMOTE. Certain responses to the query are considered errors: Getting no response to the query. Getting a response in which the truncation field of the header is set. Getting a response in which the response code is non- zero.

Interpreting the List of MX RRs If the list is empty, mailers should treat it as if it contained one RR, an MX RR with a preference value of 0, and a host name of REMOTE. (I.e., REMOTE is its only MX). If the list is not empty, the mailer should remove irrelevant RR's from the list according to the following steps.

Interpreting the List of MX RRs For each MX, a WKS query should be issued to see if the domain name listed actually supports the mail service desired. MX RRs which list domain names which do not support the service should be discarded. This step is optional, but strongly encouraged. If the domain name LOCAL is listed as an MX RR, all MX RRs with a preference value greater than or equal to that of LOCAL's must be discarded.

Interpreting the List of MX RRs After removing irrelevant RRs, the list can again be empty. This is now an error condition.How a mailer chooses to handle these situations is to some extent implementation dependent, and is thus left to the implementor's discretion. If the list of MX RRs is not empty, the mailer should try to deliver the message to the MXs in order (lowest preference value tried first).

Minor Special Issues Wildcard names, those containing the character '*' in them, may be used for mail routing. There are likely to be servers on the network which simply state that any mail to a domain is to be routed through a relay. The algorithm to delete irrelevant RRs breaks if LOCAL has a alias and the alias is listed in the MX records for REMOTE. Implementors should understand that the query and interpretation of the query is only performed for REMOTE. It is not repeated for the MX RRs listed for REMOTE.

Examples In the first example, an SMTP mailer on D.EXAMPLE.ORG is trying to deliver a message addressed to A.EXAMPLE.ORG. From the answer to its query, it learns that A.EXAMPLE.ORG has three MX RRs. D.EXAMPLE.ORG is not one of the MX RRs and all three MXs support SMTP mail (determined from the WKS entries), so none of the MXs are eliminated. The mailer is obliged to try to deliver to A.EXAMPLE.ORG as the lowest valued MX. If it cannot reach A.EXAMPLE.ORG it can (but is not required to) try B.EXAMPLE.ORG. and if B.EXAMPLE.ORG is not responding, it can try C.EXAMPLE.ORG. In the second example, the mailer is on B.EXAMPLE.ORG, and is again trying to deliver a message addressed to A.EXAMPLE.ORG. There are once again three MX RRs for A.EXAMPLE.ORG, but in this case the mailer must discard the RRs for itself and C.EXAMPLE.ORG (because the MX RR for C.EXAMPLE.ORG has a higher preference value than the RR for B.EXAMPLE.ORG). It is left only with the RR for A.EXAMPLE.ORG, and can only try delivery to A.EXAMPLE.ORG. In the third example, consider a mailer on A.EXAMPLE.ORG trying to deliver a message to D.EXAMPLE.ORG. In this case there are only two MX RRs, both with the same preference value. Either MX will accept messages for D.EXAMPLE.ORG. The mailer should try one MX first (which one is up to the mailer, though D.EXAMPLE.ORG seems most reasonable), and if that delivery fails should try the other MX (e.g. C.EXAMPLE.ORG).