¼ÓÈëÊÕ²Ø | ÉèΪÊ×Ò³ | »áÔ±ÖÐÐÄ | ÎÒҪͶ¸å Àî´óͬ £¨https://www.lidatong.com.cn/£©- ¿Æ¼¼¡¢½¨Õ¾¡¢¾­Ñé¡¢ÔƼÆËã¡¢5G¡¢´óÊý¾Ý,Õ¾³¤Íø!
µ±Ç°Î»Ö㺠Ê×Ò³ > °Ù¿Æ > ÕýÎÄ

dpdkѧϰ֮ip_pipelineѧϰ

·¢²¼Ê±¼ä£º2020-12-14 01:18:23 ËùÊôÀ¸Ä¿£º°Ù¿Æ À´Ô´£ºÍøÂçÕûÀí
µ¼¶Á£º×î½üѧϰpipeline£¬ÔÚ¹«Ë¾µ÷ÑÐÏÂÕâ¸öÀý×ÓÒÔ¼°Ê¹Ó÷½·¨ ²Î¿¼×ÊÁÏÈçÏ£º dpdk±¨ÎÄ´¦Àí¿ò¼Ü¼ò½é https://mp.weixin.qq.com/s/4JHtTg1PkqKew-NiLkrjDw test pipeline ¹ÙÍø×ÊÁÏ http://dpdk.org/doc/guides/sample_app_ug/test_pipeline.html ip_pipeline dpdk¹Ù

×î½üѧϰpipeline£¬ÔÚ¹«Ë¾µ÷ÑÐÏÂÕâ¸öÀý×ÓÒÔ¼°Ê¹Ó÷½·¨
²Î¿¼×ÊÁÏÈçÏ£º
dpdk±¨ÎÄ´¦Àí¿ò¼Ü¼ò½é
https://mp.weixin.qq.com/s/4JHtTg1PkqKew-NiLkrjDw

test pipeline ¹ÙÍø×ÊÁÏ
http://dpdk.org/doc/guides/sample_app_ug/test_pipeline.html

ip_pipeline dpdk¹ÙÍø
http://dpdk.org/doc/guides/sample_app_ug/ip_pipeline.html

ÏÂÃæÎÒÃÇ¿ªÊ¼ÕýÌâ

pipelineÄ£Ð͵ıà³Ì£¬´ÓÏîÄ¿ÆÀ¹ÀµÄ½Ç¶È£¬¹¤×÷Á¿£º
1.ÊìϤpipelineÄ£¿éµÄÄ£°å£¬ÎªºóÐø´î»ýľÆ̵æ
2.ÊìϤcfgÅäÖÃÎļþµÄʹÓà £¬Ö÷ÒªÊÇÄǸötype
3.Á÷±í µÄЧÂÊ£¬Ö§³ÖµÄÀàÐÍ°üÀ¨ 8,16,32×Ö½Ú£¬ÒÔ¼°ipv4Ôò»ªÖУ¬ÒÔ¼°ÊÇ·ñÖ§³Ö×Ô¶¨Òå
4.¹«Ë¾ÒµÎñÓÐ3GºÍ4G£¬pipelineµÄÄ£¿é¶¨ÖÆÐÔ¿ª·¢ÊÇ·ñÄܼÓÈë3G 4G½âÎö

pipeline¸Å¿ö

Éú³ÉºÍ»¥ÏàͨÐÅ£¬Ê¹Óò»Í¬µÄÅäÖýű¾£¬¿ÉÒÔ¸ßЧµÄÉú³É²»Í¬µÄÓ¦ÓóÌÐò£¬ËùÒÔÓ¦ÓóÌÐò¿ÉÒÔ¿´³ÉÒ»¸öÓ¦ÓóÌÐòÉú³ÉÆ÷¡£PipelineÄ£¿éµÄÅäÖýű¾¿ÉÒÔͨ¹ýCLIÃüÁîÐнӿڣ¬ÔÚruntimeÔËÐÐʱ״̬ϸüС£

Ò»¡¢Ó¦ÓóÌÐòÔ¤ÀÀ

1.1 ¿ÉÖØÓÃpipeline¿â

