منتديات شبكة الجيل الجديد للتكنولوجيا
 
أقسام موقع ITNAT        
 
 
 

 
 

شاهد الدورات المتاحة الآن وصوت ماهي الدورة الأفضل بالنسبة لك،، اضغط هنا

 

 
 
العودة   ITNAT.COM Forums > الأرشيف > أرشيف منتدى ITNAT لغاية تاريخ 20 - 5 - 2008 > الشبكات العام > ENGLISH Network Forum

ENGLISH Network Forum This Forum will provide complete support for non-arabic members.

رد
 
أدوات الموضوع طرق مشاهدة الموضوع
قديم 18-09-2005, 10:23 AM   #1
fmfm
مشرف إداري
 
الصورة الرمزية fmfm
 
تاريخ التسجيل: Mar 2005
المشاركات: 2,257
افتراضي Understanding the TCP/IP Protocol (Part 2) !!!!

In part one of this article series we laid out the background information necessary to tackle this article’s information. Contained in this article is the actual breakdown of a packet’s contents, and what they mean. This type of low level TCP/IP information will enable you to make far better judgement calls when investigating network issues at the packet level.

Well we left off in part one with two packets to look at. Those two packets as seen below are the SYN and SYN/ACK portions of the three-way handshake. The ACK is not included as some operating systems will leave it out and go straight into the exchange of data. On that note let’s start tearing apart our packets!



For our purposes we will refer to the SYN packet as packet one from here on in. In case you are wondering SYN actually stands for “synchronize”, and SYN/ACK stands for “synchronize acknowledgement”. Starting off with packet one, we will move from left to right all the way through.

00:00:03.700720

The above noted is the timestamp of the packet. We have the normal hh mm ss as seen, but we also have six numbers after that as well. That means that this time is accurate to the microsecond. Rather precise isn’t it! An important thing to remember here is that this is not the time that the packet was sent at. Rather it is the time, that the packet was received by the destination computer. On another note, is the fact that the destination computer may be set up for a different time zone then you. In other words don’t automatically assume the time is the same as your local time.

192.168.1.100.11955

What we have here is the source IP address that is initiating communications with the other IP address to the right of it. Following the IP address is the port that is being used, or as we should call it the source port. All ports from 1025 above, are called ephemeral ports. All ports below 1025 as I note a little further down are called the reserved range. Any time that your computer starts up a session with another computer, your computer's kernel will arbitrarily assign an ephemeral port to that session. This ephemeral port will remain constant during the session itself. The source port will only change if you terminate your session and initiate a new one, at which time a new ephemeral port will be assigned to your new session.

>

Our little symbol above denotes what direction the conversation is coming from. So the pointy end indicates the destination in this case, and is always in this direction. This is another helpful hint to remember who is actually the source, and destination computer in a packet stream.

192.168.1.200.80

Well we can see that the above is an IP address. Question is: is it the source computer's IP address ie: the sender, or is it the destination address? You can take as gospel that this IP address is the destination computer's address. This is because as mentioned above it is on the pointy end of my direction symbol. Following the IP address of the destination computer is the destination port used of that very same computer. In this case we have port 80, and we can probably safely assume that there this is a webserver of some sort on this computer. At this time please note that port 80 falls in the “reserved” port range. This range starts at port 0 and ends at port 1024. Not all ports in this reserved range have well known services associated with them, but it is called the reserved range none the less.

S

The ASCII character S as seen above stands for SYN, or as we now know it “synchronize”. That means that this packet is the very first step in our TCP/IP handshake.

[tcp sum ok]

What the above stands for is “TCP Checksum is okay”. That actually means that when the source computer sent out this packet, it did a mathematical check against the TCP header and came up with a value. That value was then stored in the TCP header itself. Once the destination computer received this packet, it in turn also did the same mathematical check. It then verified that its value was the same, as the value it sees in the TCP header. In this case it was, hence the [tcp sum ok]. Were the value different then you would of seen a checksum error message where this was instead.

365712315:365712315

This rather large number separated by a full colon is called the TCP sequence number. You will note in our case that it is the same value separated by a full colon. That is due to the fact that there is no data being exchanged at this point in time. Were there data, and this packet a PSH/ACK vice a SYN packet then the values would be different on both sides of the colon. To be precise it would be different by the exact amount of data sent in that packet. We will see an example of what I mean a little later on.

(0)

The zero seen above tells us that there is no actual data being sent in this packet as it is a SYN packet. That does not mean though that you could not craft a SYN packet and stuff some data into it. Though be aware that your data would be ignored as you did not complete the TCP/IP handshake. One last note on packet crafting; be aware that it has limitations as to what it can do. You could not realistically simulate the handshake via manually crafting your packets.

win 32768

Now the above is referred to as the Window Size or as some call it the receive buffer. The value following it is measured in bytes just like the other numerical values. What this means is that the source computer can receive no more then 32768 bytes of information, before acknowledging to the destination computer that it has processed some of them.

Should it receive more than this without an ACK from it signifying that it has processed a certain amount of data then those extra bytes that were sent would simply hit the bit bucket. In essence they would not be stored in the receive buffer of the application. This is a good time to point out that this value is normally controlled by the application in use. For example this value could be the Win Size of Internet Explorer.

I really don’t like leaving you in suspense but we will break the article at this point. In part three we will cover the remaining metrics seen in packet one. After that we will then wade into the sea of hex that is contained in the packet. You may be in for a surprise as to just what is contained in those hex values! Till then!

If you missed the previous article in this series, please go read

Understanding the TCP/IP Protocol (Part 1)
[عزيزي الزائر يتوجب عليك التسجيل للمشاهدة الرابطللتسجيل اضغط هنا]
__________________
fmfm
-----------------------------------------------------

fmfm غير متواجد حالياً  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
رد مع اقتباس
رد


الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 
أدوات الموضوع
طرق مشاهدة الموضوع

تعليمات المشاركة
لا تستطيع كتابة مواضيع
لا تستطيع كتابة ردود
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

كود [IMG] متاحة
كود HTML معطلة
Trackbacks are معطلة
Pingbacks are معطلة
Refbacks are معطلة
الانتقال السريع إلى

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
شرح ال (tcp-ip) hassa1 منتدى الشبكات اللاسلكية والانترنت الفضائي 3 08-10-2007 04:49 PM
احتاج مساعدة حول socks proxy mohanad_19812000 منتدى الشبكات العام 1 02-06-2006 04:04 PM
اختصارات البرتوكولات ghayyadx منتدى الشبكات العام 4 17-01-2006 05:35 PM
Understanding the TCP/IP Protocol (Part 1) !!!! fmfm ENGLISH Network Forum 0 18-09-2005 10:30 AM
Understanding the TCP/IP Protocol (Part 3)!!!! fmfm ENGLISH Network Forum 0 18-09-2005 10:18 AM

 
     
 
الساعة الآن: 01:29 AM


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
حقوق الطبع محفوظة للجيل الجديد للتكنولوجيا
 

Copyright ©2008 ITNAT Networks, Inc. All rights reserved.

 

Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.