Fibre Channel wikipedia

From Wikipedia, the free encyclopediaJump to navigationJump to search

Fibre Channel (FC) is a high-speed data transfer protocol (commonly running at 1, 2, 4, 8, 16, 32, and 128 gigabit per second rates) providing in-order, lossless[1] delivery of raw block data[2], primarily used to connect computer data storage to servers.[3][4] Fibre Channel is mainly used in storage area networks (SAN) in commercial data centers. Fibre Channel networks form a switched fabric because they operate in unison as one big switch. Fibre Channel typically runs on optical fiber cables within and between data centers, but can also run on copper cabling.[3][4]

Most block storage runs over Fibre Channel Fabrics and supports many upper level protocols. Fibre Channel Protocol (FCP) is a transport protocol that predominantly transports SCSI commands over Fibre Channel networks.[3][4] Mainframe computers run the FICONcommand set over Fibre Channel because of its high reliability and throughput. Fibre Channel can be used to transport data from storage systems that use solid-state flash memory storage medium by transporting NVMe protocol commands.

Contents

Etymology[edit]

When the technology was originally devised, it ran over optical fiber cables only and, as such, was called “Fiber Channel”. Later, the ability to run over copper cabling was added to the specification. In order to avoid confusion and to create a unique name, the industry decided to change the spelling and use the British English fibre for the name of the standard.[5]

History[edit]

Fibre Channel is standardized in the T11 Technical Committee of the International Committee for Information Technology Standards (INCITS), an American National Standards Institute (ANSI)-accredited standards committee. Fibre Channel started in 1988, with ANSI standard approval in 1994, to merge the benefits of multiple physical layer implementations including SCSIHIPPI and ESCON.

Fibre Channel was designed as a serial interface to overcome limitations of the SCSI and HIPPI interfaces. FC was developed with leading edge multi-mode optical fiber technologies that overcame the speed limitations of the ESCON protocol. By appealing to the large base of SCSI disk drives and leveraging mainframe technologies, Fibre Channel developed economies of scale for advanced technologies and deployments became economical and widespread.

Commercial products were released while the standard was still in draft.[6] By the time the standard was ratified lower speed versions were already growing out of use.[7] Fibre Channel was the first serial storage transport to achieve gigabit speeds[8] where it saw wide adoption, and its success grew with each successive speed. Fibre Channel has doubled in speed every few years since 1996.

Fibre Channel has seen active development since its inception, with numerous speed improvements on a variety of underlying transport media. The following table shows the progression of native Fibre Channel speeds:[9]

NameLine-rate (gigabaud)Line codingNominal throughput
per direction; MB/s
Availability
133 Mbps0.13281258b10b12.51993
266 Mbps0.2656258b10b251994[6]
533 Mbps0.531258b10b50?
1GFC1.06258b10b1001997
2GFC2.1258b10b2002001
4GFC4.258b10b4002004
8GFC8.58b10b8002005
10GFC10.5187564b66b1,2002008
16GFC14.02564b66b1,6002011
32GFC “Gen 6”28.05256b257b3,2002016[10]
64GFC “Gen 7”28.9 with PAM-4256b257b (FC-FS-5)6,4002019[11]
128GFC “Gen 6”28.05 ×4256b257b12,8002016[10]
256GFC “Gen 7”28.9 ×4 with PAM-4256b257b25,6002019[12]
128GFC “Gen 8”57.8 with PAM-4256b257b12,8002022

In addition to a modern physical layer, Fibre Channel also added support for any number of “upper layer” protocols, including ATMIP and FICON, with SCSI being the predominant usage.

Characteristics[edit]

Two major characteristics of Fibre Channel networks is that they provide in-order and lossless delivery of raw block data. Lossless delivery of raw data block is achieved based on a credit mechanism [1].

Topologies[edit]

