Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

TCP/IPÔ­Àí¡¢»ù´¡ÒÔ¼°ÔÚLinuxÉϵÄʵÏÖ

µ¼ÑÔ£º±¾Æª×÷ΪÀíÂÛ»ù´¡£¬½«ÏòÎÒÃǽ²ÊöTCP/IPµÄ»ù±¾Ô­ÀíÒÔ¼°ÖØÒªµÄЭÒéϸ½Ú£¬²¢ÔÚ´Ë»ù´¡ÉϽéÉÜÁËTCP/IPÔÚLINUXÉϵÄʵÏÖ¡£
OSI²Î¿¼Ä£Ðͼ°TCP/IP²Î¿¼Ä£ÐÍ
OSIÄ£ÐÍ£¨open system interconnection reference model£©ÊÇ»ùÓÚ¹ú¼Ê±ê×¼»¯×éÖ¯£¨ISO£©µÄ½¨Òé¶ø·¢Õ¹ÆðÀ´µÄ£¬Ëü·ÖΪÈçͼ3-1ËùʾµÄÆ߲㡣µ±ÎÀÐǺÍÎÞÏßÍøÂç³öÏÖÒÔºó£¬ÏÖÓеÄЭÒéÔÚºÍÕâЩÍøÂ绥ÁªÊ±³öÏÖÁËÎÊÌ⣬ËùÒÔÐèÒªÒ»ÖÖеIJο¼Ìåϵ½á¹¹£¬ÄÜÎÞ·ìµØÁ¬½Ó¶à¸öÍøÂç¡£Õâ¸öÌåϵ½á¹¹¾ÍÊÇTCP/IP²Î¿¼Ä£ÐÍ¡£
TCP ЭÒé
ÒòÌØÍøÔÚ´«Êä²ãÓÐÁ½ÖÖÖ÷ÒªµÄЭÒ飺һÖÖÊÇÃæÏòÁ¬½ÓµÄЭÒ飬һÖÖÊÇÎÞÁ¬½ÓµÄЭÒé¡£´«Êä¿ØÖÆЭÒéTCPÊÇ(transmission control protocol)רÃÅÓÃÓÚÔÚ²»¿É¿¿µÄÒòÌØÍøÉÏÌṩ¿É¿¿µÄ¡¢¶Ë¶Ô¶ËµÄ×Ö½ÚÁ÷ͨÐŵÄЭÒ顣ͨ¹ýÔÚ·¢ËÍ·½ºÍ½ÓÊÕ·½·Ö±ð´´½¨Ò»¸ö³ÆΪÌ×½Ó×ÖµÄͨÐŶ˿ھͿÉÒÔ»ñµÃTCP·þÎñ¡£ËùÓеÄTCP Á¬½Ó¾ùÊÇÈ«Ë«¹¤µÄºÍµãµ½µãµÄ¡£
·¢ËͺͽÓÊÕ·½TCPʵÌåÒÔÊý¾Ý±¨µÄÐÎʽ½»»»Êý¾Ý¡£Ò»¸öÊý¾Ý±¨°üº¬Ò»¸ö¹Ì¶¨µÄ20×Ö½ÚµÄÍ·¡¢Ò»¸ö¿ÉÑ¡²¿·ÖÒÔ¼°0»ò¶à×Ö½ÚµÄÊý¾Ý¡£¶ÔÊý¾Ý±¨µÄ´óСÓÐÁ½¸öÏÞÖÆÌõ¼þ£ºÊ×ÏÈ£¬Ã¿¸öÊý¾Ý±¨£¨°üÀ¨TCPÍ·ÔÚÄÚ£©±ØÐëÊʺÏIPµÄÔغÉÄÜÁ¦£¬²»Äܳ¬¹ý65535×Ö½Ú£»Æä´Î£¬Ã¿¸öÍøÂ綼´æÔÚ×î´ó´«Êäµ¥ÔªMTU£¨maximum transfer unit£©£¬ÒªÇóÿ¸öÊý¾Ý±¨±ØÐëÊʺÏMTU¡£Èç¹ûÒ»¸öÊý¾Ý±¨½øÈëÁËÒ»¸öMTUСÓÚ¸ÃÊý¾Ý±¨³¤¶ÈµÄÍøÂ磬ÄÇô´¦ÓÚÍøÂç±ß½çÉϵÄ·ÓÉÆ÷»á°Ñ¸ÃÊý¾Ý±¨·Ö½âΪ¶à¸öСµÄÊý¾Ý±¨¡£
TCPʵÌåËù²ÉÓõĻù±¾Ð­ÒéÊÇ»¬¶¯´°¿ÚЭÒé¡£µ±·¢ËÍ·½´«ËÍÒ»¸öÊý¾Ý±¨Ê±£¬Ëü½«Æô¶¯¼ÆʱÆ÷¡£µ±¸ÃÊý¾Ý±¨µ½´ïÄ¿µÄµØºó£¬½ÓÊÕ·½µÄTCPʵÌåÏò»Ø·¢ËÍÒ»¸öÊý¾Ý±¨£¬ÆäÖаüº¬ÓÐÒ»¸öÈ·ÈÏÐòºÅ£¬ËüµÈÓÚÏ£ÍûÊÕµ½µÄÏÂÒ»¸öÊý¾Ý±¨µÄ˳ÐòºÅ¡£Èç¹û·¢ËÍ·½µÄ¶¨Ê±Æ÷ÔÚÈ·ÈÏÐÅÏ¢µ½´ï֮ǰ³¬Ê±£¬ÄÇô·¢ËÍ·½»áÖØ·¢¸ÃÊý¾Ý±¨¡£
2.1 TCPÊý¾Ý±¨Í·
ͼ2¸ø³öÁËTCPÊý¾Ý±¨Í·µÄ¸ñʽ¡£
Ô´¶Ë¿Ú¡¢Ä¿µÄ¶Ë¿Ú£º16볤¡£±êʶ³öÔ¶¶ËºÍ±¾µØµÄ¶Ë¿ÚºÅ¡£
˳ÐòºÅ£º32볤¡£±íÃ÷ÁË·¢Ë͵ÄÊý¾Ý±¨µÄ˳Ðò¡£
È·ÈϺţº32볤¡£Ï£ÍûÊÕµ½µÄÏÂÒ»¸öÊý¾Ý±¨µÄÐòÁкš£
TCPÍ·³¤£º4볤¡£±íÃ÷TCPÍ·Öаüº¬¶àÉÙ¸ö32λ×Ö¡£
½ÓÏÂÀ´µÄ6λδÓá£
ACK£ºACKλÖÃ1±íÃ÷È·ÈϺÅÊǺϷ¨µÄ¡£Èç¹ûACKΪ0£¬ÄÇôÊý¾Ý±¨²»°üº¬È·ÈÏÐÅÏ¢£¬È·ÈÏ×ֶα»Ê¡ÂÔ¡£
PSH£º±íʾÊÇ´øÓÐPUSH±êÖ¾µÄÊý¾Ý¡£½ÓÊÕ·½Òò´ËÇëÇóÊý¾Ý±¨Ò»µ½±ã¿ÉËÍÍùÓ¦ÓóÌÐò¶ø²»±ØµÈµ½»º³åÇø×°Âúʱ²Å´«ËÍ¡£
RST£ºÓÃÓÚ¸´Î»ÓÉÓÚÖ÷»ú±ÀÀ£»òÆäËüÔ­Òò¶ø³öÏֵĴíÎóµÄÁ¬½Ó¡£»¹¿ÉÒÔÓÃÓھܾø·Ç·¨µÄÊý¾Ý±¨»ò¾Ü¾øÁ¬½ÓÇëÇó¡£
SYN£ºÓÃÓÚ½¨Á¢Á¬½Ó¡£
FIN£º


