Hardware Secrets
Home | Camera | Case | CE | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
Gabriel's Blog
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Twitter
Newsletter
Subscribe today!
Search




Recommended
Wireless Home Networking For Dummies
Wireless Home Networking For Dummies, by Edward Ferris (For Dummies), starting at $10.83
Home » Networking
How TCP/IP Protocol Works - Part 1
Author: Gabriel Torres
Type: Tutorials Last Updated: March 28, 2007
Page: 4 of 6
$ Check REAL-TIME pricing for Brother MFC-9440CN MultiFunction Color Laser Printer - 2400 x 600 dpi 21 ppm Copy Scan Fax 64MB Network $.
CircuitCity: $599.99 Newegg: $539.99
Wal-Mart: $598.00 Amazon: $507.24

Internet Layer

On TCP/IP networks each computer is identified with a unique virtual address, called IP address. The Internet layer is in charge of adding a header to the data packet received from the Transport layer where, among other control data, it will add the source IP address and the target IP address – i.e. the IP address of the computer that is sending the data and the IP address of the computer that should receive the data.

The network card of each computer has a physical address assigned to it. This address is written on the network card read-only memory (ROM) and is called MAC address. So on a local area network whenever computer A wants to send data to computer B, it will have to know computer’s B MAC address. While on a small local area network computers can easily discover each other’s MAC address, this isn’t an easy task on a global network like the Internet.

If no virtual addressing were used, you would have to know the MAC address of the destination computer, which is not only a hard task, but also does not help out packet routing, because it does not use a tree-like structure (putting in other words, while using virtual addresses computers on the same network will have sequential addresses, with MAC addresses the computer with the next sequential MAC address to yours may be in Russia).

Routing is the path that a data packet should use in order to arrive at destination. When requesting data from an Internet server, for example, this data passes thru several locations (called routers) before arriving at your computer. If you want to see this in action, try this: click on Start, Run, Cmd. Then on the command prompt type in tracert www.google.com. The output will be the path between your computer and Google’s web server. See how the data packet passes thru several different routers before arriving at its destination. Each router in the middle of the road is also called hop.

On every network that is connected to the Internet there is a device called router, which makes the bridge between the computers on your local area network and the Internet. Every router has a table with its known networks and also a configuration called default gateway pointing to another router on the Internet. When your computer sends a data packet to the Internet, the router connected to your network first looks if it knows the target computer – in other words, if the target computer is located on the same network or on a network that the router knows the path to. If it doesn’t know, it will send the packet to its default gateway, i.e. to another router. Then the process repeats until the data packet arrives at its destination.

There are several protocols that work on the Internet layer: IP (Internet Protocol), ICMP (Internet Control Message Protocol), ARP (Address Resolution Protocol) and RARP (Reverse Address Resolution Protocol). Data packets are sent using the IP protocol, so that is the protocol we will explain.

IP protocol gets the data packets received from the Transport layer (from TCP protocol if you are transmitting real data like e-mails or files) and divide them into datagrams. Datagram is a packet that does not have any kind acknowledge system, meaning that IP does not implement any acknowledge system, thus it is an unreliable protocol.

You must note that when transferring data TCP protocol will be used on top, and TCP implements an acknowledge system. Thus even though IP protocol does not check whether the datagram arrived at the destination, the TCP protocol will. The connection will be then reliable, even though IP protocol alone isn’t reliable.

Each IP datagram can have a maximum size of 65,535 bytes, including its header, which can use 20 or 24 bytes, depending whether a field called “options” is used or not. Thus IP datagrams can carry up to 65,515 or 65,511 bytes of data. If the data packet received from the Transport layer is bigger than 65,515 or 65,511 bytes, IP protocol will cut the packet down in as many datagrams as necessary.

On Figure 4 we illustrate the datagram generated on the Internet layer by the IP protocol. It is interesting to notice that what the Internet layer sees as “data” is the whole packet it got from the Transport layer, which includes the TCP or UDP header. This datagram will be sent to the Network Interface layer (if we are transmitting data) or was sent from the Network Interface layer (if we are receiving data).