There are three major Fibre Channel topologies, describing how a number of ports are connected together. A port in Fibre Channel terminology is any entity that actively communicates over the network, not necessarily a hardware port. This port is usually implemented in a device such as disk storage, a Host Bus Adapter (HBA) network connection on a server or a Fibre Channel switch.[3]

  • Point-to-point (see FC-FS-3). Two devices are connected directly to each other. This is the simplest topology, with limited connectivity.[3]
  • Arbitrated loop (see FC-AL-2). In this design, all devices are in a loop or ring, similar to token ring networking. Adding or removing a device from the loop causes all activity on the loop to be interrupted. The failure of one device causes a break in the ring. Fibre Channel hubs exist to connect multiple devices together and may bypass failed ports. A loop may also be made by cabling each port to the next in a ring.
    • A minimal loop containing only two ports, while appearing to be similar to point-to-point, differs considerably in terms of the protocol.
    • Only one pair of ports can communicate concurrently on a loop.
    • Maximum speed of 8GFC.
    • Arbitrated Loop has been rarely used after 2010.
  • Switched Fabric (see FC-SW-6). In this design, all devices are connected to Fibre Channel switches, similar conceptually to modern Ethernet implementations. Advantages of this topology over point-to-point or Arbitrated Loop include:
    • The Fabric can scale to tens of thousands of ports.
    • The switches manage the state of the Fabric, providing optimized paths via Fabric Shortest Path First (FSPF) data routing protocol.
    • The traffic between two ports flows through the switches and not through any other ports like in Arbitrated Loop.
    • Failure of a port is isolated to a link and should not affect operation of other ports.
    • Multiple pairs of ports may communicate simultaneously in a Fabric.
AttributePoint-to-pointArbitrated loopSwitched fabric
Max ports2127~16777216 (224)
Address sizeN/A8-bit ALPA24-bit port ID
Side effect of port failureLink failsLoop fails (until port bypassed)N/A
Access to mediumDedicatedArbitratedDedicated

Layers[edit]

Fibre Channel does not follow the OSI model layering,[citation needed] and is split into five layers:

  • FC-4 – Protocol-mapping layer, in which upper level protocols such as NVMe, SCSIIP or FICON, are encapsulated into Information Units (IUs) for delivery to FC-2. Current FC-4s include FCP-4, FC-SB-5, and FC-NVMe.
  • FC-3 – Common services layer, a thin layer that could eventually implement functions like encryption or RAID redundancy algorithms; multiport connections;
  • FC-2 – Signaling Protocol, defined by the Fibre Channel Framing and Signaling 4 (FC-FS-5) standard, consists of the low level Fibre Channel protocols; port to port connections;
  • FC-1 – Transmission Protocol, which implements line coding of signals;
  • FC-0 – PHY, includes cabling, connectors etc.;

Fibre Channel is a layered technology that starts at the physical layer and progresses through the protocols to the upper level protocols like SCSI and SBCCS.

This diagram from FC-FS-4 defines the layers.

Layers FC-0 are defined in Fibre Channel Physical Interfaces (FC-PI-6), the physical layers of Fibre Channel.

Fibre Channel products are available at 1, 2, 4, 8, 10, 16 and 32 and 128 Gbit/s; these protocol flavors are called accordingly 1GFC, 2GFC, 4GFC, 8GFC, 10GFC, 16GFC, 32GFC or 128GFC. The 32GFC standard was approved by the INCITS T11 committee in 2013, and those products became available in 2016. The 1GFC, 2GFC, 4GFC, 8GFC designs all use 8b/10b encoding, while the 10GFC and 16GFC standard uses 64b/66b encoding. Unlike the 10GFC standards, 16GFC provides backward compatibility with 4GFC and 8GFC since it provides exactly twice the throughput of 8GFC or four times that of 4GFC.

Ports[edit]

FC topologies and port types: This diagram shows how N_Ports can be connected to a fabric or to another N_Port. A Loop Port (L_Port) communicates through a shared loop and is rarely used anymore.

Fibre Channel ports come in a variety of logical configurations. The most common types of ports are:

  • N_Port (Node port) An N_Port is typically an HBA port that connects to a switch’s F_Port or another N_Port. Nx_Port communicating through a PN_Port that is not operating a Loop Port State Machine.[13]
  • F_Port (Fabric port) An F_Port is a switch port that is connected to an N_Port.[14]
  • E_Port (Expansion port) Switch port that attaches to another E_Port to create an Inter-Switch Link.[14]

