满天星 发表于 2010-9-12 16:35:36

三层IPv6 Next Head协议号取值范围及含义

在IPv4中,该字段IPv4包头中的protocol指定上层协议号,而IPv6中则由IPv6基本包头中的next head字段指定,该字段值固定8bit,因此取值范围为0-255,各取值代表不同的上层协议,就像二层Ethertype指定上层承载的协议一样。
比如我们比较常用的:
1为ICMP,2为IGMP,6为TCP协议,17为UDP协议,88为EIGRP,89为OSPF协议等,而4为IPv4协议号,41为IPv6协议号,47为GRE头。
而针对IPv6中,我们的各种扩展头也由此部分定义,比如IPv6中比较常用的几个扩展头为:
0为IPv6 hop-by-hop逐跳选项扩展头,43为IPv6路由扩展头,44为IPv6分片扩展头,50为ESP加密头,51为AH认证头,58为ICMPv6,59为no next head无下一个头部,60为IPv6目的选择扩展头。

以下列表为各字段的定义:

   Decimal   Keyword                   Protocol                                                    Reference
      0    HOPOPT          IPv6 Hop-by-Hop Option               
      1    ICMP            Internet Control Message            
      2    IGMP            Internet Group Management            
      3    GGP             Gateway-to-Gateway                  
      4    IPv4            IPv4 encapsulation                  
      5    ST            Stream                              
      6    TCP             Transmission Control                  
      7    CBT             CBT                                 
      8    EGP             Exterior Gateway Protocol            
      9    IGP             any private interior gateway (used by
                           Cisco for their IGRP)
   10    BBN-RCC-MON   BBN RCC Monitoring                  
   11    NVP-II          Network Voice Protocol               
                                                               [Boggs, D., J. Shoch, E. Taft, and R. Metcalfe, "PUP: An Internetwork
   12    PUP             PUP                                 Architecture", XEROX Palo Alto Research Center, CSL-79-10, July 1979; also in IEEE
                                                               Transactions on Communication, Volume COM-28, Number 4, April 1980.][]
   13    ARGUS         ARGUS                                 
   14    EMCON         EMCON                                 [<mystery contact>]
   15    XNET            Cross Net Debugger                  [Haverty, J., "XNET Formats for Internet Protocol Version 4", IEN 158, October
                                                               1980.]
   16    CHAOS         Chaos                                 
   17    UDP             User Datagram                        
   18    MUX             Multiplexing                        [Cohen, D. and J. Postel, "Multiplexing Protocol", IEN 90, USC/Information
                                                               Sciences Institute, May 1979.]
   19    DCN-MEAS      DCN Measurement Subsystems            
   20    HMP             Host Monitoring                     
   21    PRM             Packet Radio Measurement            
                                                               ["The Ethernet, A Local Area Network: Data Link Layer and Physical Layer
                                                               Specification", AA-K759B-TK, Digital Equipment Corporation, Maynard, MA. Also as:
                                                               "The Ethernet - A Local Area Network", Version 1.0, Digital Equipment Corporation,
   22    XNS-IDP         XEROX NS IDP                        Intel Corporation, Xerox Corporation, September 1980. And: "The Ethernet, A Local
                                                               Area Network: Data Link Layer and Physical Layer Specifications", Digital, Intel
                                                               and Xerox, November 1982. And: XEROX, "The Ethernet, A Local Area Network: Data
                                                               Link Layer and Physical Layer Specification", X3T51/80-50, Xerox Corporation,
                                                               Stamford, CT., October 1980.][]
   23    TRUNK-1         Trunk-1                              
   24    TRUNK-2         Trunk-2                              
   25    LEAF-1          Leaf-1                              
   26    LEAF-2          Leaf-2                              
   27    RDP             Reliable Data Protocol               
   28    IRTP            Internet Reliable Transaction         
   29    ISO-TP4         ISO Transport Protocol Class 4      [<mystery contact>]
   30    NETBLT          Bulk Data Transfer Protocol         
                                                               [Shuttleworth, B., "A Documentary of MFENet, a National Computer Network",
   31    MFE-NSP         MFE Network Services Protocol         UCRL-52317, Lawrence Livermore Labs, Livermore, California, June
                                                               1977.]
   32    MERIT-INP       MERIT Internodal Protocol            
   33    DCCP            Datagram Congestion Control Protocol
   34    3PC             Third Party Connect Protocol         
   35    IDPR            Inter-Domain Policy Routing Protocol
   36    XTP             XTP                                 
   37    DDP             Datagram Delivery Protocol            
   38    IDPR-CMTP       IDPR Control Message Transport Proto
   39    TP++            TP++ Transport Protocol               
   40    IL            IL Transport Protocol               
   41    IPv6            IPv6 encapsulation                  
   42    SDRP            Source Demand Routing Protocol      
   43    IPv6-Route      Routing Header for IPv6               
   44    IPv6-Frag       Fragment Header for IPv6            
   45    IDRP            Inter-Domain Routing Protocol         
   46    RSVP            Reservation Protocol                  
   47    GRE             General Routing Encapsulation         
   48    DSR             Dynamic Source Routing Protocol      
   49    BNA             BNA                                 
   50    ESP             Encap Security Payload               
   51    AH            Authentication Header               
   52    I-NLSP          Integrated Net Layer Security TUBA   
   53    SWIPE         IP with Encryption                  
   54    NARP            NBMA Address Resolution Protocol      
   55    MOBILE          IP Mobility                           
   56    TLSP            Transport Layer Security Protocol   
                           using Kryptonet key management
   57    SKIP            SKIP                                 
   58    IPv6-ICMP       ICMP for IPv6                        
   59    IPv6-NoNxt      No Next Header for IPv6               
   60    IPv6-Opts       Destination Options for IPv6         
   61                  any host internal protocol            
   62    CFTP            CFTP                                  [Forsdick, H., "CFTP", Network Message, Bolt Beranek and Newman, January
                                                               1982.]
   63                  any local network                     
   64    SAT-EXPAK       SATNET and Backroom EXPAK            
   65    KRYPTOLAN       Kryptolan                           
   66    RVD             MIT Remote Virtual Disk Protocol      
   67    IPPC            Internet Pluribus Packet Core         
   68                  any distributed file system         
   69    SAT-MON         SATNET Monitoring                     
   70    VISA            VISA Protocol                        
   71    IPCV            Internet Packet Core Utility         
   72    CPNX            Computer Protocol Network Executive   
   73    CPHB            Computer Protocol Heart Beat         
   74    WSN             Wang Span Network                     
   75    PVP             Packet Video Protocol               
   76    BR-SAT-MON      Backroom SATNET Monitoring            
   77    SUN-ND          SUN ND PROTOCOL-Temporary            
   78    WB-MON          WIDEBAND Monitoring                  
   79    WB-EXPAK      WIDEBAND EXPAK                        
   80    ISO-IP          ISO Internet Protocol               
   81    VMTP            VMTP                                 
   82    SECURE-VMTP   SECURE-VMTP                           
   83    VINES         VINES                                 
   84    TTP             TTP                                 
   85    NSFNET-IGP      NSFNET-IGP                           
   86    DGP             Dissimilar Gateway Protocol         [M/A-COM Government Systems, "Dissimilar Gateway Protocol Specification, Draft
                                                               Version", Contract no. CS901145, November 16, 1987.]
   87    TCF             TCF                                 
   88    EIGRP         EIGRP                                 [Cisco Systems, "Gateway Server Reference Manual", Manual Revision B, January 10,
                                                               1988.]
   89    OSPFIGP         OSPFIGP                              
                                                               [Welch, B., "The Sprite Remote Procedure Call System", Technical Report,
   90    Sprite-RPC      Sprite RPC Protocol                   UCB/Computer Science Dept., 86/302, University of California at Berkeley, June
                                                               1986.]
   91    LARP            Locus Address Resolution Protocol   
   92    MTP             Multicast Transport Protocol         
   93    AX.25         AX.25 Frames                        
   94    IPIP            IP-within-IP Encapsulation Protocol   
   95    MICP            Mobile Internetworking Control Pro.   
   96    SCC-SP          Semaphore Communications Sec. Pro.   
   97    ETHERIP         Ethernet-within-IP Encapsulation      
   98    ENCAP         Encapsulation Header                  
   99                  any private encryption scheme         
   100   GMTP            GMTP                                  []
   101   IFMP            Ipsilon Flow Management Protocol      
   102   PNNI            PNNI over IP                        
   103   PIM             Protocol Independent Multicast      
   104   ARIS            ARIS                                 
   105   SCPS            SCPS                                 
   106   QNX             QNX                                 
   107   A/N             Active Networks                     
   108   IPComp          IP Payload Compression Protocol      
   109   SNP             Sitara Networks Protocol            
   110   Compaq-Peer   Compaq Peer Protocol                  
   111   IPX-in-IP       IPX in IP                           
   112   VRRP            Virtual Router Redundancy Protocol   
   113   PGM             PGM Reliable Transport Protocol      
   114                   any 0-hop protocol                  
   115   L2TP            Layer Two Tunneling Protocol         
   116   DDX             D-II Data Exchange (DDX)            
   117   IATP            Interactive Agent Transfer Protocol   
   118   STP             Schedule Transfer Protocol            
   119   SRP             SpectraLink Radio Protocol            
   120   UTI             UTI                                 
   121   SMP             Simple Message Protocol               
   122   SM            SM                                    
   123   PTP             Performance Transparency Protocol   
   124   ISIS over IPv4                                       
   125   FIRE                                                
   126   CRTP            Combat Radio Transport Protocol      
   127   CRUDP         Combat Radio User Datagram            
   128   SSCOPMCE                                             
   129   IPLT                                                []
   130   SPS             Secure Packet Shield                  
   131   PIPE            Private IP Encapsulation within IP   
   132   SCTP            Stream Control Transmission Protocol
   133   FC            Fibre Channel                        
   134   RSVP-E2E-IGNORE                                       
   135   Mobility Header                                       
   136   UDPLite                                             
   137   MPLS-in-IP                                          
   138   manet         MANET Protocols                     
   139   HIP             Host Identity Protocol               
   140   Shim6         Shim6 Protocol                        
   141   WESP            Wrapped Encapsulating Security      
                           Payload
   142   ROHC            Robust Header Compression            
   143-252               Unassigned                           
   253                   Use for experimentation and testing   
   254                   Use for experimentation and testing   
   255   Reserved                                             

该列表由IANA维护,最新数据可通过http://www.iana.org/assignments/protocol-numbers查看
页: [1]
查看完整版本: 三层IPv6 Next Head协议号取值范围及含义