亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? draft-itojun-ipv6-tclass-api-02.txt

?? IPv6協議中flow_label的相關RFC
?? TXT
字號:
Internet Engineering Task Force                 Jun-ichiro itojun HaginoINTERNET-DRAFT                                   IIJ Research LaboratoryExpires: October 11, 2001                                 April 11, 2001                Socket API for IPv6 traffic class field                  draft-itojun-ipv6-tclass-api-02.txtStatus of this MemoThis document is an Internet-Draft and is in full conformance with allprovisions of Section 10 of RFC2026.Internet-Drafts are working documents of the Internet Engineering TaskForce (IETF), its areas, and its working groups.  Note that other groupsmay also distribute working documents as Internet-Drafts.Internet-Drafts are draft documents valid for a maximum of six monthsand may be updated, replaced, or obsoleted by other documents at anytime.  It is inappropriate to use Internet-Drafts as reference materialor to cite them other than as ``work in progress.''To view the list Internet-Draft Shadow Directories, seehttp://www.ietf.org/shadow.html.Distribution of this memo is unlimited.     The list of current Internet-Drafts can be accessed at     http://www.ietf.org/1id-abstracts.html     The list of Internet-Draft Shadow Directories can be accessed at     http://www.ietf.org/shadow.html.AbstractThe draft outlines a socket API proposal for controlling the trafficclass field in the IPv6 header.  The API uses ancillary data stream tomanipulate the traffic class field, following practice in the IPv6advanced API.The draft is, at this moment, written separately from the IPv6basic/advanced API RFCs [Gilligan, 2000; Stevens, 1999] , as there canbe many discussion items.  The ultimate goal of the draft is to be apart of the IPv6 basic/advanced API.1.  BackgroundThe IPv6 traffic class field is a 8bit field in the IPv6 header.  Thefield serves just like the IPv4 type of service (TOS) field.  There aretwo types of proposed use of the field: (1) topmost 6 bits for thedifferentiated services (diffserv) field [Nichols, 1998] , and (2)lowermost 2 bits for explicit congestion notification (ECN)HAGINO                  Expires: October 11, 2001               [Page 1]DRAFT               API for IPv6 traffic class field          April 2001[Ramakrishnan, 1999] .  Those two proposals plan to rewrite the field atintermediate routers.There is a certain set of applications which need to manipulate andinspect the traffic class field.  Here are some examples.o ECN implementations outside of the kernel (like UDP ECN).o A diffserv-aware application, which tries to mark low-priority traffic  (such as non-important packets in a video traffic) on its own.  In  this case, the application does not need to inspect the field on  outbound traffic.o Debugging tools for differentiated services.2.  Inbound trafficWhen an application is interested in inspecting the traffic class fieldon packets, the application should set the IPV6_RECVTCLASS socket optionto 1:     /* enable */     const int on = 1;     setsockopt(fd, IPPROTO_IPV6, IPV6_RECVTCLASS, &on, sizeof(on));Subsequent incoming traffic will be accompanied with an ancillary dataitem that carries an unsigned octet value.  The ancillary data item willbe tagged with the level IPPROTO_IPV6 and type IPV6_TCLASS.  Anapplication can obatain the value of the traffic class field by thefollowing operation, after the recvmsg(2) system call:     struct cmsghdr *cm;     u_int8_t tclass;     if (cm->cmsg_len == CMSG_LEN(sizeof(u_int8_t)) &&         cm->cmsg_level == IPPROTO_IPV6 &&         cm->cmsg_type == IPV6_TCLASS)          tclass = *(u_int8_t *)CMSG_DATA(cm);     else          tclass = 0x00; /* could not obtain traffic class value */By setting the socket option to 0, the behavior is disabled:     /* disable */     const int off = 0;     setsockopt(fd, IPPROTO_IPV6, IPV6_RECVTCLASS, &off, sizeof(off));For TCP sockets, an ancillary data item will be present only when thetraffic class value is changed.  See section 4.1 (TCP Implications) of[Stevens, 1999] for details.HAGINO                  Expires: October 11, 2001               [Page 2]DRAFT               API for IPv6 traffic class field          April 20013.  Outbound trafficTo control the value of the traffic class field for a single packettransmission, you can use an ancillary data item, just like presentedabove, with a sendmsg(2) system call.  The level of the ancillary dataitem must be IPPROTO_IPV6, and the type must be IPV6_TCLASS.     int s;  /* socket */     u_int8_t tclass;     struct sockaddr_in6 *dst;     struct msghdr m;     struct cmsghdr *cm;     struct iovec iov[2];     u_char cmsgbuf[256]; /* must be > CMSG_SPACE(sizeof(tclass)) */     /* set the data buffer to send */     memset(m, 0, sizeof(m));     memset(iov, 0, sizeof(iov));     m.msg_name = (caddr_t)dst;     m.msg_namelen = sizeof(dst);     iov[0].iov_base = buf;     iov[0].iov_len = len;     m.msg_iov = iov;     m.msg_iovlen = 1;     /* set ancillary data for the traffic class field */     memset(cmsgbuf, 0, sizeof(cmsgbuf));     cm = (struct cmsghdr *)cmsgbuf;     m.msg_control = cm;     m.msg_controllen = CMSG_SPACE(sizeof(tclass));     cm->cmsg_len = CMSG_LEN(sizeof(tclass));     cm->cmsg_level = IPPROTO_IPV6;     cm->cmsg_type = IPV6_TCLASS;     memcpy(CMSG_DATA(cm), &tclass, sizeof(tclass));     sendmsg(s, &m, 0);If you want to put specific value to the traffic class field on multiplepackets, you can use a "sticky" option:     u_int8_t tclass;     setsockopt(fd, IPPROTO_IPV6, IPV6_TCLASS, &tclass, sizeof(tclass));4.  Conflict resolutionThere are two entities which may modify the traffic class field, in thekernel of the originating node: a kernel IPv6 code with diffserv markingenabled, and an ECN-capable TCP stack.  Those entities may modify thetraffic class field, even if an application tries to manipulate thevalue.  It may present a difficult constraint to the API.  For outboundtraffic, even if an application specifies the value to be put into theHAGINO                  Expires: October 11, 2001               [Page 3]DRAFT               API for IPv6 traffic class field          April 2001traffic class field, in-kernel mechanism(s) may need to modify thefield.  The specified value may not be reflected into the packet on thewire (example: outbound processing in an ECN-capable TCP stack).  Forinbound traffic, even if the kernel presents the value on the field tothe application, the value may not be the same as the value on thepacket on the wire, due to manipulation in the kernel (example: trafficreceived by a diffserv egress node itself).The following text proposes a suggested behavior.  One of the goals ofthe suggestion is to allow applications to implement UDP ECN bythemselves.  The behavior may need more discussions:Outbound traffic     If there is no conflict (for example, the TCP stack is not ECN-     capable), the kernel should honor the value an application     specified, and put the specified value into the traffic class field     as is.  If there is a conflict, the kernel should override the     value specified by the application, for the part of the field     (bits) the kernel is using.  For example, if the kernel has an ECN-     capable TCP stack but does not support diffserv, the kernel should     override ECN bits only.Inbound traffic     Kernel should present the traffic class value appeared on the wire     as is to applications.  Note that, in some cases, the kernel may     want to alter specific bits in the field, before presenting the     value to the userland.  For example, if the kernel implements TCP     ECN and would like to make it transparent to the user programs, the     kernel may want to hide ECN bits>From diffserv and ECN protocol specifications, the traffic class fieldmay be rewritten by intermediate routers.  So even if the senderspecifies a value, the value may be altered before the packet reachesthe final destination.5.  Issueso Revise conflict resolution rule?6.  Security considerationThe API could be used for attempted theft of service.  An attacker maytry to inject packets, with some specific value in traffic class field,into a diffserv cloud.  Refer to RFC2474 [Nichols, 1998] section 7.1 fordetail.  Note that the theft of diffserv service is possible evenwithout the API.HAGINO                  Expires: October 11, 2001               [Page 4]DRAFT               API for IPv6 traffic class field          April 2001ReferencesGilligan, 2000.R. Gilligan, S. Thomson, J. Bound, and W. Stevens, "Basic SocketInterface Extensions for IPv6," internet draft (May 2000). work inprogress material.Stevens, 1999.W. Richard Stevens, Matt Thomas, and Eric Nordmark, "Advanced SocketsAPI for IPv6," internet draft (October 1999). work in progress material.Nichols, 1998.K. Nichols, S. Blake, F. Baker, and D. Black, "Definition of theDifferentiated Services Field (DS Field) in the IPv4 and IPv6 Headers"in RFC2474 (December 1998). ftp://ftp.isi.edu/in-notes/rfc2474.txt.Ramakrishnan, 1999.K. Ramakrishnan and S. Floyd, "A Proposal to add Explicit CongestionNotification (ECN) to IP" in RFC2481 (January 1999).ftp://ftp.isi.edu/in-notes/rfc2481.txt.AcknowledgementsThe document was made possible by numerous invaluable comments frommembers of WIDE research group and KAME team.  Here are people gavecomments on the draft: Brian Carpenter (in no particular order).Change history00 -> 01     Improve the section on security consideration.Author's address     Jun-ichiro itojun HAGINO     Research Laboratory, Internet Initiative Japan Inc.     Takebashi Yasuda Bldg.,     3-13 Kanda Nishiki-cho,     Chiyoda-ku, Tokyo 101-0054, JAPAN     Tel: +81-3-5259-6350     Fax: +81-3-5259-6351     Email: itojun@iijlab.netHAGINO                  Expires: October 11, 2001               [Page 5]

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久 | 亚洲夂夂婷婷色拍ww47| 在线免费一区三区| 美日韩黄色大片| 国产精品欧美一级免费| 欧美性猛交xxxxxx富婆| 日韩精品每日更新| 国产视频视频一区| 91美女视频网站| 免费观看在线色综合| 欧美国产日本韩| 91蜜桃免费观看视频| 九一九一国产精品| 樱桃国产成人精品视频| 精品国精品国产| 91麻豆swag| 精品一区二区久久久| 亚洲欧美日韩国产一区二区三区| 欧美人xxxx| eeuss鲁一区二区三区| 日韩不卡一二三区| 国产视频亚洲色图| 91麻豆精品国产91久久久久久久久| 99久久精品免费看国产免费软件| 蜜桃视频在线一区| 亚洲愉拍自拍另类高清精品| 久久亚洲精精品中文字幕早川悠里| 在线影视一区二区三区| 国产成人高清在线| 麻豆精品一区二区| 亚洲一区二区3| 国产精品五月天| 精品美女在线观看| 56国语精品自产拍在线观看| 色呦呦一区二区三区| 高清国产一区二区| 韩国三级中文字幕hd久久精品| 亚洲成人免费在线| 亚洲免费毛片网站| 中文字幕av不卡| 久久综合av免费| 日韩欧美中文一区| 欧美蜜桃一区二区三区| 欧洲国内综合视频| 91一区一区三区| 国产精品电影院| 欧美成人伊人久久综合网| 欧美在线观看视频一区二区| 成人性生交大片免费看中文| 国产高清无密码一区二区三区| 麻豆精品蜜桃视频网站| 日韩电影免费在线看| 中文字幕一区二区三区四区不卡| 久久久精品日韩欧美| 精品动漫一区二区三区在线观看| 91看片淫黄大片一级在线观看| 成人av网站在线观看免费| 国产美女主播视频一区| 国产呦萝稀缺另类资源| 黑人巨大精品欧美一区| 麻豆91在线播放免费| 七七婷婷婷婷精品国产| 日韩电影在线免费观看| 亚洲一卡二卡三卡四卡五卡| 亚洲激情欧美激情| 国产精品九色蝌蚪自拍| 欧美国产1区2区| 欧美日韩二区三区| 欧美色图在线观看| 国产精品女同互慰在线看| 欧美一级二级在线观看| 99久久婷婷国产精品综合| 美美哒免费高清在线观看视频一区二区| 亚洲精品视频一区| 国产精品少妇自拍| 最好看的中文字幕久久| 亚洲精品高清视频在线观看| 亚洲国产日韩a在线播放| 一区二区在线观看免费视频播放| 亚洲精品中文在线| 亚洲风情在线资源站| 午夜精品aaa| 久久国产福利国产秒拍| 国产成人综合亚洲91猫咪| 国产综合久久久久久久久久久久 | 极品尤物av久久免费看| 蜜臀91精品一区二区三区| 精品一区二区成人精品| 国产激情视频一区二区三区欧美 | 亚洲一区二区三区四区五区黄 | 最近日韩中文字幕| 亚洲欧美日韩国产另类专区| 亚洲午夜精品网| 美女一区二区三区| 成人免费毛片嘿嘿连载视频| 色综合激情五月| 日韩三级电影网址| 日本一区二区在线不卡| 亚洲在线观看免费| 韩国一区二区三区| 色综合久久中文字幕| 欧美一区二区三区性视频| 中文字幕精品一区二区精品绿巨人| 亚洲欧美日韩国产中文在线| 人人超碰91尤物精品国产| 豆国产96在线|亚洲| 欧美日韩在线免费视频| 在线不卡免费av| 国产精品久久精品日日| 蜜桃av一区二区三区电影| 国产日韩v精品一区二区| 亚洲综合免费观看高清完整版在线 | 欧美精品一区二区不卡| 亚洲私人影院在线观看| 毛片不卡一区二区| 色综合天天性综合| 欧美肥妇毛茸茸| 国产精品色哟哟网站| 亚洲影院在线观看| 国产精品一区二区免费不卡| 在线不卡一区二区| 亚洲品质自拍视频| 国产综合色精品一区二区三区| 欧美亚洲自拍偷拍| 国产精品天天看| 久久99精品久久久久久国产越南 | 视频一区视频二区中文| 色哟哟国产精品| 欧美国产成人在线| 国产呦萝稀缺另类资源| 日韩午夜电影av| 亚洲高清视频在线| 99re这里都是精品| 久久综合五月天婷婷伊人| 五月激情丁香一区二区三区| 色菇凉天天综合网| 中文字幕一区在线| 福利一区福利二区| 欧美va亚洲va在线观看蝴蝶网| 一区二区三区在线免费| 成人免费视频app| 久久婷婷一区二区三区| 美女尤物国产一区| 日韩一区二区免费在线观看| 亚洲成av人片在线| 成人免费黄色大片| 国产欧美视频一区二区三区| 精品一二三四区| 欧美日韩成人一区| 亚洲一区二区三区四区的| 91网页版在线| 国产精品久久久久四虎| 成人深夜在线观看| 国产三级精品三级| 国产精品毛片大码女人| 蜜臀av性久久久久蜜臀aⅴ流畅 | 欧美人与禽zozo性伦| 国产精品美女视频| 成人小视频在线| 欧美国产视频在线| gogogo免费视频观看亚洲一| 久久精品理论片| 欧美电影免费观看高清完整版在线观看| 日韩国产欧美在线播放| 欧美高清一级片在线| 一区二区三区中文字幕| 99re8在线精品视频免费播放| 国产精品乱码一区二区三区软件 | 亚洲精品乱码久久久久久日本蜜臀| 91九色最新地址| 欧美aaa在线| 国产日韩欧美激情| 日本久久一区二区| 久久不见久久见免费视频1| 欧美激情一区三区| 欧美综合视频在线观看| 蓝色福利精品导航| 亚洲欧美色一区| 欧美成人激情免费网| 99精品1区2区| 日韩精品一级中文字幕精品视频免费观看 | 亚洲国产一区在线观看| 精品乱人伦小说| 91香蕉视频黄| 美洲天堂一区二卡三卡四卡视频| 欧美经典三级视频一区二区三区| 欧美三级在线播放| 国产91精品一区二区| 三级欧美在线一区| 亚洲国产精品ⅴa在线观看| 欧美色国产精品| 成人免费看片app下载| 蜜臀av亚洲一区中文字幕| 亚洲精品一二三| 国产偷国产偷亚洲高清人白洁| 欧美日韩一区精品| 97精品久久久久中文字幕| 精品一区二区免费在线观看| 亚洲一区二区三区四区五区黄| 国产精品三级久久久久三级|