Fibre Channel Loop protocols create multiple types of Loop Ports:

  • L_Port (Loop port) FC_Port that contains Arbitrated Loop functions associated with the Arbitrated Loop topology.[14]
  • FL_Port (Fabric Loop port) L_Port that is able to perform the function of an F_Port, attached via a link to one or more NL_Ports in an Arbitrated Loop topology.[14]
  • NL_Port (Node Loop port) PN_Port that is operating a Loop port state machine.[14]

If a port can support loop and non-loop functionality, the port is known as:

  • Fx_Port switch port capable of operating as an F_Port or FL_Port.[13]
  • Nx_Port end point for Fibre Channel frame communication, having a distinct address identifier and Name_Identifier,providing an independent set of FC-2V functions to higher levels, and having the ability to act as an Originator, a Responder, or both.[13]

A Port has a physical structure as well as logical or virtual structure. This diagram shows how a virtual port may have multiple physical ports and vice versa.

Ports have virtual components and physical components and are described as:

  • PN_Port entity that includes a Link_Control_Facility and one or more Nx_Ports.[14]
  • VF_Port (Virtual F_Port) instance of the FC-2V sublevel that connects to one or more VN_Ports.[14]
  • VN_Port (Virtual N_Port) instance of the FC-2V sublevel. VN_Port is used when it is desired to emphasize support for multiple Nx_Ports on a single Multiplexer (e.g., via a single PN_Port).[13]
  • VE_Port (Virtual E_Port) instance of the FC-2V sublevel that connects to another VE_Port or to a B_Port to create an Inter-Switch Link.[14]

The following types of ports are also used in Fibre Channel:

  • A_Port (Adjacent port) combination of one PA_Port and one VA_Port operating together.[14]
  • B_Port (Bridge Port) Fabric inter-element port used to connect bridge devices with E_Ports on a Switch.[13]
  • D_Port (Diagnostic Port) A configured port used to perform diagnostic tests on a link with another D_Port.[15]
  • EX_Port A type of E_Port used to connect to an FC router fabric.[15]
  • G_Port (Generic Fabric port) Switch port that may function either as an E_Port, A_Port, or as an F_Port.[14]
  • GL_Port (Generic Fabric Loop port) Switch port that may function either as an E_Port, A_Port, or as an Fx_Port.[14]
  • PE_Port LCF within the Fabric that attaches to another PE_Port or to a B_Port through a link.[13]
  • PF_Port LCF within a Fabric that attaches to a PN_Port through a link.[13]
  • TE_Port (Trunking E_Port) A trunking expansion port that expands the functionality of E ports to support VSAN trunking, Transport quality of service (QoS) parameters, and Fibre Channel trace (fctrace) feature.[16]
  • U_Port (Universal port) A port waiting to become another port type[15]
  • VA_Port (Virtual A_Port) instance of the FC-2V sublevel of Fibre Channel that connects to another VA_Port.[14]
  • VEX_Port VEX_Ports are no different from EX_Ports, except underlying transport is IP rather than FC.[15]

Media and modules[edit]

Fibre Channel predominantly uses the SFP module with the LC connector and duplex cabling, but 128GFC uses the QSFP28 module and the MPO connectors and ribbon cabling.

The Fibre Channel physical layer is based on serial connections that use fiber optics to copper between corresponding pluggable modules. The modules may have a single lane, dual lanes or quad lanes that correspond to the SFP, SFP-DD and QSFP form factors. Fibre Channel has not used 8 or 16 lane modules (like CFP8, QSFP-DD, or COBO) used in 400GbE and has no plans to use these expensive and complex modules.

The small form-factor pluggable transceiver (SFP) module and its enhanced version SFP+, SFP28 and SFP56 are common form factors for Fibre Channel ports. SFP modules support a variety of distances via multi-mode and single-mode optical fiber as shown in the table below. The SFP module uses duplex fiber cabling that has LC connectors.

The SFP-DD module is used in high-density applications that need to double the throughput of traditional SFP ports.

The SFP-DD module is used for high density applications that need to double the throughput of an SFP Port. The SFP-DD is defined by the SFP-DD MSA and enables breakout to two SFP ports. As seen in the picture, two rows of electrical contacts enable the doubling of the throughput of the module in a similar fashion as the QSFP-DD.