1.ÿ¸öpipeline´ú±íÒ»¸öº¯Êý¿é¡¢Á÷ʶ±ð¡¢·À»ðǽ¡¢Â·ÓÉÆ÷¡¢masterµÈµÈ¡£
2.ÿÖÖpipelineÀàÐÍÔÚÏàͬ³ÌÐòÖпÉÒÔ±»ÊµÀý»¯¶à´Î£¬Ã¿¸öpipelineʵÀý·Ö¿ªÅäÖò¢Ó³Éäµ½µ¥¶ÀµÄcpuÂß¼­ºËÉÏ¡£Ò»¸öcpuºËÐÄ¿ÉÒÔÔËÐÐÒ»¸ö»ò¶à¸öpipelineʵÀý¡£
3.pipelineʵÀýͨ¹ýÊý¾Ý°ü¶ÓÁкÍÏûÏ¢¶ÓÁнøÐÐͨ¹ý£¬Êý¾Ý°ü¶ÓÁÐÓÃÓÚÊý¾Ý°ü´¦Àí£¬ÏûÏ¢¶ÓÁÐÓÃÓÚÔËÐÐʱÅäÖá£
4.pipelineʹÓÃdpdk¿ò¼ÜÀ´ÊµÏֵģ¬¼´ÓÉdpdkµÄ»ù´¡×齨ƴװ¶ø³ÉµÄ£¬ºÃºÃ¿´¿´¡£
5.¸ü¶àµÄpipelineÀàÐͽ«»á±»¼ÓÈëµ½ÏÖÓеÄpipelineÀàÐÍÖÐÀ´¡£

¶þ¡¢ÅäÖÃÎļþ

1.ÅäÖÃÎļþ¶¨ÒåÁËÓ¦ÓóÌÐòÊý¾Ý½á¹¹£¬Ê¹Óò»Í¬µÄÅäÖÃÎļþ£¬¿ÉÒÔ´´½¨²»Í¬µÄÓ¦ÓóÌÐò¡£
2.Ó¦ÓóÌÐòµÄ×ÊԴͨ¹ýÅäÖÃÎļþÀ´´´½¨ºÍÉèÖÃÊôÐÔ¡£±ÈÈçpipelineʵÀý£¬buffer pool»º³å³Ø£¬Ó²¼þÉ豸 ·¢ËÍ/½ÓÊÕ ¶ÓÁУ¬Èí¼þ¶ÓÁУ¨dpdkÖеĶÓÁУ©£¬Á÷Á¿¹ÜÀíÉ豸£¬EAL³õʼ»¯Æô¶¯²ÎÊýµÈµÈ¡£
3.Ò»µ©¼ì²âµ½×ÊÔ´Ãû³Æ£¬½«»áÒÔĬÈÏÖµ±»×¢²á¡£
4.ÃüÁîÐнӿڣ¬¼ò³Æ£ºCLI

Èý¡¢Éè¼ÆÄ¿±ê

1.¿ìËÙ¿ª·¢
2.Áé»îÐÔ£¬pipelineģʽ£¬run-to-completionģʽ£¨cluster£©£¬hybrid ģʽ
3.PipelineλÖã¬Ò»¸öpipelineÓ³Éäµ½Ò»¸öcpuÂß¼­ºËÉÏ£¬»òÕßÒ»¸öcpuÂß¼­ºËÓ³Éä¶à¸öpipeline¡£
4.TableλÖÃ
Ö¸¶¨µÄtable´ÓʵÀýAÒƶ¯µ½ÊµÀýB µÄ·½·¨£¬ÔÚʵÀýAÖйرմËtable£¬ÔÚʵÀýBÖпªÆô´Ëtable¡£
5.actionλÖÃ
Ö¸¶¨µÄaction´ÓʵÀýAÒƶ¯µ½ÊµÀýB µÄ·½·¨£¬ÔÚʵÀýAÖйرմËaction£¬ÔÚʵÀýBÖпªÆô´Ëaction¡£
6.µ÷ÊÔ£¬°üÀ¨CLIÐÅÏ¢

ÅäÖÃÎļþµÄÓï·¨

£¨±à¼­£ºÀî´óͬ£©

¡¾ÉùÃ÷¡¿±¾Õ¾ÄÚÈݾùÀ´×ÔÍøÂ磬ÆäÏà¹ØÑÔÂÛ½ö´ú±í×÷Õ߸öÈ˹۵㣬²»´ú±í±¾Õ¾Á¢³¡¡£ÈôÎÞÒâÇÖ·¸µ½ÄúµÄȨÀû£¬Ç뼰ʱÓëÁªÏµÕ¾³¤É¾³ýÏà¹ØÄÚÈÝ!

    ÍƼöÎÄÕÂ
      ÈȵãÔĶÁ