US20160044145A1 - Learning a mac address - Google Patents

Learning a mac address Download PDF

Info

Publication number
US20160044145A1
US20160044145A1 US14/885,870 US201514885870A US2016044145A1 US 20160044145 A1 US20160044145 A1 US 20160044145A1 US 201514885870 A US201514885870 A US 201514885870A US 2016044145 A1 US2016044145 A1 US 2016044145A1
Authority
US
United States
Prior art keywords
session cache
cache item
node
mac address
relationship
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US14/885,870
Inventor
Wan Zhou
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hewlett Packard Enterprise Development LP
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to CN201110291273.2A priority Critical patent/CN102291320B/en
Priority to CN201110291273.2 priority
Priority to PCT/CN2012/082149 priority patent/WO2013044821A1/en
Priority to US201414236033A priority
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to US14/885,870 priority patent/US20160044145A1/en
Assigned to HANGZHOU H3C TECHNOLOGIES CO., LTD. reassignment HANGZHOU H3C TECHNOLOGIES CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: ZHOU, Wan
Publication of US20160044145A1 publication Critical patent/US20160044145A1/en
Assigned to HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP reassignment HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: H3C TECHNOLOGIES CO., LTD., HANGZHOU H3C TECHNOLOGIES CO., LTD.
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/22Header parsing or analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L29/00Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00
    • H04L29/12Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00 characterised by the data terminal
    • H04L29/12009Arrangements for addressing and naming in data networks
    • H04L29/12792Details
    • H04L29/12811Caching of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L29/00Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00
    • H04L29/12Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00 characterised by the data terminal
    • H04L29/12009Arrangements for addressing and naming in data networks
    • H04L29/12792Details
    • H04L29/1283Details about address types
    • H04L29/12839Layer 2 addresses, e.g. Medium Access Control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/742Route cache and its operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/10Mapping of addresses of different types; Address resolution
    • H04L61/103Mapping of addresses of different types; Address resolution across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/60Details
    • H04L61/6009Caching of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/60Details
    • H04L61/6018Address types
    • H04L61/6022Layer 2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Abstract

A method and an edge device for learning a Medium Access Control (MAC) address are provided. According to an example, based on a request message from a first node to a second node, a session cache item is created in the edge device. The session cache item includes: IP addresses of the first and second nodes, and a first relationship between a MAC address of the first node and an output port corresponding to the first node. Based on a response message from the second node to the first node, the session cache item is updated to include a second relationship between a MAC address of the second node and an output port corresponding to the second node. The first and second relationships are then provided to a data plane of the edge device to facilitate data packet forwarding between the first node and the second node.