Ïà¹ØÎĵµ£º

Linux µÄÔ¶Õ÷

ÓÃÁ˽ü10ÄêµÄWindows£¬Í»È»ÓÐÐËȤȥÏëÌåÑéLinux£¬È¥¸ÐÊÜshellµÄ÷ÈÁ¦£¬ÌåÑéÖն˲Ù×÷µÄ¸Ð¾õ£¬¸üÖØÒªµÄÊDZàÒëʹÓÿªÔ´µÄÈí¼þ¡£¶àÉÙÒ²ËãÊÇΪÒÔºóʹÓ÷þÎñÆ÷»òÕßСÐÍ»úÖ®Àà´òµã»ù´¡¡£ÓÚÊÇÕý×°´ý·¢¿ªÊ¼Âþ³¤µÄlinuxÔ¶Õ÷¡£
Õ½ÒÛÒ»: RedHat
       ÎÒ£ºÀϰ壬ÓÐLinuxµÄµúô£¿
  &nbs ......

LinuxÏÂÀûÓÃÌõ¼þ±äÁ¿ÊµÏÖ¶ÁдËø

Ê×ÏȽéÉÜÏÂpthread_cond_t¡£ ÔÚLinuxϳÆ֮Ϊ״̬±äÁ¿£¬ÓëÖ®Ïà¹ØµÄÓÐÏÂÃ漸¸öAPI:
    int pthread_cond_init (pthread_cond_t *COND,pthread_condattr_t *cond_ATTR);
    int pthread_cond_signal (pthread_cond_t *COND);
    int pthread_cond_broadcast (pthread_con ......

VmwareÏÂLinuxµÄ°²×°¡¢ÉÏÍøÉèÖú͹²ÏíÎļþ¼Ð£¨×ª£©


Ò»¡¢             VmwareÏÂLinuxµÄ°²×°ºÍʹÓÃ
1.       ÏÂÔØLinux ¾µÏñ£¨isoÎļþ£©£¬ÎÒʹÓõÄÊÇRedHat Linux5 server¡£
2.       ÔÚVmwareÖÐн¨Ò»¸öÐéÄâ»ú
 
 
 
  ......

Linuxƽ̨ÏÂѧϰ·ÖÀà

(1) Linux »ù´¡£º°üÀ¨Linux °æ±¾£¬°²×°£¬ÃüÁîµÈ֪ʶµÄÕÆÎÕ¡£
(2) Linux ϵͳ¿ª·¢£ºÖ÷ÒªÊÇÇý¶¯½Ó¿Ú£¬ÄÚºËÅäÖý»²æ±àÒ룬ÄÚºËÈ¡µã£¬busybox£¬µÈµÈ·½Ãæ¡£
(3)Linux ǶÈëʽӦÓÿª·¢£ºÇ¶ÈëʽLINUXÓ¦ÓóÌÐò¿ª·¢ÊÇÔÚ²Ù×÷ϵͳÉÏ×ö¿ª·¢£¬ÀàËÆWindowsϵÄVC»òJAVA¿ª·¢¡£
(4)Linux ÍøÂç±à³Ì£ººÍÔÚwindowϵÄsocket±à³ÌÀàËÆ£¬°üÀ¨Ì×½ ......

ǶÈëʽÅàѵ£¬ARMÅàѵ£¬linuxÅàѵ£¬winceÅàѵ

ǶÈëʽÅàѵ£¬ARMÅàѵ£¬linuxÅàѵ£¬winceÅàѵ,ÅàѵǶÈëʽȫÌ×£¬
Ìṩ¾ÍÒµ±£ÕÏ
ÎÒÃÇÕâµÄÅàѵÊÇËùÓÐÅàѵÖÐÐļ۸ñ×îµÍµÄ(ÄÇÊÇÒòΪÎÒÃÇÓõĹú¼ÒµÄ·¿×Ó£¬²»ÐèÒª·¿×â)£¬ÅàѵµÄÄÚÈÝÊÇ×îÈ«µÄ£¬
ÅàѵÖÐÐÄÔÚÒ»¸öÈí¼þÔ°ÀïÃæ
¾ßÌåÇé¿ö¿ÉÒÔ×Éѯ 
QQ£º416796616   ×îºÃ¼ÓȺ£º40527921
   ¿Î³ÌÄ¿±ê
±¾¿Î³Ì² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