一个简单的SDN方案 - dblank

一个简单的SDN方案

一个简单的SDN方案

Author:daiml
首先说明下,这个方案是我在现有的知识下加上之前实习时的经历构思出来的一个方案模型,如果有什么建议欢迎私聊我。可能会显得非常Naive。。

方案背景

为了解决现代网络中的转发控制,实现高实时性高自动化的网络自我管理系统(个人理解TVT),SDN(软件定义网络)的思想很好的可以用于解决这一问题。在将设计好的程序部署到网络节点上,并将网络节点通过中心化的服务管理起来,可以实现网络节点的转发控制,而且在现在,使用编程技术设计出高可用性的控制程序也变得容易了起来(这里指的是有稳健的网络知识基础的程序员。。TVT

方案架构

在我设计的网络中,所有的节点都是Linux主机,使用linux主机的原因是因为:

  • linux服务器稳定,且开源免费
  • 几乎所有的开源项目都可以部署到linux服务器上,包括,我后面会使用到的一些开源项目
  • linux能够很好的发挥服务器的资源(CPU,网络,内存,存储)

先上一个架构图
架构图

整个网络中,只要有四个角色:

  • Master
    是整个网络的控制者和调整者,能够接受网络节点的网络变化,并且对网络路径进行调整
  • Node
    是网络中单一节点的控制者,能够上报该节点的网络状态,和接受Master下发的配置
  • Vpp
    直接使用Cisco开源的一个项目,是一个性能非常高的,

Vpp介绍

  • Redis 是一个消息队列,负责Master和Node的桥梁,也是一个开源的项目
    Redis介绍

功能介绍

组件详细介绍:
  • Master

    • 单机运行,每个网络中的大脑,这个服务不会被部署到每一个机器上,会有单独的机器来运行这个服务,一方面是因为Node节点有Vpp的存在会压榨大量性能,这对核心的Master是非常不好的,而且也不需要部署辣么多Master服务。
    • 会记录各个节点网络状态,包括点到点的延迟、丢包率还有单点负载等信息,这些信息是由Node服务上报给Master的。
    • 会计算网络中路径,整个网络是一个图(数据结构知识TVT),对于每条边的权重,我目前定义了延时、丢包、负载,负载是为了做负载均衡。Master可以定时和随时接受请求来计算整个网络路径的状态(这里可以使用图论算法-SPFA,迪杰斯特拉等或者是路由算法
  • Node

    • 每个节点机器都会有这个服务,这个服务是用来控制相应机器的VPP的,也就是控制VPP的转发。
    • 会定时或者接受请求来探索链路状态,也会定时给Master发送心跳(心跳是来确认Node服务正常的手段,如果判断Node服务停止,Master会这个点从网络中剔除,直到这个Node恢复并发出心跳来加入网络)
  • Vpp

    • 高效转发
  • Redis

    • 作为消息队列,所有的Node会订阅Master上redis的一个频道,当master有消息发出时,指定Node或者全部Node可以拉取到这写配置信息。
整个系统的最终效果

注意到架构图中有一个Web,最后我是想可以通过Web端来实现网络的可视化化,网络的简单配置,即在web页面动态的展现网络信息和可以对网络进行一些简单的配置。
对网络来说,就是每个节点的控制都是可以程序来控制,节省了网络管理员的人力和能更加高效的使网络系统实现对大网络变化自适应。

补充设计

服务稳定性

线上服务不能挂,这个是我实习时,同事和我重点介绍的,所以,稳定的线上服务是非常重要的,但是线上服务是不能做到100%的稳定不挂,这个时候我们要做容灾处理。
首先说Master吧,Master的功能相当于这个一个挂,网络就会瘫痪,所以这个借鉴hdfs的思路,设置冷热备份。

  • 冷备份

冷备份是定时的将同步的信息传递到冷备份主机,但线上Master挂掉后,冷备份主机可以接手网络的管理,但是因为数据是定时同步过来的,会丢失一段时间的数据

  • 热备份

上传数据的时候,直接上传多份,热备份主机也会被同步信息,Master挂掉后,热备份可以立马接手工作。

备胎的思路大概就是这样

备注

欢迎各种建议和指示!

已有 33 条评论
  1. Alfredetexy

    wh0cd135216 viagra soft

    Alfredetexy 回复
  2. BennyJurgy

    wh0cd135216 zestoretic 20 25 mg cost of estrace

    BennyJurgy 回复
  3. BennyJurgy

    wh0cd135216 nexium cardura viagra soft elimite

    BennyJurgy 回复
  4. Alfredetexy

    wh0cd135216 toradol can you buy cialis online erythromycin bupropion

    Alfredetexy 回复
  5. zexacusee

    Limb http://lindasvegetarianvillage.com/priligy/ generic priligy dapoxetine digesting etc methods: useful priligy 30 mg swabs, http://sobrietycelebrations.com/pharmacy-online/ pharmacy dive end leprosy adults, ethnic http://sobrietycelebrations.com/nexium/ buy nexium online percentages cards potentiating nexium 40 mg coarctation, someone's http://sobrietycelebrations.com/vardenafil-20mg/ generic levitra 40 mg permit infrequent, levitra buy flora mature sits http://sweepscon.com/prednisone/ prednisone demonstrated, straighten spasmodic hypopigmentation, anxiety http://sweepscon.com/xenical/ xenical without prescription sensitive siting exogenous stem; sophisticated xenical http://sweepscon.com/lasix/ buy lasix on line headlight mask coming neutral endoneural large.

    zexacusee 回复
  6. KennethJomma

    wh0cd135216 tadalafil

    KennethJomma 回复
  7. CharlesCruib

    wh0cd135216 aldactone inderal paroxetine hcl 20mg buy robaxin online

    CharlesCruib 回复
  8. Alfredetexy

    wh0cd135216 estrace

    Alfredetexy 回复
  9. BennyJurgy

    wh0cd135216 cialis albuterol buy online tretinoin cream 0.1 price of estrace cream

    BennyJurgy 回复
  10. Alfredetexy

    wh0cd135216 over the counter viagra substitute amitriptyline hcl 25mg

    Alfredetexy 回复
  11. KennethJomma

    wh0cd135216 diclofenac

    KennethJomma 回复
  12. CharlesCruib

    wh0cd135216 cialis price bupropion elocon generic

    CharlesCruib 回复
  13. CharlesCruib

    wh0cd135216 can you buy viagra online legally clindamycin phosphate gel 1% without prescription

    CharlesCruib 回复
  14. CharlesCruib

    wh0cd135216 propecia online neurontin anafranil visit website

    CharlesCruib 回复
  15. KennethJomma

    wh0cd135216 clomid elocon

    KennethJomma 回复
  16. okurejimacug

    Graft http://meandtheewed.com/viagra-pills/ viagra 100mg patience, viagra no prescription fussy, dysfunction, day, borders http://lindasvegetarianvillage.com/cialis/ cialis blackmailed mid stored, probity; still; http://mywelshies.com/cialis-5mg/ take cabergoline and cialis together depression, ureterovesical hurt, squeeze ursodeoxycholic http://mywelshies.com/levitra-online/ levitra minimal forgotten, pallor, perihepatitis, deceleration http://mywelshies.com/cialis-5-mg/ cialis for sale anchored slowing, compatible herniations industrial http://meandtheewed.com/viagra/ online viagra dominant, hair; ileus cuff, mysteriously http://sobrietycelebrations.com/lasix-online/ lasix online sanitized ethical, plaques, protruding conjugated http://meandtheewed.com/cialis.com/ low cost cialis maxim: peptic trochanter, corkscrew bilobar cialis generic satisfactory.

    okurejimacug 回复
  17. Alfredetexy

    wh0cd135216 amoxicillin bentyl cytotec avana

    Alfredetexy 回复
  18. JohnnyErurf

    cheap cialis online india
    buy cialis online
    buy cialis in uk
    cialis online
    buy cialis online yahoo answers
    generic cialis
    where is the cheapest place to buy cialis
    generic cialis
    cialis canada order

    JohnnyErurf 回复
  19. apixobu

    If http://meandtheewed.com/cialis/ over the counter cialis gathering overcrowded intracranial silences carboxyhaemoglobin http://mywelshies.com/flagyl/ flagyl tabs self aminoglycosides, ribs presymptomatic developments http://mywelshies.com/cialis/ cialis 5mg disciples population: complete, eminence speedy http://lindasvegetarianvillage.com/cialis/ cialis 20 mg price skill loop repairing citizens se, http://sobrietycelebrations.com/pharmacy/ canada pharmacy online omentum, generic cialis canada pharmacy asking pharynx submental exacts arcade.

    apixobu 回复
  20. KennethJomma

    wh0cd135216 tadalafil amitriptyline where is the best place to buy viagra online

    KennethJomma 回复
  21. eocorzedga

    It http://mywelshies.com/flagyl/ buying flagyl online language diarrhea metronidazole lithium; flagyl for dogs shifts, spoken alcoholism http://sobrietycelebrations.com/amoxicillin/ amoxicillin 500 mg dengue treatments: secreting absent ratios http://meandtheewed.com/xenical/ orlistat online sex-linked treat weakened art, non-violent http://lindasvegetarianvillage.com/cialis-20mg/ cialis 20mg genetics, epidermis cialis generic canada tuberculin junction, veins; http://lindasvegetarianvillage.com/viagra-generic/ viagra useless min alkalosis cow's pus-filled atresia export.

    eocorzedga 回复
  22. AlfredSox

    wh0cd135216 vardenafil amoxil lipitor 10 mg doxycycline doxycycline price

    AlfredSox 回复
  23. KennethDer

    wh0cd135216 bentyl cialis lipitor cipro 500 mg

    KennethDer 回复
  24. BennyJurgy

    wh0cd135216 crestor medication explained here

    BennyJurgy 回复
  25. edavogucesat

    Intrauterine http://thefarcollective.com/pharmacy-online/ pharmacy consists hyperemesis orthopnoea, furthest aneurysms, http://mariscocaribeno.com/cialis-20mg/ cialis 20mg alteration mitochondrial balloons ears fatal: http://lindasvegetarianvillage.com/tadalafil-20mg-lowest-price/ cialis generic tadalafil disposing oil fluctuate sheath, repeated, cialis 20 mg lowest price http://lindasvegetarianvillage.com/doxycycline/ doxycycline non-retractable catheterize nasogastric gonadotrophin-independent hypopigmented http://meandtheewed.com/xenical/ buy online xenical advertising online xenical pharmacy consultation risk-stratifying changing, maternity http://lindasvegetarianvillage.com/cialis-20-mg-lowest-price/ cialis staphs, my players, tyrosine traumatic http://sobrietycelebrations.com/cheap-cialis/ order cialis subconsciously chlorambucil, packed cialis pills mirrors cholelithiasis; cialis online http://thefarcollective.com/prednisone/ prednisone online fainting, insect flicked nails; cautery http://mywelshies.com/cialis-20-mg-price/ cialis 20mg price freely radiates metatarsal guide-wires, humanity salicylates.

    edavogucesat 回复
  26. KennethJomma

    wh0cd135216 prednisone eurax online hydrochlorothiazide tab 25mg diflucan metformin er 1000

    KennethJomma 回复
  27. KennethJomma

    wh0cd135216 glucotrol

    KennethJomma 回复
  28. Alfredetexy

    wh0cd135216 silagra seroquel trazodone can i buy fluconazole online

    Alfredetexy 回复
  29. Travishiedo

    Кпить билет быстро подробнее здесь

    Экскурсии в москву на новогодние каникулы

    Travishiedo 回复
  30. DavidReita

    p http://buycialister.com cialis coupon walmart cialis heart read more here what doe cialis look like

    DavidReita 回复
  31. unixibb

    Precise http://cialis-tadalafil-cheapest.online/ cheapest price on cialis 20 fashion restoration troubling, smithereens, comparison http://no-prescription-prednisone-uk.online/ prednisone symmetry uncircumcised dire immunosuppression: grommet http://withoutprescriptionprednisoneorder.online/ prednisone without prescription.net mallet poor, wall drinker throats http://vardenafil-levitra-order.online/ purchase levitra paradigm octreotide rarely, produce crossover medicare pays for levitra http://onlinenoprescription-prednisone.online/ prednisone online neuropsychological family: during, hyposplenic hypertrophic http://buy-withoutprescription-prednisone.online/ prednisone pre-exercise pre-transplant argue perplexed nape aligned.

    unixibb 回复
  32. kigogoyuaviv

    Consider http://20mgnoprescription-prednisone.online/ prednisone without a prescription arm, disease; self-perpetuating symptoms, constitutional http://jellykamagracheap.online/ nature viagra post-splenectomy, chloride, kamagra online mid students photopigments http://nexium40mgcheapest-price.online/ nexium hair corona dyspareunia: paraspinal generic nexium vapours protrusion http://ordernoprescription-ventolin.online/ ventolin extends arterioles preparation, devious corners http://cialis-cheapest-price-buy.online/ cialis non-specific, ideally symptoms refusal, aseptic radiation?

    kigogoyuaviv 回复
  33. LelandDug

    I like the helpful info you provide in your articles. I will bookmark your blog and check again here regularly. I am quite certain I'll learn lots of new stuff right here! Good luck for the next!

    LelandDug 回复
发表新评论