The quad small form-factor pluggable (QSFP) module began being used for switch inter-connectivity and was later adopted for use in 4-lane implementations of Gen 6 Fibre Channel supporting 128GFC. The QSFP uses either the LC connector for 128GFC-CWDM4 or an MPO connector for 128GFC-SW4 or 128GFC-PSM4. The MPO cabling uses 8- or 12-fiber cabling infrastructure that connects to another 128GFC port or may be broken out into four duplex LC connections to 32GFC SFP+ ports. Fibre Channel switches use either SFP or QSFP modules.

FiberTypeSpeed (MB/s)Transmitter[17]Medium variantDistance
Single-modeFiber (SMF)12,8001,310 nm longwave light128GFC-PSM40.5m – 0.5 km
1,270, 1,290, 1,310 and 1,330 nm longwave light128GFC-CWDM40.5 m – 2 km
6,4001,310 nm longwave light64GFC-LW0.5m – 10km
3,2001,310 nm longwave light3200-SM-LC-L0.5 m – 10 km
1,6001,310 nm longwave light[ITS 1]1600-SM-LC-L[ITS 2]0.5 m – 10 km
1,490 nm longwave light[ITS 1]1600-SM-LZ-I[ITS 2]0.5 m – 2 km
8001,310 nm longwave light[ITS 3]800-SM-LC-L[ITS 4]2 m – 10 km
800-SM-LC-I[ITS 4]2 m – 1.4 km
4001,310 nm longwave light[ITS 3][ITS 5]400-SM-LC-L[ITS 6]2 m – 10 km
400-SM-LC-M[ITS 4]2 m – 4 km
400-SM-LL-I[ITS 7]2 m – 2 km
2001,550 nm longwave light[ITS 8]200-SM-LL-V[ITS 8]2 m – 50 km
1,310 nm longwave light[ITS 5][ITS 3]200-SM-LC-L[ITS 6]2 m – 10 km
200-SM-LL-I[ITS 7]2 m – 2 km
1001,550 nm longwave light[ITS 8]100-SM-LL-V[ITS 8]2 m – 50 km
1,310 nm longwave light[ITS 9][ITS 3]100-SM-LL-L[ITS 10]
100-SM-LC-L[ITS 6]
2 m – 10 km
100-SM-LL-I[ITS 10]2 m – 2 km
Multi-modeFiber (MMF)12,800850 nm shortwave light[ITS 11][ITS 12][ITS 13]128GFC-SW40 – 100 m
6,40064GFC-SW0 – 100m
3,2003200-SN0 – 100 m
1,6001600-M5F-SN-I[ITS 14]0.5 m – 125 m
1600-M5E-SN-I[ITS 14]0.5–100 m
1600-M5-SN-S[ITS 14]0.5–35 m
1600-M6-SN-S[ITS 15]0.5–15 m
800800-M5F-SN-I[ITS 14]0.5–190 m
800-M5E-SN-I[ITS 16]0.5–150 m
800-M5-SN-S[ITS 16]0.5–50 m
800-M6-SN-S[ITS 16]0.5–21 m
400400-M5F-SN-I[ITS 14]0.5–400 m
400-M5E-SN-I[ITS 16]0.5–380 m
400-M5-SN-I[ITS 17]0.5–150 m
400-M6-SN-I[ITS 17]0.5–70 m
200200-M5E-SN-I[ITS 16]0.5–500 m
200-M5-SN-I[ITS 17]0.5–300 m
200-M6-SN-I[ITS 17]0.5–150 m
100100-M5E-SN-I[ITS 18]0.5–860 m
100-M5-SN-I[ITS 19]0.5–500 m
100-M6-SN-I[ITS 19]0.5–300 m
100-M5-SL-I[ITS 19]2–500 m
100-M6-SL-I[ITS 20]2–175 m
Multi-mode fiberFiber diameterFC media designation
OM162.5 µmM6
OM250 µmM5
OM350 µmM5E
OM450 µmM5F
OM550 µmN/A

Modern Fibre Channel devices support SFP+ transceiver, mainly with LC (Lucent Connector) fiber connector. Older 1GFC devices used GBIC transceiver, mainly with SC (Subscriber Connector) fiber connector.

