Docsity

Internetworking - Network Processing Architectures - Lecture Slides, Slides of Computer Architecture and Organization

Partial preview of the text

Download Internetworking - Network Processing Architectures - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

Internetworking:

Hardware/Software Interface

Protocols: HW/SW Interface

• Internetworking: allows computers on independent and

incompatible networks to communicate reliably and

efficiently;

  • Enabling technologies: SW standards that allow reliable

communications without reliable networks

  • Hierarchy of SW layers, giving each layer responsibility for

portion of overall communications task, called

protocol families or protocol suites

• Transmission Control Protocol/Internet Protocol (TCP/IP)

  • This protocol family is the basis of the Internet
  • IP makes best effort to deliver; TCP guarantees delivery
  • TCP/IP used even when communicating locally: NFS uses IP

even though communicating across homogeneous LAN

CPU

User

Kernel

NIC NIC

PCI Bus

Communicating with the Server:

The O/S Wall

Problems:

  • O/S overhead to move a packet between network and application level => Protocol Stack (TCP/IP)
    • O/S interrupt
    • Data copying from kernel space to user space and vice versa
  • Oh, the PCI Bottleneck!

The Send/Receive Operation

• The application writes the transmit data to the

TCP/IP sockets interface for transmission in

payload sizes ranging from 4 KB to 64 KB.

• The data is copied from the User space to the

Kernel space

• The OS segments the data into maximum

transmission unit (MTU)–size packets, and then

adds TCP/IP header information to each packet.

• The OS copies the data onto the network

interface card (NIC) send queue.

• The NIC performs the direct memory access

(DMA) transfer of each data packet from the TCP

buffer space to the NIC, and interrupts CPU

activities to indicate completion of the transfer.

Timing Measurement in UDP Communication

X.Zhang, L. Bhuyan and W. Feng, ““Anatomy of UDP and M-VIA for Cluster Communication” JPDC, October 2005

I/O Acceleration Techniques

  • TCP Offload: Offload TCP/IP Checksum and Segmentation to Interface

hardware or programmable device (Ex. TOEs) – A TOE-enabled NIC using Remote Direct Memory Access (RDMA) can use zero-copy algorithms to place data directly into application buffers.

  • O/S Bypass: User-level software techniques to bypass protocol stack
    • Zero Copy Protocol (Needs programmable device in the NIC for direct user level memory access
  • Virtual to Physical Memory Mapping. Ex. VIA)
  • Architectural Techniques: Instruction set optimization,

Multithreading, copy engines, onloading, prefetching, etc.

Chelsio 10 Gbs TOE

Cluster (Network) of

Workstations/PCs

InfiniBand Interconnection

  • Zero-copy mechanism. The zero-copy mechanism enables a user-level application to perform I/O on the InfiniBand fabric without being required to copy data between user space and kernel space.
  • RDMA. RDMA facilitates transferring data from remote memory to local memory without the involvement of host CPUs.
  • Reliable transport services. The InfiniBand architecture implements reliable transport services so the host CPU is not involved in protocol-processing tasks like segmentation, reassembly, NACK/ACK, etc.
  • Virtual lanes. InfiniBand architecture provides 16 virtual lanes (VLs) to multiplex independent data lanes into the same physical lane, including a dedicated VL for management operations.
  • High link speeds. InfiniBand architecture defines three link speeds, which are characterized as 1X, 4X, and 12X, yielding data rates of 2.5 Gbps, 10 Gbps, and 30 Gbps, respectively.

Reprinted from Dell Power Solutions, October 2004. BY ONUR CELEBIOGLU, RAMESH RAJAGOPALAN, AND RIZWAN ALI

InfiniBand system fabric

Timing Measurement in UDP Communication

X.Zhang, L. Bhuyan and W. Feng, ““Anatomy of UDP and M-VIA for Cluster Communication” JPDC, October 2005

Network Bandwidth is Increasing

10

100 40

GHz and Gbps

(^1990 1995 2000 2003 2005 2010) Time

.

0.

1

10

100

1000

2006/

Network bandwidth outpaces Moore’s Law

Moore’s Law

TCP requirements Rule of thumb:

1GHz for 1Gbps

The gap between the rate of

processing network applications

and the fast growing network

bandwidth is increasing

Five Emerging Technologies

• Optimized Network Protocol Stack (ISSS+CODES, 2003)

• Cache Optimization (ISSS+CODES, 2003, ANCHOR, 2004)

• Network Stack Affinity Scheduling

• Direct Cache Access

• Lightweight Threading

• Memory Copy Engine (ICCD 2005 and IEEE TC)

Stack Optimizations (Instruction Count)

  • Separate Data & Control Paths
    • TCP data-path focused
    • Reduce # of conditionals
    • NIC assist logic (L3/L4 stateless logic)
  • Basic Memory Optimizations
    • Cache-line aware data structures
    • SW Prefetches
  • Optimized Computation
    • Standard compiler capability

3X reduction in Instructions per Packet