• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Benjamin

            靜以修身,儉以養(yǎng)德,非澹薄無以明志,非寧靜無以致遠。
            隨筆 - 398, 文章 - 0, 評論 - 196, 引用 - 0
            數(shù)據(jù)加載中……

            dns的wks響應(yīng)包的rdata如何構(gòu)建

            wks是已知服務(wù)的dns記錄,屬于RR資源的一種,相對于A記錄和AAAA,并不常見
            RFC1010dns中關(guān)于wks響應(yīng)數(shù)據(jù)的文檔。這個文檔主要有Protocol Numbers(協(xié)議號)Port Assignments(端口分配表)組成。
            dns的客戶端查詢類型是wks的時候,在dns服務(wù)器的answer段,其中的protocol就是RFC1010中的Assigned Internet Protocol Numbers對應(yīng)的數(shù)值;bits段就是端口號。

            關(guān)于端口,這里指的是提供網(wǎng)絡(luò)服務(wù)的端口,這個網(wǎng)絡(luò)服務(wù)的網(wǎng)絡(luò)協(xié)議就是Protocol numbers列表中的協(xié)議。


            在RFC1035中,關(guān)于wksRDATA格式是這樣規(guī)定的:

            WKS RDATA format

                +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

                |                    ADDRESS                   
                | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
               
            |       PROTOCOL        |                      
              
             | +--+--+--+--+--+--+--+--+     |

                |                                               |

                /                   <BIT MAP>                   /

                /                                               /
               +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

            where:

            ADDRESS         An 32 bit Internet address

            PROTOCOL        An 8 bit IP protocol number

            <BIT MAP>       A variable length bit map. The bit map must be a multiple of 8 bits long.

            The WKS record is used to describe the well known services supported by a particular protocol on a particular internet address. The PROTOCOL field specifies an IP protocol number, and the bit map has one bit per port of the specified protocol. The first bit corresponds to port 0, the second to port 1, etc. If the bit map does not include a bit for a protocol of interest, that bit is assumed zero. The appropriate values and mnemonics for ports and protocols are specified in [RFC-1010].

            For example, if PROTOCOL=TCP (6), the 26th bit corresponds to TCP port 25 (SMTP). If this bit is set, a SMTP server should be listening on TCP port 25; if zero, SMTP service is not supported on the specified address.

            The purpose of WKS RRs is to provide availability information for servers for TCP and UDP. If a server supports both TCP and UDP, or has multiple Internet addresses, then multiple WKS RRs are used.

            WKS RRs cause no additional section processing.

            In master files, both ports and protocols are expressed using mnemonics or decimal numbers.

            BITMAP是多個8 bits;它的數(shù)值來源就是RFC1010中的端口分配表,例如st對應(yīng)的端口是5,則表名,第五位是1udp11,表示第十一位是1,以此類推。端口分配表從0-255,也就是說最多有256位,328字節(jié)的char數(shù)組,第五位是1,則思0x01udp則是第十一位是1,即0x00 0x20.

            posted on 2011-06-08 10:52 Benjamin 閱讀(785) 評論(0)  編輯 收藏 引用 所屬分類: 雜談

            久久无码人妻一区二区三区午夜| 77777亚洲午夜久久多喷| 99re久久精品国产首页2020| 国产精品久久婷婷六月丁香| 热综合一本伊人久久精品 | 久久国产精品波多野结衣AV| 青青青国产成人久久111网站| 久久青草国产精品一区| 久久免费小视频| 久久亚洲国产精品123区| 日韩影院久久| 久久精品免费一区二区| 色婷婷综合久久久久中文一区二区 | 日韩va亚洲va欧美va久久| 内射无码专区久久亚洲| 久久精品免费一区二区| A狠狠久久蜜臀婷色中文网| 国产一区二区精品久久| 91秦先生久久久久久久| 伊人久久大香线蕉成人| 亚洲国产精品无码久久久秋霞2| 成人免费网站久久久| 九九热久久免费视频| 中文字幕人妻色偷偷久久| 成人免费网站久久久| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 中文无码久久精品| 久久久久中文字幕| 久久婷婷午色综合夜啪| 成人资源影音先锋久久资源网| 欧美久久一级内射wwwwww.| 久久亚洲精精品中文字幕| 久久精品中文字幕一区| 久久天天躁狠狠躁夜夜96流白浆 | 无码任你躁久久久久久老妇| 久久99精品国产麻豆 | 天堂无码久久综合东京热| 亚洲国产另类久久久精品黑人| 精品久久久无码中文字幕| 久久夜色精品国产网站| 久久婷婷午色综合夜啪|