Storage area networks[edit]

The Fibre Channel SAN connects servers to storage via Fibre Channel switches.

The goal of Fibre Channel is to create a storage area network (SAN) to connect servers to storage.

The SAN is a dedicated network that enables multiple servers to access data from one or more storage devices. Enterprise storage uses the SAN to backup to secondary storage devices including disk arrays, tape libraries, and other backup while the storage is still accessible to the server. Servers may access storage from multiple storage devices over the network as well.

SANs are often designed with dual fabrics to increase fault tolerance. Two completely separate fabrics are operational and if the primary fabric fails, then the second fabric becomes the primary.

Switches[edit]

Fibre Channel director with SFP+ modules and LC optical fiber connectors with Optical Multimode 3 (OM3) fiber (aqua).

Fibre Channel switches can be divided into two classes. These classes are not part of the standard, and the classification of every switch is a marketing decision of the manufacturer:

  • Directors offer a high port-count in a modular (slot-based) chassis with no single point of failure (high availability).
  • Switches are typically smaller, fixed-configuration (sometimes semi-modular), less redundant devices.

A fabric consisting entirely of one vendors products is considered to be homogeneous. This is often referred to as operating in its “native mode” and allows the vendor to add proprietary features which may not be compliant with the Fibre Channel standard.

If multiple switch vendors are used within the same fabric it is heterogeneous, the switches may only achieve adjacency if all switches are placed into their interoperability modes. This is called the “open fabric” mode as each vendor’s switch may have to disable its proprietary features to comply with the Fibre Channel standard.

Some switch manufacturers offer a variety of interoperability modes above and beyond the “native” and “open fabric” states. These “native interoperability” modes allow switches to operate in the native mode of another vendor and still maintain some of the proprietary behaviors of both. However, running in native interoperability mode may still disable some proprietary features and can produce fabrics of questionable stability.

Host bus adapters[edit]

Dual port 8Gb FC host bus adapter card.

Dual port 16Gb FC host bus adapter card.

Fibre Channel HBAs, as well as CNAs, are available for all major open systems, computer architectures, and buses, including PCI and SBus. Some are OS dependent. Each HBA has a unique World Wide Name (WWN), which is similar to an Ethernet MAC address in that it uses an Organizationally Unique Identifier (OUI) assigned by the IEEE. However, WWNs are longer (8 bytes). There are two types of WWNs on a HBA; a node WWN (WWNN), which can be shared by some or all ports of a device, and a port WWN (WWPN), which is necessarily unique to each port.

Read more

世界越快心越慢

在晚飯後的休息時間,我特別享受在客廳瀏灠youtube上各樣各式創作者的影音作品。很大不同於傳統媒體,節目多是針對大多數族群喜好挑選的,在youtube上我會依心情看無腦的動畫、一些旅拍記錄、新聞時事談論。 尤其在看了大量的Youtube的分享後,我真的感受到會限制我的是我的無知,特別是那些我想都沒想過的實際應用,在學習後大大幫助到我的生活和工作層面。 休息在家時,我喜歡想一些沒做過的菜,動手去設計生活和工作上的解決方案,自己是真的很難閒著沒事做。 如創作文章,陪養新的習慣都能感覺到成長的喜悅,是不同於吃喝玩樂的快樂的。 創作不去限制固定的形式,文字是創作、影像聲音也是創作,記錄生活也是創作,我想留下的就是創造—》實現—》回憶,這樣子的循環過程,在留下的足跡面看到自己一路上的成長、失敗、絕望、重新再來。 雖然大部份的時候去做這些創作也不明白有什麼特別的意義,但不去做也不會留下什麼,所以呀不如反事都去試試看,也許能有不一樣的水花也許有意想不到的結果,投資自己永遠不會是失敗的決定,不是嗎?先問問自己再開始計畫下一步,未來沒人說得準。 像最近看youtube仍大一群人在為DOS開

By Phillips Hsieh

知識管理的三個步驟:一小時學會把知識運用到生活上

