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




Recommended Book
Build Your Own Wi-Fi Network (Build Your Own...(McGraw))
By
McGraw-Hill/OsborneMedia
Price: $0.38

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 Linksys WRT54GS Wireless Router $
eBay: $35.84 HP Small/Medium Business: $70.15
CompUSA.com: $64.99 TECHONWEB: $69.43
TigerDirect: $64.99 Hpsmb: $70.15

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 Deals
    Linksys Wireless-N WRT150N Router


    CompUSA.com: $49.99 Server Supply: $80.00
    TigerDirect.com: $49.99 ZipZoomfly.com: $84.99
    Amazon: $49.87 Hpshopping: $79.99
    Linksys WRT300N Wireless Router


    TECHONWEB: $119.99 CompuVest: $120.42
    PCNation: $106.09 Office Depot: $129.99
    Newegg: $94.99 Zappos: $154.00

    RSSLatest News
    Exceleram Launches Five New Memory Kits
    October 10, 2008 - 10:57 AM PST
    Kingston Launches 32 GB DataTraveler Flash Memory
    October 9, 2008 - 10:13 AM PST
    Gelid Launches Silent Spirit CPU Cooler
    October 8, 2008 - 11:18 AM PST
    Antec Skeleton Case
    October 7, 2008 - 10:42 AM PST
    Lexar Media Launches Crucial Ballistix Tracer DDR3-1333
    October 7, 2008 - 10:11 AM PST
    Elpida Develops 65-nm Memory Chips
    October 6, 2008 - 11:10 AM PST
    Transcend Launches T5 Flash Memory
    October 3, 2008 - 11:50 AM PST
    Thermaltake Announces BigTyp14 Pro CPU Cooler
    October 3, 2008 - 11:28 AM PST
    A-Data Announces Triple-Channel DDR3 kits for Core i7 Processors
    October 3, 2008 - 11:17 AM PST
    EVGA Launches nForce 790i SLI FTW Mainboard
    October 3, 2008 - 11:07 AM PST
    .:: More News ::.

    RSSLatest Content
    500 GB Hard Disk Drive Round-Up
    Anatomy of the Playstation 3
    AMD ATI Chips Comparison Table
    Bgears b-Envi Case Review
    Everything You Need to Know About Digital Cameras
    Kingwin Mach 1 ABT-700MA1S 700 W Power Supply Review
    Thermaltake V9 Case Review
    OCZ Dominatrix Gaming Mouse Review
    Rosewill Wind Ryder RZLS142-AP Case Review
    AeroCool AeroRacer Pro Case Review
    iPod Touch 2nd Generation Review
    Olympus SP-570UZ Digital Camera Review
    Zalman ZM600-HP 600 W Power Supply Review
    Tagan A+ Curbic Case Review
    Everything You Need to Know About The Motherboard Voltage Regulator Circuit

    Our Most Popular Articles
    Maximum CPU Temperature
    796,574 views
    nVidia Chips Comparison Table
    495,703 views
    AMD ATI Chips Comparison Table
    438,156 views
    ATI Radeon X1300 Pro Review
    421,057 views
    ATI Radeon X1600 XT Review
    415,091 views
    How to Find Out Your Motherboard Manufacturer and Model
    407,406 views
    Connecting Two PCs Using a USB-USB Cable
    365,423 views
    How To Correctly Apply Thermal Grease
    349,890 views
    Sempron vs. Athlon XP
    284,628 views
    Sempron 3400+ Review
    275,610 views

    Latest Threads in Our Forums
    IGP vs video card which one? im confused
    by Cheetos
    Sapphire HD 4870 X2 Video Card Review
    by Micromancer
    CPU Over Voltage error
    by GreyCricket
    500 GB Hard Disk Drive Round-Up
    by EliteKiller
    ATHLON x2 6000 or C2D E8400??
    by ianb
    Budget Gaming PC
    by AeroWB
    what mobo and PSU pls..
    by AeroWB
    is this an "ok!" build?
    by AeroWB
    may notebook just shutdowns! help..
    by trojancya
    computer lock ups!
    by trojancya
    .:: Visit Our Forums ::.


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