Middlebox

From Wikipedia, the free encyclopedia
Jump to: navigation, search

A middlebox or network appliance is a computer networking device that transforms, inspects, filters, or otherwise manipulates traffic for purposes other than packet forwarding.[1] Common examples of middleboxes include firewalls, which filter unwanted or malicious traffic, and network address translators, which modify packets' source and destination addresses. Dedicated middlebox hardware is widely deployed in enterprise networks to improve network security and performance, however, even home network routers often have integrated firewall, NAT, or other middlebox functionality.[2] The widespread deployment of middleboxes and other network appliances has resulted in some challenges and criticism due to poor interaction with higher layer protocols.

Types of middleboxes[edit]

The following are examples of commonly deployed middleboxes:

  • Firewalls filter traffic based on a set of pre-defined security rules defined by a network administrator. IP firewalls reject packets "based purely on fields in the IP and Transport headers (e.g., disallow incoming traffic to certain port numbers, disallow any traffic to certain subnets, etc.)"[1] Other types of firewalls may use more complex rulesets, including those that inspect traffic at the session or application layer.[3]
  • Intrusion Detection Systems monitor traffic and collect data for offline analysis for security anomalies. Because IDSes unlike firewalls do not filter packets in real-time, they traditionally are capable of more complex inspection than firewalls, which must make an accept/reject decision about each packet as it arrives.[4]
  • Network Address Translators replace the source and/or destination IP addresses of packets that traverse them. Typically, NATs are deployed to allow multiple end hosts to share a single IP address: hosts "behind" the NAT are assigned a private IP address, and their packets destined to the public Internet traverse a NAT which replaces their internal, private address, with a shared public address.[5]
  • WAN Optimizers improve bandwidth consumption and perceived latency between dedicated endpoints.[6] Typically deployed in large enterprises, WAN optimizers are deployed near both sending and receiving endpoints of communication; the devices then coordinate to cache and compress traffic that traverses the Internet.
  • Load balancers provide one point of entry to a service, but forward traffic flows to one or more hosts that actually provide the service.

Criticism and challenges[edit]

Although widely deployed, middleboxes have generated some technical challenges for application development and some controversy regarding their impact.

Application interference[edit]

Some middleboxes interfere with application functionality, restricting or preventing end host applications from performing properly.

Network Address Translators present a challenge in that NAT devices divide traffic destined to a public IP address across several receivers. When connections between a host on the Internet and a host behind the NAT are initiated by the host behind the NAT, the NAT learns that traffic for that connection belongs to the local host. Thus, when traffic coming from the Internet is destined to the public (shared) address on a particular port, the NAT can direct the traffic to the appropriate host. However, connections initiated by a host on the Internet do not present the NAT any opportunity to "learn" which internal host the connection belongs to. Moreover, the internal host itself may not even know its own public IP address to announce to potential clients what address to connect to. To resolve this issue, several new protocols have been proposed.[7][8][9]

Other common middlebox-induced application challenges include web proxies serving "stale" or out of date content,[10] and firewalls rejecting traffic on desired ports.[11]

Internet extensibility and design[edit]

One criticism of middleboxes is they can limit choice of transport protocols, thus placing limits on application or service designs. Middleboxes may filter or drop traffic that does not conform to expected behaviors, so new or uncommon protocols or protocol extensions may be filtered by middleboxes.[12] Conversely, certain types of middlebox can assist in protocol deployment by providing a translation between new and old protocols: IPv6, for example, can be deployed on public endpoints such as load balancers, proxies, or other forms of NAT, with backend traffic routed over IPv4 or IPv6.

More generally, middleboxes are considered to violate the The End to End Principle of computer system design.[13]

References[edit]

  1. ^ a b Carpenter, B (2002). "Middleboxes: Taxonomy and Issues". RFC 3234. 
  2. ^ Ido Dubrawsky and Wes Noonan. "Broadband Routers and Firewalls". CISCO Press. Retrieved 15 July 2012. 
  3. ^ Magalhaes, Ricky. "The Difference Between Application and Session Layer Firewalls". Retrieved 17 July 2012. 
  4. ^ "Understanding Intrusion Detection Systems". Retrieved 17 July 2012. 
  5. ^ K. Egevang and P. Francis. "The IP Network Address Translator (NAT)". RFC 1631. 
  6. ^ Poe, Robert. "What Is WAN Optimization, and How Can It Help You?". Retrieved 17 July 2012. 
  7. ^ J. Rosenberg et al. "Session Traversal Utilities for NAT (STUN)". RFC 5389. 
  8. ^ "NAT-PMP". Retrieved 17 July 2012. 
  9. ^ "Port Control Protocol Working Group". Retrieved 17 July 2012. 
  10. ^ "BlueCoat Knowledge Base: Proxy is displaying stale content". Retrieved 17 July 2012. 
  11. ^ "Using FaceTime and iMessage behind a firewall". Retrieved 17 July 2012. 
  12. ^ Honda et al. (2011). "Is it still possible to extend TCP?". Internet Measurement Conference. 
  13. ^ Walfish et al (2004). "Middleboxes no longer considered harmful". OSDI. Retrieved 17 July 2012. 

See also[edit]