摘錄瓦基「閱讀前哨站」文章作為自己學習知識管理的內容 Part1「篩選資訊」 如何從海量資訊中篩選出啟發性、實用性和相關性的精華,讓你在學習過程中不再迷失方向。 1. 實用性 2. 啟發性 Part2「提高理解」 如何通過譬喻法和應用法,將抽象的知識與日常生活和工作緊密結合,建立更深刻的理解。 1. 應用法 2. 譬喻法 Part3「運用知識」 如何連結既有知識,跟自己感興趣的領域和專案產生關聯,讓你在運用知識的路途上游刃有餘。 1. 跟日常工作專案、人際活動產生連結 # 為什麼要寫日記? * 寫日記是為了忘記,忘卻瑣碎事情,保持專注力 * 寫日記就像在翻譯這個世界,訓練自己的解讀能力 * 不只是透過日記來記錄生活,而是透過日記來發展生活 #如何寫日記? * 不要寫流水帳式的日記,而是寫覆盤式的日記 當我們試著記錄活動和感受之間的關聯,有助於辦認出真正快樂的事 日記的記錄方式要以過程為主,而非結果 * 感恩日記的科學建議,每日感恩的案例

By Phillips Hsieh
2024年 3月30日 14屆美利達環彰化百K

2024年 3月30日 14屆美利達環彰化百K

這是場半小時就被秒報名額滿的經典賽事, 能順利出賽實屬隊友的功勞, 這次的準備工作想試試新買的外胎, 因為是無內胎用的外胎, 特別緊超級難安裝的, 問了其他朋友才知道, 要沾上肥皂水才容易滑入車框。 一早四點起床準備, 五點集合備好咖啡在車上飲用, 約了六點在彰化田尾鄉南鎮國小, 整好裝四人一起出發前往會場。 被排在最後一批出發, 這次的路線會繞行的員林148上139縣道, 其實在早上五點多天就開始有點飄雨, 大伙就開始擔心不會要雨戰吧! 果不其然才出發準備上148爬坡雨勢越來越大, 戴著防風眼鏡的我在身體的熱氣加上雨水冷凝效果下, 鏡面上滿是霧氣肉眼可視距離才剩不到五公尺, 只能緊依前前方的車友幫忙開路, 之後洪大跟上來我立馬請求他幫忙開路, 上了139停下車把防風眼鏡收起來, 反正下雨天又陰天完全用不到太陽眼鏡了。 雨是邊下邊打雷, 大伙都在這條139上一台一台單車好像避電針, 一時有點害怕不然想平時沒做什麼壞事, 真打到自己就是天意了。 下了139雨勢開始變小, 大伙的速度開始有所提昇, 開高鐵列車的時機己成熟, 物色好列車就跟好跟滿。 最後找了一隊似乎整團有固定在練

By Phillips Hsieh
2023 12月9號 美利達單車嘉年華

2023 12月9號 美利達單車嘉年華

第二次參加美利達環南投賽事, 還記得去年第一次參加這美利達環南投, 還特地提前一天跟車友在魚池住了一晚。 這回用上了剛在7月份剛安裝的車頂架, 安裝了二種不同的攜車架, 都樂這邊可以不用拆車輪直上車頂, YAKIMA這邊選了經濟的款式, 折掉前輪利用前叉固定在攜車架上。 約了唯一一位一起參加的朋友, 二人一早四點約見面, 幫朋友帶上了拿鐵咖啡, 開上日月潭在水社碼頭停好車, 騎往向山遊客中心, 路過美麗的日月潭簡直不要太美了拍一張。 抵達會場己是人山人海了, 跟著大伙排隊順便也看網紅也欣賞名車。 出發就先沿著日月潭順時針騎, 騎到玄裝寺很急停下來上一下廁所, 比賽時都會尿都特別的滿, 一方面是比較緊張,一方面是特別興奮。 這時己經跟車友失散了, 只能獨推沿路看有沒有車友可以一起組隊的, 很可惜在山區大家的實力不一只求平安順騎了, 原則就是有補給就停有食物就吃。 下到水里人群再次聚集起來, 光等紅綠燈就是一條車龍。 騎行了一大圈水里再回到131縣道, 這時背後傳來熟悉的聲音叫菲哥, 終於跟車友重新集合接下來就一路邊聊邊騎。 最後來幾張專業攝影師拍攝的照片 回到終點台上

By Phillips Hsieh