Description

    BACKGROUND
  • In order to provide better services, service providers usually deploy multiple data centers in different locations, so as to implement load balancing and achieve high availability, and further to realize random migration of virtual machines between the data centers. Since the migration of the virtual machines is transparent to users, Internet Protocol (IP) addresses and Media Access Control (MAC) addresses of the virtual machines should not change. Therefore, layer-2 interconnection between data centers located in different locations is desirable.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • Features of the present disclosure are illustrated by way of example and not limited in the following figure(s), in which like numerals indicate like elements, in which:
  • FIG. 1 is a schematic diagram illustrating a conventional network structure of layer-2 interconnection of data centers.
  • FIG. 2 is a schematic diagram illustrating a conventional MAC address learning process.
  • FIG. 3 is a flowchart illustrating a method according to an example of the present disclosure.
  • FIG. 4 is a schematic diagram illustrating a method according to an example of the present disclosure.
  • FIG. 5 is a schematic diagram illustrating a method according to another example of the present disclosure.
  • FIG. 6 is a schematic diagram illustrating a structure of an edge device according to an example of the present disclosure.
  • FIG. 7 is a schematic diagram illustrating a structure of an edge device according to another example of the present disclosure.
  • DETAILED DESCRIPTION
  • Hereinafter, the present disclosure will be described in further detail with reference to the accompanying drawings and examples.
  • For simplicity and illustrative purposes, the present disclosure is described by referring to examples. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. It will be readily apparent however, that the present disclosure may be practiced without limitation to these specific details. In other instances, some methods and structures have not been described in detail so as not to unnecessarily obscure the present disclosure. As used herein, the term “includes” means includes but not limited to, the term “including” means including but not limited to. The term “based on” means based at least in part on. In addition, the terms “a” and “an” are intended to denote at least one of a particular element.
  • FIG. 1 is a schematic diagram illustrating a conventional network structure of a layer-2 interconnection of data centers. In the network structure shown in FIG. 1, there are three sites: site A, site B, and site C. A data center is deployed in each site and is connected to an IP core network through an Edge Device (ED) of the data center, so as to realize layer-2 interconnection of the data centers.
  • In the network structure shown in FIG. 1, each ED needs to learn the MAC addresses of all of the hosts in all of the Virtual Private Networks (VPNs) of each site. An ED may be a network device such as a router, routing switch, switch, multiplexer etc. A host is a node that is connected to the network via an ED, such as a host computing device, routing device, and portable communications device etc.
  • FIG. 2 is a schematic diagram illustrating a conventional MAC address learning process. As shown in FIG. 2, it is supposed that a MAC address forwarding table in each of Edge Devices ED1, ED2, and ED3 shown in FIG. 2 is initially null. Consider the case where host A in VPN 1 of ED1 needs to communicate with host B in VPN 1 of ED3. The MAC address of host A is MAC_A, and the IP address of host A is IP_A (e.g., 1.1.1.1). Host A knows only the IP address of host B (i.e., IP_B, e.g., 1.1.1.2) but not the MAC address of host B. Thus, host A needs to learn the MAC address of host B in order to communicate with host B using the MAC address of host B.
  • The MAC address learning process according to an example in conventional systems is as follows.
  • Firstly, host A broadcasts an Address Resolution Protocol (ARP)request message in a Virtual Local Area Network (VLAN) to learn the MAC address of host B; see 202. The ARP is a protocol for resolution of network layer (layer-3) addresses into link layer (layer-2) addresses, A Target IP address in the ARP request message is IP_B, a Sender IP address in the ARP request message is IP_A, a Sender MAC address is MAC_A. The Sender of the ARP request message is a device that initially transmits the ARP request message, which is host A in this example.
  • The ARP request message arrives at ED1 of the site where host A is initially located; see 204 in FIG. 2. When the ARP request message broadcasted by host A is received, ED1 learns the Sender MAC address of the ARP request message (i.e., MAC_A), and advertises the learnt MAC_A to ED2 and ED3. Any suitable protocol may be used for the advertisement, such as the Intermediate System to Intermediate System (ISIS) protocol etc. ED1 adds an item or entry about MAC_A in a local MAC address forwarding table that includes: VPN is VPN1, MAC address is MAC_A, output port is Port1 (the port through which the ARP request message was received by ED1, since host A and ED1 are in the same site, and Port1 is a local port at ED1); see 206 in FIG. 2.
  • The ARP request message also arrives at ED2 and ED3; see 208 and 210 in FIG. 2 respectively. After the ARP request message is received, ED2 and ED3 broadcast the ARP request message to hosts under them; see 212 and 214 in FIG. 2 respectively.
  • In addition, ED2 and ED3 learn the MAC_A advertised by ED1 using ISIS. After MAC_A advertised by ED1 using ISIS is learnt, ED2 and ED3 respectively add an item about MAC_A in their respective local MAC address forwarding tables. More specifically, the item about MAC_A added by ED2 in its local MAC address forwarding table includes: VPN is VPN1, MAC address is MAC_A, output port is Link1 (Link1 denotes the port through which MAC_A was learnt by ED2, since ED1 and ED2 are in different sites, this port corresponds to a VLAN link between ED2 and ED1); see 216 in FIG. 2. The item about MAC_A added by ED3 in the local MAC address forwarding table of ED3 includes: VPN is VPN1, MAC address is MAC_A, output port is Link2 (Link2 denotes the port through which MAC_A was learnt by ED3, since ED1 and ED3 are in different sites, this port corresponds to a VLAN link between ED3 and ED1); see 218 in FIG. 2.
  • After the ARP request message is received, host B finds that the Target IP address of the ARP request message is the IP address of host B and returns an ARP response message; see 220 in FIG. 2. A Target MAC address of the ARP response message is MAC_A, a Target IP address is IP_A, a Sender IP address is IP_B and a Sender MAC address is MAC_B, wherein the Sender of the ARP response message is a device that initiates the ARP response message.
  • For other hosts such as host C, since the Target IP address of the ARP request message is not their IP address, they do not respond to the ARP request message.
  • The ARP response message transmitted by host B arrives at ED3 of the site where host B is located. When the ARP response message is received, ED3 learns the Sender MAC address (i.e., MAC_B) of the ARP response message, and adds an item about MAC_B in the local MAC address forwarding table of ED3: VPN is VPN1, MAC address is MAC_B, output port is Port1 (which is a local port through which the ARP response message was received by ED3); see 222 in FIG. 2.
  • ED3 searches the local MAC address forwarding table for an output port corresponding to the Target IP address. Since the Target IP address is the IP address of host A, according to the item added by ED3 in the local MAC address forwarding table according to the ARP request message broadcasted by host A, ED3 is able to determine that the output port for the Target IP address is Link2; see 218 in FIG. 2 again. Thus, ED3 transmits the ARP response message through Link2. At the same time, ED3 advertises MAC_B to ED1 and ED2 using ISIS, such that ED1 and ED2 may add an item about MAC_B in their local MAC address forwarding tables; see 224 and 226 in FIG. 2.
  • After MAC_B advertised by ED3 is learnt, ED1 adds an item about MAC_B in the local MAC address forwarding table: VPN is VPN1, MAC address is MAC_B, output port is Link2 (the port through which MAC_B was learnt by ED1, in particular, the port corresponds to a virtual Ethernet link between ED1 and ED3); see 224 in FIG. 2.
  • After the ARP response message transmitted by ED3 is received, ED1 searches the local MAC address forwarding table for an output port corresponding to the Target IP address. According to the item 206 added by ED1 in the local MAC address forwarding table according to the ARP request message broadcasted by host A, ED1 determines that the output port for the Target IP address is Port1. Thus, ED1 transmits the ARP response message through Port1 to host A.
  • After the ARP response message is received, host A knows the MAC address of the Target, i.e., host B. Thereafter, host A may initiate communication with host B.
  • Now, the MAC address learning process in the example in FIG. 2 is finished.
  • In the example in FIG. 2, network nodes or entities that really need to communicate are host A and host B. Therefore, only ED1 in the site of host A and ED3 in the site of host B need to learn the MAC address of host A and host B respectively. ED2 does not need to learn the MAC address of host A and the MAC address of host B. In other words, ED1 does not need to advertise MAC_A to ED2 using ISIS, and ED3 does not need to advertise MAC_B to ED2 using ISIS, either. Further, ED2 does not need to create items about MAC addresses of host A and host B in the local MAC address forwarding table; see 216 and 226 in FIG. 2. It can be seen that, the existing MAC address learning method according to FIG. 2 greatly wastes resources of ED2 which stores unnecessary MAC address items in its forwarding table. In addition, since ED1 advertises MAC_A to ED2 using ISIS and ED3 advertises MAC_B to ED2, resources of other EDs are also wasted.
  • In contrast to the above, one or more examples of the present disclosure provide a method and an edge device for learning a MAC address, so as to increase resource utilization in an ED and reduce unnecessary storage of MAC address items.
  • According to an example, disclosed herein is a method for learning a MAC address, applied in an ED in a layer-2 virtual interconnection network of data centers. The method includes:
    • based on an ARP request message from a first node to a second node, creating in a control plane of the ED a session cache item, wherein the session cache item includes: (i) IP address of the second node, (ii) IP address of the first node, and (iii) a first relationship between a MAC address of the first node and an output port corresponding to the MAC address of the first node;
    • based on an ARP response message from the second node to the first node, updating the session cache item having the IP address of the first node and the IP address of the second node, wherein the updated session cache item further includes: (iv) a second relationship between a MAC address of the second node and an output port corresponding to the MAC address of the second node,
    • forwarding the ARP response message via the output port corresponding to the MAC address of the first node in the first relationship in the session cache item; and
    • providing the first relationship and the second relationship to a data plane of the edge device to facilitate data packet forwarding between the first node and the second node.
  • According to another example, disclosed herein is a method for learning a MAC address, applied to an ED in a layer-2 interconnection between data centers. The method including:
    • capturing an ARP request message, creating in a control plane a session cache item containing: a Target IP address of the ARP request message, a Sender IP address of the ARP request message, a Sender MAC address of the ARP request message, and an output port corresponding to the Sender MAC address;
    • capturing an ARP response message, finding, in created session cache items, a session cache item containing: a Target IP address and a Sender IP address of the ARP response message, adding a Sender MAC address of the ARP response message and an output port corresponding to the Sender MAC address of the ARP response message to the session cache item found, forwarding the ARP response message through the output port corresponding to the Sender MAC address of the ARP request message in the session cache item; and
    • providing or issuing a relationship between the Sender MAC address and the output port of the ARP request message in the session cache item and a relationship between the Sender MAC address and the output port of the ARP response message in the session cache item to a data plane to instruct or facilitate data packet forwarding; or
    • advertising a local MAC address in the session cache item through the output port corresponding to a remote MAC address in the session cache item, receiving a MAC address advertised by another ED, and issuing or providing a relationship between the MAC address received and a port through which the MAC address was received to a data plane to instruct data packet forwarding.
  • FIG. 3 is a flowchart 300 illustrating a method according to an example of the present disclosure. The example method depicted in FIG. 3 is applied in a layer-2 interconnection network between data centers including at least two sites. In the layer-2 interconnection network, each ED is enabled with an ARP snooping function for snooping or capturing all ARP messages forwarded by the ED. An ARP message may be an ARP request message, an ARP response message, a gratuitous ARP message broadcasted by a host migrated to a new site, etc., which is not restricted in the present disclosure.
  • Based on the above, the operations performed by each ED according to an example of the present disclosure include the following.
  • At block 310 in FIG. 3, an ARP request message from a first node to a second node is captured by the ED. One of the first node and the second node is a local node of the ED, while the other node is a remote node of the ED.
  • At block 320 in FIG. 3, the ED creates a session cache item in a control plane of the ED based on the ARP request message from the first node to the second node. The created session cache item includes:
    • (i) an IP address of the second node, that is a Target IP address of the ARP request message;
    • (ii) an IP address of the first node, that is a Sender IP address of the ARP request message;
    • (iii) Relationship (“first relationship”) between the MAC address of the first node and its corresponding output port. The MAC address of the first node is a Sender MAC address of the ARP request message from the first node; and its corresponding output port is an output port corresponding to the Sender MAC address of the ARP request message.
  • For facilitating the description, in block 310, the output port corresponding to the Sender MAC address of the ARP request message is also referred to as a first output port. The first output port may be a port through which the ARP request message is received, such that a message may be transmitted to the Sender MAC address through the port. The first output port may be a local port or a port corresponding to a virtual Ethernet link. For example:
    • If the ARP request message is broadcasted by a first node such as a host or routing device located in a local site, the Sender MAC address of the ARP request message is a local MAC address, and the first output port corresponding to the Sender MAC address is a local port.
    • If the ARP request message is broadcasted by a first node such as a host or routing device located in a remote site, the Sender MAC address of the ARP request message is a remote MAC address, and the first output port corresponding to the Sender MAC address is a port corresponding to a virtual Ethernet link between a local ED and the remote ED.
  • At block 330 in FIG. 3, an ARP response message from the second node to the first node is captured.
  • At block 340 in FIG. 3, the session cache item having the IP address of the first node and the IP address of the second node is updated. The session cache item is updated to further include:
    • (v) Relationship (“second relationship”) between the MAC address of the second node and its corresponding output port. The MAC address of the second node is the Sender MAC address of the ARP response message from the second node; and its corresponding output port is the output port corresponding to the Sender MAC address of the ARP response message.
  • Block 340 may include finding, in created session cache items, the session cache item with the Target IP address and the Sender IP address of the ARP response message before updating the found session cache item.
  • At block 350 in FIG. 3, the ARP response message is forwarded through the first output port in the session cache item, that is the output port corresponding to the MAC address of the first node. Then block 360 is performed.
  • The ARP response message from the second node to the first node in blocks 330 to 350 is a response to the ARP request message from the first node.
  • For facilitating the description, the output port corresponding to the Sender MAC address of the ARP response message is referred to as a second output port, in which the second output port may be a port through which the ARP response message was received, such that a message may be transmitted to the Sender MAC address of the ARP response message through this port. Similar to the first output port, the second output port may be a local port or a port corresponding to a virtual Ethernet link. For example:
    • If the ARP response message is unicasted by a second node such as host or routing device located in a local site, the Sender MAC address of the ARP response message is a local MAC address and the second output port corresponding to the Sender MAC address is a local port.
    • If the ARP response message is unicasted by a second node such as a host or routing device located in a remote site, the Sender MAC address of the ARP response message is a remote MAC address and the second output port corresponding to the Sender MAC address is a port corresponding to a virtual Ethernet link between a local ED and the remote ED.
  • It may be seen from blocks 310 to 340 that, after the session cache item is updated at block 340, one of the Sender MAC address of the ARP request message and the Sender MAC address of the ARP response message is a local MAC address, the output port corresponding to the local MAC address is a local port through which a local ED accesses the local MAC address. The other is a remote MAC address of a remote site, and the corresponding output port is a port corresponding to the virtual Ethernet link between the local ED and the remote ED.
  • In other words, one of the first node and the second node is a local node of the ED, while the other is a remote node of the ED, and as such:
    • One of the first relationship and the second relationship is between a local MAC address and the output port corresponding to the local MAC address, in which the output port is a local port that the edge device accesses the local MAC address. And,
    • The other relationship is between a remote MAC address and the output port corresponding to the remote MAC address, in which the output port is a port corresponding to a virtual Ethernet link between the edge device and a remote edge device.
  • Further, consider the following example scenarios:
    • If the first node sending the ARP request message is a local node and the second node sending the ARP response message is a remote node of the ED, the first relationship is between the local MAC address and its corresponding local output port; and the second relationship is between the remote MAC address and its corresponding Virtual Ethernet link.
    • If the first node sending the ARP request message is a remote node and the second node sending the ARP response message is a local node of the ED, the first relationship is between the remote MAC address and its corresponding Virtual Ethernet link; and the second relationship is between the local MAC address and its corresponding local port.
  • At block 360 in FIG. 3, the first relationship and the second relationship are provided to the data plane of the ED to facilitate data packet forwarding between the first node and the second node.
  • In one example, at block 362, advertisement of MAC addresses is not performed, in which case the first relationship and the second relationship in the session cache item are provided to the data plane. In this case, block 360 includes providing the following to the data plane to facilitate data packet forwarding:
    • A corresponding relationship between the Sender MAC address of the ARP request message and the first output port in the session cache item, i.e. the first relationship. And,
    • A corresponding relationship between the Sender MAC address of the ARP response message and the second output port in the session cache item, i.e. the second relationship.
  • In another example, at block 364, advertisement of addresses is performed. As discussed, either the first node or the second node may be a local node of the ED, and the other is a remote node. The MAC address of the local node is the local MAC address, and the MAC address of the remote node is the remote MAC address. In this case, block 364 includes the following:
    • Advertising a local MAC address in the session cache item through the output port corresponding to the remote MAC address in the session cache item.
    • Receiving a remote MAC address advertised by another ED.
    • Providing the first relationship and the second relationship to the data plane to facilitate data packet forwarding between the first node and the second node.
    • In this case, one of the first relationship and the second relationship is a relationship between the local MAC address and an output port corresponding to the local MAC address in the session cache item, and the other relationship is a corresponding relationship between the received remote MAC address and a port through which the remote MAC address was received.
  • At block 364 in FIG. 3, the MAC address may be advertised by any suitable protocol used for advertising MAC address such as ISIS. The distribution of the local MAC address through the output port corresponding to the remote MAC address enables a peer ED of the virtual Ethernet link of the output port to receive the MAC address being advertised.
  • In addition, at block 360 in FIG. 3, providing the first relationship and the second relationship to the data plane is so as to create or store MAC address items including the relationships in the data plane.
    • According to block 362, the corresponding relationship between the Sender MAC address of the ARP request message and the first output port in the session cache item (first relationship) and the corresponding relationship between the Sender MAC address of the ARP response message and the second output port in the session cache item to the data plane (second relationship) are provided to the data plane.
    • According to block 364, one of the first relationship and the second relationship is the corresponding relationship between the advertised remote MAC address and the port through which the remote MAC address was received.
  • It should be noted that, in blocks 310 and 320 in FIG. 3, the ARP request message from the first node to the second node initiates a session of MAC address learning. Since a response to the ARP request message has not been captured yet, it may be regarded that the session is under establishment. After the ARP response message from the second node to the first node is captured, it may be regarded that the session of the MAC address learning has been established. For clarity, in the present disclosure, it is possible to configure the state of the session cache item in block 320 as a first state denoting that the MAC address learning session is under establishment. In this example, the first state may be a connecting state. After the Sender MAC address of the ARP response message and the second output port are added in the session cache item at block 340, the first state of the session cache item may be updated to a second state denoting that the MAC address learning session has been established. In this example, the second state may be a connected state.
  • In the following examples, the first state is referred to as the connecting or under establishment state, and the second state the connected or established state. Detailed descriptions will be given with reference to the examples in FIG. 4 and FIG. 5.
  • FIG. 4 is a schematic diagram 400 illustrating an example of the present disclosure according to blocks 310 to 360 and 364 (instead of 362) in FIG. 3. As shown in FIG. 4, each ED is enabled with an ARP snooping or capturing function. In this example, host A (“first node”) needs to communicate with host B (“second node”). Since host A only knows the IP address of host B but not the MAC address of host B, host A needs to learn the MAC address of host B to be able to communicate with host B.
  • An example method for learning the MAC address of host B is as follows.
  • Host A broadcasts an ARP request message; see 401 in FIG. 4. The Target IP address of the ARP request is the IP address of host B (i.e. IP_B), the Sender IP address of the ARP request message is the IP address of host A (i.e. IP_A), and the Sender MAC address of the ARP request is the MAC address of host A, (i.e., MAC_A).
  • In FIG. 4, after the ARP request message is captured, each ED learns the contents carried by the ARP request message in a control plane, creates a session cache item locally based on the description of block 320 in FIG. 3, and configures the state of the session cache item to the connecting state. Thus, ED1, ED2, and ED3 in FIG. 4 each create a session cache item locally and identify the session cache item as the connecting state (i.e. first state).
    • Based on the ARP request message, ED1 creates a session cache item that includes: IP_A, IP_B, (MAC_A, Port1); see item 402 in FIG. 4. Port1 is a local port through which the ARP request message was captured by ED1.
    • (MAC_A, Port1) denotes that MAC_A and Port1 have a corresponding relationship (i.e. first relationship).
    • Based on the ARP request message, ED2 creates a session cache item that includes: IP_A, IP_B, (MAC_A, Link1); see 403 and 404 in FIG. 4. Link1 denotes a port through which the ARP request message was captured by ED2. (MAC_A, Link1) denotes that MAC_A and Link1 have a corresponding relationship (i.e. first relationship).
    • Based on the ARP request message, ED3 creates a session cache item created by ED3 includes: IP_A, IP_B, (MAC_A, Link2); see 403 and 405 in FIG. 4. Link2 is a port through which the ARP request message was captured by ED3. (MAC_A, Link2) denotes that MAC_A and Link2 have a corresponding relationship (i.e. first relationship).
  • From the above, it will be appreciated that from ED1's perspective, the first relationship is the relationship between a local MAC address (MAC_A) and its corresponding output port (local port Port1). From ED2 and ED3's perspective, the first relationship is the relationship between a remote MAC address (MAC_A) and its corresponding output port (Virtual Ethernet links Link1 and Link2 respectively).
  • After the ARP request message is captured, each ED in FIG. 4 will forward the ARP request message to hosts under the ED; see 406.
  • After the ARP request message is received, host B in FIG. 4 finds that the Target IP address of the ARP request is its IP address. Host B returns an ARP response message such as by way of unicasting etc.; see 407 in FIG. 4. The Target MAC address of the ARP response message is MAC_A, the Target IP address is IP_A, the Sender MAC address is MAC_B, and the Sender IP address is IP_B. Since the Target IP address is not that of other hosts (such as host C), they do not respond to the ARP request message.
  • When ED3 in FIG. 4 captures the ARP response message 407 returned by host B on Port1, ED3 finds a session cache item including the Sender IP address of the ARP response message (i.e. IP_B) and the Target IP address of the ARP response message (i.e. IP_A)in local session cache items. In this example the found session cache item is: IP_A, IP_B, (MAC_A, Link2); see session cache item 405 of ED3 in FIG. 4. ED3 then updates the found session cache item by adding: a second relationship between the Sender MAC address of the ARP response message (i.e. MAC_B) and an output port corresponding to the Sender MAC address of the ARP response message (i.e. Port1). As such, the found session cache item is updated to be: IP_A, IP_B, (MAC_A, Link2), (MAC_B, Port1). (MAC_A, Link2) and MAC_B, Port1) are referred to as the first relationship and the second relationship in the session cache item 408 of ED3, respectively. At the same time, ED3 updates the state of the session cache item to the connected state (i.e. second state).
  • Then, ED3 transmits the ARP response message through the port (i.e. Link2) corresponding to the Target MAC address of the ARP response message (i.e., MAC_A) in the session cache item of the connected state; see 408 and 409. Further, in this example, ED3 advertises the local MAC address (i.e., MAC_B) through Link2, i.e., the port corresponding to the remote MAC address (i.e., MAC_A), in the session cache item of the connected state using ISIS; see 410 in FIG. 4.
  • In FIG. 4, ED3 is connected with ED1 through the virtual Ethernet Link2. Therefore, ED1 will receive the ARP response message forwarded by ED3 and the MAC_B advertised by ED3.
  • When the ARP response message is received from virtual Ethernet Link2, ED1 finds a session cache item including the Sender IP address and the Target IP address of the ARP response message: IP_A, IP_B, (MAC_A, Port1); see item 402 again. ED1 then updates the found session cache item by adding: the Sender MAC address of the ARP response message (i.e., MAC_B), and an output port corresponding to the Sender MAC address (i.e. Link2). As such, the found session cache item is updated to be: IP_A, IP_B, (MAC_A, Port1), (MAC_B, Link2); see item 411. (MAC_A, Port1) and (MAC_B, Link2) are referred to as the first relationship and the second relationship in the session cache item 411 of ED1, respectively. At the same time, ED1 updates the state of the session cache item to the connected state.
  • After ED1 updates the state of the session cache item to the connected state, if ED1 receives the MAC_B advertised by ED3 using ISIS through virtual Ethernet Link2, ED1 provides relationship (MAC_B, Link2) to the data plane to facilitate data packet forwarding between host A and host B. In this example, ED1 adds an item 412 in a MAC address forwarding table in the data plane that includes VPN1, the MAC address of remote node B (i.e. MAC_B) and the output port corresponding to MAC_B (i.e. Link2), as shown in the MAC address forwarding table of ED1 in FIG. 4. At the same time, ED1 advertises the local MAC address (i.e. MAC_A) in the session cache item through the output port corresponding to the remote MAC address (i.e. Link2) using ISIS; see 413. In addition, ED1 also forwards the ARP response message through the port (i.e. Port1), which corresponds to the Target MAC address (i.e. MAC_A) of the ARP response message.
  • In FIG. 4, ED1 is connected with ED3 through the virtual Ethernet Link2. Therefore, ED3 will receive the remote MAC address (i.e. MAC_A) advertised by ED1, as indicated at 413 in FIG. 4. After MAC_A advertised by ED1 using ISIS is received through Link2, ED3 provides relationship (MAC_A, Link2) to the data plane to facilitate data packet forwarding between host A and host B. In this example, ED3 creates or stores an item 414 in the MAC address forwarding table in the data plane that includes VPN1, the remote MAC address of host A (i.e. MAC_A) and the output port corresponding to MAC_A (i.e. Link2), as shown in the MAC address forwarding table of ED3 in FIG. 4.
  • From the above, at ED1, host A is a local node and host B is a remote node. The first relationship (MAC_A, Port1) provided to the data plane is the relationship between the local MAC address and its corresponding local port Port1. The second relationship (MAC_B, Link2) is the relationship between the remote MAC address and its corresponding Virtual Ethernet link. ED1 receives the remote MAC address (i.e. MAC_B) advertised by ED3 at 410 in FIG. 4, and advertises the local MAC address (i.e. MAC_A) to ED3 at 413 in FIG. 4.
  • On the other hand, at ED3, host B is a local node and host A is a remote node. The first relationship (MAC_A, Link2) provided to the data plane is the relationship between the remote MAC address and its corresponding Virtual Ethernet link. The second relationship (MAC_B, Port1) is the relationship between the local MAC address and its corresponding local port. ED3 advertises the local MAC address (i.e. MAC_B) to ED1 at 410 in FIG. 4, and receives the remote MAC address (i.e. MAC_A) advertised by ED1 at 413 in FIG. 4.
  • In FIG. 4, host A is connected with ED1 through Port1. Therefore, host A will receive the ARP response message. After the ARP response message is received, host A knows the MAC address of host B. Thereafter, data flows between host A and host B may be forwarded according to the MAC address.
  • Now, the method for learning the MAC address of host B is finished.
  • According to the example in FIG. 4, during the procedure of learning the MAC address of host B, ED2 is not related to host A and host B, which really need to communicate with each other. Therefore, ED2 merely creates a session cache item in the connecting state; see item 404 of ED2. ED2 will not advertise the MAC address in the session cache item of the connecting state to other sites using ISIS. Compared with the conventional systems, the examples disclosed herein improve the utilization ratio of MAC address item resources of the ED and reduces unnecessary occupation of MAC address items.
  • In FIG. 4, one ED advertises the MAC address after the state of the session cache item is updated to the second state (i.e. connected state), such that other EDs may create a MAC address item according to the advertised MAC address.
  • As an extension of FIG. 4, in the present disclosure, after the state of the session cache item is updated to further include the second relationship and its state to the connected state, the ED may not advertise the MAC address. Instead, the ED directly provides the MAC address and the output port in the session cache item to the data plane to instruct the data packet forwarding, as shown in FIG. 5.
  • FIG. 5 is a schematic diagram 500 illustrating another example of the present disclosure according to blocks 310 to 360 and 362 (instead of 364) in FIG. 3. As shown in FIG. 5, each ED is enabled with the ARP snooping function. Similar to FIG. 4, host A needs to learn the MAC address of host B to communicate with host B. 501 to 509 in FIG. 5 correspond to 401 to 409 in FIG. 4 respectively, and their discussion is not repeated here.
  • The difference between the MAC address learning method shown in FIG. 5 and that shown in FIG. 4 is that: in FIG. 5, after one ED, such as ED3 or ED1, updates the session cache item to the connected state, the ED does not advertise the MAC address but directly provides the MAC addresses and the output ports in the session cache item to the data plane, so as to create or store MAC address items in the data plane to facilitate data packet forwarding between host A and host B. Hereinafter, ED3 is taken as an example. The discussion is similar for ED1.
  • After the session cache item is updated to the connected state (see 508 in FIG. 5), ED3 does not advertise the local MAC address in the session cache item (i.e. MAC_B) through the output port (i.e. Link2) that corresponds to the remote MAC address (i.e. MAC_A). Instead, ED3 directly provides the following to the data plane:
    • (i) a first relationship (MAC_A, Link2), that is the relationship between the remote Sender MAC address MAC_A and the output port Link2 of the ARP request message in the session cache item 508; and
    • (ii) a second relationship (MAC_B, Port1), that is the relationship between the local Sender MAC address MAC_B and the output port Port1 of the ARP response message in the session cache item 508 in the connected state.
      The above are provided to the data plane to create a MAC address item of ED3 to facilitate data packet forwarding between host A and host B; see 510 in FIG. 5.
  • Similarly, ED1 directly provides the following to the data plane:
    • (i) a first relationship (MAC_A, Port1), that is the relationship between the local Sender MAC address MAC_A and the output port Port1 of the ARP request message in the session cache item 511; and
    • (ii) a second relationship (MAC_B, Link2), that is the relationship between the remote Sender MAC address MAC_B and the output port Link2 of the ARP response message in the session cache item 511 in the connected state.
      The above are provided to the data plane to create a MAC address item of ED1 to facilitate data packet forwarding between host A and host B; see 512 in FIG. 5.
  • According to the example in FIG. 5, during the procedure of learning the MAC address of host B, ED2 is not related to host A and host B, which really need to communicate with each other. Therefore, ED2 merely creates a session cache item in the connecting state; see 504 in FIG. 5. In FIG. 5, after the session cache item is updated with the second relationship and its state to the connected state, the first relationship and second relationship (MAC addresses and the output ports) in the session cache item are provided to the data plane to create the MAC address item in the data plane. As such, ED2 will not create any MAC address item about the session cache item of the connecting state. As such, the examples disclosed herein improve the utilization ratio of MAC address item resources of the ED and reduce unnecessary occupation of MAC address items.
  • Host Migration
  • It should be noted that, since the host that the ED of each site accesses may migrate among different sites, each ED may further perform the following operations.
    • Receive a gratuitous ARP message broadcasted by a migrated host, in which each ED is enabled with the ARP snooping function and is able to capture the gratuitous ARP message, and the gratuitous ARP message is transmitted after the host is migrated successfully.
    • Find, in local session cache items, a session cache item containing an IP address of the migrated host.
    • If the found session cache item is currently configured to a first state, such as a connecting state, update the found session cache item according to the port through which the gratuitous ARP message was received. In the latter case, updating the found session cache item includes:
      • (i) if the found session cache item does not contain the MAC address of the migrated host, add the MAC address of the migrated host and the output port corresponding to the MAC address of the migrated host in the found session cache item, and update the session cache item to the second state;
      • (ii) otherwise, if the found session cache item contains the MAC address of the migrated host, update the output port corresponding to the MAC address of the migrated host in the session cache item to the port through which the gratuitous ARP message was received.
        If the found session cache item is currently configured to the second state, such as a connected state, delete the found session cache item if the migrated host is located in a local site; and update the found session cache item if the migrated host is located in a remote site. In the latter case, updating the found session cache item includes:
      • (i) if the output port corresponding to the MAC address of the migrated host in the session cache item is a local port, delete the found session cache item;
      • (ii) if the output port corresponding to the MAC address of the migrated host in the found session cache item is a port corresponding to a virtual Ethernet link, update the output port corresponding to the MAC address of the migrated host in the session cache item to the port corresponding to the virtual Ethernet link through which the gratuitous ARP message was received.
  • Timers
  • It should be noted that, in order to save resources, in the present disclosure, each ED may further perform the following operations.
  • When the state of the session cache item is configured to the first state, start a first timer corresponding to the session cache item for identifying the first state of the session cache item.
  • When the state of the session cache item is updated from the first state to the second state, stop the first timer, and start a second timer corresponding to the session cache item for identifying the second state of the session cache item.
  • If any one of the first timer and the second timer expires, delete the session cache item corresponding to the timer. The expiry time of the first timer and that of the second timer are irrelevant with respect to each other.
  • EXAMPLE STRUCTURES OF EDGE DEVICE
  • FIG. 6 is a schematic diagram illustrating a structure of an ED according to an example of the present disclosure. As shown in FIG. 6, the ED may include a first capturing module 61 to:
    • Capture an ARP request message from a first node to a second node.
    • Create, in a control plane of the ED, a session cache item containing the following contents:
      • an IP address of the second node, that is a Target IP address of the ARP request message,
      • an IP address of the first node, that is a Sender IP address of the ARP request message, and
      • a first relationship between a MAC address of the first node (that is, a Sender MAC address of the ARP request message), and an output port corresponding to the MAC address of the first node (that is, an output port corresponding to the Sender MAC address).
  • The ED may also include a second capturing module 62 to capture an ARP response message from the second node to the first node.
  • The second capturing module 62 is further to: update the session cache item having the IP address of the first node (that is, a Target IP address of the ARP response message) and the IP address of the second node (that is, a Sender IP address of the ARP response message) to further include:
    • a second relationship between a MAC address of the second node (that is, a Sender MAC address of the ARP response message) and an output port corresponding to the MAC address of the second node (that is, an output port corresponding to the MAC address of the ARP response message).
      In this case, the second capturing module 62 may be further to find, in created session cache items, the session cache item with the Target IP address and the Sender IP address of the ARP response message before updating the found session cache item.
  • The second capturing module 62 is further to: forward the ARP response message through the output port corresponding to the MAC address of the first node in the session cache item (that is, Sender MAC address of the ARP request message). And,
  • The second capturing module 62 is further to: transmit a notification to a first processing module 63.
  • The first processing module 63 is to: provide the first relationship and the second relationship to a data plane of the ED to facilitate data packet forwarding between the first node and the second node.
  • In one example, the first relationship and the second relationship in the session cache item are provided by the first processing module 63 to the data plane to facilitate data packet forwarding between the first node and the second node. In this case, the first processing module 63 provides, after the notification is received from the second capturing module 62, the following to the data plane:
    • a relationship, being a first relationship, between the Sender MAC address and the output port of the ARP request message; and
    • a relationship, being a second relationship, between the Sender MAC address and the output port of the ARP response message in the session cache item.
  • In another example, the first processing module 63 provides the first relationship and the second relationship to a data plane, as follows:
    • Advertise a local MAC address in the session cache item through an output port corresponding to a remote MAC address in the session cache item.
    • Receive a remote MAC address advertised by another ED. And,
    • Provide the first relationship and the second relationship to the data plane to facilitate data packet forwarding. In this case, one of the first relationship and the second relationship is a relationship between the local MAC address and an output port corresponding to the local MAC address in the session cache item, and the other is a relationship between the remote MAC address received and a port through which the remote MAC address was received.
  • The modules in the present disclosure may be implemented by software (e.g., machine readable instructions stored in a memory and executable by a processor), hardware (e.g., the processor of an ASIC), or a combination thereof. The session cache items and MAC address table may be stored in the memory.
  • One of the Sender MAC address of the ARP request message and the Sender MAC address of the ARP response message in the session cache item processed by the first processing module 63 is the local MAC address, and the output port corresponding to the local MAC address is a local port through which a local ED accesses the local MAC address. The other is the remote MAC address accessed by a remote ED. An output port corresponding to the remote MAC address is a port corresponding to a virtual Ethernet link between the local ED and the remote ED.
  • In other words, one of the first node and the second node is a local node of the edge device, while the other is a remote node of the edge device, and as such:
    • One of the first relationship and the second relationship is between a local MAC address, and the output port corresponding to the local MAC address, in which the output port is a local port that the edge device accesses the local MAC address.
    • The other relationship is between a remote MAC address, and the output port corresponding to the remote MAC address, in which the output port is a port corresponding to a virtual Ethernet link between the edge device and a remote edge device.
  • In this example, the first capturing module 61 is further to:
    • configure a state of the session cache item to a first state after the session cache item is created, so as to indicate that the MAC address learning session is under establishment; and
    • after the Sender MAC address and the output port of the ARP response message are added to the session cache item, configure the state of the session cache item to a second state, so as to indicate that the MAC address learning session has been established, in which the session cache item processed by the first processing module 63 is the session cache item in the second state.
  • In this example, and as shown in FIG. 6, the ED further includes a second processing module 64, a first updating module 65, a second updating module 66, and a timer controlling module 67.
  • The second processing module 64 is to receive a gratuitous ARP message broadcasted by a migrated node or host and find a session cache item containing an IP address of the migrated host from local session cache items. If the found session cache item is currently configured to the first state, the second processing module 64 is to transmit a first update notification to the first updating module 65. If the found session cache item is currently configured to the second state, the second processing module 64 is to transmit a second update notification to the second updating module 66.
  • The first updating module 65 is to update, after the first update notification is received, the found session cache item according to the port through which the gratuitous ARP message was received. If the session cache item found does not contain the MAC address of the migrated host, the first updating module 65 is to add the MAC address of the migrated host and the output port corresponding to the MAC address of the host in the found session cache item, update the session cache item to the second state, and trigger the first processing module 63 to perform a corresponding operation. If the found session cache item contains the MAC address of the host, the first updating module 65 is to update the output port corresponding to the MAC address of the host in the session cache item to the port through which the gratuitous ARP message was received.
  • The second updating module 66 is to, after the second update notification is received, if the migrated host is currently local site accessed, delete the session cache item found; and if the migrated host is currently remote site accessed, update the found session cache item found. The found session cache item is updated by the second updating module 66 by: if the output port corresponding to the MAC address of the host in the session cache item is a local port, delete the found session cache item; if the output port corresponding to the MAC address of the migrated host in the found session cache item is a port corresponding to a virtual Ethernet link, update the output port corresponding to the MAC address of the migrated host in the session cache item to the port corresponding to the virtual Ethernet link through which the gratuitous ARP message was received.
  • The timer controlling module 67 is to start, when the state of the session cache item is configured to the first state, a first timer corresponding to the session cache item which is used for identifying the first state of the session cache item. The timer controlling module 67 is also to stop, when the state of the session cache item is updated from the first state to the second state, the first timer, and start a second timer corresponding to the session cache item, which is used for identifying the second state of the session cache item. The timer controlling module 67 is further to delete, if any one of the first timer and the second timer expires, the session cache item corresponding to the timer, in which the expiring time of the first timer and that of the second timer are irrelevant with respect to each other.
  • Now, the description to the structure of the edge device provided by the example of the present disclosure is finished.
  • Hereinafter, a structure of an ED in a wireless network will be described according to an example of the present disclosure. The ED is a programmable device containing a combination of software and hardware, as shown in FIG. 7. The ED includes a processor to communicate with a memory and execute instructions in the memory. The memory is to store the instructions, in which the instructions are executed by the processor to perform all the operations of the ED as described above, which will not be repeated herein. The ED also includes line cards, each of which is to connect the ED to a network through an interface on the line card, in which the interface may be an Ethernet interface, a DSL interface, a Gigabit Ethernet interface, etc. The ED further includes a message storage to cache messages transmitted by the ED when the ED receives, processes, and forwards the messages, such that the ED processes the message in the message storage after an operation to the message is finished.
  • The memory is a machine-readable medium, including but not restricted to floppy disk, hard disk, compact disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), tape, non-volatile memory card, ROM, etc.
  • It should be noted that, the ED shown in FIG. 7 is merely an example. The ED may also be implemented on a device with a structure different from this example, which is not restricted in the present disclosure. The processor is to perform the operations discussed with reference to FIG. 3 to FIG. 6, including all operations by the first capturing module 61, second capturing module 62, first processing module 63, second processing module 64, timer controlling module 67, first updating module 65 and second updating module 66 in FIG. 6.
  • It may be seen from the description above that, in the present disclosure, after an ARP response message is captured, an ED finds, among local session cache items, the session cache item having the IP address of the first node and the IP address of the second node is updated.
  • The ED then provides the first relationship and the second relationship to a data plane of the edge device to facilitate data packet forwarding between the first node and the second node. According to examples in the present disclosure, EDs that are irrelevant to a communication between two nodes do not have to receive unnecessary MAC addresses. This increases the utilization ratio of MAC address item resources of the ED and reduces occupation by irrelevant MAC address items.
  • What has been described and illustrated herein is an example of the disclosure along with some of its variations. The terms, descriptions and figures used herein are set forth by way of illustration only and are not meant as limitations. Many variations are possible within the spirit and scope of the disclosure, which is intended to be defined by the following claims—and their equivalents—in which all terms are meant in their broadest reasonable sense unless otherwise indicated.
  • The above examples may be implemented by hardware, software, firmware, or a combination thereof. For example the various methods, processes and functional modules described herein may be implemented by a processor (the term processor is to be interpreted broadly to include a CPU, processing unit, ASIC, logic unit, or programmable gate array, etc.). The processes, methods and functional modules may all be performed by a single processor or split between several processors; reference in this disclosure or the claims to a ‘processor’ should thus be interpreted to mean ‘one or more processors’. The processes, methods and functional modules be implemented as machine readable instructions executable by one or more processors, hardware logic circuitry of the one or more processors or a combination thereof. Further, the examples disclosed herein may be implemented in the form of a software product. The computer software product is stored in a non-transitory storage medium and comprises a plurality of instructions for making a computer device (which may be a personal computer, a server or a network device, such as a router, switch, access point, etc.) implement the method recited in the examples of the present disclosure.
  • The figures are only illustrations of an example, in which the modules or procedures shown in the figures are not necessarily essential for implementing the present disclosure. The modules in the aforesaid examples may be combined into one module or further divided into a plurality of sub-modules.

