Xray @ net, a brief description of the implementation method of protocol plug-ins

Source: Internet
Author: User

At the OSI layer, there are too many protocols to be supported on Ethernet. If we need to allow Xray (a) net to support so many protocols, there is no better way to implement the plug-in. Therefore, I have considered a method to configure the plug-in through XML. The following is the description of the Protocol under Ethernet frame under my Xray @ net, the extension class of Xray @ net parses similar XML and caches it To the memory, determine the port number of the current packet in the Ethernet frame unpacking thread, then determine the protocol type, and then confirm the protocol type of the next layer through another ptnumber.

I have learned how to use etherpeek. etherpeek is clever and may use XSLT for display. If you are interested, you can discuss it.

// Etnumber. xml --> Ethernet frame type definition.

<? XML version = "1.0" encoding = "gb2312"?>
<! Doctype etnumber System "etnumber. DTD">
<! --
Ether types (Last updated 2001-05-01)
Limitations of the networks of all classes are ethernets (10 MB) or
Experimental ethernets (3 MB). These systems use a message "type"
Field in much the same way the ARPANET uses the "Link" field.
Ethernet exp. Ethernet description references
Decimal hex decimal octal
-->
<Etnumber DESC = "Ether types code">
<Number decimal = "0000" hex = "-05dc" Description = "802.3 length field" references = "Xerox"/>
<Number decimal = "0257" hex = "0101-01ff" Description = "experimental" references = "Xerox"/>
<Number decimal = "0512" hex = "0200" Description = "Xerox pup (see 0a00)" references = "8, Xerox"/>
<Number decimal = "0513" hex = "0201" Description = "Pup ADDR trans (see 0a01)" references = "Xerox"/>
<Number decimal = "1536" hex = "0600" Description = "Xerox ns idp" references = "133, Xerox"/>
<Number decimal = "2048" hex = "0800" Description = "Internet IP (IPv4)" references = "IANA"/>
<Number decimal = "2049" hex = "0801" Description = "x.75 Internet" references = "Xerox"/>
<Number decimal = "2050" hex = "0802" Description = "NBS Internet" references = "Xerox"/>
<Number decimal = "2051" hex = "0803" Description = "ECMA Internet" references = "Xerox"/>
<Number decimal = "2052" hex = "0804" Description = "chaosnet" references = "Xerox"/>
<Number decimal = "2053" hex = "0805" Description = "X.25 Level 3" references = "Xerox"/>
<Number decimal = "2054" hex = "0806" Description = "ARP Address Resolution Protocol" references = "IANA"/>
<Number decimal = "2055" hex = "0807" Description = "xns compatability" references = "Xerox"/>
<Number decimal = "2056" hex = "0808" Description = "Frame Relay ARP" references = "rfc1701"/>
<Number decimal = "2076" hex = "081c" Description = "symbolics private" references = "dcp1"/>
<Number decimal = "2184" hex = "0888-088a" Description = "xyplex" references = "Xerox"/>
<Number decimal = "2304" hex = "0900" Description = "ungermann-bass net debugr" references = "Xerox"/>
<Number decimal = "2560" hex = "0a00" Description = "Xerox 802.3 pup" references = "Xerox"/>
<Number decimal = "2561" hex = "0a01" Description = "Pup ADDR trans" references = "Xerox"/>
<Number decimal = "2989" hex = "0bad" Description = "Banyan vines" references = "Xerox"/>
<Number decimal = "2990" hex = "0bae" Description = "vines loopback" references = "rfc1701"/>
<Number decimal = "2991" hex = "0baf" Description = "vines echo" references = "rfc1701"/>
<Number decimal = "4096" hex = "1000" Description = "Berkeley trailer nego" references = "Xerox"/>
<Number decimal = "4097" hex = "1001-100f" Description = "Berkeley trailer encap/IP" references = "Xerox"/>
<Number decimal = "5632" hex = "1600" Description = "valid systems" references = "Xerox"/>
<Number decimal = "16962" hex = "4242" Description = "PCs basic block protocol" references = "Xerox"/>
<Number decimal = "21000" hex = "5208" Description = "BBN simnet" references = "Xerox"/>
<Number decimal = "24576" hex = "6000" Description = "Dec unassigned (exp.)" references = "Xerox"/>
<Number decimal = "24577" hex = "6001" Description = "Dec mop dump/load" references = "Xerox"/>
<Number decimal = "24578" hex = "6002" Description = "Dec mop remote console" references = "Xerox"/>
<Number decimal = "24579" hex = "6003" Description = "Dec decnet Phase IV route" references = "Xerox"/>
<Number decimal = "24580" hex = "6004" Description = "Dec LAT" references = "Xerox"/>
<Number decimal = "24581" hex = "6005" Description = "Dec diagnostic protocol" references = "Xerox"/>
<Number decimal = "24582" hex = "6006" Description = "Dec customer protocol" references = "Xerox"/>
<Number decimal = "24583" hex = "6007" Description = "Dec lavc, SCA" references = "Xerox"/>
<Number decimal = "24584" hex = "6008-6009" Description = "Dec unassigned" references = "Xerox"/>
<Number decimal = "24586" hex = "6010-6014" Description = "3Com Corporation" references = "Xerox"/>
<Number decimal = "25944" hex = "6558" Description = "Trans ether bridging" references = "rfc1701"/>
<Number decimal = "25945" hex = "6559" Description = "raw Frame Relay" references = "rfc1701"/>
<Number decimal = "28672" hex = "7000" Description = "ungermann-bass download" references = "Xerox"/>
<Number decimal = "28674" hex = "7002" Description = "ungermann-bass Dia/loop" references = "Xerox"/>
<Number decimal = "28704" hex = "7020-7029" Description = "LRT" references = "Xerox"/>
<Number decimal = "28720" hex = "7030" Description = "proteon" references = "Xerox"/>
<Number decimal = "28724" hex = "7034" Description = "Cabletron" references = "Xerox"/>
<Number decimal = "32771" hex = "8003" Description = "Cronus VlN" references = "131, dt15"/>
<Number decimal = "32772" hex = "8004" Description = "Cronus direct" references = "131, dt15"/>
<Number decimal = "32773" hex = "8005" Description = "HP probe" references = "Xerox"/>
<Number decimal = "32774" hex = "8006" Description = "Nestar" references = "Xerox"/>
<Number decimal = "32776" hex = "8008" Description = "atnt" references = "Xerox"/>
<Number decimal = "32784" hex = "8010" Description = "excelan" references = "Xerox"/>
<Number decimal = "32787" hex = "8013" Description = "SGI Diagnostics" references = "axc"/>
<Number decimal = "32788" hex = "8014" Description = "SGI network games" references = "axc"/>
<Number decimal = "32789" hex = "8015" Description = "SGI reserved" references = "axc"/>
<Number decimal = "32790" hex = "8016" Description = "SGI bounce server" references = "axc"/>
<Number decimal = "32793" hex = "8019" Description = "Apollo Domain" references = "Xerox"/>
<Number decimal = "32815" hex = "802e" Description = "tymshare" references = "Xerox"/>
<Number decimal = "32816" hex = "802f" Description = "Tigan, Inc." references = "Xerox"/>
<Number decimal = "32821" hex = "8035" Description = "reverse ARP" references = "48, jxm"/>
<Number decimal = "32822" hex = "8036" Description = "aeonic systems" references = "Xerox"/>
<Number decimal = "32824" hex = "8038" Description = "Dec lanbridge" references = "Xerox"/>
<Number decimal = "32825" hex = "8039-803c" Description = "Dec unassigned" references = "Xerox"/>
<Number decimal = "32829" hex = "803d" Description = "Dec Ethernet encryption" references = "Xerox"/>
<Number decimal = "32830" hex = "803e" Description = "Dec unassigned" references = "Xerox"/>
<Number decimal = "32831" hex = "803f" Description = "Dec LAN traffic monitor" references = "Xerox"/>
<Number decimal = "32832" hex = "8040-8042" Description = "Dec unassigned" references = "Xerox"/>
<Number decimal = "32836" hex = "8044" Description = "Planning Research Corp." references = "Xerox"/>
<Number decimal = "32838" hex = "8046" Description = "at_t" references = "Xerox"/>
<Number decimal = "32839" hex = "8047" Description = "at_t" references = "Xerox"/>
<Number decimal = "32841" hex = "8049" Description = "experdata" references = "Xerox"/>
<Number decimal = "32859" hex = "805b" Description = "Stanford v kernel exp." references = "Xerox"/>
<Number decimal = "32860" hex = "805c" Description = "Stanford v kernel prod." references = "Xerox"/>
<Number decimal = "32861" hex = "805d" Description = "Evans _ Sutherland" references = "Xerox"/>
<Number decimal = "32864" hex = "8060" Description = "little machines" references = "Xerox"/>
<Number decimal = "32866" hex = "8062" Description = "counterpoint computers" references = "Xerox"/>
<Number decimal = "32869" hex = "8065" Description = "Univ. Of mass. @ Amherst" references = "Xerox"/>
<Number decimal = "32870" hex = "8066" Description = "Univ. Of mass. @ Amherst" references = "Xerox"/>
<Number decimal = "32871" hex = "8067" Description = "VEECO Integrated Auto." references = "Xerox"/>
<Number decimal = "32872" hex = "8068" Description = "General Dynamics" references = "Xerox"/>
<Number decimal = "32873" hex = "8069" Description = "at_t" references = "Xerox"/>
<Number decimal = "32874" hex = "806a" Description = "autophon" references = "Xerox"/>
<Number decimal = "32876" hex = "806c" Description = "comdesign" references = "Xerox"/>
<Number decimal = "32877" hex = "806d" Description = "computgraphic Corp." references = "Xerox"/>
<Number decimal = "32878" hex = "806e-8077" Description = "Landmark Graphics Corp." references = "Xerox"/>
<Number decimal = "32890" hex = "807a" Description = "Matra" references = "Xerox"/>
<Number decimal = "32891" hex = "807b" Description = "Dansk data elektronik" references = "Xerox"/>
<Number decimal = "32892" hex = "807c" Description = "merit Internodal" references = "hwb"/>
<Number decimal = "32893" hex = "807d-807f" Description = "vitalink communications" references = "Xerox"/>
<Number decimal = "32896" hex = "8080" Description = "vitalink translan III" references = "Xerox"/>
<Number decimal = "32897" hex = "8081-8083" Description = "counterpoint computers" references = "Xerox"/>
<Number decimal = "32923" hex = "809b" Description = "appletalk" references = "Xerox"/>
<Number decimal = "32924" hex = "809c-809e" Description = "datability" references = "Xerox"/>
<Number decimal = "32927" hex = "809f" Description = "Spider Systems Ltd." references = "Xerox"/>
<Number decimal = "32931" hex = "80a3" Description = "nixdorf computers" references = "Xerox"/>
<Number decimal = "32932" hex = "80a4-80b3" Description = "Siemens gammasonics Inc." references = "Xerox"/>
<Number decimal = "32960" hex = "80c0-80c3" Description = "DCA data exchange cluster" references = "Xerox"/>
<Number decimal = "32964" hex = "80c4" Description = "Banyan systems" references = "Xerox"/>
<Number decimal = "32965" hex = "80C5" Description = "Banyan systems" references = "Xerox"/>
<Number decimal = "32966" hex = "80c6" Description = "PACER software" references = "Xerox"/>
<Number decimal = "32967" hex = "80c7" Description = "applitek Corporation" references = "Xerox"/>
<Number decimal = "32968" hex = "80c8-80cc" Description = "Intergraph Corporation" references = "Xerox"/>
<Number decimal = "32973" hex = "80cd-80ce" Description = "Harris Corporation" references = "Xerox"/>
<Number decimal = "32975" hex = "80cf-80d2" Description = "Taylor instrument" references = "Xerox"/>
<Number decimal = "32979" hex = "80d3-80d4" Description = "rosemount Corporation" references = "Xerox"/>
<Number decimal = "32981" hex = "80d5" Description = "ibm sna service on Ether" references = "Xerox"/>
<Number decimal = "32989" hex = "80dd" Description = "Varian Associates" references = "Xerox"/>
<Number decimal = "32990" hex = "80de-80df" Description = "integrated solutions trfs" references = "Xerox"/>
<Number decimal = "32992" hex = "80e0-80e3" Description = "Allen-Bradley" references = "Xerox"/>
<Number decimal = "32996" hex = "80e4-80f0" Description = "datability" references = "Xerox"/>
<Number decimal = "33010" hex = "80f2" Description = "retix" references = "Xerox"/>
<Number decimal = "33011" hex = "80f3" Description = "appletalk AARP (kinetics)" references = "Xerox"/>
<Number decimal = "33012" hex = "80f4-80f5" Description = "kinetics" references = "Xerox"/>
<Number decimal = "33015" hex = "80f7" Description = "Apollo computer" references = "Xerox"/>
<Number decimal = "33023" hex = "80ff-8103" Description = "Wellfleet communications" references = "Xerox"/>
<Number decimal = "33031" hex = "8107-8109" Description = "symbolics private" references = "Xerox"/>
<Number decimal = "33072" hex = "8130" Description = "Hayes microcomputers" references = "Xerox"/>
<Number decimal = "33073" hex = "8131" Description = "VG laboratory systems" references = "Xerox"/>
<Number decimal = "33074" hex = "8132-8136" Description = "bridge communications" references = "Xerox"/>
<Number decimal = "33079" hex = "8137-8138" Description = "Novell, Inc." references = "Xerox"/>
<Number decimal = "33081" hex = "8139-813d" Description = "KTI" references = "Xerox"/>
<Number decimal = "33100" hex = "814c" Description = "SNMP" references = "jkr1"/>
<Number decimal = "34916" hex = "8864" Description = "pppoe SESSION (PPP over Ethernet)" references = "unknown"/>
<Number decimal = "34525" hex = "86dd" Description = "IPv6" references = "IANA"/>
<Number decimal = "34543" hex = "86df" Description = "Atomic" references = "Postel"/>
<Number decimal = "34667" hex = "876b" Description = "TCP/IP compression" references = "rfc1144"/>
<Number decimal = "34668" hex = "876c" Description = "ip Autonomous Systems" references = "rfc1701"/>
<Number decimal = "34669" hex = "876d" Description = "secure data" references = "rfc1701"/>
<Number decimal = "34827" hex = "880b" Description = "PPP" references = "IANA"/>
<Number decimal = "36864" hex = "9000" Description = "loopback" references = "Xerox"/>
<Number decimal = "36865" hex = "9001" Description = "3Com (BRIDGE) xns sys MGMT" references = "Xerox"/>
<Number decimal = "36866" hex = "9002" Description = "3Com (BRIDGE) TCP-IP sys" references = "Xerox"/>
<Number decimal = "36867" hex = "9003" Description = "3Com (BRIDGE) loop detect" references = "Xerox"/>
<Number decimal = "65280" hex = "ff00" Description = "BBN vital-lanbridge cache" references = "Xerox"/>
<Number decimal = "65535" hex = "ffff" Description = "Reserved" references = "rfc1701"/>
</Etnumber>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.