Header
Home | Set as homepage | Add to favorites
  Search the Site     » Advanced Search
Sections
Syndication


Blogroll:

||||| ALL Cisco-Network ARTICLES |||||  
CCIE Journey,
The CCIE Journey,


Encapsulating an IP Packet in an Ethernet Frame

Nov 24,2008 by alperen

image

Encapsulating an IP Packet in an Ethernet Frame


A quick review of Ethernet encapsulation might be helpful. Other layers' protocols add only a header when they encapsulate data. However, data link layer protocolsEthernet includedadd both a header and a trailer, with the IP packet being placed between the header and trailer. The Ethernet header contains several fields, including both the source and destination Ethernet address fields. The trailer contains the frame check sequence (FCS) field, which determines whether errors occurred during physical transmission; if errors did occur, the receiver discards the frame.

In Figure 11-3, Hannah's PC takes the following steps to encapsulate and send the IP packet into an Ethernet frame:

1.
Create a new Ethernet header.

2.
Set the source Ethernet address to Hannah's Ethernet address.

3.
Set the destination Ethernet address to R1's address.

4.
Create a new trailer.

5.
Insert an IP packet into the frame.

6.
Send the frame.

By encapsulating the IP packet in an Ethernet frame, Hannah has created something that can be transmitted across the Ethernet LAN. Now Hannah just has to solve the other problem of making sure that the frame gets to R1 and making sure that R1 processes the frame when it is received.

While you're thinking about encapsulation, it's a good idea to review encapsulation at the other layers. All layers of the TCP/IP model use encapsulation, but now you've seen how it works at each layer. For instance, the HTTP protocol defines headers, and when a web browser or web server sends data, HTTP encapsulates the data inside an HTTP header. It's useful to see all the headers in at least one example, as shown in Figure 11-4. This figure shows the Ethernet, IP, TCP, and HTTP headers, along with the end user data (a web page) in the response from the web server.


424 times read

Related news

» The Useful but Short Life of an Ethernet Frame
by alperen posted on Nov 24,2008
» Yet Another Ethernet Data Link Frame
by alperen posted on Nov 24,2008
» LAN-Legal Data: An Ethernet Frame
by alperen posted on Nov 23,2008
» Ethernet Source and Destination Addresses
by alperen posted on Nov 23,2008
» You Can't Just Send Data; You Have to Send a Frame
by alperen posted on Nov 25,2008
Did you enjoy this article?
(total 0 votes)

comment Comments (0 posted) 

More Top News
CCSP-Cisco Certified Security Professional
Most Popular
Most Commented
Featured Author