Claims (21)

1.-15. (canceled)
16. A method for learning a Medium Access Control (MAC) address, applied in a hardware component, the method comprising:
based on a receipt of a request message from a first node to a second node, creating by the hardware component a session cache item, wherein the session cache item includes a first relationship between a MAC address of the first node and a first port of an edge device through which the request message was received;
based on a receipt of a response message from the second node to the first node, updating, by the hardware component, the session cache item, wherein the updated session cache item further includes a second relationship between a MAC address of the second node and a second port of the edge device through which the response message was received; and
forwarding data packets between the first node and the second node using the first relationship and the second relationship.
17. The method of claim 16, further comprising: forwarding, by the hardware component, the response message to the first node via the first port indicated in the session cache item.
18. The method of claim 16, further comprising:
advertising a local MAC address in the session cache item through the first port in the session cache item;
receiving a remote MAC address advertised by another hardware component; and
providing the first relationship and the second relationship to a data plane of the hardware component to facilitate data packet forwarding between the first node and the second node.
19. The method of claim 16, further comprising:
after the session cache item is created to include the first relationship, changing the session cache item to a first state indicating that a MAC address learning session is under establishment; and
after the session cache item is updated with the second relationship, updating the session cache item from the first state to a second state indicating that the MAC address learning session has been established,
wherein the first relationship and the second relationship are provided to a data plane of the hardware component when the session cache item is in the second state.
20. The method of claim 19, further comprising:
receiving a message broadcasted by a migrated node;
finding, in local session cache items, a session cache item containing an IP address of the migrated node; and
responsive to the found session cache item being in the first state, updating the found session cache item according to a port through which the message from the migrated node was received, and responsive to the found session cache item being in the second state, deleting the found session cache item in response to the migrated node being currently a local node of the hardware component, and updating the found session cache item in response to the migrated node being currently a remote node of the hardware component.
21. The method of claim 20, wherein updating the found session cache item according to the port through which the message from the migrated node was received comprises:
responsive to a determination that the found session cache item does not contain a MAC address of the migrated node, adding the MAC address of the migrated node and an output port corresponding to the MAC address of the migrated node in the found session cache item, and updating the session cache item to the second state; and
responsive to a determination that the found session cache item contains the MAC address of the migrated node, updating the output port corresponding to the MAC address of the migrated node in the session cache item to the port through which the message was received.
22. The method of claim 20, wherein the updating the session cache item in response to the migrated node being currently a remote node of the hardware component comprises:
in response to a determination that an output port corresponding to a MAC address of the migrated node in the found session cache item is a local port, deleting the found session cache item; and
in response to a determination that the output port corresponding to the MAC address of the migrated node in the found session cache item is a port corresponding to a link between the hardware component and a remote hardware component, updating the output port corresponding to the MAC address of the migrated node in the session cache item to the port corresponding to the link receiving the message.
23. The method of claim 19, further comprising:
when the session cache item is changed to the first state, starting a first timer of the session cache item to indicate that the session cache item is in the first state;
when the session cache item is updated from the first state to the second state, stopping the first timer, and starting a second timer of the session cache item to indicate that the session cache item is in the second state; and
in response to a determination that the first timer or the second timer expires, deleting the session cache item corresponding to the timer that expires, wherein an expiry time of the first timer is irrelevant to an expiry time of the second timer.
24. A hardware component comprising:
a first hardware capturing unit to capture a request message sent from a first node to a second node, and create a session cache item based on the captured request message, wherein the session cache item includes a first relationship between a Medium Access Control (MAC) address of the first node and a first port of an edge device through which the request message was received;
a second hardware capturing unit to capture a response message sent from the second node to the first node, and update the session cache item based on the captured response message, wherein the updated session cache item further includes a second relationship between a MAC address of the second node and a second port of the edge device through which the response message was received; and
a forwarding unit to forward data packets between the first node and the second node using the first relationship and the second relationship.
25. The hardware component of claim 24, wherein the instructions are to cause the processor to forward the response message to the first node via the first port indicated in the session cache item.
26. The hardware component of claim 24, wherein the instructions are further to cause the processor to:
advertise a local MAC address in the session cache item through a port in the session cache item;
receive a remote MAC address advertised by another hardware component; and
provide the first relationship and the second relationship to a data plane of the hardware component to facilitate data packet forwarding between the first node and the second node.
27. The hardware component of claim 24, wherein the instructions are further to cause the processor to:
after the session cache item is created to include the first relationship, change the session cache item to a first state indicating that a MAC address learning session is under establishment; and
after the session cache item is updated with the second relationship, update the session cache item from the first state to a second state indicating that the MAC address learning session has been established,
wherein the first relationship and the second relationship are provided to a data plane of the hardware component when the session cache item is in the second state.
28. The hardware component of claim 27, wherein the instructions are further to cause the processor to:
receive a message broadcasted by a migrated node;
find, in local session cache items, a session cache item containing an IP address of the migrated node; and
responsive to a determination that the found session cache item is in the first state, update the found session cache item according to a port through which the message from the migrated node was received, and responsive to a determination that the found session cache item is in the second state, delete the found session cache item in response to the migrated node being currently a local node of the hardware component, and update the found session cache item in response to the migrated node being currently a remote node of the hardware component.
29. A non-transitory computer readable medium storing instructions that when executed by a processor cause a hardware component to:
based on a receipt of a request message from a first node to a second node, create a session cache item, wherein the session cache item includes a first relationship between a Medium Access Control (MAC) address of the first node and a first port of an edge device through which the request message was received;
based on a receipt of a response message from the second node to the first node, update the session cache item, wherein the updated session cache item further includes a second relationship between a MAC address of the second node and a second port of the edge device through which the response message was received; and
forward data packets between the first node and the second node using the first relationship and the second relationship.
30. The non-transitory computer readable medium of claim 29, wherein the instructions are further to cause the processor to:
advertise a local MAC address in the session cache item through a port in the session cache item;
receive a remote MAC address advertised by another hardware component; and
provide the first relationship and the second relationship to a data plane of the hardware component to facilitate data packet forwarding between the first node and the second node.
31. The non-transitory computer readable medium of claim 29, wherein the instructions are further to cause the processor to:
after the session cache item is created to include the first relationship, change the session cache item to a first state indicating that a MAC address learning session is under establishment; and
after the session cache item is updated with the second relationship, update the session cache item from the first state to a second state indicating that the MAC address learning session has been established,
wherein the first relationship and the second relationship are provided to a data plane of the hardware component when the session cache item is in the second state.
32. The non-transitory computer readable medium of claim 31, wherein the instructions are further to cause the processor to:
receive a message broadcasted by a migrated node;
find, in local session cache items, a session cache item containing an IP address of the migrated node; and
responsive to a determination that the found session cache item is in the first state, update the found session cache item according to a port through which the message from the migrated node was received, and responsive to a determination that the found session cache item is in the second state, delete the found session cache item in response to the migrated node being currently a local node of the hardware component, and update the found session cache item in response to the migrated node being currently a remote node of the hardware component.
33. The non-transitory computer readable medium of claim 32, wherein to update the found session cache item according to the port through which the message from the migrated node was received, the processor is to:
responsive to a determination that the found session cache item does not contain a MAC address of the migrated node, add the MAC address of the migrated node and an output port corresponding to the MAC address of the migrated node in the found session cache item, and updating the session cache item to the second state; and
responsive to a determination that the found session cache item contains the MAC address of the migrated node, update the output port corresponding to the MAC address of the migrated node in the session cache item to the port through which the message was received.
34. The non-transitory computer readable medium of claim 32, wherein to update the session cache item in response to the migrated node being currently a remote node of the hardware component, the processor is to:
in response to a determination that an output port corresponding to a MAC address of the migrated node in the found session cache item is a local port, delete the found session cache item; and
in response to a determination that the output port corresponding to the MAC address of the migrated node in the found session cache item is a port corresponding to a link between the hardware component and a remote hardware component, update the output port corresponding to the MAC address of the migrated node in the session cache item to the port corresponding to the link receiving the message.
35. The non-transitory computer readable medium of claim 31, wherein the instructions further cause to the processor to:
in response to a determination that the session cache item is changed to the first state, start a first timer of the session cache item to indicate that the session cache item is in the first state;
in response to a determination that the session cache item is updated from the first state to the second state, stop the first timer, and start a second timer of the session cache item to indicate that the session cache item is in the second state; and
in response to a determination that the first timer or the second timer expires, delete the session cache item corresponding to the timer that expires, wherein an expiry time of the first timer is irrelevant to an expiry time of the second timer.
US14/885,870 2011-09-29 2015-10-16 Learning a mac address Abandoned US20160044145A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201110291273.2A CN102291320B (en) 2011-09-29 2011-09-29 MAC (media access control) address learning method and edge device
CN201110291273.2 2011-09-29
PCT/CN2012/082149 WO2013044821A1 (en) 2011-09-29 2012-09-27 Learning a mac address
US201414236033A true 2014-01-29 2014-01-29
US14/885,870 US20160044145A1 (en) 2011-09-29 2015-10-16 Learning a mac address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US14/885,870 US20160044145A1 (en) 2011-09-29 2015-10-16 Learning a mac address

