The upper application encapsulates the data into an IP packet and then encapsulates it into a frame (the router receives a data frame, forwards a data frame, not a packet, he simply takes the number of received frames apart, exposing the three-layer header, The IP address in the header in the packet is only to determine the destination of the forwarding.
frame = Frame Header control information + data part + Frame end
The format of the frame is determined by the encapsulation protocol of the interface + the upper application together.
For example: Cisco serial port (ICMP message test)
interface is encapsulated by default HDLC Frame
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/77/F5/wKiom1ZyOmziJJdcAABE-xC598Q516.png "title=" 1.png " alt= "Wkiom1zyomzijjdcaabe-xc598q516.png"/>
interface-Encapsulated PPP's Frame
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/77/F5/wKiom1ZyOq6QNgN-AABRvGY2np0798.png "title=" 2.png " alt= "Wkiom1zyoq6qngn-aabrvgy2np0798.png"/>
Ethernet frame:
Default Encapsulation protocol: ARPA (the predecessor of Ethernet, which is used to represent the protocol of the two frames of the encapsulated Ethernet)
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/77/F5/wKiom1ZyOyiDMIqkAABBaJ3k0ds130.png "title=" 3.png " alt= "Wkiom1zyoyidmiqkaabbaj3k0ds130.png"/>
two different formats :
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/F4/wKioL1ZyO1GhBEoJAABXrWaIvZs132.png "title=" 4.png " alt= "Wkiol1zyo1ghbeojaabxrwaivzs132.png"/>
Ethernet is originally IBM the private agreement of the company, which was later publicly owned by the IEEE Public organization, and IBM He also made him public, so the two kinds of Ethernet frames were created
Application Scenario: Application by upper layer + ARPA decision
first of all, the encapsulation of your interface is ARPA protocol, you can use one of two types of frame formats
for E2 and the 802.3 the selection of frames is:
E2 : For the forwarding of real data, such as files, videos, images, etc.
802.3 : Frame encapsulation using some control plane information, like Cisco's cdp/vtp/p AGP/UDLD
E2
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/77/F4/wKioL1ZyPBGCfu_zAAAv9GQ_LRk070.png "style=" float: none; "title=" 5.png "alt=" Wkiol1zypbgcfu_zaaav9gq_lrk070.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/77/F4/wKioL1ZyPBLj_TWwAABRwbtsSV0909.png "title=" 6.png " alt= "Wkiol1zypblj_twwaabrwbtssv0909.png"/>
802.3650) this.width=650; "Src=" http://s4.51cto.com/wyfs02/M02/77/F5/wKiom1ZyPG_RbqttAABq1SltPgA395.png "Title=" 7.png "alt=" Wkiom1zypg_rbqttaabq1sltpga395.png "/>
The format of two types of frames
650) this.width=650; "Src=" http://s1.51cto.com/wyfs02/M01/77/F5/ Wkiom1zypljcmle4aacphw4tq5m342.png "style=" Float:none; "title=" 8.png "alt=" wkiom1zypljcmle4aacphw4tq5m342.png "/ >650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/F4/wKioL1ZyPMLRmpYtAABlOmZBllc145.png "title=" 9. PNG "alt=" Wkiol1zypmlrmpytaablomzbllc145.png "/>
EEE802.3 frame format similar to ethernet_ii frame, just ethernet_ii frame Span style= "font-family:arial;" >type field is 802.3 length field replaced, and occupied Span style= "font-family:arial;" >data field 8 LLC and snap field.
Length Field defines the Data the number of bytes that the field contains.
Logical Link ControlLLC(Logical Link Control) service access point by DestinationDsap(Destination Service Access Point), source service access PointSSAP(Source Service Access Point) andControlThe fields are composed.
SNAP(sub-network Access Protocol) by the agency code (Org Code) and type (Type) fields. ORG Codethree bytes are0. Typethe meaning of the fieldEthernet_IIin the frameTypefields are the same. IEEE802.3frame based onDsapand theSSAPthe value of a field can be divided into the following categories:
1) when dsap and SSAP Both take a specific value of 0xff ,802.3 the frame becomes netware- .
ETHERNET frames that are used to host NetWare type of data.
2 ) When Dsap and the SSAP take a specific value 0xaa when the 802.3 the frame becomes
Ethernet_snap frame. ethernet_snap frames can be used to transfer multiple
type of protocol.
3 ) Dsap and the SSAP the other values are pure IEEE802.3 frame.
differentiate:whenTypefield value is less than or equal to the(or a hexadecimal0X05DC), the frame uses theIEEE 802.3format. WhenTypefield value is greater than or equal to1536(or a hexadecimal0x0600), the frame uses theEthernet IIformat. Most of the data frames in Ethernet use theEthernet IIformat.
This article is from the "11001675" blog, please be sure to keep this source http://11011675.blog.51cto.com/11001675/1725599
Format of two frames of Ethernet