As we mentioned before, the header added by the IP protocol includes the source IP address, the target IP address and several other control information.

TCP/IP Protocol
click to enlarge
Figure 4: Datagram on the Internet layer.

Pages (6): « 1 2 3 [4] 5 6 »
Print Version | Send to Friend | | Bookmark Article | Comments (0)

Related Content
  • How to Discover Your Network Card Real Manufacturer
  • How to Build a Wireless Network Without Using a Broadband Router
  • How to Build a Network Using a Cross-Over Cable
  • The OSI Reference Model for Network Protocols
  • How TCP/IP Protocol Works - Part 2

  • Recommended Deal.
    MIMO Router Plus 4-Port cheap WirelessBelkin F5D9230-4 Wireless G Plus MIMO Router


    6ave: $29.99

    RSSLatest News
    IN WIN LAN Party in Southern California
    November 20, 2009 - 12:37 PM PST
    Patriot Announces PS-100 SSD Series
    November 19, 2009 - 7:30 AM PST
    Antec Launches TPQ-1200 PSU
    November 18, 2009 - 11:30 AM PST
    AMD/ATI Launches Radeon HD 5970
    November 18, 2009 - 10:18 AM PST
    OCZ Launches Colossus SSD Series
    November 17, 2009 - 1:39 PM PST
    NZXT Unleashes Tempest EVO Mid-Tower Case
    November 17, 2009 - 1:06 PM PST
    nVidia Launches GeForce GT 240
    November 17, 2009 - 10:18 AM PST
    Arctic Cooling Announces Accelero TWIN TURBO PRO VGA Cooler
    November 16, 2009 - 11:46 AM PST
    PowerColor Announces PLAY! HD5770 Video Card
    November 13, 2009 - 12:51 PM PST
    G.Skill Announces Falcon II SSD Series
    November 11, 2009 - 3:31 PM PST
    .:: More News ::.

    RSSLatest Content
    Ultra X4 500 W Power Supply Review
    Seagate Barracuda XT 2 TB Hard Disk Drive Review
    Nintendo Wii Fit Plus Review
    AMD ATI Chips Comparison Table
    nVidia Chips Comparison Table
    Gigabyte G41M-ES2L Motherboard
    Netflix on Playstation 3 Review
    CM Storm Sentinel Advance Mouse Review
    Titan Skalli CPU Cooler Review
    Nexus RX-6300 630 W Power Supply Review
    Gigabyte P55-UD6 Motherboard
    Nintendo Wii Review
    SilverStone Grandia GD04 Case Review
    Can We Trust the 80 Plus Certification?
    NZXT Gamma Case Review

    Our Most Popular Articles
    Maximum CPU Temperature
    1,078,712 views
    How to Find Out Your Motherboard Manufacturer and Model
    706,757 views
    nVidia Chips Comparison Table
    679,508 views
    Connecting Two PCs Using a USB-USB Cable
    593,809 views
    How To Correctly Apply Thermal Grease
    562,797 views
    AMD ATI Chips Comparison Table
    560,411 views
    ATI Radeon X1300 Pro Review
    488,040 views
    ATI Radeon X1600 XT Review
    477,187 views
    How To Perform a BIOS Upgrade
    394,755 views
    Sempron vs. Athlon XP
    338,615 views

    Latest Threads in Our Forums
    Dell Inspiron 6000 Powers but will not boot...
    by Merman
    Ultra X4 500 W Power Supply Review
    by Merman
    IN WIN LAN Party in Southern California
    by Hardware Secrets Team
    Getting A Hard Copy
    by Trevorrross
    Am I Making The Right Choice?
    by need2know
    Is it available to mount the Zalman cooler?
    by Olle P
    dsl modem prob
    by Sherry
    Seagate Barracuda XT 2 TB Hard Disk Drive Review
    by Hardware Secrets Team
    Overclocking a dell xps 410
    by 6dracing
    How to recover mp3's, pdf & chm files, applications from formated harddrive partition
    by tomahawk 1705
    .:: Visit Our Forums ::.


    © 2004-9, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)