Related Parent Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2012/082149 Continuation WO2013044821A1 (en) 2011-09-29 2012-09-27 Learning a mac address
US201414236033A Continuation 2014-01-29 2014-01-29

Publications (1)

Publication Number Publication Date
US20160044145A1 true US20160044145A1 (en) 2016-02-11

Family

ID=45337438

Family Applications (2)

Application Number Title Priority Date Filing Date
US14/236,033 Expired - Fee Related US9197721B2 (en) 2011-09-29 2012-09-27 Learning a MAC address
US14/885,870 Abandoned US20160044145A1 (en) 2011-09-29 2015-10-16 Learning a mac address

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US14/236,033 Expired - Fee Related US9197721B2 (en) 2011-09-29 2012-09-27 Learning a MAC address

Country Status (4)

Country Link
US (2) US9197721B2 (en)
EP (1) EP2761830A4 (en)
CN (1) CN102291320B (en)
WO (1) WO2013044821A1 (en)

Families Citing this family (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291320B (en) * 2011-09-29 2015-03-18 杭州华三通信技术有限公司 MAC (media access control) address learning method and edge device
CN103248720A (en) * 2012-02-13 2013-08-14 中兴通讯股份有限公司 Method and device for inquiring physical address
CN102594943B (en) * 2012-03-19 2014-10-22 杭州华三通信技术有限公司 Method and device for realizing address resolution protocol (ARP) interception
CN102710509B (en) * 2012-05-18 2015-04-15 杭州华三通信技术有限公司 Automatic data center configuration method and method
CN102724120B (en) 2012-06-08 2015-12-16 华为技术有限公司 The method of transmitting announcement routing information and route-bridge
US9258266B2 (en) * 2012-08-30 2016-02-09 Cisco Technology, Inc. Host detection by top of rack switch devices in data center environments
CN103795635B (en) * 2012-11-01 2017-04-12 华为技术有限公司 Processing method, device and system for controlling message broadcast
EP2918053A4 (en) * 2012-11-08 2016-06-29 Hangzhou H3C Technologies Ltd Identifiers for spoke-pes in hub-spoke networks
US9191271B2 (en) * 2013-04-29 2015-11-17 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in VRRP based routers
CN103369064B (en) * 2013-07-03 2016-08-31 杭州华三通信技术有限公司 The learning method of a kind of ARP and equipment
CN104468855B (en) * 2013-09-25 2018-04-03 阿里巴巴集团控股有限公司 The treating method and apparatus of ARP message
US9686581B2 (en) 2013-11-07 2017-06-20 Cisco Technology, Inc. Second-screen TV bridge
US10222935B2 (en) 2014-04-23 2019-03-05 Cisco Technology Inc. Treemap-type user interface
CN104023095B (en) * 2014-06-23 2017-07-14 新华三技术有限公司 A kind of virtual gateway Media Access Controlled address response method and apparatus
CN104092614B (en) * 2014-07-30 2017-07-04 新华三技术有限公司 The method and apparatus for updating address resolution information
CN105745882A (en) * 2014-12-16 2016-07-06 北京大学深圳研究生院 Realization method for flat networks routing based on network
US9985837B2 (en) * 2015-07-23 2018-05-29 Cisco Technology, Inc. Refresh of the binding tables between data-link-layer and network-layer addresses on mobility in a data center environment
US10326204B2 (en) 2016-09-07 2019-06-18 Cisco Technology, Inc. Switchable, oscillating near-field and far-field antenna
US10372520B2 (en) 2016-11-22 2019-08-06 Cisco Technology, Inc. Graphical user interface for visualizing a plurality of issues with an infrastructure
US10739943B2 (en) 2016-12-13 2020-08-11 Cisco Technology, Inc. Ordered list user interface
US10440723B2 (en) 2017-05-17 2019-10-08 Cisco Technology, Inc. Hierarchical channel assignment in wireless networks
US10555341B2 (en) 2017-07-11 2020-02-04 Cisco Technology, Inc. Wireless contention reduction
US10440031B2 (en) 2017-07-21 2019-10-08 Cisco Technology, Inc. Wireless network steering
CN107547324A (en) * 2017-09-27 2018-01-05 新华三技术有限公司 A kind of MAC Address delivery method, device, equipment and machinable medium
CN109698788A (en) * 2017-10-20 2019-04-30 华为技术有限公司 Flow forwarding method and flow forwarding device
US10375667B2 (en) 2017-12-07 2019-08-06 Cisco Technology, Inc. Enhancing indoor positioning using RF multilateration and optical sensing
US10673618B2 (en) 2018-06-08 2020-06-02 Cisco Technology, Inc. Provisioning network resources in a wireless network using a native blockchain platform
US10505718B1 (en) 2018-06-08 2019-12-10 Cisco Technology, Inc. Systems, devices, and techniques for registering user equipment (UE) in wireless networks using a native blockchain platform
US10671462B2 (en) 2018-07-24 2020-06-02 Cisco Technology, Inc. System and method for message management across a network
US10284429B1 (en) 2018-08-08 2019-05-07 Cisco Technology, Inc. System and method for sharing subscriber resources in a network environment
US10623949B2 (en) 2018-08-08 2020-04-14 Cisco Technology, Inc. Network-initiated recovery from a text message delivery failure
US10374749B1 (en) 2018-08-22 2019-08-06 Cisco Technology, Inc. Proactive interference avoidance for access points
US10567293B1 (en) 2018-08-23 2020-02-18 Cisco Technology, Inc. Mechanism to coordinate end to end quality of service between network nodes and service provider core
US10652152B2 (en) 2018-09-04 2020-05-12 Cisco Technology, Inc. Mobile core dynamic tunnel end-point processing
US10230605B1 (en) 2018-09-04 2019-03-12 Cisco Technology, Inc. Scalable distributed end-to-end performance delay measurement for segment routing policies
US10285155B1 (en) 2018-09-24 2019-05-07 Cisco Technology, Inc. Providing user equipment location information indication on user plane
US10601724B1 (en) 2018-11-01 2020-03-24 Cisco Technology, Inc. Scalable network slice based queuing using segment routing flexible algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100011139A1 (en) * 2006-09-25 2010-01-14 Ju Wang Network apparatus and method for communication between different components
US20130182722A1 (en) * 2010-11-01 2013-07-18 Deepak Mysore Vishveswaraiah Managing mac moves with secure port groups
US9197721B2 (en) * 2011-09-29 2015-11-24 Hangzhou H3C Technologies Co., Ltd. Learning a MAC address

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393484B1 (en) * 1999-04-12 2002-05-21 International Business Machines Corp. System and method for controlled access to shared-medium public and semi-public internet protocol (IP) networks
US7676587B2 (en) * 2004-12-14 2010-03-09 Emc Corporation Distributed IP trunking and server clustering for sharing of an IP server address among IP servers
CN100459571C (en) 2005-06-16 2009-02-04 华为技术有限公司 Ethernet bridge apparatus and MAC address learning method and data message transmission method
US7746892B2 (en) * 2005-11-02 2010-06-29 Nortel Networks Limited Method and apparatus for transporting ethernet services
CN101098291B (en) * 2006-06-29 2010-04-14 中兴通讯股份有限公司 Method for preventing disturbance of medium accessing control address table on access equipment
JP4747118B2 (en) 2007-03-05 2011-08-17 富士通株式会社 Router, communication guarantee method and communication guarantee program
CN100490411C (en) 2007-06-29 2009-05-20 华为技术有限公司 Method for studying MAC address and network element apparatus
CN101488964B (en) * 2009-02-20 2011-09-28 杭州华三通信技术有限公司 Method, system and router for implementing address resolution and double layered communication
CN102143068B (en) * 2011-03-01 2014-04-02 华为技术有限公司 Method, device and system for learning MAC (Media Access Control) address
CN102118316B (en) * 2011-03-07 2013-09-25 杭州华三通信技术有限公司 Method and device for learning MAC (Media Access Control) address
GB2493132B (en) * 2011-07-11 2018-02-28 Metaswitch Networks Ltd Controlling an apparatus in a LAN by selecting between first and second hardware interfaces for performing data communication
US8665723B2 (en) * 2011-08-30 2014-03-04 International Business Machines Corporation Managing data on Infiniband (IB) networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100011139A1 (en) * 2006-09-25 2010-01-14 Ju Wang Network apparatus and method for communication between different components
US20130182722A1 (en) * 2010-11-01 2013-07-18 Deepak Mysore Vishveswaraiah Managing mac moves with secure port groups
US9197721B2 (en) * 2011-09-29 2015-11-24 Hangzhou H3C Technologies Co., Ltd. Learning a MAC address

Also Published As

Publication number Publication date
CN102291320A (en) 2011-12-21
WO2013044821A1 (en) 2013-04-04
US9197721B2 (en) 2015-11-24
EP2761830A1 (en) 2014-08-06
EP2761830A4 (en) 2016-04-06
CN102291320B (en) 2015-03-18
US20140198808A1 (en) 2014-07-17

Similar Documents

Publication Publication Date Title
US20200081728A1 (en) Configuration of logical router
EP3304815B1 (en) Operations, administration and management (oam) in overlay data center environments
US20190140853A1 (en) SDN Facilitated Multicast in Data Center
JP6224239B2 (en) Realization of direct transport layer connection
JP6491241B2 (en) Cloud-based service exchange
US10417025B2 (en) System and method to chain distributed applications in a network environment
US9258211B1 (en) Extending VPLS support for CE lag multi-homing
US9887916B2 (en) Overlay tunnel in a fabric switch
US9722871B2 (en) Using virtual networking devices and routing information to associate network addresses with computing nodes
EP2891277B1 (en) Overlay virtual gateway for overlay networks
EP2856706B1 (en) Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations
EP2820809B1 (en) Dynamic service insertion in a fabric switch
US8755377B2 (en) Facilitating operation of one or more virtual networks
US9553806B2 (en) Method and system for supporting port ranging in a software-defined networking (SDN) system
US9838309B1 (en) Distributed network subnet
US9590902B2 (en) Signaling aliasing capability in data centers
US9525563B2 (en) Forwarding packets in an edge device
US9374323B2 (en) Communication between endpoints in different VXLAN networks
US20180167316A1 (en) Address resolution using multiple designated instances of a logical router
US9912612B2 (en) Extended ethernet fabric switches
US10666500B2 (en) Failure handling for active-standby redundancy in EVPN data center interconnect
US8948181B2 (en) System and method for optimizing next-hop table space in a dual-homed network environment
US9385949B2 (en) Routing controlled by subnet managers
US8953590B1 (en) Layer two virtual private network having control plane address learning supporting multi-homed customer networks
US9515920B2 (en) Name-based neighbor discovery and multi-hop service discovery in information-centric networks

Legal Events

Date Code Title Description
AS Assignment

Owner name: HANGZHOU H3C TECHNOLOGIES CO., LTD., CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ZHOU, WAN;REEL/FRAME:036848/0514

Effective date: 20121012

AS Assignment

Owner name: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP, TEXAS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:H3C TECHNOLOGIES CO., LTD.;HANGZHOU H3C TECHNOLOGIES CO., LTD.;REEL/FRAME:039767/0263

Effective date: 20160501

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION