亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mpls-forwarding-basics-00.txt

?? 一個可以實現MPLS實驗的linux源代碼.你不僅可以實現單層標簽的轉發,還可以實現2個標簽的實驗,很好的.
?? TXT
字號:
PUBLIC DOCUMENT                                                 James R. LeuMay 24 2000                          MPLS Forwarding Basics1. MPLS SummaryThe goal of Multi-Protocol Label Switching (MPLS) is to remove the process oflayer three lookups at each hop of a network.  This has many direct affects.MPLS forwarding makes traffic engineering a more viable solution for networkcongestion.  MPLS forwarding _may_ enable wire speed routing (switching).MPLS forward _could_ allow network hardware vendors to make cheaper trunkcards that ONLY understand labeled packets.  MPLS abstracts the media specificqualities away from more complex network engineering (QoS, CoS, DiffServ).MPLS forwarding can be used to make VPN service more flexible and deployablewithout compromising the performance of your edge routers (switches).  Inaddition to the above, the concepts used to to setup MPLS forwarding arethe first step towards creating completely optical networks.As a packet traverses an MPLS enabled network it must make three transitions.First, is that it must go from it's native layer 3 forwarding intolabeled MPLS forwarding.  This process entails the adding of a label to thehead of the packet.  Second, a (now labeled) packet much be able to traversean MPLS path.  This path consist of all the devices that know how thisparticular packet (and packets like it) need to traverse a network.  Thispath is called a Label Switch Path (LSP).  It is a connection oriented paththat is setup ahead of the forwarding of any packets.  Finally a packet mustmake its way back into layer 3 forwarding.  This process consists of removingthe label from the head of the packet and then sending it to the appropriatelayer 3 protocol for additional handling.  In an MPLS enabled network, layer3 forwarding is used by the edges of the network, and MPLS forwarding is usedin the core of the network.A network device that acts as the boundary between layer 3 forwarding andMPLS forwarding is called a Label Edge Router (LER).  An LER has the abilityto add a label to a unlabeled packet, and remove the labels from a labeledpacket. An LER that adds a label to a packet, is called an ingress LER andan LER that removes the label from a packet is a egress LER.  A network devicethat can forward a labeled packet (still labeled with possibly a differentlabel) is called a Label Switch Router.  The process of forwarding a labeledpacket is commonly referred to a Label Switching, because it mimics the ideasof Ethernet or ATM switching.  Sometimes this is also called Label Swappingbecause the value of the label may change at each hop in a LSP.  So the LSRis "swapping" the labels in the packet.2. MPLS LabelsWhen a label is added to a packet this means that at minimum a 4 byte "shim"has been added to the packet.  This shim is added between the layer 3 headerand layer 2 header.  Therefore an IP packet on Ethernet would add the shimbefore the IP header but after the Ethernet header.  MPLS forwarding iscurrently defined for the following layer 2 implementation:  Ethernet, packetover SONET, ATM, frame-relay.  MPLS has also been defined for any medium thatPPP runs on top of.  On _most_ of these layer 2 implementation a label consistsof a 20 bit number.The shim that is added to the packet contains more then just a label.  Hereis a diagram of a MPLS shim:  0                     1                   2                   3  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                Label                  | Exp |S|       TTL     | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+As you can see the label is 20 bits.  This value is used to determine how apacket will be label switched.  The next 3 bits are called the EXP bits.  Theyare currently reserved for experimental purposes.  (although DiffServ overMPLS has claimed these 3 bits for its use).  The next bit is referred to as the"bottom of stack bit" (S bit).  Due to the fact that MPLS _adds_ a shim tothe packet a LSR needs to know if what follows this top shim is the layer3 header or another shim (Multiple shims are called a label stack.  The purposeof a label stack will be explained later).  The S bit signifies that whatfollows this shim is the layer 3 header.  For typical single shim MPLS forwarding the S bit is on.  Finally the shim contains the Time To Live (TTL)counter.  This is used to allow current layer 3 functions to occur even thoughan LSR cannot use the layer 3 header.  Some examples of these are traceroute,loop detection, and multicast domains.2.1 MPLS Label StackingWhen an LER adds a shim to a packet, it is feasible that is can add more thenone shim.  This concept is called Label Stacking.  The _stack_ of shims istreated just as it's name sake data structure.  A POP means that the top shimis removed, exposing either another shim or the layer 3 header (determinedby the S bit).  A PUSH adds a new shim to the top of the stack or on topof the layer 3 header. So standard label swapping is defined as a POPfollowed by a PUSH.  In some cases a labeled packet may need to be tunneledacross another MPLS network.  In the case the labeled packet gets anothershim pushed on top without POPing the original shim off.  This results in alabel stack of size 2.  This operation can occur multiple time by separateLSRs or a single LSR could add more then one shim. In general any labeledpacket has a label stack, although most have a label stack of size 1. As onemay expect a packet with a label stack greater then 1 may _shrink_ in sizeas well.  This operation would be defined by a POP without a PUSH.  The exactdetails of how this occurs will be explained later.3 MPLS Data StructuresFor MPLS forwarding to occur correctly some data structures need to existto assist in the interpretation of labels and the processing of them.In general there exists three data structure. One data structure to helpinterpret incoming labels (labels from packets that are entering an LSR oregress LER).  A second data structure to assist in adding out going labels(labels on packets that are leaving a LSR or ingress LER).  A third datastructure is used by ingress LERs to figure out what label to add to a packet.The common name for the data structure used to interpret incominglabels is called the Incoming Label Map (ILM).  The ILM table consistsof all the incoming labels that an LSR or egress LER will recognize.The contents of each ILM entry are: label, opcode, FEC, and an optional link toan outgoing data structure.  The general order of operation for incoming labelprocessing is:-extract label from top shim-lookup the label in the ILM table-further processing on the packet based on the opcode stored with the labelDetail ILM processing will be explained later.As stated earlier there also exists a data structure to assist with outgoinglabeling.  The common name for this data structure is the Next Hop LabelEntry (NHLFE).  The NHLFE table consists of all the labels which can be pushonto packets.  Each NHLFE entry contains: label, outgoing interface, and nexthopinformation.  The general processing that occurs when a packet reaches theNHLFE table is:-form new shim that contains the label-push the shim onto the packet-forward the packet to the nexthop via the outgoing interfaceDetails of NHLFE processing will be explained later.A third data structure exists for the sole purpose of helping ingress LERs decidewhat labels to add to a packet.  For the explanation of this data structure weneed to take one step back and introduce the term Forwarding Equivalence Class(FEC).  Up until now we have referred to individual packet in terms of addingand removing labels.  How do we know what label to add to a packet?  How do weknow what type of packet I have after removing a label?In general packets are labeled according to which FEC they belong to.  Forexample I am defined FEC A to be the class of packet that are heading tothe host with IP address 1.1.1.1.  Therefore all packets that have a destinationIP address 1.1.1.1 belong to FEC A.  In MPLS we assign each FEC a label andeach label refers to a FEC (1:1 mapping).  The definitions of FECs may changebut the 1:1 mapping should always stay constant.  The data structure used tomap FECs to labels is called a FEC To NHLFE (FTN).  An FTN table consists ofall FECs which we know how to add labels too.  An FTN entry consists of:FEC, NHLFE entry.  The general order of operation for FTN processing is:-decide what FEC a packet belongs to-find the FEC in the FTN table-forward the packet to he NHLFE entry that corresponds to the FTNDetail FTN processing will be explained later.4. MPLS over ATMEarlier the statement was made that labels are 20 bits values for _most_layer 2 implementations.  ATM is one of the exceptions (Frame relay is theother).  Since ATM is already built upon switching technology it can takeadvantage of this.  If the definition of a label is changed to a VPI,VCI pair,we now would do label switching based on VPI,VCI which is what ATM alreadydoes.  This provides a nice optimization, but introduces problems andcomplexity.  In "normal" MPLS forwarding we look inside to the top shimto get the label, on ATM we do not need to look in the shim, nor CAN we.But what about the other fields in the shim?  Do we just loose the functionalitythey provide when running MPLS over ATM?  To retain the functionality we needto make a couple of compromises.  First, even though we can do MPLS forwardvia VPI,VCI pairs and we do not need the shim to store the label, we will stillkeep a place holder shim at the top of the stack.  This is called the NULL shim.The NULL shim is added after the ATM header in the first cell of a AAL5 frame.The NULL shim will hold the EXP, TTL and S bit that would have been added ifwe doing "normal" MPLS forwarding.  Due to the nature of ATM switching, thesevalues will pass through the ATM network untouched.  When the packet leavesthe ATM network and either goes back to layer 3, or move on to "normal" MPLSforwarding these values will be available for use at that time.  MPLS forwardingover ATM has 5 transition it can go through:-Layer 3 forwarding to MPLS over ATM forwarding (ingress LER)-MPLS forwarding to MPLS over ATM forwarding (LSR)-MPLS over ATM forwarding to MPLS over ATM forwarding (LSR)-MPLS over ATM forwarding to MPLS forwarding (LSR)-MPLS over ATM forwarding to Layer 3 forwarding (egress LER)5. MPLS Detailsstruct mpls_label {  u32 label_res:1,      label_value:28,      label_type:3:#define MPLS_LABEL_VPI		((label_value>>16)&0xFFF)#define MPLS_LABEL_VCI		(label_value&0xFFFF)#define MPLS_LABEL_GEN		(label_value&0xFFFFF)#define MPLS_LABEL_DLCI_10	(label_value&0x3FF)#define MPLS_LABEL_DLCI_17	(label_value&0x1FFFF)#define MPLS_LABEL_DLCI_23	(label_value&0x7FFFFF)};#define MPLS_GEN_LABEL		0x01#define MPLS_VPIVCI_LABEL	0x02#define MPLS_VPI_LABEL		0x03#define MPLS_VCI_LABEL		0x04#define MPLS_FR10_LABEL		0x05#define MPLS_FR17_LABEL		0x06#define MPLS_FR23_LABEL		0x075.1 MPLS ILM Details-ILM structure:struct ilm_ent {  struct mpls_label label;  struct route_ent* outgoing_rt;  u16 protocol;  u8 opcode;}; (more detailed processing can be found in the MPLS reference code)-Each logical interface needs to stores it's own ILM table.  MPLS packets that arrive via that interface will do label lookups into that interfaces ILM table.-The full list of opcodes that can be stored in a ILM entry: POP_AND_LOOKUP   If the top shim has the S bit on:     Extract the protocol type from the ILM     POP the top shim     Copy the TTL to the layer 3 header     Using the protocol type, do a lookup on       the layer 3 header that is exposed   Else     POP the top shim     Extract the label from the shim that is       exposed     Extract the S bit     Extract the EXP     Extract label and create ILM Index     Using the ILM Index Lookup the ILM Entry     Execute the opcode in the ILM Entry   End POP_AND_FORWARD   Extract the outgoing route entry from the ILM   POP the top shim   If the outgoing route entry is a layer 3 route entry     copy TTL to layer 3 header   Using the outgoing route entry forward the     packet to the outgoing interface                   NO_POP_AND_FORWARD   Extract the outgoing route entry from the ILM   Using the outgoing route entry forward the     packet to the outgoing interface SEND_TO_RP   Send the entire packet to the Route Processor5.2 MPLS Receive Processing If interface is of type ATM and VCC is of type MPLS_ENC     Use VPI,VCI to create ILM Index Else   Extract generic label from shim and create ILM Index End Extract TTL from top shim Extract EXP from top shim Extract S bit from top shim Decrement TTL If TTL <= 0 Execute opcode SEND_RP Using ILM Index to lookup ILM Entry Execute opcode from ILM Entry5.3 MPLS FTN Detailsstruct mpls_ftn {  struct mpls_nhlfe *nhlfe;  };5.4 MPLS NHLFE Details-The NHLFE is located on the tx interface.  Therefor the NHLFE Entry doesn't need to store the outgoing interface. struct mpls_nhlfe {  struct mpls_label **label;  u8 number_of_label;  struct sockaddr_un next_hop;  u8 exp;};5.5 MPLS Transmit Processing If the route entry that the FTN point to is a NHLFE or the ILM refers to a NHLFE then the following processing pertains.  If the shim with an S bit on was POPed on ingress then    make sure to add an S bit to the bottom shim  For each label in the NHLFE    If more labels can be added      If the label is of type ATM then        create a NULL shim and add it to the packet        make sure the shim with the S bit is on the bottom of the stack        extract VCC info from the ATM label        mark this packet will leave via this ATM VCC        mark that no more labels can be added.      Else        create a shim from the generic label and add it to the packet        make sure the shim with the S bit is on the bottom of the stack      End    End  End  Forward the packet to the next hop stored in the NHLFE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品99久久久久久久久| 欧美大片日本大片免费观看| 99久久伊人网影院| 色综合久久久久久久| 91免费看片在线观看| 精品视频资源站| 日韩一级高清毛片| 国产亚洲精久久久久久| 中文字幕制服丝袜一区二区三区 | 久久99精品国产.久久久久久 | 色综合久久66| 欧美猛男gaygay网站| 欧美剧在线免费观看网站| 日韩视频一区二区三区| 日本一区二区三区在线不卡| 中文字幕一区二区三区视频| 亚洲成人av中文| 日韩精品电影一区亚洲| 精品一区二区三区影院在线午夜| 国产91高潮流白浆在线麻豆| 欧美综合在线视频| 欧美成人午夜电影| 亚洲激情六月丁香| 另类调教123区 | 蜜桃久久av一区| 国产高清不卡一区| 在线观看一区二区视频| 久久久精品黄色| 午夜精品一区二区三区三上悠亚| 国产又粗又猛又爽又黄91精品| av毛片久久久久**hd| 日韩精品一区二区三区视频在线观看 | 欧美激情一区二区三区在线| 亚洲小说欧美激情另类| 91丨九色porny丨蝌蚪| 国产女人18毛片水真多成人如厕| 国内精品国产成人国产三级粉色 | 亚洲大片精品永久免费| 色狠狠综合天天综合综合| 亚洲欧美怡红院| 成人av资源在线观看| 欧美经典一区二区| 国产成人精品三级| 欧美经典三级视频一区二区三区| 国内久久婷婷综合| 久久伊人中文字幕| 国产一区二区h| 精品毛片乱码1区2区3区| 精品在线视频一区| 久久免费偷拍视频| 国产不卡高清在线观看视频| 亚洲国产精品精华液ab| 成人a区在线观看| ...av二区三区久久精品| 暴力调教一区二区三区| 一区二区三区**美女毛片| 色婷婷精品大在线视频| 亚洲成人动漫一区| 欧美不卡激情三级在线观看| 国产自产2019最新不卡| 国产精品久久久久三级| 91豆麻精品91久久久久久| 亚洲午夜视频在线观看| 日韩欧美一级二级三级久久久| 久久爱www久久做| 中文字幕国产一区二区| 色综合久久久久久久久| 日本成人在线视频网站| 久久久无码精品亚洲日韩按摩| 成人黄页毛片网站| 亚洲综合色视频| 精品国产免费一区二区三区香蕉 | 国产一区二区成人久久免费影院 | 日韩网站在线看片你懂的| 国产一区二区美女| 亚洲精品乱码久久久久久日本蜜臀| 欧美午夜电影在线播放| 精品一区二区国语对白| 亚洲日本va在线观看| 国产欧美一区二区精品秋霞影院 | 久久久天堂av| 日本韩国一区二区三区| 蜜桃精品视频在线| 亚洲欧美aⅴ...| 日韩欧美一级二级三级久久久| 白白色亚洲国产精品| 日韩综合一区二区| 国产精品久久久久久户外露出| 欧美日韩一区二区三区高清| 国产69精品久久久久777| 亚洲1区2区3区视频| 国产欧美日本一区视频| 337p亚洲精品色噜噜狠狠| 成人av一区二区三区| 日韩影院在线观看| |精品福利一区二区三区| 日韩女优av电影| 欧美性色aⅴ视频一区日韩精品| 国产一区在线看| 午夜久久久影院| 亚洲丝袜精品丝袜在线| 久久网这里都是精品| 欧美人妖巨大在线| 色综合久久88色综合天天免费| 国产一区二区看久久| 青娱乐精品在线视频| 亚洲午夜久久久久久久久电影网 | 国产欧美日韩三级| 日韩一区二区精品在线观看| 欧美亚洲高清一区二区三区不卡| 成人丝袜高跟foot| 国产精品一级黄| 久久精品99久久久| 日韩激情在线观看| 亚洲国产成人av好男人在线观看| 国产精品高清亚洲| 国产精品伦理一区二区| 精品国产乱码91久久久久久网站| 在线成人av影院| 精品视频全国免费看| 日本久久电影网| 成人一区二区三区在线观看| 国产毛片一区二区| 极品销魂美女一区二区三区| 日韩国产欧美三级| 奇米影视7777精品一区二区| 丝袜亚洲另类丝袜在线| 丝袜美腿高跟呻吟高潮一区| 亚洲高清三级视频| 午夜视频在线观看一区二区| 亚洲成人动漫在线免费观看| 亚洲国产精品一区二区久久恐怖片 | 亚洲乱码中文字幕综合| 亚洲欧美日韩一区二区三区在线观看| 国产精品少妇自拍| 国产精品久久久久久久第一福利 | 国产精品国产馆在线真实露脸| 国产视频一区不卡| 国产精品成人一区二区三区夜夜夜| 中文欧美字幕免费| 成人欧美一区二区三区小说| 亚洲另类中文字| 五月综合激情日本mⅴ| 日韩成人一区二区三区在线观看| 日韩高清在线电影| 激情综合网av| 成人午夜视频在线| 色www精品视频在线观看| 欧美军同video69gay| 欧美成人性福生活免费看| 国产亚洲综合在线| 亚洲女人****多毛耸耸8| 久99久精品视频免费观看| 国产精品1024久久| 99精品视频在线观看| 欧美日韩你懂得| 欧美tickling网站挠脚心| 国产精品区一区二区三区| 亚洲影院免费观看| 久久激情综合网| 91在线观看污| 7777精品伊人久久久大香线蕉的| 久久午夜电影网| 亚洲乱码国产乱码精品精可以看 | 欧美一级片在线| 欧美国产精品久久| 亚洲国产成人av| 成人视屏免费看| 欧美美女激情18p| 国产精品久久久久影院老司| 婷婷夜色潮精品综合在线| 国产69精品久久久久毛片| 欧美精品99久久久**| 国产精品久久久久婷婷| 久久精品国产精品亚洲综合| 91免费观看在线| 精品国产乱码久久久久久免费 | 午夜伦理一区二区| 成人教育av在线| 欧美本精品男人aⅴ天堂| 亚洲日本成人在线观看| 精品一区二区三区在线视频| 欧美体内she精视频| 欧美国产禁国产网站cc| 久久精品国产99国产精品| 日本韩国视频一区二区| 国产欧美日韩综合| 免费人成在线不卡| 91久久国产综合久久| 国产日产亚洲精品系列| 久久99精品国产| 欧美精品久久一区二区三区| 亚洲视频香蕉人妖| 国产精品18久久久久| 日韩亚洲欧美综合| 日韩专区一卡二卡| 欧美日韩精品免费| 亚洲一区二区三区四区在线免费观看 | 亚洲永久免费视频| 99久久久国产精品|