WO2018209962A1 - 以太网内容中心网络混合下数据包传输方法装置存储介质 - Google Patents

以太网内容中心网络混合下数据包传输方法装置存储介质 Download PDF

Info

Publication number
WO2018209962A1
WO2018209962A1 PCT/CN2017/119051 CN2017119051W WO2018209962A1 WO 2018209962 A1 WO2018209962 A1 WO 2018209962A1 CN 2017119051 W CN2017119051 W CN 2017119051W WO 2018209962 A1 WO2018209962 A1 WO 2018209962A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
center network
request packet
content center
mac address
Prior art date
Application number
PCT/CN2017/119051
Other languages
English (en)
French (fr)
Other versions
WO2018209962A9 (zh
Inventor
汪漪
武昊
刘斌
Original Assignee
华为技术有限公司
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018209962A1 publication Critical patent/WO2018209962A1/zh
Publication of WO2018209962A9 publication Critical patent/WO2018209962A9/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/60Software-defined switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/60Software-defined switches
    • H04L49/602Multilayer or multiprotocol switching, e.g. IP switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a device and a storage medium related to a data packet transmission method in a mixed deployment of an Ethernet and a content center network.
  • NDN Named Data Networking
  • the nodes in the NDN network can cache the forwarded data content.
  • the nodes in the NDN network can find the corresponding data content by using the content name of the requested data content, and send the corresponding data content.
  • the requested end returns the content of the data found. It can be seen that the content-centric processing scheme in the NDN network improves the response time and alleviates the network bandwidth pressure.
  • Ethernet is limited in size and flat in structure. It can avoid many additional collaborations and directly lower the deployment threshold by directly carrying the new NDN framework.
  • Ethernet is very popular on the Internet. In the long run, as more and more Ethernet supports NDN, the deployment of NDN will gradually spread from the edge of the network to the center, laying the foundation for its large-scale application. At the same time, considering that Internet Protocol (IP) protocols have long penetrated into various parts of today's Internet, it is expected that IP-based applications and traffic will continue to exist for a long time to come. In summary, there is a need for a solution for deploying an NDN network in an Ethernet network.
  • IP Internet Protocol
  • the embodiment of the present invention provides a device and a storage medium for a data packet transmission method in a mixed deployment of an Ethernet and a content center network, which are used to implement data packet transmission in a mixed deployment of an Ethernet and a content center network.
  • the embodiment of the present application provides a data packet transmission method in a hybrid deployment of an Ethernet and a content center network.
  • the dual stack switch receives the request packet, and if it determines that the request packet meets the preset condition, and determines the first content.
  • the N-STP link indication information is not included in the central network request packet, and the dual-stack switch sends the second content center network request packet to the at least one first neighbor dual-stack switch.
  • the preset condition includes: the request packet is a first content center network request packet, and the first content center network request packet includes a source media access control MAC address domain and a destination MAC address domain; and the N-STP link indication information is used to indicate the transmission.
  • At least one of the transmission links of the first content center network request packet is an N-STP link; if the link between the first neighbor dual stack switch and the dual stack switch is an N-STP
  • the second content center network request packet is obtained by adding N-STP link indication information to the first content center network request packet.
  • the N-STP link may also be sent through the N-STP link. If the STP link is sent, if the N-STP link is sent, the N-STP link indication information is added to the first content center network request packet, and the first content center network request after the N-STP link indication information is added.
  • the packet is referred to as a second content center network request packet, and the second content center network request packet is sent to the dual stack switch on the N-STP link.
  • the dual stack switch may be according to a specific network environment, or some preset The rule, and the specific request in the neighboring switch in the dual-stack switch, determines whether to send through the N-STP link or through the STP link.
  • the preset rule is that the dual-stack switch can send all links that can be sent.
  • the neighboring switch of the dual-stack switch includes a neighboring dual-stack switch on the N-STP link, and a neighboring switch on the STP link. The dual-stack switch can simultaneously be connected to the N-STP link.
  • the neighboring dual-stack switch sends and sends to the neighboring switch on the STP link.
  • the dual-stack switch sends to the adjacent dual-stack switch on the N-STP link
  • the network request in the first content center is required.
  • the N-STP link indication information is added to the packet.
  • the first content center network request packet with the N-STP link indication information added is referred to as a second content center network request packet, and the second inner Central network request packet to the dual stack switch neighbor on N-STP link. If the neighboring switch on the STP link is not added, the N-STP link indication information is not added, and the first content center network request packet that does not include the N-STP link indication information is sent to the neighboring switch on the STP link.
  • the dual stack switch sends the second content center network request packet to the at least one first neighbor dual stack switch, including: the dual stack switch assigns the source MAC address field in the second content center network request packet to the dual stack switch. MAC address; the dual stack switch sends a second content center network request packet with a assigned MAC address to at least one first neighbor dual stack switch.
  • the first content center network request packet received by the dual-stack switch includes a source MAC address domain and a destination MAC address domain, so that the Ethernet switch in the Ethernet can be requested according to the first content center network.
  • the source MAC address domain and the destination MAC address domain in the packet process the first content center network request packet, thereby realizing the purpose of deploying the content center network in the Ethernet.
  • the dual-stack switch determines that the first content center network request packet meets the preset condition, and the first content center network request packet does not include the N-STP link indication information, the dual-stack switch further includes: The dual stack switch sends the first content center network request packet to the neighbor switch included in the spanning tree protocol STP link. It can be seen that, in the embodiment of the present application, not only the STP link in the Ethernet but also the N-STP link in the Ethernet where the content center network is deployed can increase the number of available links and improve the network transmission performance. .
  • the dual stack switch sends the first content center network request packet to the neighbor switch included in the STP link, where the dual stack switch assigns the source MAC address field in the first content center network request packet to the dual stack.
  • the MAC address of the switch; the dual-stack switch sends the first content center network request packet with the assigned MAC address to the neighbor switch included in the STP link.
  • the content center network request packet received by the dual stack switch includes the source MAC address domain and the destination MAC address domain, so that the Ethernet switch in the Ethernet can request the source in the packet according to the content center network.
  • the MAC address domain and the destination MAC address domain process the content center network request packet, thereby realizing the purpose of deploying the content center network in the Ethernet.
  • the method further includes: if the first content center network request packet includes the N-STP link indication information; then: the dual-stack switch to the at least one first neighboring pair The stack switch and/or the at least one second neighbor dual stack switch send the first content center network request packet; wherein the link between the second neighbor dual stack switch and the dual stack switch is an STP link.
  • the dual stack switch may flood or broadcast the first content center network request packet to all neighbor dual stack switches, or the dual stack switch may forward the first content center to one or more of all neighbor dual stack switches. Network request package. That is, if the content center network request packet includes N-STP link indication information, the content center network request packet is subsequently transmitted only on the dual stack switch.
  • the dual stack switch sends the first content center network request packet to the at least one first neighbor dual stack switch and/or the at least one second neighbor dual stack switch, including: the dual stack switch sends the first content center network request packet The source MAC address field is assigned the MAC address of the dual stack switch; the dual stack switch sends the first content center network request packet with the assigned MAC address to the at least one first neighbor dual stack switch and/or the at least one second neighbor dual stack switch.
  • the dual stack switch since the dual stack switch has a deduplication mechanism and an active MAC address domain is also added, the transmission error of the first content center network request packet transmitted on the N-STP link can be avoided.
  • the preset condition further includes: the dual stack switch does not query the content center network content package content associated with the content name of the first content center network request packet in the content storage CS; wherein the content name and content are stored in the CS The association relationship between the contents of the central network content package; wherein the content center network request packet corresponding to the content name is used to obtain the content center network content package content associated with the content name. That is to say, in the embodiment of the present application, the dual stack switch may cache the content center network content package content in the received content center network content package.
  • the dual stack switch further includes: if the dual stack switch queries the content center network content package content associated with the content name of the first content center network request packet in the CS, Then: the dual stack switch encapsulates the content center network content package content into the data domain of the first content center network content package, and assigns the target MAC address field of the first content center network content package to the source of the first content center network request packet. MAC; assigning the source MAC address field in the first content center network content package to the MAC address of the dual stack switch; and the dual stack switch sending the first content center network content package after assigning the MAC address. In this way, if other first content center network request packets need to request the content center network content package content, they can be directly obtained from the dual stack switch, thereby saving time delay.
  • the preset condition further includes: the dual stack switch does not query, in the interest request table PIT, the content name of the first content center network request packet: a port number and a MAC address; wherein the PIT stores the content name, And receiving an association relationship between the port number of the content center network request packet corresponding to the content name and the received source MAC address in the content center network request packet corresponding to the content name.
  • the source MAC address and the receiving port of the received content center network request packet can be recorded through the PIT table, so that the content center network content packet corresponding to the content center network request packet can be returned to the source MAC address indication through the receiving port.
  • the terminal device realizes the same purpose that the transmission link of the content center network content package is the same as the transmission link of the content center network request packet corresponding to the content center network content package, that is, the content center network request is transmitted from a transmission link.
  • the packet also returns the content center network content package corresponding to the content center network request packet from the transmission link.
  • the preset condition further includes: the dual-stack switch does not query, in the forwarding information base FIB, the content name of the first content center network request packet: a port number and a MAC address; wherein the FIB stores the content name, Sending a relationship between a port number of the content center network request packet corresponding to the content name and a next hop MAC address of the content center network request packet corresponding to the content name; or, the FIB stores the content name and receives The association between the port number of the content center network content package corresponding to the content name and the received source MAC address in the content center network content package corresponding to the content name.
  • the association between the port number and the MAC address in the FIB table may be preset, or may be self-learned during subsequent transmission. For example, when receiving a content center network content package, the content name of the content center network content package, the port number of the content center network content package receiving the content name, and the content center network content package corresponding to the content name received The source MAC address is entered in the FIB.
  • the method further includes: if the dual-stack switch queries the content name of the first content center network request packet in the FIB: port number and MAC address, then: The dual-stack switch assigns the target MAC address field in the first content center network request packet to the MAC address corresponding to the content name of the first content center network request packet queried in the FIB; The source MAC address field is assigned the MAC address of the dual stack switch; the dual stack switch sends the first content center network request packet after the assigned MAC address.
  • the FIB By querying the FIB, it can be determined where the first content center network request packet corresponding to the content name should be sent, and the data transmission rate is improved.
  • the preset condition further includes: before receiving the first content center network request packet, the content center network request packet whose request packet identifier is the same as the request packet identifier of the first content center network request packet is not received; wherein, The content center network request packet corresponds to a request packet identifier.
  • de-duplication processing of the request packet can be implemented, thereby avoiding loop generation and information redundancy under the N-STP link.
  • the method further includes: the dual stack switch receiving the second content center network content package; wherein the second content center network content package includes the source MAC address domain and the destination MAC address domain; the dual stack switch If the interest request table PIT is queried, the N port numbers and N MAC addresses associated with the content name of the second content center network content package are queried, wherein the N port numbers and the N MAC addresses are in one-to-one correspondence; N is greater than or equal to 1
  • the integer is: for each port number of the N port numbers, the dual stack switch assigns the target MAC address field in the second content center network content packet to the MAC address associated with the port number, and assigns a value to the source MAC address field.
  • the second content center network content package after the MAC address is assigned is sent out from the port; wherein the content name of the second content center network content package corresponds to the second content center network content package.
  • the content name of the content center network request packet is the same; the PIT stores the content name, the port number of the content center network request packet corresponding to the content name, and the received The association relationship between the source MAC addresses in the content center network request packet corresponding to the content name.
  • the dual-stack switch can cache the content center network content package content in the received content center network content package, and if another content center network request packet needs to request the content center network content package content, the Obtained in a dual stack switch, saving time.
  • the method further includes: if the dual-stack switch does not query the content name of the second content center network content package in the forwarding information base FIB: port number and MAC address Address, the dual stack switch between the content name of the second content center network content package, the port number of the second content center network content package, and the MAC address of the port number of the second content center network content package
  • the association relationship is stored in the FIB; wherein the FIB stores the content name, the port number of the content center network request packet corresponding to the content name, and the next hop MAC address of the content center network request packet corresponding to the content name.
  • the association relationship between the users; or, the FIB stores the content name, the port number of the content center network content package corresponding to the content name, and the source MAC address in the content center network content package corresponding to the received content name.
  • the relationship between the three addresses In this way, the content center network content packet corresponding to the content center network request packet can be returned to the terminal device indicated by the source MAC address through the receiving port, so that the transmission link of the content center network content packet is corresponding to the content center network content package.
  • the content center network requests packets for the same purpose as the transport link.
  • the embodiment of the present application provides a dual-stack switch in a hybrid deployment of an Ethernet and a content center network.
  • the dual-stack switch in the hybrid deployment of the Ethernet and the content center network includes a memory, a transceiver, and a processor, where: the memory For storing instructions; the processor is configured to execute the memory storage instructions and control the transceiver for signal reception and signal transmission.
  • the dual stack switch in the hybrid deployment of the Ethernet and the content center network is used. Performing any of the above first aspect or the first aspect.
  • the embodiment of the present application provides a dual-stack switch in a hybrid deployment of an Ethernet and a content center network, which is used to implement any one of the foregoing first aspect or the first aspect, including a corresponding functional module, respectively. Used to implement the steps in the above method.
  • the embodiment of the present application provides a computer storage medium, where the computer storage medium stores instructions, when the computer is running on the computer, causing the computer to perform the method in the first aspect or any possible implementation manner of the first aspect. .
  • an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method of the first aspect or any possible implementation of the first aspect.
  • the first content center network request packet received by the dual-stack switch includes a source MAC address domain and a destination MAC address domain, so that the Ethernet switch in the Ethernet can be requested according to the first content center network.
  • the source MAC address domain and the destination MAC address domain in the packet process the first content center network request packet, thereby realizing the purpose of deploying the content center network in the Ethernet.
  • the N-STP link indication information is not included in the first content center network request packet, the N-STP link indication information is used to indicate at least one of all transmission links that have transmitted the first content center network request packet.
  • the transmission link is an N-STP link; the dual-stack switch adds the N-STP link indication information to the first content center network request packet, and the first step of the N-STP link indication information is added in this embodiment.
  • the content center network request packet is referred to as a second content center network request packet, and the dual stack switch sends a second content center network request packet to at least one first neighbor dual stack switch; wherein, between the first neighbor dual stack switch and the dual stack switch
  • the link is an N-STP link. It can be seen that, in the embodiment of the present application, not only the STP link in the Ethernet but also the N-STP link in the Ethernet where the content center network is deployed can increase the number of available links and improve the network transmission performance. .
  • FIG. 1 is a schematic structural diagram of a system applicable to an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a possible Ethernet data frame according to an embodiment of the present application
  • FIG. 1b is a schematic structural diagram of another possible Ethernet data frame according to an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of another possible Ethernet data frame according to an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of another possible Ethernet data frame according to an embodiment of the present application.
  • 1e is a schematic structural diagram of a possible content center network request packet according to an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of another possible content center network content package according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a data packet transmission method in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present disclosure
  • FIG. 2a is a schematic flowchart of processing data of a dual-stack switch according to an embodiment of the present disclosure
  • 2b is a schematic diagram of a table of possible CSs according to an embodiment of the present application.
  • 2c is a schematic diagram of a table of possible PITs according to an embodiment of the present application.
  • 2d is a schematic diagram of a table of possible FIBs according to an embodiment of the present application.
  • 2 e is a schematic flowchart of a method for transmitting a data packet in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application;
  • 2f is a schematic flowchart of a data packet transmission method in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application;
  • 2G is a schematic flowchart of a data packet transmission method in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of a dual-stack switch in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a dual-stack switch in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application.
  • association relationship describing an association object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist at the same time. There are three cases of B alone.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • FIG. 1 is a schematic diagram showing a system architecture applicable to an embodiment of the present application.
  • the system architecture applicable to the embodiment of the present application is a system structure for deploying a content center network in an Ethernet network.
  • the at least one terminal device such as the terminal device 101 and the terminal device 102 in FIG. 1, further includes at least one server, such as the server 103 in FIG. 1, and each terminal device and the server are connected by at least one switch.
  • a terminal device in the embodiment of the present application which provides a device for providing voice and/or data connectivity, including a wireless terminal device or a wired terminal device.
  • the wireless terminal device may be a handheld device having a wireless connection function, or another processing device connected to the wireless modem, and a mobile terminal device that communicates with one or more core networks via the wireless access network.
  • the wireless terminal device can be a mobile phone (or "cellular" phone) and a computer with a mobile terminal device.
  • the wireless terminal device can also be a portable, pocket, handheld, computer built-in or in-vehicle mobile device.
  • the wireless terminal device can be part of a mobile station, an access point, or a user equipment (UE).
  • the server in the embodiment of the present application is a device that can provide the requested content to the terminal device.
  • the switch in the embodiment of the present application is divided into two types, including a dual stack switch and an Ethernet switch.
  • the dual stack switch can be called a Dual-Stack switch in English.
  • the dual stack switch 111, the dual stack switch 112 and the dual stack switch 113 shown in FIG. 1 the Ethernet switch 121 and the Ethernet switch shown in FIG. 1 .
  • 122 and Ethernet switch 123 The dual-stack switch in the embodiment of the present application may implement transmission of an Ethernet data frame based on a source MAC address field of an Ethernet data frame and/or a MAC address of a destination MAC address domain; on the other hand, it may also be based on a content center.
  • the content name of the data packet in the network is transmitted to the data packet in the content center network.
  • the Ethernet switch in the embodiment of the present application performs data transmission based on the source MAC address field and/or the MAC address of the destination MAC address field in the received data.
  • the Ethernet switch can process Ethernet data packets. It can also handle packets in the content center network.
  • the dual-stack switch in the embodiment of the present application implements transmission of an Ethernet data frame according to a source MAC address field and/or a MAC address of a destination MAC address field in an Ethernet data packet, and the Ethernet switch according to the content center network
  • the request packet and the MAC address of the source MAC address domain and/or the destination MAC address domain in the content center network content package enable transmission of the content center network request packet and the content center network content package.
  • the link in the embodiment of the present application is divided into a Spanning-Tree Protocol (STP) link and a Non-Spanning-Tree Protocol (N-STP) link, as shown in FIG.
  • the line represents the STP link and the thin line represents the N-STP link.
  • the network topology can be abstracted into a minimum spanning tree according to STP, and the STP link is preset.
  • STP can be applied to establish a tree topology in the network, eliminate loops in the network, and implement path redundancy through certain methods.
  • the links from the terminal device 101 through the dual stack switch 111, the Ethernet switch 121, the Ethernet switch 122, the dual stack switch 113, and the Ethernet switch 123 are all STP links.
  • the link between the dual stack switch 111, the dual stack switch 112, and the dual stack switch 113 is an N-STP link.
  • the STP link may include an Ethernet switch or a dual stack switch, and may include an Ethernet switch or a dual stack switch in the N-STP link.
  • the content center network in the embodiment of the present application refers to a content-centric network, and may include, for example, an NDN network.
  • the content center network request packet and the content center network content package are both externally encapsulated, and the medium access control (MAC) domain and the source MAC domain are encapsulated.
  • the content-centric content center network request packet and the content center network content package external encapsulation type indication information may also be used, so that the switch only parses the type indication information to determine whether the content center network request packet or the content center is received.
  • Network content package may also be used, so that the switch only parses the type indication information to determine whether the content center network request packet or the content center is received.
  • FIG. 1a to 1d exemplarily show the structure of several possible Ethernet data frames in the embodiment of the present application
  • FIG. 1e exemplarily shows the structure of a possible content center network request packet in the embodiment of the present application.
  • Schematic diagram, FIG. 1f exemplarily shows a schematic structural diagram of a possible content center network content package in the embodiment of the present application.
  • the Ethernet data frame includes a destination MAC domain, a source MAC domain, type indication information, and a data domain.
  • the type indication information in the Ethernet data frame may indicate what type of the Ethernet data frame is.
  • the type indication information is 0x0800, indicating that the Ethernet data frame is a bearer network protocol. (Internet Protocol, IP) Ethernet data frame; as shown in Figure 1c, the type indication information is 0x0806, indicating that the Ethernet data frame is an Ethernet data frame carrying an Address Resolution Protocol (ARP) data message.
  • ARP Address Resolution Protocol
  • the type indication information is 0x8035, indicating that the Ethernet data frame is an Ethernet data frame carrying a Reverse Address Resolution Protocol (RARP).
  • RARP Reverse Address Resolution Protocol
  • the type indication information used to indicate the content center network request packet and the content center network content package in the embodiment of the present application may be a preset value.
  • the content center network request packet and the content center network content packet type indication information may be Similarly, the switch can further determine whether the content center network request packet or the content center network content package is received according to the data domain content.
  • the type indication information of the content center network request packet and the content center network content package may be different, so that the switch may determine, according to the type indication information, whether the content center network request packet or the content center network content package is received. As shown in FIG. 1e, the type indication information is 0x8624, indicating that the content Chinese network request packet or the content Chinese network content package is received.
  • an indication bit may be added to the content center network request packet, and if the N-STP link indication information needs to be added to the content center network request packet, the content center network request may be The N-STP link indication information is added to the indication bit in the packet.
  • setting the indication bit to 1 indicates that the content center network request packet includes N-STP link indication information
  • setting the indication bit to 0 indicates that the content center network is The N-STP link indication information is not included in the request packet.
  • a Boolean type (for example, 1 bit) field S-flag may be added to the header of the content center network request packet, and a S-flag of TRUE indicates that the content center network request packet includes N- The STP link indicates information; otherwise, it indicates that the content center network request packet does not include N-STP link indication information.
  • the N-STP link indication information is used to indicate that at least one of all transmission links transmitted through the content center network request packet is an N-STP link.
  • FIG. 2 is a schematic flowchart diagram of a data packet transmission method in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application.
  • a data packet transmission method in a hybrid deployment of an Ethernet and a content center network implemented on a side of a dual-stack switch includes the following steps:
  • Step 201 The dual stack switch receives the request packet.
  • Step 202 The dual-stack switch determines that the request packet meets the preset condition, where the preset condition includes the request packet being the first content center network request packet, and the first content center network request packet includes the source media access control MAC address domain and the destination. MAC address field; then perform the following steps 203 to 204;
  • Step 203 if the first content center network request packet does not include N-STP link indication information, step 204 is performed;
  • Step 204 The dual stack switch sends a second content center network request packet to the at least one first neighbor dual stack switch.
  • the second content center network request packet is a dual stack switch adds an N-STP link to the first content center network request packet.
  • the first content center network request packet that adds the N-STP link indication information is referred to as the second content center network request packet in the embodiment of the present application.
  • the first content center network request packet and the second content center network request packet in the embodiment of the present application are both content center network request packets in the embodiment of the present application, where “first” and “second” are only used to distinguish
  • the first content center network content package and the second content center network content package in the embodiment of the present application are both the content center network content package in the embodiment of the present application, where “first” and “first”
  • the second is only used for the difference and does not have a meaning.
  • the switch forwards data to the next neighboring switch.
  • the link between the switch and multiple neighboring switches includes both an STP link and an N-STP link.
  • the multiple neighbor switches may include both a dual stack switch and an Ethernet switch; the STP link in the switch and all neighbor switches may include both a dual stack switch and an Ethernet switch; the switch and all neighbor switches
  • the N-STP link in the middle may include both a dual stack switch and an Ethernet switch. If the switch includes only one neighbor switch, the neighbor switch of the switch may be a dual stack switch or an Ethernet switch; the link between the switch and the neighbor switch may be an STP link or an N-STP link.
  • the dual-stack switch included in the N-STP link of the switch and all neighboring switches is referred to as a first neighbor dual-stack switch, and the dual-stack switch included in the STP link of the switch and all neighboring switches is used. It is called a second neighbor dual-stack switch.
  • the Ethernet switch included in the N-STP link of the switch and all neighboring switches is called the first neighbor Ethernet switch, and is included in the STP link of the switch and all neighboring switches.
  • An Ethernet switch is called a second Ethernet dual stack switch.
  • the N-STP link may also be sent through the N-STP link. If the STP link is sent, if the N-STP link is sent, the N-STP link indication information is added to the first content center network request packet, and the first step of the N-STP link indication information is added in this embodiment.
  • the content center network request packet is referred to as a second content center network request packet, and the second content center network request packet is sent to the dual stack switch on the N-STP link.
  • the dual stack switch may be according to a specific network environment, or some preset The rule, and the specific request in the neighboring switch in the dual-stack switch, determines whether to send through the N-STP link or through the STP link.
  • the preset rule is that the dual-stack switch can send all links that can be sent.
  • the neighboring switch of the dual-stack switch includes a neighboring dual-stack switch on the N-STP link, and a neighboring switch on the STP link. The dual-stack switch can simultaneously be connected to the N-STP link.
  • the neighboring dual-stack switch sends and sends to the neighboring switch on the STP link.
  • the dual-stack switch sends to the adjacent dual-stack switch on the N-STP link
  • the network request in the first content center is required.
  • the N-STP link indication information is added to the packet.
  • the first content center network request packet that adds the N-STP link indication information is referred to as a second content center network request packet, and the second content is included.
  • Heart network request packet to the dual stack switch neighbor on N-STP link. If the neighboring switch on the STP link is not added, the N-STP link indication information is not added, and the first content center network request packet that does not include the N-STP link indication information is sent to the neighboring switch on the STP link.
  • the content center network request packet received by the dual stack switch includes the source MAC address domain and the destination MAC address domain, so that the Ethernet switch in the Ethernet can request the source in the packet according to the content center network.
  • the MAC address domain and the destination MAC address domain process the content center network request packet, thereby realizing the purpose of deploying the content center network in the Ethernet.
  • the N-STP link indication information is used to indicate at least one of all transmission links that have transmitted the first content center network request packet.
  • the transmission link is an N-STP link; the dual-stack switch adds the N-STP link indication information to the first content center network request packet, and the first step of the N-STP link indication information is added in this embodiment.
  • the content center network request packet is referred to as a second content center network request packet, and the dual stack switch sends a second content center network request packet to at least one first neighbor dual stack switch; wherein, between the first neighbor dual stack switch and the dual stack switch
  • the link is an N-STP link. It can be seen that, in the embodiment of the present application, not only the STP link in the Ethernet but also the N-STP link in the Ethernet where the content center network is deployed can increase the number of available links and improve the network transmission performance. .
  • a great advantage of deploying a dual-stack switch in an Ethernet in this embodiment is that the optimal path can be found through a loop-free forwarding mechanism of the content center network. Because the content center network does not need to use the loop avoidance mechanism in the Layer 2 protocol, the dual stack switch can use the Layer 2 N-STP link when it needs to flood the content center network request packet.
  • the Ethernet switch After receiving the Ethernet data frame, the content center network request packet, and the content center network content package, the Ethernet switch forwards the Ethernet MAC address according to the MAC address of the destination MAC address field in the received data.
  • FIG. 2a exemplarily shows a flow chart of processing data of a dual-stack switch provided by an embodiment of the present application.
  • step 211 is performed, and the data received by the dual-stack switch is at the physical layer. Performing operations such as decoding, framing, or verifying, and then performing step 212.
  • step 212 it is determined whether the data after the operation belongs to the content center network.
  • a distributor module may be set, and the distributor module determines whether the type indication information is 0x8624 can determine whether the data after the operation belongs to the content center network.
  • step 215 is performed, and in step 215, the related processing procedure of the Ethernet data frame is performed on the received data, and the Ethernet data frame is processed.
  • the related processing procedure may determine the destination MAC address according to the MAC forwarding table of the Layer 2, thereby determining the port for forwarding the data, and performing step 216 to forward the Ethernet data frame from the port.
  • step 213 is performed, and in step 213, the related processing flow of the content center network is performed on the received data, and the forwarding of the data is determined.
  • the port proceeds to step 214 to forward data of the content center network from the port.
  • the related processing flow of the content center network is to forward the content center network request packet or the content center network content package according to the content name.
  • the dual-stack switch is a forwarding node supporting the content center network, and can forward the content center network request packet and the content center network content packet (three-layer forwarding) based on the content name, and can also forward the Ethernet data frame based on the MAC address ( Layer 2 forwarding) and can be directly connected to a Layer 2 Ethernet switch.
  • the dual-stack switch in the embodiment of the present application can fully realize the content-centric advantage of the content center network request packet and the content center network content package.
  • a type indication information is set in the content center network request packet and the content center network content package, and the type indication information is discussed in detail to participate in the foregoing content
  • the dual stack switch determines The request packet meets the preset condition, and the dual stack switch determines that the request packet is a content center network request packet according to the type indication information included in the request packet.
  • the type indication information may only indicate that the received request packet belongs to the content center network, that is, the type indication information of the content center network request packet and the content center network content package are the same, and thus, according to the received
  • the data determines that the request packet is received, and on the other hand, determines that the data received by the content center network is received according to the type indication information, so that it is determined that the content center network request packet is received.
  • the content center network request packet and the content center network content package have different type indication information, and the content center network request packet may be determined according to the type indication information. In this way, it is possible to determine whether the received content is a content center network request packet by analyzing a small amount of data, thereby improving the data processing speed.
  • the preset condition further includes: before receiving the first content center network request packet, the content center network request packet with the same request packet identifier as that of the first content center network request packet is not received; Wherein, a content center network request packet corresponds to a request packet identifier.
  • the request packet identifier can be a Nonce, and a request packet identifier can uniquely identify the content center network request packet.
  • the two terminals respectively generate the content request packet 1 and the content request packet 2, and the content request packet 1 and the content request packet 2 need to request the same content, and the content request packet 1 and the content request packet 2 have the same content name, but
  • the content request packet 1 and the content request packet 2 are two request packets, which are respectively generated by the two terminals, and the content request packet 1 and the content request packet 2 have different request packet identifiers.
  • the terminal separately generates two content request packets at different times, namely, a content request packet 3 and a content request packet 4, and the content request packet 3 and the content request packet 4 need to request the same content, and the content request packet 3
  • the content name of the content request packet 4 is the same, but the content request packet 3 and the content request packet 4 are two request packets, which are generated by the same terminal at different times, and therefore the request packet identifier of the content request packet 3 and the content request packet 4 different.
  • the dual stack switch may store the received request packet identifier of the content center network request packet, for example, may be stored in a Pending Interest Table (PIT), and the dual stack switch receives one.
  • PIT Pending Interest Table
  • the content center network requests a packet it first looks up from the PIT table to see if the content center network request packet of the same request identifier has been received before, and if there is a request in the PIT table that has the same request identifier as the content center network request packet, If the content center network request packet received by the device is received repeatedly, the received content center network request packet is discarded.
  • the dual-stack switch avoids the formation of loops by de-duplication processing.
  • any one or more of a content store (Content Store, CS), a PIT, and a Forwarding Information Base (FIB) may be stored in the dual stack switch in the embodiment of the present application.
  • CS Content Store
  • PIT PIT
  • FIB Forwarding Information Base
  • FIG. 2b is a schematic diagram showing a table of possible CSs provided by an embodiment of the present application
  • FIG. 2c is a schematic diagram showing a table of possible PITs provided by an embodiment of the present application
  • FIG. 2d exemplarily shows A schematic diagram of a possible FIB table provided by an embodiment of the present application.
  • the CS stores an association relationship between the content name and the content of the content center network content package, where the content center network request packet corresponding to the content name is used to obtain the content center network associated with the content name.
  • Content package content is a schematic diagram showing a table of possible CSs provided by an embodiment of the present application
  • FIG. 2c is a schematic diagram showing a table of possible PITs provided by an embodiment of the present application
  • FIG. 2d exemplarily shows A schematic diagram of a possible FIB table provided by an embodiment of the present application.
  • the CS stores an association relationship between the content name and the content of the content center network content package, where the content center network request packet corresponding to
  • the dual-stack switch may cache the content center network content package content in the received content center network content package, and if there is another content center network request packet, the content center network content needs to be requested.
  • the contents of the package can be directly obtained from the dual-stack switch, thereby saving time.
  • the PIT stores a content name, a port number of the content center network request packet corresponding to the content name, and a source MAC address in the content center network request packet corresponding to the received content name.
  • the relationship between the three. the source MAC address and the receiving port of the received content center network request packet can be recorded through the PIT table, so that the content center network content packet corresponding to the content center network request packet can be returned to the source MAC address indication through the receiving port.
  • the terminal device realizes the same purpose that the transmission link of the content center network content package is the same as the transmission link of the content center network request packet corresponding to the content center network content package, that is, the content center network request is transmitted from a transmission link.
  • the packet also returns the content center network content package corresponding to the content center network request packet from the transmission link.
  • the FIB stores the content name, the port number of the content center network request packet corresponding to the content name, and the next hop MAC address of the content center network request packet corresponding to the content name.
  • the FIB stores the content name, the port number of the content center network content package corresponding to the content name, and the received source MAC address in the content center network content package corresponding to the content name. relationship. That is to say, the FIB table records the next hop MAC address and the sending port of the content center network request packet, and the next hop MAC address and the sending port of the content center network request packet are also the content centers corresponding to the content center network request packet.
  • the receiving port and source MAC address of the network content package is to store the content name, the port number of the content center network request packet corresponding to the content name, and the next hop MAC address of the content center network request packet corresponding to the content name.
  • the association between the port number and the MAC address in the FIB table may be preset, or may be self-learned during subsequent transmission. For example, when receiving a content center network content package, the content name of the content center network content package, the port number of the content center network content package receiving the content name, and the content center network content package corresponding to the content name received The source MAC address is entered in the FIB.
  • the association between the port number and the MAC address exists in the PIT and the FIB, which provides a solution for solving the problem of the content name in the three layers and the MAC address mapping in the second layer in the embodiment of the present application, thereby implementing the solution.
  • the content center network request packet is directly coupled to Layer 2 Ethernet.
  • the preset condition further includes: the dual stack switch does not query the content center network content package content associated with the content name of the first content center network request packet in the content storage CS.
  • the dual stack switch after receiving the first content center network request packet, further includes: if the dual stack switch queries the content center network content associated with the content name of the first content center network request packet in the CS Packet content, the dual stack switch encapsulates the content center network content package content into the data domain of the first content center network content package, and assigns the target content address domain of the first content center network content package to the first content center network request.
  • the source MAC address of the packet is assigned to the MAC address of the dual-stack switch; the dual-stack switch sends the first content center network content packet after the MAC address is assigned.
  • the dual-stack switch can cache the content center network content package content in the received content center network content package, and if there are other first content center network request packets, the content center network content package content needs to be requested, Obtained from the dual stack switch, saving time.
  • the preset condition further includes: the dual stack switch does not query, in the interest request table PIT, the content name associated with the first content center network request packet: a port number and a MAC address.
  • the dual stack switch queries the port number and the MAC address associated with the content name of the first content center network request packet in the interest request table PIT.
  • the content name of the first content center network request packet is received.
  • the port number of the content center network request packet, and the source MAC address in the first content center network request packet is stored in the PIT table.
  • the difference is that if the port number and the MAC address associated with the content name of the first content center network request packet are queried in the PIT, the first content center network request packet is discarded after being recorded in the PIT table, that is, the first content center packet is not forwarded.
  • the transport center of the first content center network request packet corresponding to the packet has the same purpose.
  • the preset condition further includes: the dual stack switch does not query, in the forwarding information base FIB, the content name associated with the first content center network request packet: a port number and a MAC address.
  • the method further includes: if the dual-stack switch queries the content name of the first content center network request packet in the FIB: port number and MAC address, the dual-stack switch assigns the target MAC address field in the first content center network request packet to the MAC address corresponding to the content name of the first content center network request packet queried in the FIB; The source MAC address field in the network request packet is assigned the MAC address of the dual stack switch; the dual stack switch sends the first content center network request packet after the assigned MAC address. In this way, the FIB can be queried to determine where the first content center network request packet corresponding to the content name should be sent, thereby improving the data transmission rate.
  • the embodiment of the present application provides an optional solution, where the dual stack switch sends the second content center network request packet to the at least one first neighbor dual stack switch, including: the dual stack switch requests the source MAC in the second content center network request packet.
  • the address field is assigned the MAC address of the dual stack switch; the dual stack switch sends the second content center network request packet with the assigned MAC address to the at least one first neighbor dual stack switch.
  • the content center network content package corresponding to the first content center network request packet can be returned to the source MAC address.
  • the dual-stack switch determines that the first content center network request packet meets the preset condition, and the first content center network request packet does not include the N-STP link indication information
  • the dual-stack switch further includes: the dual-stack switch to the spanning tree
  • the neighbor switch included in the protocol STP link sends the first content center network request packet. That is, if the first content center network request packet does not include the N-STP link indication information, it may be sent to the next hop switch indicated in the STP network, or may be sent to one or more of the N-STP networks.
  • the neighboring dual stack switch sends.
  • the receiving end can select an optimal path from multiple receiving paths, for example, the dual-stack switch is sent to the two neighboring switches.
  • the next hop switch the next hop switch may select the link that first received the first content center network request packet as the path when the content center network content packet returns.
  • the dual stack switch sends the first content center network request packet to the neighbor switch included in the STP link, where the dual stack switch assigns the source MAC address field in the first content center network request packet to the dual stack.
  • the MAC address of the switch; the dual-stack switch sends the first content center network request packet with the assigned MAC address to the neighbor switch included in the STP link.
  • the Ethernet switch in the STP link can forward the first content center network request packet according to the MAC address in the first content center network request packet.
  • the content center network content packet can also be transmitted.
  • the link has the same purpose as the transmission link of the first content center network request packet corresponding to the content center network content package.
  • the dual stack switch further includes: if the first content center network request packet includes N-STP link indication information; then: the dual stack switch The at least one first neighbor dual stack switch and/or the at least one second neighbor dual stack switch send the first content center network request packet; wherein the link between the second neighbor dual stack switch and the dual stack switch is an STP link.
  • the dual stack switch may flood or broadcast the first content center network request packet to all neighbor dual stack switches, or the dual stack switch may forward the first content center to one or more of all neighbor dual stack switches. Network request package.
  • the first content center network request packet includes the N-STP link indication information
  • the first content center network request packet is subsequently transmitted only on the dual stack switch, and since the dual stack switch has a deduplication mechanism, The active MAC address field is also added, so that the transmission error of the first content center network request packet transmitted on the N-STP link can be avoided.
  • the dual stack switch sends the first content center network request packet to the at least one first neighbor dual stack switch and/or the at least one second neighbor dual stack switch, including: the dual stack switch sends the first content center network request The source MAC address field in the packet is assigned the MAC address of the dual stack switch; the dual stack switch sends the first content center network request of the assigned MAC address to the at least one first neighbor dual stack switch and/or the at least one second neighbor dual stack switch. package. In this way, the content center network content package corresponding to the first content center network request packet can be returned to the source MAC address.
  • the dual stack switch receives the second content center network content package, where the second content center network content package includes a source MAC address domain and a destination MAC address domain;
  • the stack switch queries the N port number and the N MAC addresses associated with the content name of the second content center network content package in the interest request table PIT, where N port numbers N MAC addresses are one-to-one correspondence; N is greater than An integer equal to 1, then: for each port number of the N port numbers, the dual stack switch assigns the target MAC address field in the second content center network content packet to the MAC address associated with the port number, and the source MAC address.
  • the domain assignment is the MAC address of the dual-stack switch, and the second content center network content package after the MAC address is assigned is sent out from the port; wherein the content name of the second content center network content package corresponds to the second content center network content package
  • the content center network request packet has the same content name; the PIT stores the content name, receives the port number of the content center network request packet corresponding to the content name, and receives the received The association relationship between the source MAC addresses in the content center network request packet corresponding to the content name.
  • the content name of the second content center network content package in the PIT table is “/youtube/soccer”, and the port number is 2 according to the PIT query, and the corresponding MAC address has three, respectively. It is "80:7A:6F:00:88:20", “34:87:01:30:55:EE” and "FE:32:88:65:12:AC”.
  • the target MAC address field in the second content center network content package is assigned the value of "80:7A:6F:00:88:20", and is sent from port 2; and then the target in the second content center network content package
  • the MAC address field is assigned the value of "34:87:01:30:55:EE” and is sent from port 2; then the destination MAC address field in the second content center network content packet is assigned the value "FE:32:88: 65:12: AC" and sent out from port 2.
  • a content center network content package is returned to each terminal device requesting the content center network content package, thereby reducing the transmission process.
  • the amount of data in the network saves network bandwidth.
  • the method further includes: if the dual-stack switch does not query the content name of the second content center network content package in the forwarding information base FIB: port number and MAC address Address, the dual stack switch between the content name of the second content center network content package, the port number of the second content center network content package, and the MAC address of the port number of the second content center network content package The relationship is stored in the FIB. In this way, the self-learning of the relationship between the content name, the port number and the MAC address in the FIB table can be realized.
  • FIG. 2 e exemplarily shows a schematic flowchart of a method for transmitting a data packet in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application. As shown in FIG. 2 e , the method includes:
  • Step 221 it is determined whether the data of the content center network or the Ethernet data frame is received; if it is an Ethernet data frame, step 222 is performed; if it is data of the content center network, step 223 is performed;
  • Step 222 Forward an Ethernet data frame.
  • Step 223 it is determined whether it is a content center network request packet or a content center network content package; if it is a content center network request packet, step 224 is performed; if it is a content center network content package, step 237 is performed;
  • Step 224 determining whether the CS is hit, that is, querying the CS, determining whether the content center network content package content corresponding to the content name of the content center network request packet is stored in the CS; if the hit, that is, the query is performed, step 225 is performed; If the miss occurs, step 227 is performed;
  • Step 225 Encapsulate the content center network content package content into a data domain of the first content center network content package, and assign a target MAC address field of the first content center network content package to a source MAC of the content center network request packet.
  • the source MAC address field in the first content center network content package is assigned to the MAC address of the dual stack switch; the dual stack switch sends the first content center network content package after the assigned MAC address;
  • Step 226 Record, in the PIT, the content name of the content center network request packet, the port number of the content center network request packet corresponding to the content name, and the source MAC address in the content center network request packet corresponding to the received content name.
  • the association relationship between the three; optionally, the received content center network request packet may be deduplicated before the step 227 is performed;
  • Step 227 determining whether the PIT is hit, that is, querying the PIT, determining whether the port number and the MAC address associated with the content name of the content center network request packet are stored in the PIT; if the hit, executing step 228; if not, executing Step 229;
  • Step 229 determining whether the FIB is hit, that is, querying the FIB, determining whether the port number and the MAC address associated with the content name of the content center network request packet are stored in the FIB; if the hit, executing step 230; if not, executing Step 231;
  • Step 230 Assign a target MAC address field in the content center network request packet to a MAC address corresponding to a content name of the content center network request packet queried in the FIB; and source MAC in the content center network request packet.
  • the address field is assigned a MAC address of the dual stack switch; the dual stack switch sends the content center network request packet after the assigned MAC address;
  • Step 231 it is determined whether the content center network request packet includes N-STP link indication information; if it is included, step 232 is performed; if not, step 235 and/or step 234 is performed;
  • Step 232 Assign the source MAC address field in the content center network request packet to the MAC address of the dual stack switch.
  • Step 233 the dual stack switch sends the content center network request packet with the assigned MAC address to the at least one first neighbor dual stack switch and/or the at least one second neighbor dual stack switch.
  • Step 234 Add N-STP link indication information to the content center network request packet.
  • Step 235 Assign the source MAC address field in the content center network request packet to the MAC address of the dual stack switch.
  • Step 236 The dual-stack switch sends the content center network request packet with the assigned MAC address to the neighboring switch included in the STP link.
  • Step 237 Determine whether the FIB is hit, that is, query the FIB, and determine whether the port number and the MAC address associated with the content name of the content center network content package are stored in the FIB; if the hit, perform step 239; if not, execute Step 238;
  • Step 238 The content name of the second content center network content package, the port number of the second content center network content package, and the MAC address of the port number of the second content center network content package are received. The relationship is stored in the FIB;
  • Step 239 determining whether the PIT is hit, that is, querying the PIT, determining whether the port number and the MAC address associated with the content name of the content center network content package are stored in the PIT; if the hit, executing step 240; if not, executing Step 241;
  • Step 240 Query, in the PIT, N port numbers and N MAC addresses associated with the content name of the second content center network content package; for each port number of the N port numbers, the dual stack switch The target MAC address field in the second content center network content package is assigned the MAC address associated with the port number, and the source MAC address field is assigned the MAC address of the dual stack switch, and the second content center network after the MAC address is assigned The content package is sent out from the port;
  • step 241 the content network center request packet is discarded.
  • FIG. 2f exemplarily shows a schematic flowchart of a data packet transmission method in a hybrid deployment of an Ethernet and a content center network provided in the embodiment of the present application.
  • the terminal device 261 and the dual stack are shown.
  • the link between the switch 262, the Ethernet switch 263, the Ethernet switch 264, the dual stack switch 266, the Ethernet switch 267, and the server 268 is an STP link
  • the dual stack switch 262, the dual stack switch 265, and the dual stack switch 266 The link between them is an N-STP link.
  • the terminal device 261 sends the content center network request packet to the dual stack switch 262, and the dual stack switch is sent to the Ethernet switch 263 through the STP link on the one hand, and to the dual stack switch 265 through the N-STP link on the other hand;
  • the switch 265 queries the CS of the dual-stack switch 265 to query the content center network content package content requested by the content center network request packet associated with the content name of the content center network request packet.
  • the dual stack switch 265 transmits the queried content center network content package content to the terminal device 261 through the content center network content package.
  • the content center network network function is implemented by using the N-STP link to forward the content center network content package, and the cache function of the content center network is utilized to improve network efficiency, and the link load balance is significantly improved and reduced. Content download latency and ease source server stress.
  • the dual-stack switch in the embodiment of the present application can achieve the following beneficial effects:
  • the solution of the embodiment of the present application can use a 60% N-STP physical link.
  • the embodiment of the present application reduces the average link load by 70% compared with the network composed entirely of the Ethernet switch in the same topology. Compared with a network composed entirely of Ethernet switches in the same topology, the average download delay of the content center network related data is reduced by 50%; the embodiment of the present application is reduced by 65 compared with the network composed entirely of Ethernet switches in the same topology. % content center network related content source server access load.
  • FIG. 2g exemplarily shows a schematic flowchart of a data packet transmission method in a hybrid deployment of an Ethernet and a content center network provided in the embodiment of the present application.
  • the terminal device 271 and the dual stack are shown.
  • the link between the switch 272, the Ethernet switch 273, the dual stack switch 274, the dual stack switch 275, and the server is an STP link
  • the link between the dual stack switch 272 and the dual stack switch 274 is an N-STP link.
  • the terminal device 271 sends the content center network request packet to the dual stack switch 272, and the dual stack switch is sent to the Ethernet switch 273 through the STP link on the one hand, and to the dual stack switch 274 through the N-STP link on the other hand;
  • the switch 273 sends the content center network request packet to the dual stack switch 274 through the STP link;
  • the dual stack switch 274 first receives the content center network request packet sent by the dual stack switch 272, and then receives the content center network sent by the Ethernet switch 273.
  • the request packet, the dual stack switch 274 is deduplicated according to the request packet identifier of the content center network request packet.
  • the dual stack switch 274 first receives the content center network request packet sent by the dual stack switch 272, and enters the content center in the PIT.
  • the content name of the network request packet and the request packet identifier of the content center network request packet after receiving the content center network request packet sent by the Ethernet switch 273, query the PIT, and find that the request packet identifier and the content sent by the Ethernet switch 273 already exist.
  • the request packet of the central network request packet identifies the same content center network request packet, and the double stack is handed over.
  • Machine 274 Ethernet switch 273 transmits content-centric network request packet is discarded.
  • the dual stack switch sends the content center network request packet to the dual stack switch 275, and finally reaches the server 276.
  • the server 276 returns the returned content center network content package through the dual stack switch 275, the dual stack switch 274, and the dual stack switch 272 to Terminal device 271.
  • a path with the shortest delay is selected from the plurality of paths for transmitting the content center network content package.
  • the Ethernet data frame is included according to the source MAC address field and the destination MAC address field in the Ethernet data frame. It can be seen that after the content center network is deployed in the Ethernet network in the embodiment of the present application, the dual-stack switch and the Ethernet switch support both the processing of the Ethernet data frame based on the IP protocol and the content center network.
  • the dual-stack switch and the Ethernet switch perform Layer 2 forwarding according to the destination MAC address field, and the existing MAC address learning mode, ARP/RARP protocol, and STP are related.
  • the mechanism continues to function, and it can be seen that the embodiments of the present application are better compatible with the prior art.
  • the process of deploying the content center network incrementally is implemented, and the content center network is deployed as the number of devices and applications of the content center network increases.
  • the benefits generated should also be higher and higher.
  • the design scheme for carrying the content center network on the Ethernet in the embodiment of the present application has good versatility and scalability, and the overhead is controllable, so that it is not only applicable to the wired PC host network, but also can be extended to (calculation, A network of wireless smart devices with limited power and storage resources.
  • FIG. 3 is a schematic structural diagram of a dual-stack switch in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application.
  • the embodiment of the present application provides a dual-stack switch 300 in a hybrid deployment of an Ethernet and a content center network, for performing any of the foregoing methods.
  • the dual stack switch 300 includes a processor 301, a transceiver 302, a memory 303, and a communication interface 304; wherein the processor 301, the transceiver 302, the memory 303, and the communication interface 304 are connected to one another via a bus 305.
  • the bus 305 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 3, but it does not mean that there is only one bus or one type of bus.
  • the memory 303 may include a volatile memory such as a random-access memory (RAM); the memory may also include a non-volatile memory such as a flash memory.
  • RAM random-access memory
  • non-volatile memory such as a flash memory.
  • HDD hard disk drive
  • SSD solid-state drive
  • the memory 303 may also include a combination of the above types of memories.
  • the communication interface 304 can be a wired communication access port, a wireless communication interface, or a combination thereof, wherein the wired communication interface can be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface can be a WLAN interface.
  • the processor 301 can be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
  • the processor 301 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory 303 can also be used to store program instructions, and the processor 301 calls the program instructions stored in the memory 303 to perform one or more steps in the embodiment shown in the above scheme, or an optional implementation thereof.
  • the dual stack switch 300 implements the function of the dual stack switch in the foregoing method.
  • the processor 301 is configured to control the transceiver 302 for signal reception and signal transmission according to instructions for executing the memory storage.
  • the dual stack switch 300 is configured to perform the following.
  • the transceiver 302 is configured to receive the request packet, and the processor 301 is configured to: if it is determined that the request packet meets the preset condition, determine that the first content center network request packet does not include the N-STP link indication information; and the transceiver 302 is configured to: And sending, by the at least one first neighbor dual stack switch, the second content center network request packet; wherein the preset condition includes: the request packet is a first content center network request packet, and the first content center network request packet includes a source MAC address domain and a destination.
  • the N-STP link indication information is used to indicate that at least one of the transmission links of the first content center network request packet is an N-STP link; the first neighbor dual stack switch and the dual The link between the stack switches is an N-STP link; the second content center network request packet is obtained by adding N-STP link indication information to the first content center network request packet.
  • the transceiver 302 is configured to: assign, by the processor 301, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first neighbor dual stack switch.
  • the second content center network request packet for the MAC address is assigned, by the processor 301, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first neighbor dual stack switch.
  • the second content center network request packet for the MAC address is configured to: assign, by the processor 301, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first neighbor dual stack switch.
  • the transceiver 302 is further configured to: if the processor 301 determines that the first content center network request packet meets the preset condition, and the first content center network request packet does not include the N-STP link indication information, : Sending a first content center network request packet to a neighbor switch included in the STP link.
  • the processor 301 is further configured to: assign a source MAC address field in the first content center network request packet to a MAC address of the dual stack switch; and the transceiver 302 is specifically configured to: include the information included in the STP link.
  • the neighboring switch sends the first content center network request packet with the assigned MAC address.
  • the transceiver 302 is further configured to: if the processor 301 determines that the request packet meets the preset condition, and the first content center network request packet includes the N-STP link indication information, then: at least one first The neighboring dual stack switch and/or the at least one second neighboring dual stack switch send the first content center network request packet; wherein the link between the second neighbor dual stack switch and the dual stack switch is an STP link.
  • the processor 301 is further configured to: assign a source MAC address field in the first content center network request packet to a MAC address of the dual stack switch; and the transceiver 302 is configured to: at least one first neighbor The stack switch and/or the at least one second neighbor dual stack switch send the first content center network request packet of the assigned MAC address.
  • the preset condition further includes: the content center network content package content associated with the content name of the first content center network request packet is not queried by the processor 301 in the CS; wherein the content name and the content center are stored in the CS The association relationship of the content of the network content package; wherein the content center network request packet corresponding to the content name is used to obtain the content center network content package content associated with the content name.
  • the processor 301 is further configured to: after receiving the first content center network request packet by the transceiver 302, if the content center network content package associated with the content name of the first content center network request packet is queried in the CS Content: encapsulating the content center network content package content into the data domain of the first content center network content package, and assigning the target MAC address field of the first content center network content package to the source MAC of the first content center network request packet The source MAC address field in the first content center network content package is assigned to the MAC address of the dual stack switch; the transceiver 302 is further configured to: send the first content center network content package after the assigned MAC address.
  • the preset condition further includes: by the processor 301, the port name and the MAC address associated with the content name of the first content center network request packet are not queried in the PIT, where the content name is stored in the PIT, and the content is received.
  • the preset condition further includes: by the processor 301, the content name associated with the first content center network request packet is not queried in the forwarding information base FIB: a port number and a MAC address; wherein the FIB stores the content name Transmitting an association relationship between a port number of the content center network request packet corresponding to the content name and a next hop MAC address of the content center network request packet corresponding to the content name; or, the FIB stores the content name, And receiving an association relationship between the port number of the content center network content package corresponding to the content name and the received source MAC address in the content center network content package corresponding to the content name.
  • the processor 301 is further configured to: after receiving the first content center network request packet by the transceiver 302, if it is determined that the content name of the first content center network request packet is queried in the FIB: a port number and MAC address, the target MAC address field in the first content center network request packet is assigned to the MAC address corresponding to the content name of the first content center network request packet queried in the FIB; the first content center network request packet is The source MAC address field is assigned to the MAC address of the dual stack switch; the transceiver 302 is further configured to: send the first content center network request packet after the assigned MAC address.
  • the preset condition further includes: before receiving the first content center network request packet by the transceiver 302, the content center network request packet that does not receive the request packet identifier and the request packet identifier of the first content center network request packet is not received.
  • a content center network request packet corresponds to a request packet identifier.
  • the transceiver 302 is further configured to: receive the second content center network content package, where the second content center network content package includes a source MAC address domain and a destination MAC address domain, and the processor 301 is further configured to: If the PIT queries the N port numbers and N MAC addresses associated with the content name of the second content center network content package, where N port numbers N MAC addresses are in one-to-one correspondence; N is an integer greater than or equal to 1, Then: for each port number of the N port numbers, assign the target MAC address field in the second content center network content packet to the MAC address associated with the port number, and assign the source MAC address field to the MAC address of the dual stack switch.
  • the transceiver 302 is further configured to: send the second content center network content packet after the assigned MAC address from the port;
  • the content name of the second content center network content package is the same as the content name of the content center network request package corresponding to the second content center network content package; the content name of the content center and the content center network request packet corresponding to the content name are stored in the PIT.
  • the port number and the received relationship between the source MAC address in the content center network request packet corresponding to the content name are stored in the PIT.
  • the processor 301 is further configured to: after receiving the second content center network content package by the transceiver 302, if it is determined that the content name of the second content center network content package is not queried in the FIB: the port number And the MAC address, between: the content name of the second content center network content package, the port number of the second content center network content package, and the MAC address of the port number of the second content center network content package.
  • the association relationship is stored in the FIB; wherein the FIB stores the content name, the port number of the content center network request packet corresponding to the content name, and the next hop MAC address of the content center network request packet corresponding to the content name.
  • FIG. 4 is a schematic structural diagram of a dual-stack switch in a hybrid deployment of an Ethernet and a content center network according to an embodiment of the present application.
  • the embodiment of the present application provides a dual-stack switch in a hybrid deployment of an Ethernet and a content center network, for performing the foregoing method flow.
  • the dual stack switch 400 can be used to perform any of the above methods. As shown in FIG. 4, the dual stack switch 400 includes a receiving unit 401, a processing unit 402, and a transmitting unit 403.
  • the receiving unit 401 is configured to receive the request packet, and the processing unit 402 is configured to: if it is determined that the request packet meets the preset condition, determine that the first content center network request packet does not include the N-STP link indication information; and the sending unit 403 is configured to: And sending, by the at least one first neighbor dual stack switch, the second content center network request packet; wherein the preset condition includes: the request packet is a first content center network request packet, and the first content center network request packet includes a source MAC address domain and a destination.
  • the N-STP link indication information is used to indicate that at least one of the transmission links of the first content center network request packet is an N-STP link; the first neighbor dual stack switch and the dual The link between the stack switches is an N-STP link; the second content center network request packet is obtained by adding N-STP link indication information to the first content center network request packet.
  • the sending unit 403 is specifically configured to: assign, by the processing unit 402, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first neighbor dual stack switch.
  • the second content center network request packet for the MAC address is specifically configured to: assign, by the processing unit 402, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first neighbor dual stack switch.
  • the second content center network request packet for the MAC address is specifically configured to: assign, by the processing unit 402, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first neighbor dual stack switch.
  • the second content center network request packet for the MAC address is specifically configured to: assign, by the processing unit 402, the source MAC address field in the second content center network request packet to the MAC address of the dual stack switch; and send the assignment to the at least one first
  • the sending unit 403 is further configured to: if the processing unit 402 determines that the first content center network request packet meets the preset condition, and the first content center network request packet does not include the N-STP link indication information, : Sending a first content center network request packet to a neighbor switch included in the STP link.
  • the processing unit 402 is further configured to: assign a source MAC address field in the first content center network request packet to a MAC address of the dual-stack switch, and send, by the sending unit 403, the information included in the STP link.
  • the neighboring switch sends the first content center network request packet with the assigned MAC address.
  • the sending unit 403 is further configured to: if the processing unit 402 determines that the request packet meets the preset condition, and the first content center network request packet includes the N-STP link indication information, then: at least one first The neighboring dual stack switch and/or the at least one second neighboring dual stack switch send the first content center network request packet; wherein the link between the second neighbor dual stack switch and the dual stack switch is an STP link.
  • the processing unit 402 is further configured to: assign a source MAC address field in the first content center network request packet to a MAC address of the dual-stack switch, and send, by the sending unit 403, to: at least one first neighbor The stack switch and/or the at least one second neighbor dual stack switch send the first content center network request packet of the assigned MAC address.
  • the preset condition further includes: the content center network content package content associated with the content name of the first content center network request packet is not queried by the processing unit 402 in the CS; wherein the content name and the content center are stored in the CS The association relationship of the content of the network content package; wherein the content center network request packet corresponding to the content name is used to obtain the content center network content package content associated with the content name.
  • the processing unit 402 is further configured to: after receiving the first content center network request packet by the receiving unit 401, if the content center network content package associated with the content name of the first content center network request packet is queried in the CS Content: encapsulating the content center network content package content into the data domain of the first content center network content package, and assigning the target MAC address field of the first content center network content package to the source MAC of the first content center network request packet
  • the source MAC address field in the first content center network content package is assigned to the MAC address of the dual stack switch;
  • the sending unit 403 is further configured to: send the first content center network content package after the assigned MAC address.
  • the preset condition further includes: by the processing unit 402, the port name and the MAC address associated with the content name of the first content center network request packet are not queried in the PIT; wherein the PIT stores the content name, and receives the content The association between the port number of the content center network request packet corresponding to the content name and the source MAC address in the content center network request packet corresponding to the received content name.
  • the preset condition further includes: by the processing unit 402, the content name associated with the first content center network request packet is not queried in the FIB: a port number and a MAC address; wherein the FIB stores the content name, and sends the content The association between the port number of the content center network request packet corresponding to the content name and the next hop MAC address of the content center network request packet corresponding to the content name; or, the FIB stores the content name and receives the content. The association between the port number of the content center network content package corresponding to the name and the received source MAC address in the content center network content package corresponding to the content name.
  • the processing unit 402 is further configured to: after receiving the first content center network request packet by the receiving unit 401, if it is determined that the content name of the first content center network request packet is queried in the FIB: a port number and MAC address, the target MAC address field in the first content center network request packet is assigned to the MAC address corresponding to the content name of the first content center network request packet queried in the FIB; the first content center network request packet is The source MAC address field is assigned to the MAC address of the dual-stack switch; the sending unit 403 is further configured to: send the first content center network request packet after the assigned MAC address.
  • the preset condition further includes: before receiving the first content center network request packet by the receiving unit 401, the content center network request packet with the same request packet identifier as that of the first content center network request packet is not received.
  • a content center network request packet corresponds to a request packet identifier.
  • the receiving unit 401 is further configured to: receive the second content center network content package, where the second content center network content package includes a source MAC address domain and a destination MAC address domain
  • the processing unit 402 is further configured to: If the PIT queries the N port numbers and N MAC addresses associated with the content name of the second content center network content package, where N port numbers N MAC addresses are in one-to-one correspondence; N is an integer greater than or equal to 1, Then: for each port number of the N port numbers, assign the target MAC address field in the second content center network content packet to the MAC address associated with the port number, and assign the source MAC address field to the MAC address of the dual stack switch.
  • the sending unit 403 is further configured to: send the second content center network content package after the assigned MAC address from the port;
  • the content name of the second content center network content package is the same as the content name of the content center network request package corresponding to the second content center network content package; the content name of the content center and the content center network request packet corresponding to the content name are stored in the PIT.
  • the port number and the received relationship between the source MAC address in the content center network request packet corresponding to the content name are stored in the PIT.
  • the processing unit 402 is further configured to: after receiving the second content center network content package by the receiving unit 401, if it is determined that the content name of the second content center network content package is not queried in the forwarding information base FIB : port number and MAC address, then: the content name of the second content center network content package, the port number of the second content center network content package, and the MAC address of the port number of the second content center network content package.
  • the association relationship is stored in the FIB.
  • the FIB stores the content name, the port number of the content center network request packet corresponding to the content name, and the next hop MAC address of the content center network request packet corresponding to the content name.
  • the association relationship between the three addresses; or, the FIB stores the content name, the port number of the content center network content package corresponding to the content name, and the received content center network content package corresponding to the content name received The relationship between the source MAC address and the three.
  • the receiving unit 401 and the sending unit 403 may be implemented by the transceiver 302, and the processing unit 402 may be implemented by the processor 301.
  • the dual stack switch 300 can include a processor 301, a transceiver 302, and a memory 303.
  • the memory 303 can be used to store the code when the processor 301 executes the solution, and the code can be a program/code pre-installed when the dual-stack switch 300 is shipped.
  • a computer program product includes one or more instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the instructions may be stored on a computer storage medium or transferred from one computer storage medium to another computer storage medium, for example, instructions may be wired from a website site, computer, server or data center (eg, coaxial cable, fiber optic, digital user) Line (DSL) or wireless (eg infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • the computer storage medium can be any available media that can be accessed by the computer or a data storage device such as a server, data center, or the like, including one or more available media.
  • Usable media can be magnetic media (eg, floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical media (eg, CD, DVD, BD, HVD, etc.), or semiconductor media (eg, ROM, EPROM, EEPROM, Non-volatile memory (NAND FLASH), solid state disk (SSD), etc.
  • magnetic media eg, floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.
  • optical media eg, CD, DVD, BD, HVD, etc.
  • semiconductor media eg, ROM, EPROM, EEPROM, Non-volatile memory (NAND FLASH), solid state disk (SSD), etc.
  • embodiments of the present application can be provided as a method, system, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or ⁇ RTIgt; These instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine such that instructions executed by a processor of a computer or other programmable data processing device are utilized for implementation A means of function specified in a flow or a flow and/or a block diagram of a block or blocks.
  • the instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种以太网和内容中心网络混合部署下的数据包传输方法相关装置及存储介质,用于在以太网和内容中心网络混合部署下实现数据包的传输。本申请实施例中,双栈交换机接收到的第一内容中心网络请求包中包括源MAC地址域和目的MAC地址域,因此可以使在以太网中的以太网交换机根据第一内容中心网络请求包中的源MAC地址域和目的MAC地址域对第一内容中心网络请求包进行处理,从而实现了在以太网中部署内容中心网络的目的。

Description

以太网内容中心网络混合下数据包传输方法装置存储介质
本申请要求在2017年05月23日提交中国专利局、申请号为201710363159.3、发明名称为“以太网内容中心网络混合下数据包传输方法装置存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信领域,尤其涉及一种以太网和内容中心网络混合部署下的数据包传输方法相关装置及存储介质。
背景技术
在互联网发展过程中,内容本身越来越成为用户需求的中心,因此针对内容为中心的内容中心网络研究应用而生。内容中心网络是以内容为中心的网络,比较常见的是命名数据网络(Named data Networking,NDN)。NDN是近十几年来根据Internet应用发展的特点提出来的一种新型的网络互联结构。
NDN网络中的节点可缓存转发过的数据内容,当其它节点需要请求相同的数据内容时,NDN网络中的节点可以以请求的数据内容的内容名字为索引,找到相应的数据内容,并向发送请求的一端返回所找到的数据内容。可见,NDN网络中以内容为中心的处理方案提高了响应时间,缓解了网络带宽压力。
另一方面,与协议和层次都更复杂的广域网相比,以太网的规模有限且结构扁平,用其直接承载新型的NDN框架可以避免很多额外协作,部署门槛较低。另外,以太网在互联网中十分普及。从长远看,随着越来越多的以太网实现对NDN的支持,NDN的部署会逐步从网络边缘向中心蔓延,为其大规模应用奠定基础。同时,考虑到网络协议(Internet Protocol,IP)协议早已渗透到当今互联网中的各个部分,可以预期,基于IP的应用和流量在未来仍将会长期存在。综上,目前亟需一种方案用于实现在以太网中部署NDN网络。
发明内容
本申请实施例提供一种以太网和内容中心网络混合部署下的数据包传输方法相关装置及存储介质,用于在以太网和内容中心网络混合部署下实现数据包的传输。
第一方面,本申请实施例提供一种以太网和内容中心网络混合部署下的数据包传输方法,该方法中双栈交换机接收请求包,若确定请求包满足预设条件,且确定第一内容中心网络请求包中不包括N-STP链路指示信息,则双栈交换机向至少一个第一邻双栈交换机发送第二内容中心网络请求包。其中,预设条件包括请求包为第一内容中心网络请求包,第一内容中心网络请求包中包括源媒体访问控制MAC地址域和目的MAC地址域;N-STP链路指示信息用于指示传输过第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;双栈交换机若第一邻双栈交换机与双栈交换机之间的链路为N-STP链路;第二内容中心网络请求包是向第一内容中心网络请求包中添加N-STP链路指示信息后得到的。
具体来说,本申请实施例中若确定请求包满足预设条件,且确定第一内容中心网络请求包中不包括N-STP链路指示信息时,可以通过N-STP链路发送也可以通过STP链路发 送,若通过N-STP链路发送时,则在第一内容中心网络请求包添加N-STP链路指示信息,将添加N-STP链路指示信息后的第一内容中心网络请求包称为第二内容中心网络请求包,将第二内容中心网络请求包发送给N-STP链路上的双栈交换机。
本申请实施例中若确定请求包满足预设条件,且确定第一内容中心网络请求包中不包括N-STP链路指示信息时,双栈交换机可以根据具体的网络环境,或者一些预设的规则,以及该双栈交换机中的邻交换机中的具体请求来确定是通过N-STP链路还是通过STP链路进行发送,比如预设的规则是该双栈交换机可以向能发送的所有链路进行发送,且该双栈交换机的邻交换机中包括N-STP链路上的邻双栈交换机,也包括STP链路上的邻交换机,此时双栈交换机可以同时既向N-STP链路上的邻双栈交换机发送,也向STP链路上的邻交换机发送,在该过程中,若双栈交换机向N-STP链路上的邻双栈交换机发送,则需要在第一内容中心网络请求包中增加N-STP链路指示信息,本申请实施例中将添加了N-STP链路指示信息的第一内容中心网络请求包称为第二内容中心网络请求包,并将第二内容中心网络请求包发送给N-STP链路上的邻双栈交换机。若向STP链路上的邻交换机,则不再添加N-STP链路指示信息,向STP链路上的邻交换机发送不包括N-STP链路指示信息的第一内容中心网络请求包。
可选地,双栈交换机向至少一个第一邻双栈交换机发送第二内容中心网络请求包,包括:双栈交换机将第二内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机向至少一个第一邻双栈交换机发送赋值MAC地址的第二内容中心网络请求包。
本申请实施例中,由于双栈交换机接收到的第一内容中心网络请求包中包括源MAC地址域和目的MAC地址域,因此可以使在以太网中的以太网交换机根据第一内容中心网络请求包中的源MAC地址域和目的MAC地址域对第一内容中心网络请求包进行处理,从而实现了在以太网中部署内容中心网络的目的。
另一种可选地实施方式中,双栈交换机若确定第一内容中心网络请求包满足预设条件,且第一内容中心网络请求包中不包括N-STP链路指示信息之后,还包括:双栈交换机向生成树协议STP链路中包括的邻交换机发送第一内容中心网络请求包。可见,本申请实施例中不仅能够使用以太网中的STP链路,也可以用部署了内容中心网络的以太网中的N-STP链路,增加了可用链路的数量,提高了网络传输性能。
进一步,可选地,双栈交换机向STP链路中包括的邻交换机发送第一内容中心网络请求包,包括:双栈交换机将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机向STP链路中包括的邻交换机发送赋值MAC地址的第一内容中心网络请求包。本申请实施例中,由于双栈交换机接收到的内容中心网络请求包中包括源MAC地址域和目的MAC地址域,因此可以使在以太网中的以太网交换机根据内容中心网络请求包中的源MAC地址域和目的MAC地址域对内容中心网络请求包进行处理,从而实现了在以太网中部署内容中心网络的目的。
可选地,双栈交换机若确定请求包满足预设条件之后,还包括:若第一内容中心网络请求包中包括N-STP链路指示信息;则:双栈交换机向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送第一内容中心网络请求包;其中,第二邻双栈交换机与双栈交换机之间的链路为STP链路。可选地,双栈交换机可以向所有邻双栈交换机洪泛或广播该第一内容中心网络请求包,或者双栈交换机可以向所有邻双栈交换机中的一个或多个 转发该第一内容中心网络请求包。也就是说,如果内容中心网络请求包中包括N-STP链路指示信息,则后续仅仅在双栈交换机上传输该内容中心网络请求包。
可选地,双栈交换机向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送第一内容中心网络请求包,包括:双栈交换机将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的第一内容中心网络请求包。且由于双栈交换机有去重机制,且也添加有源MAC地址域,因此可避免在N-STP链路上传输过的第一内容中心网络请求包的传输错误。
可选地,预设条件还包括:双栈交换机在内容存储器CS中未查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容;其中,CS中存储有内容名字与内容中心网络内容包内容的关联关系;其中,一个内容名字对应的内容中心网络请求包用于获取该内容名字关联的内容中心网络内容包内容。也就是说,本申请实施例中,双栈交换机可以将接收到的内容中心网络内容包中的内容中心网络内容包内容进行缓存。
进一步,可选地,双栈交换机接收第一内容中心网络请求包之后,还包括:双栈交换机若在CS中查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容,则:双栈交换机将内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将第一内容中心网络内容包的目标MAC地址域赋值为第一内容中心网络请求包的源MAC;将第一内容中心网络内容包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机发送赋值MAC地址后的第一内容中心网络内容包。如此,若有其它第一内容中心网络请求包需要请求该内容中心网络内容包内容,则可直接从该双栈交换机中获取,从而节省了时延。
可选地,预设条件还包括:双栈交换机在兴趣请求表PIT中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;其中,PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。如此,可以通过PIT表格记录下接收到的内容中心网络请求包的源MAC地址和接收端口,从而可将该内容中心网络请求包对应的内容中心网络内容包通过该接收端口返回至源MAC地址指示的终端设备,实现了内容中心网络内容包的传输链路与该内容中心网络内容包对应的内容中心网络请求包的传输链路相同的目的,即从一条传输链路上传输了内容中心网络请求包,则还从该条传输链路上返回该内容中心网络请求包对应的内容中心网络内容包。
可选地,预设条件还包括:双栈交换机在转发信息库FIB中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;其中,FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。可选地,FIB表格中端口号和MAC地址的关联关系可以预先设置,也可以在后续传输过程中自学习。比如当接收到一个内容中心网络内容包时,将该内容中心网络内容包的内容名字、接收该内容名字的内容中心网络内容包的端口号和接收该内容名字对应的内容中心网络内容包中的源MAC地址录入FIB中。
可选地,双栈交换机接收第一内容中心网络请求包之后,还包括:若双栈交换机在FIB中查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,则:双栈交换机将第一内容中心网络请求包中的目标MAC地址域赋值为在FIB中查询到的第一内容中心网络请求包的内容名字对应的MAC地址;将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机发送赋值MAC地址后的第一内容中心网络请求包。通过查询FIB可以确定出内容名字对应的第一内容中心网络请求包应该发送到哪里,提高了数据传输速率。
可选地,预设条件还包括:在接收到第一内容中心网络请求包之前未收到请求包标识与第一内容中心网络请求包的请求包标识相同的内容中心网络请求包;其中,一个内容中心网络请求包对应一个请求包标识。如此,可以实现对请求包的去重处理,从而实现了在N-STP链路下避免环路的产生以及信息的冗余。
另一种可选地实施方案中,方法还包括:双栈交换机接收第二内容中心网络内容包;其中,第二内容中心网络内容包中包括源MAC地址域和目的MAC地址域;双栈交换机若在兴趣请求表PIT中查询出第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址,其中,N个端口号N个MAC地址一一对应;N为大于等于1的整数,则:针对N个端口号中的每个端口号,双栈交换机对第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为双栈交换机的MAC地址,将赋值MAC地址后的第二内容中心网络内容包从该端口发送出去;其中,第二内容中心网络内容包的内容名字与第二内容中心网络内容包对应的第一内容中心网络请求包的内容名字相同;PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。如此,双栈交换机可以将接收到的内容中心网络内容包中的内容中心网络内容包内容进行缓存,若后续有其它内容中心网络请求包需要请求该内容中心网络内容包内容,则可直接从该双栈交换机中获取,从而节省了时延。
可选地,双栈交换机接收第二内容中心网络内容包之后,还包括:双栈交换机若在转发信息库FIB中未查询到第二内容中心网络内容包的内容名字关联的:端口号和MAC地址,则:双栈交换机将第二内容中心网络内容包的内容名字、接收第二内容中心网络内容包的的端口号、接收第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入FIB中;其中,FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。如此,可将该内容中心网络请求包对应的内容中心网络内容包通过该接收端口返回至源MAC地址指示的终端设备,实现了内容中心网络内容包的传输链路与该内容中心网络内容包对应的内容中心网络请求包的传输链路相同的目的。
第二方面,本申请实施例提供一种以太网和内容中心网络混合部署中的双栈交换机,以太网和内容中心网络混合部署中的双栈交换机包括存储器、收发器和处理器,其中:存储器用于存储指令;处理器用于根据执行存储器存储的指令,并控制收发器进行信号接收和信号发送,当处理器执行存储器存储的指令时,以太网和内容中心网络混合部署中的双栈交换机用于执行上述第一方面或第一方面中任一种方法。
第三方面,本申请实施例提供一种以太网和内容中心网络混合部署中的双栈交换机,用于实现上述第一方面或第一方面中的任意一种方法,包括相应的功能模块,分别用于实现以上方法中的步骤。
第四方面,本申请实施例提供一种计算机存储介质,计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面或第一方面的任意可能的实现方式中的方法。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行第一方面或第一方面的任意可能的实现方式中的方法。
本申请实施例中,由于双栈交换机接收到的第一内容中心网络请求包中包括源MAC地址域和目的MAC地址域,因此可以使在以太网中的以太网交换机根据第一内容中心网络请求包中的源MAC地址域和目的MAC地址域对第一内容中心网络请求包进行处理,从而实现了在以太网中部署内容中心网络的目的。进一步,由于若第一内容中心网络请求包中不包括N-STP链路指示信息,N-STP链路指示信息用于指示传输过第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;则:双栈交换机向第一内容中心网络请求包中添加N-STP链路指示信息,本申请实施例中将添加N-STP链路指示信息的第一内容中心网络请求包称为第二内容中心网络请求包,双栈交换机向至少一个第一邻双栈交换机发送第二内容中心网络请求包;其中,第一邻双栈交换机与双栈交换机之间的链路为N-STP链路。可见,本申请实施例中不仅能够使用以太网中的STP链路,也可以用部署了内容中心网络的以太网中的N-STP链路,增加了可用链路的数量,提高了网络传输性能。
附图说明
图1为本申请实施例适用的一种系统架构示意图;
图1a为本申请实施例提供的一种可能的以太网数据帧的结构示意图;
图1b为本申请实施例提供的另一种可能的以太网数据帧的结构示意图;
图1c为本申请实施例提供的另一种可能的以太网数据帧的结构示意图;
图1d为本申请实施例提供的另一种可能的以太网数据帧的结构示意图;
图1e为本申请实施例提供的一种可能的内容中心网络请求包的结构示意图;
图1f为本申请实施例提供的另一种可能的内容中心网络内容包的结构示意图;
图2为本申请实施例提供的一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图;
图2a为本申请实施例提供的一种双栈交换机处理数据的流程示意图;
图2b为本申请实施例提供的一种可能的CS的表格示意图;
图2c为本申请实施例提供的一种可能的PIT的表格示意图;
图2d为本申请实施例提供的一种可能的FIB的表格示意图;
图2e为本申请实施例中还提供一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图;
图2f为本申请实施例中提供的一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图;
图2g为本申请实施例中提供的一种以太网和内容中心网络混合部署下的数据包传输 方法的流程示意图;
图3为本申请实施例中提供的一种以太网和内容中心网络混合部署中的双栈交换机的结构示意图;
图4为本申请实施例中提供的一种以太网和内容中心网络混合部署中的双栈交换机的结构示意图。
具体实施方式
本申请实施例中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
图1示例性示出了本申请实施例适用的一种系统架构示意图,如图1所示,本申请实施例适用的系统架构为在以太网中部署内容中心网络的系统结构,该系统中可包括至少一个终端设备,比如图1中的终端设备101和终端设备102,还包括至少一个服务器,比如图1中的服务器103,各个终端设备和服务器之间通过至少一个交换机连接。
本申请实施例中终端设备,指向用户提供语音和/或数据连通性的设备(device),包括无线终端设备或有线终端设备。无线终端设备可以是具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备,经无线接入网与一个或多个核心网进行通信的移动终端设备。例如,无线终端设备可以是移动电话(或称为“蜂窝”电话)和具有移动终端设备的计算机。又如,无线终端设备也可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。再如,无线终端设备可以为移动站(mobile station)、接入点(access point)、或用户设备(user equipment,简称UE)的一部分。本申请实施例中的服务器为可向终端设备提供所请求的内容的设备。
如图1所示,本申请实施例中交换机分为两种类型,包括双栈交换机和以太网交换机。双栈交换机英文可称为Dual-Stack switch,如图1所示的双栈交换机111、双栈交换机112和双栈交换机113,以太网交换机如图1所示的以太网交换机121、以太网交换机122和以太网交换机123。本申请实施例中的双栈交换机一方面可以基于以太网数据帧的源MAC地址域和/或目的MAC地址域的MAC地址实现对以太网数据帧的传输;另一方面,也可以基于内容中心网络中的数据包的内容名字对内容中心网络中的数据包进行传输。本申请实施例中的以太网交换机基于接收到的数据中的源MAC地址域和/或目的MAC地址域的MAC地址进行数据的传输,具体来说,以太网交换机既能处理以太网的数据包,也能处理内容中心网络中的数据包。也就是说,本申请实施例中的双栈交换机根据以太网数据包中的源MAC地址域和/或目的MAC地址域的MAC地址实现对以太网数据帧的传输,以太网交换机根据内容中心网络请求包和内容中心网络内容包中的源MAC地址域和/或目的MAC地址域的MAC地址实现对内容中心网络请求包和内容中心网络内容包的传输。
本申请实施例中的链路分为生成树协议(Spanning-Tree Protocol,STP)链路和非生成树协议(Non-Spanning-Tree Protocol,N-STP)链路,如图1所示,粗线表示STP链路,细线表示N-STP链路。在以太网中,可以根据STP把网络拓扑抽象为一颗最小生成树,STP链路是预设的。STP可应用于在网络中建立树形拓扑,消除网络中的环路,并且可以通过一定的方法实现路径冗余。比如从终端设备101开始依次经过双栈交换机111、以太网交换机121、以太网交换机122、双栈交换机113和以太网交换机123的链路均为STP 链路。双栈交换机111、双栈交换机112和双栈交换机113之间的链路为N-STP链路。在STP链路中可包括以太网交换机也可包括双栈交换机,在N-STP链路中可包括以太网交换机也可包括双栈交换机。
本申请实施例中存在两种类型的数据帧,在以太网中传输的基于IP协议的以太网数据帧,以及以内容为中心的内容中心网络请求包和内容中心网络内容包。本申请实施例中内容中心网络请求包用于请求获取内容,内容中心网络内容包用于传输内容中心网络请求包所请求的内容,内容中心网络请求包要请求的内容的内容名字和该内容中心网络请求包对应的内容中心网络内容包中所包括的内容的内容名字是相同的。本申请实施例中的内容中心网络是指以内容为中心的网络,比如可包括NDN网络。
本申请实施例中内容中心网络请求包和内容中心网络内容包外部均进行以太网封装,封装了目的媒体访问控制(Medium Access Control,MAC)域和源MAC域。可选地,还可在内容为中心的内容中心网络请求包和内容中心网络内容包外部封装类型指示信息,以便交换机仅解析类型指示信息即可确定接收到是否为内容中心网络请求包或内容中心网络内容包。
图1a至图1d示例性示出了本申请实施例中几种可能的以太网数据帧的结构示意图,图1e示例性示出了本申请实施例中一种可能的内容中心网络请求包的结构示意图,图1f示例性示出了本申请实施例中一种可能的内容中心网络内容包的结构示意图。
如图1a至图1d所示,以太网数据帧中包括目的MAC域、源MAC域、类型指示信息以及数据域。可选地,以太网数据帧中的类型指示信息可以指示处该以太网数据帧是何种类型,比如,如图1b所示,类型指示信息为0x0800则表示该以太网数据帧为承载网络协议(Internet Protocol,IP)的以太网数据帧;如图1c所示,类型指示信息为0x0806则表示该以太网数据帧为承载地址解析协议(Address Resolution Protocol,ARP)数据报文的以太网数据帧。如图1d所示,类型指示信息为0x8035则表示该以太网数据帧为承载逆向地址解析协议(Reverse Address Resolution Protocol,RARP)的以太网数据帧。
本申请实施例中用于指示内容中心网络请求包和内容中心网络内容包的类型指示信息可为预设的值,可选地,内容中心网络请求包和内容中心网络内容包的类型指示信息可以相同,如此交换机可进一步根据数据域内容确定接收到的是内容中心网络请求包还是内容中心网络内容包。可选地,内容中心网络请求包和内容中心网络内容包的类型指示信息可以不同,如此交换机可根据类型指示信息确定接收到的是内容中心网络请求包还是内容中心网络内容包。如图1e所示,类型指示信息为0x8624则表示接收到的是内容中文网络请求包或内容中文网络内容包。
可选地,本申请实施例中还可在内容中心网络请求包中添加一个指示位,若需要在该内容中心网络请求包中添加N-STP链路指示信息,则可在该内容中心网络请求包中的该指示位处添加N-STP链路指示信息。一种可选地实施方式中,比如将该指示位设置为1,则表示该内容中心网络请求包中包括N-STP链路指示信息,将该指示位设置为0,则表示该内容中心网络请求包中不包括N-STP链路指示信息。
另一种可选地实施方式中可以在内容中心网络请求包的头部加入一个布尔类型(比如为1bit)字段S-flag,S-flag为TRUE则表示该内容中心网络请求包中包括N-STP链路指示信息;否则,则表示该内容中心网络请求包中不包括N-STP链路指示信息。可选地,N-STP链路指示信息用于指示传输过内容中心网络请求包的所有传输链路中的至少一个传 输链路为N-STP链路。
图2示例性示出了本申请实施例提供的一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图。
基于图1所示的系统架构,如图2所示,本申请实施例提供的在双栈交换机一侧实现的一种以太网和内容中心网络混合部署下的数据包传输方法,包括以下步骤:
步骤201,双栈交换机接收请求包;
步骤202,双栈交换机若确定请求包满足预设条件;其中,预设条件包括请求包为第一内容中心网络请求包,第一内容中心网络请求包中包括源媒体访问控制MAC地址域和目的MAC地址域;则执行下述步骤203至步骤204;
步骤203,若第一内容中心网络请求包中不包括N-STP链路指示信息,则执行步骤204;
步骤204,双栈交换机向至少一个第一邻双栈交换机发送第二内容中心网络请求包;第二内容中心网络请求包是双栈交换机向第一内容中心网络请求包中添加N-STP链路指示信息后得到的;本申请实施例中将添加N-STP链路指示信息的第一内容中心网络请求包称为第二内容中心网络请求包。
本申请实施例中的第一内容中心网络请求包和第二内容中心网络请求包均为本申请实施例中的内容中心网络请求包,其中,“第一”和“第二”仅仅用于区别,不具有限定意义;本申请实施例中的第一内容中心网络内容包和第二内容中心网络内容包均为本申请实施例中的内容中心网络内容包,其中,“第一”和“第二”仅仅用于区别,不具有限定意义。
本申请实施例中交换机会将数据转发给下一个邻交换机,针对一个交换机而言,该交换机与多个邻交换机之间的链路既包括STP链路,也包括N-STP链路;该交换机的多个邻交换机中可能既包括双栈交换机,也包括以太网交换机;该交换机与所有邻交换机中的STP链路中可能既包括双栈交换机,也包括以太网交换机;该交换机与所有邻交换机中的N-STP链路中可能既包括双栈交换机,也包括以太网交换机。若该交换机仅包括一个邻交换机,则该交换机的该邻交换机可能是双栈交换机或以太网交换机;该交换机和该邻交换机之间的链路可能是STP链路或N-STP链路。
本申请实施例中将该交换机与所有邻交换机的N-STP链路中包括的双栈交换机称为第一邻双栈交换机,将该交换机与所有邻交换机的STP链路中包括的双栈交换机称为第二邻双栈交换机,该交换机与所有邻交换机的N-STP链路中包括的以太网交换机称为第一邻以太网交换机,将该交换机与所有邻交换机的STP链路中包括的以太网交换机称为第二以太网双栈交换机。
具体来说,本申请实施例中若确定请求包满足预设条件,且确定第一内容中心网络请求包中不包括N-STP链路指示信息时,可以通过N-STP链路发送也可以通过STP链路发送,若通过N-STP链路发送时,则在第一内容中心网络请求包添加N-STP链路指示信息,本申请实施例中将添加N-STP链路指示信息的第一内容中心网络请求包称为第二内容中心网络请求包,并将第二内容中心网络请求包发送给N-STP链路上的双栈交换机。
本申请实施例中若确定请求包满足预设条件,且确定第一内容中心网络请求包中不包括N-STP链路指示信息时,双栈交换机可以根据具体的网络环境,或者一些预设的规则,以及该双栈交换机中的邻交换机中的具体请求来确定是通过N-STP链路还是通过STP链路进行发送,比如预设的规则是该双栈交换机可以向能发送的所有链路进行发送,且该双 栈交换机的邻交换机中包括N-STP链路上的邻双栈交换机,也包括STP链路上的邻交换机,此时双栈交换机可以同时既向N-STP链路上的邻双栈交换机发送,也向STP链路上的邻交换机发送,在该过程中,若双栈交换机向N-STP链路上的邻双栈交换机发送,则需要在第一内容中心网络请求包中增加N-STP链路指示信息,本申请实施例中将增加N-STP链路指示信息的第一内容中心网络请求包称为第二内容中心网络请求包,并将第二内容中心网络请求包发送给N-STP链路上的邻双栈交换机。若向STP链路上的邻交换机,则不再添加N-STP链路指示信息,向STP链路上的邻交换机发送不包括N-STP链路指示信息的第一内容中心网络请求包。
本申请实施例中,由于双栈交换机接收到的内容中心网络请求包中包括源MAC地址域和目的MAC地址域,因此可以使在以太网中的以太网交换机根据内容中心网络请求包中的源MAC地址域和目的MAC地址域对内容中心网络请求包进行处理,从而实现了在以太网中部署内容中心网络的目的。
进一步,由于若第一内容中心网络请求包中不包括N-STP链路指示信息,N-STP链路指示信息用于指示传输过第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;则:双栈交换机向第一内容中心网络请求包中添加N-STP链路指示信息,本申请实施例中将添加N-STP链路指示信息的第一内容中心网络请求包称为第二内容中心网络请求包,双栈交换机向至少一个第一邻双栈交换机发送第二内容中心网络请求包;其中,第一邻双栈交换机与双栈交换机之间的链路为N-STP链路。可见,本申请实施例中不仅能够使用以太网中的STP链路,也可以用部署了内容中心网络的以太网中的N-STP链路,增加了可用链路的数量,提高了网络传输性能。
本申请实施例中在以太网中部署双栈交换机的一大优点是可以通过内容中心网络的无环路(loop-free)转发机制发现最优路径。且由于内容中心网络不需要使用二层协议中的环路避免机制,因此双栈交换机在需要洪泛转发内容中心网络请求包时,可以使用二层的N-STP链路。
针对以太网交换机,以太网交换机接收到以太网数据帧、内容中心网络请求包和内容中心网络内容包后,以太网交换机根据接收到的数据中的目的MAC地址域的MAC地址对其进行转发。
针对双栈交换机,图2a示例性示出了本申请实施例提供的一种双栈交换机处理数据的流程示意图,如图2a所示,执行步骤211,双栈交换机将接收到的数据在物理层进行解码、成帧或校验等操作,之后执行步骤212,步骤212中判断进行操作后的数据是否属于内容中心网络,比如可设置一个分发器模块,用分发器模块通过判断类型指示信息是否为0x8624可判断进行操作后的数据是否属于内容中心网络。双栈交换机若确定接收到的不是内容中心网络的数据,而是以太网数据帧,则执行步骤215,在步骤215中对接收到的数据执行以太网数据帧的相关处理流程,以太网数据帧的相关处理流程比如可以根据二层的MAC转发表,确定出目的MAC地址,从而确定出转发该数据的端口,执行步骤216从该端口转发该以太网数据帧。
双栈交换机若确定接收到的是内容中心网络请求包或内容中心网络内容包,则执行步骤213,在步骤213中对接收到的数据执行内容中心网络的相关处理流程,并确定转发该数据的端口,执行步骤214从该端口转发该内容中心网络的数据。内容中心网络的相关处理流程是根据内容名字对内容中心网络请求包或内容中心网络内容包进行转发。也就是 说,双栈交换机是一个支持内容中心网络的转发节点,可基于内容名字转发内容中心网络请求包和内容中心网络内容包(三层转发),也可基于MAC地址转发以太网数据帧(二层转发),并且可以直接与二层的以太网交换机相连。如此,可见,本申请实施例中双栈交换机可以充分实现内容中心网络请求包和内容中心网络内容包中以内容为中心的优势。
上述内容中提高一种可选地实施方式中是在内容中心网络请求包和内容中心网络内容包中设置一个类型指示信息,类型指示信息详细论述可参加上述内容,可选地,双栈交换机确定请求包满足预设条件,包括:双栈交换机根据请求包中包括的类型指示信息,确定出请求包为内容中心网络请求包。
可选地,类型指示信息可以仅仅指示出接收到的请求包是属于内容中心网络的,即内容中心网络请求包和内容中心网络内容包的类型指示信息相同,如此,一方面可以根据接收到的数据确定出接收到的是请求包,另一方面可根据类型指示信息确定接收到的是内容中心网络的数据,因此综合起来可以确定出接收到的是内容中心网络请求包。另一种可选地实施方案中,内容中心网络请求包和内容中心网络内容包的类型指示信息不同,直接根据类型指示信息可以确定出接收到的是内容中心网络请求包。如此,可以通过解析出的少量数据即确定出接收到的是否为内容中心网络请求包,提高了数据处理速度。
一种可选地方式中预设条件还包括:在接收到第一内容中心网络请求包之前未收到请求包标识与第一内容中心网络请求包的请求包标识相同的内容中心网络请求包;其中,一个内容中心网络请求包对应一个请求包标识。如此,可以实现对请求包的去重处理,从而实现了在N-STP链路下避免环路的产生以及信息的冗余。请求包标识可以成为Nonce,一个请求包标识可以唯一标识该内容中心网络请求包。举个例子,两个终端分别生成内容请求包1和内容请求包2,内容请求包1和内容请求包2需要请求的内容相同,则内容请求包1和内容请求包2的内容名字相同,但是内容请求包1和内容请求包2是两个请求包,是两个终端分别生成的,内容请求包1和内容请求包2的请求包标识不同。再举一个例子,终端在不同时间分别生成了两个内容请求包,分别为内容请求包3和内容请求包4,内容请求包3和内容请求包4需要请求的内容相同,则内容请求包3和内容请求包4的内容名字相同,但是内容请求包3和内容请求包4是两个请求包,是同一个终端在不同时间生成的,因此内容请求包3和内容请求包4的请求包标识不同。
一种可选地实施方式中,双栈交换机可以存储接收到的内容中心网络请求包的请求包标识,比如可以存储在兴趣请求表(Pending Interest Table,PIT)中,当双栈交换机接收到一个内容中心网络请求包时,先从PIT表格中查找,看是否在之前已经收到过相同请求标识的内容中心网络请求包,若发现PIT表格中存在与内容中心网络请求包的请求标识相同的请求标识,则认为此次接收到的内容中心网络请求包是一个重复接收到的,则丢弃该接收到的内容中心网络请求包。若发现PIT表格中不存在与内容中心网络请求包的请求标识相同的请求标识,则认为此次接收到的内容中心网络请求包是首次接收到的,则进行相应的转发。如此,双栈交换机通过去重处理,避免了环路的形成。
可选地,本申请实施例中在双栈交换机中可以存储内容存储器(Content Store,CS)、PIT和转发信息库(Forwarding Information Base,FIB)中的任一项或任多项。
图2b示例性示出了本申请实施例提供的一种可能的CS的表格示意图,图2c示例性示出了本申请实施例提供的一种可能的PIT的表格示意图,图2d示例性示出了本申请实施例提供的一种可能的FIB的表格示意图。如图2b所示,可选地,CS中存储有内容名字 与内容中心网络内容包内容的关联关系;其中,一个内容名字对应的内容中心网络请求包用于获取该内容名字关联的内容中心网络内容包内容。也就是说,本申请实施例中,双栈交换机可以将接收到的内容中心网络内容包中的内容中心网络内容包内容进行缓存,若后续有其它内容中心网络请求包需要请求该内容中心网络内容包内容,则可直接从该双栈交换机中获取,从而节省了时延。
如图2c所示,可选地,PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。如此,可以通过PIT表格记录下接收到的内容中心网络请求包的源MAC地址和接收端口,从而可将该内容中心网络请求包对应的内容中心网络内容包通过该接收端口返回至源MAC地址指示的终端设备,实现了内容中心网络内容包的传输链路与该内容中心网络内容包对应的内容中心网络请求包的传输链路相同的目的,即从一条传输链路上传输了内容中心网络请求包,则还从该条传输链路上返回该内容中心网络请求包对应的内容中心网络内容包。
如图2d所示,可选地,FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系。或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。也就是说,FIB表格中记录了内容中心网络请求包的下一跳MAC地址和发送端口,内容中心网络请求包的下一跳MAC地址和发送端口同时也是该内容中心网络请求包对应的内容中心网络内容包的接收端口和源MAC地址。通过查询FIB可以确定出内容名字对应的内容中心网络请求包应该发送到哪里,提高了数据传输速率。可选地,FIB表格中端口号和MAC地址的关联关系可以预先设置,也可以在后续传输过程中自学习。比如当接收到一个内容中心网络内容包时,将该内容中心网络内容包的内容名字、接收该内容名字的内容中心网络内容包的端口号和接收该内容名字对应的内容中心网络内容包中的源MAC地址录入FIB中。
本申请实施例中在PIT和FIB中存在端口号和MAC地址的关联关系,为本申请实施例中解决三层中的内容名字与二层中的MAC地址映射问题提供了解决方案,从而实现了内容中心网络请求包与二层以太网直接耦合。
可选地,预设条件还包括:双栈交换机在内容存储器CS中未查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容。
另一种可选地方案中,双栈交换机接收第一内容中心网络请求包之后,还包括:双栈交换机若在CS中查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容,则:双栈交换机将内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将第一内容中心网络内容包的目标MAC地址域赋值为第一内容中心网络请求包的源MAC;将第一内容中心网络内容包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机发送赋值MAC地址后的第一内容中心网络内容包。如此,双栈交换机可以将接收到的内容中心网络内容包中的内容中心网络内容包内容进行缓存,若后续有其它第一内容中心网络请求包需要请求该内容中心网络内容包内容,则可直接从该双栈交换机中获取,从而节省了时延。
可选地,预设条件还包括:双栈交换机在兴趣请求表PIT中未查询到第一内容中心网 络请求包的内容名字关联的:端口号和MAC地址。可选地,无论双栈交换机在兴趣请求表PIT中是否查询到第一内容中心网络请求包的内容名字关联的端口号和MAC地址,均将第一内容中心网络请求包的内容名字、接收第一内容中心网络请求包的端口号,第一内容中心网络请求包中的源MAC地址存储至PIT表格中。不同的是,如果在PIT中查询到第一内容中心网络请求包的内容名字关联的端口号和MAC地址,则PIT表格中记录后丢弃该第一内容中心网络请求包,也就是不转发该第一内容中心网络请求包;如果在PIT中未查询到第一内容中心网络请求包的内容名字关联的端口号和MAC地址,则PIT表格中记录后转发该第一内容中心网络请求包。如此,可将该第一内容中心网络请求包对应的内容中心网络内容包通过该接收端口返回至源MAC地址指示的终端设备,实现了内容中心网络内容包的传输链路与该内容中心网络内容包对应的第一内容中心网络请求包的传输链路相同的目的。
可选地,预设条件还包括:双栈交换机在转发信息库FIB中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址。另一种可选地方案中,双栈交换机接收第一内容中心网络请求包之后,还包括:若双栈交换机在FIB中查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,则:双栈交换机将第一内容中心网络请求包中的目标MAC地址域赋值为在FIB中查询到的第一内容中心网络请求包的内容名字对应的MAC地址;将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机发送赋值MAC地址后的第一内容中心网络请求包。如此可通过查询FIB可以确定出内容名字对应的第一内容中心网络请求包应该发送到哪里,提高了数据传输速率。
本申请实施例提供一种可选地方案,双栈交换机向至少一个第一邻双栈交换机发送第二内容中心网络请求包,包括:双栈交换机将第二内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机向至少一个第一邻双栈交换机发送赋值MAC地址的第二内容中心网络请求包。如此,可将该第一内容中心网络请求包对应的内容中心网络内容包返回至源MAC地址。
可选地,双栈交换机若确定第一内容中心网络请求包满足预设条件,且第一内容中心网络请求包中不包括N-STP链路指示信息之后,还包括:双栈交换机向生成树协议STP链路中包括的邻交换机发送第一内容中心网络请求包。也就是说,若第一内容中心网络请求包中不包括N-STP链路指示信息,则可以向STP网络中指示的下一跳交换机发送,也可以向N-STP网络中的一个或多个邻双栈交换机发送。如此,一方面可以根据具体网络环境因素等选择更优的发送路径,另一方面也可以使接收端从多个接收路径中选择出最优的路径,比如双栈交换机通过两个邻交换机发送给下一跳交换机,下一跳交换机可以选择出最早接收到第一内容中心网络请求包的链路作为内容中心网络内容包返回时的路径。
进一步,可选地,双栈交换机向STP链路中包括的邻交换机发送第一内容中心网络请求包,包括:双栈交换机将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机向STP链路中包括的邻交换机发送赋值MAC地址的第一内容中心网络请求包。一方面可以使STP链路中的以太网交换机根据该第一内容中心网络请求包中的MAC地址正常转发该第一内容中心网络请求包,另一方面,也可以实现内容中心网络内容包的传输链路与该内容中心网络内容包对应的第一内容中心网络请求包的传输链路相同的目的。
另一种可选地实施例中,双栈交换机若确定请求包满足预设条件之后,还包括:若第一内容中心网络请求包中包括N-STP链路指示信息;则:双栈交换机向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送第一内容中心网络请求包;其中,第二邻双栈交换机与双栈交换机之间的链路为STP链路。可选地,双栈交换机可以向所有邻双栈交换机洪泛或广播该第一内容中心网络请求包,或者双栈交换机可以向所有邻双栈交换机中的一个或多个转发该第一内容中心网络请求包。也就是说,如果第一内容中心网络请求包中包括N-STP链路指示信息,则后续仅仅在双栈交换机上传输该第一内容中心网络请求包,且由于双栈交换机有去重机制,且也添加有源MAC地址域,因此可避免在N-STP链路上传输过的第一内容中心网络请求包的传输错误。
进一步,可选地,双栈交换机向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送第一内容中心网络请求包,包括:双栈交换机将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;双栈交换机向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的第一内容中心网络请求包。如此,可将该第一内容中心网络请求包对应的内容中心网络内容包返回至源MAC地址。
本申请实施例中还提供另一种可选地实施例,双栈交换机接收第二内容中心网络内容包;其中,第二内容中心网络内容包中包括源MAC地址域和目的MAC地址域;双栈交换机若在兴趣请求表PIT中查询出第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址,其中,N个端口号N个MAC地址一一对应;N为大于等于1的整数,则:针对N个端口号中的每个端口号,双栈交换机对第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为双栈交换机的MAC地址,将赋值MAC地址后的第二内容中心网络内容包从该端口发送出去;其中,第二内容中心网络内容包的内容名字与第二内容中心网络内容包对应的内容中心网络请求包的内容名字相同;PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
举个例子,如图2c所示,PIT表格中查询到第二内容中心网络内容包的内容名字为“/youtube/soccer”,根据PIT查询到端口号为2,对应的MAC地址有三个,分别为“80:7A:6F:00:88:20”、“34:87:01:30:55:EE”和“FE:32:88:65:12:AC”。则将第二内容中心网络内容包中的目标MAC地址域赋值为“80:7A:6F:00:88:20”,并从端口2发出去;再将第二内容中心网络内容包中的目标MAC地址域赋值为“34:87:01:30:55:EE”,并从端口2发出去;再将第二内容中心网络内容包中的目标MAC地址域赋值为“FE:32:88:65:12:AC”,并从端口2发出去。
从上述内容可看出,本申请实施例中根据接收到的一个内容中心网络内容包,向请求该内容中心网络内容包的每个终端设备都返回了一个内容中心网络内容包,减少了传输过程中的数据量,节省了网络带宽。
可选地,双栈交换机接收第二内容中心网络内容包之后,还包括:双栈交换机若在转发信息库FIB中未查询到第二内容中心网络内容包的内容名字关联的:端口号和MAC地址,则:双栈交换机将第二内容中心网络内容包的内容名字、接收第二内容中心网络内容包的的端口号、接收第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入FIB中。如此,可实现FIB表格中内容名字、端口号和MAC地址三者关联关系的自 学习。
基于上述内容,图2e示例性示出了本申请实施例中还提供一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图,如图2e所示,该方法包括:
步骤221,判断接收到的是内容中心网络的数据还是以太网数据帧;若是以太网数据帧,则执行步骤222;若是内容中心网络的数据,则执行步骤223;
步骤222,转发以太网数据帧;
步骤223,判断是内容中心网络请求包还是内容中心网络内容包;若是内容中心网络请求包,则执行步骤224;若是内容中心网络内容包,则执行步骤237;
步骤224,判断CS是否命中,也就是说查询CS,判断CS中是否存储有内容中心网络请求包的内容名字对应的内容中心网络内容包内容;若命中,即查询到,则执行步骤225;若未命中,则执行步骤227;
步骤225,将该内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将该第一内容中心网络内容包的目标MAC地址域赋值为该内容中心网络请求包的源MAC;将该第一内容中心网络内容包中的源MAC地址域赋值为该双栈交换机的MAC地址;双栈交换机发送赋值MAC地址后的该第一内容中心网络内容包;
步骤226,在PIT中记录该内容中心网络请求包的内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系;可选地,在步骤227执行前可以对接收到的内容中心网络请求包进行去重;
步骤227,判断PIT是否命中,也就是说查询PIT,判断PIT中是否存储有内容中心网络请求包的内容名字关联的端口号和MAC地址;若命中,则执行步骤228;若未命中,则执行步骤229;
步骤228,丢弃该内容网络中心请求包;
步骤229,判断FIB是否命中,也就是说查询FIB,判断FIB中是否存储有内容中心网络请求包的内容名字关联的端口号和MAC地址;若命中,则执行步骤230;若未命中,则执行步骤231;
步骤230,将该内容中心网络请求包中的目标MAC地址域赋值为在该FIB中查询到的该内容中心网络请求包的内容名字对应的MAC地址;将该内容中心网络请求包中的源MAC地址域赋值为该双栈交换机的MAC地址;该双栈交换机发送赋值MAC地址后的该内容中心网络请求包;
步骤231,判断内容中心网络请求包中是否包括N-STP链路指示信息;若包括则执行步骤232;若不包括则执行步骤235和/或步骤234;
步骤232,将该内容中心网络请求包中的源MAC地址域赋值为该双栈交换机的MAC地址;
步骤233,该双栈交换机向至少一个该第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的该内容中心网络请求包;
步骤234,在内容中心网络请求包中加入N-STP链路指示信息;
步骤235,将该内容中心网络请求包中的源MAC地址域赋值为该双栈交换机的MAC地址;
步骤236,该双栈交换机向该STP链路中包括的邻交换机发送赋值MAC地址的该内 容中心网络请求包;
步骤237,判断FIB是否命中,也就是说查询FIB,判断FIB中是否存储有内容中心网络内容包的内容名字关联的端口号和MAC地址;若命中,则执行步骤239;若未命中,则执行步骤238;
步骤238,将该第二内容中心网络内容包的内容名字、接收该第二内容中心网络内容包的的端口号、接收该第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入该FIB中;
步骤239,判断PIT是否命中,也就是说查询PIT,判断PIT中是否存储有内容中心网络内容包的内容名字关联的端口号和MAC地址;若命中,则执行步骤240;若未命中,则执行步骤241;
步骤240,在PIT中查询出该第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址;针对该N个端口号中的每个端口号,该双栈交换机对该第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为该双栈交换机的MAC地址,将赋值MAC地址后的该第二内容中心网络内容包从该端口发送出去;
步骤241,丢弃该内容网络中心请求包。
基于上述内容,图2f示例性示出了本申请实施例中提供的一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图,如图2f所示,终端设备261与双栈交换机262、以太网交换机263、以太网交换机264、双栈交换机266、以太网交换机267和服务器268之间的链路为STP链路,而双栈交换机262、双栈交换机265和双栈交换机266之间的链路为N-STP链路。终端设备261向双栈交换机262发送内容中心网络请求包,则双栈交换机一方面通过STP链路发送至以太网交换机263,另一方面通过N-STP链路发送给双栈交换机265;双栈交换机265在收到内容中心网络请求包后,在双栈交换机265的CS中查询到该内容中心网络请求包的内容名字关联的该内容中心网络请求包所请求的内容中心网络内容包内容,则双栈交换机265将查询到的内容中心网络内容包内容通过内容中心网络内容包传输给终端设备261。
可见,本申请实施例中通过利用N-STP链路转发内容中心网络内容包来实现内容中心网络网络的功能,利用内容中心网络的缓存特性,提高网络效率,且显著改善链路负载均衡、降低内容下载时延并缓解源服务器压力。
通过在校园网和商用网络拓扑上测试,在以太网中部署25%的双栈交换机时(其余节点为以太网交换机)时,本申请实施例中的双栈交换机可以实现以下有益效果:第一,本申请实施例方案可以使用60%的N-STP物理链路;本申请实施例与相同拓扑下完全由以太网交换机组成的网络相比,降低70%的平均链路负载;本申请实施例与相同拓扑下完全由以太网交换机组成的网络相比,降低50%的内容中心网络相关数据平均下载时延;本申请实施例与相同拓扑下完全由以太网交换机组成的网络相比,降低65%的内容中心网络相关内容源服务器访问负荷。
基于上述内容,图2g示例性示出了本申请实施例中提供的一种以太网和内容中心网络混合部署下的数据包传输方法的流程示意图,如图2g所示,终端设备271与双栈交换机272、以太网交换机273、双栈交换机274、双栈交换机275和服务器之间的链路为STP链路,而双栈交换机272和双栈交换机274之间的链路为N-STP链路。终端设备271向双 栈交换机272发送内容中心网络请求包,则双栈交换机一方面通过STP链路发送至以太网交换机273,另一方面通过N-STP链路发送给双栈交换机274;以太网交换机273将内容中心网络请求包通过STP链路发送给双栈交换机274;双栈交换机274先收到双栈交换机272发送的内容中心网络请求包,之后收到以太网交换机273发送的内容中心网络请求包,双栈交换机274根据内容中心网络请求包的请求包标识去重,具体来说,双栈交换机274先收到双栈交换机272发送的内容中心网络请求包,并在PIT中录入内容中心网络请求包的内容名字和内容中心网络请求包的请求包标识,在接收到以太网交换机273发送的内容中心网络请求包之后,查询PIT,发现已经存在请求包标识与以太网交换机273发送的内容中心网络请求包的请求包标识相同的内容中心网络请求包,则双栈交换机274将以太网交换机273发送的内容中心网络请求包丢弃。双栈交换机将内容中心网络请求包发给双栈交换机275,并最终达到服务器276,服务器276将返回的内容中心网络内容包依次通过双栈交换机275、双栈交换机274、双栈交换机272返回至终端设备271。
通过上述示例可以看出,经过双栈交换机274的去重,从多条路径中选择出了一条时延最短的路径用于传输内容中心网络内容包。进一步,本申请实施例中可选地,双栈交换机和以太网交换机在接收到以太网数据帧时,根据以太网数据帧中的包括源MAC地址域和目的MAC地址域对该以太网数据帧进行处理即可,可见,本申请实施例中在以太网网络中部署内容中心网络之后,双栈交换机和以太网交换机既支持对基于IP协议的以太网数据帧的处理,又可支持内容中心网络请求包的处理,且对于以太网数据帧而言,双栈交换机和以太网交换机根据目的MAC地址域对其进行二层转发,且现有的MAC地址学习模式、ARP/RARP协议和STP等相关机制都续发挥作用,可见,本申请实施例更好的兼容了现有技术。
由于本申请实施例中可以实现内容中心网络和以太网的混合模型,因此实现了增量式的部署内容中心网络的过程,且随着内容中心网络的设备和应用数量的增加,部署内容中心网络产生的效益也应该越来越高。
进一步,本申请实施例中在以太网上承载内容中心网络的设计方案有良好的通用性和可扩展性,并且开销可控,使其不仅适用于有线PC主机网络,也可以扩展到由(计算、供电、存储资源受限的)无线智能设备组成的网络中。
图3示例性示出了本申请实施例提供的一种以太网和内容中心网络混合部署下的双栈交换机的结构示意图。
基于相同构思,本申请实施例提供一种以太网和内容中心网络混合部署下的双栈交换机300,用于执行上述方法中的任一个方案。如图3所示,双栈交换机300包括处理器301、收发器302、存储器303和通信接口304;其中,处理器301、收发器302、存储器303和通信接口304通过总线305相互连接。
总线305可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器303可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘 (solid-state drive,SSD);存储器303还可以包括上述种类的存储器的组合。
通信接口304可以为有线通信接入口,无线通信接口或其组合,其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为WLAN接口。
处理器301可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器301还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。
可选地,存储器303还可以用于存储程序指令,处理器301调用该存储器303中存储的程序指令,可以执行上述方案中所示实施例中的一个或多个步骤,或其中可选的实施方式,使得双栈交换机300实现上述方法中双栈交换机的功能。
处理器301用于根据执行存储器存储的指令,并控制收发器302进行信号接收和信号发送,当处理器301执行存储器存储的指令时,双栈交换机300用于执行下述内容。
收发器302,用于接收请求包;处理器301,用于若确定请求包满足预设条件,确定第一内容中心网络请求包中不包括N-STP链路指示信息;收发器302,用于向至少一个第一邻双栈交换机发送第二内容中心网络请求包;其中,预设条件包括请求包为第一内容中心网络请求包,第一内容中心网络请求包中包括源MAC地址域和目的MAC地址域;N-STP链路指示信息用于指示传输过第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;第一邻双栈交换机与双栈交换机之间的链路为N-STP链路;第二内容中心网络请求包是向第一内容中心网络请求包中添加N-STP链路指示信息后得到的。
可选地,收发器302,具体用于:通过处理器301将第二内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;向至少一个第一邻双栈交换机发送赋值MAC地址的第二内容中心网络请求包。
可选地,收发器302,还用于:若通过处理器301确定第一内容中心网络请求包满足预设条件,且第一内容中心网络请求包中不包括N-STP链路指示信息,则:向STP链路中包括的邻交换机发送第一内容中心网络请求包。
可选地,处理器301,还用于:将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;收发器302,具体用于:向STP链路中包括的邻交换机发送赋值MAC地址的第一内容中心网络请求包。
可选地,收发器302,还用于:若通过处理器301确定请求包满足预设条件,且第一内容中心网络请求包中包括N-STP链路指示信息;则:向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送第一内容中心网络请求包;其中,第二邻双栈交换机与双栈交换机之间的链路为STP链路。
可选地,处理器301,还用于:将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;收发器302,具体用于:向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的第一内容中心网络请求包。
可选地,预设条件还包括:通过处理器301在CS中未查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容;其中,CS中存储有内容名字与内容中心网 络内容包内容的关联关系;其中,一个内容名字对应的内容中心网络请求包用于获取该内容名字关联的内容中心网络内容包内容。
可选地,处理器301,还用于:在通过收发器302接收第一内容中心网络请求包之后,若在CS中查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容,则:将内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将第一内容中心网络内容包的目标MAC地址域赋值为第一内容中心网络请求包的源MAC;将第一内容中心网络内容包中的源MAC地址域赋值为双栈交换机的MAC地址;收发器302,还用于:发送赋值MAC地址后的第一内容中心网络内容包。
可选地,预设条件还包括:通过处理器301在PIT中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,其中,PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
可选地,预设条件还包括:通过处理器301在转发信息库FIB中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;其中,FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
可选地,处理器301,还用于:在通过收发器302接收第一内容中心网络请求包之后,若确定在FIB中查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,则:将第一内容中心网络请求包中的目标MAC地址域赋值为在FIB中查询到的第一内容中心网络请求包的内容名字对应的MAC地址;将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;收发器302,还用于:发送赋值MAC地址后的第一内容中心网络请求包。
可选地,预设条件还包括:在通过收发器302接收到第一内容中心网络请求包之前未收到请求包标识与第一内容中心网络请求包的请求包标识相同的内容中心网络请求包;其中,一个内容中心网络请求包对应一个请求包标识。
可选地,收发器302,还用于:接收第二内容中心网络内容包;其中,第二内容中心网络内容包中包括源MAC地址域和目的MAC地址域;处理器301,还用于:若在PIT中查询出第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址,其中,N个端口号N个MAC地址一一对应;N为大于等于1的整数,则:针对N个端口号中的每个端口号,对第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为双栈交换机的MAC地址;收发器302,还用于:将赋值MAC地址后的第二内容中心网络内容包从该端口发送出去;
其中,第二内容中心网络内容包的内容名字与第二内容中心网络内容包对应的内容中心网络请求包的内容名字相同;PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
可选地,处理器301,还用于:在通过收发器302接收第二内容中心网络内容包之后,若确定在FIB中未查询到第二内容中心网络内容包的内容名字关联的:端口号和MAC地 址,则:将第二内容中心网络内容包的内容名字、接收第二内容中心网络内容包的的端口号、接收第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入FIB中;其中,FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
图4示例性示出了本申请实施例提供的一种以太网和内容中心网络混合部署下的双栈交换机的结构示意图。
基于相同构思,本申请实施例提供一种以太网和内容中心网络混合部署下的双栈交换机,用于执行上述方法流程。双栈交换机400可以用于执行上述方法中的任一个方案。如图4所示,双栈交换机400包括接收单元401、处理单元402和发送单元403。
接收单元401,用于接收请求包;处理单元402,用于若确定请求包满足预设条件,确定第一内容中心网络请求包中不包括N-STP链路指示信息;发送单元403,用于向至少一个第一邻双栈交换机发送第二内容中心网络请求包;其中,预设条件包括请求包为第一内容中心网络请求包,第一内容中心网络请求包中包括源MAC地址域和目的MAC地址域;N-STP链路指示信息用于指示传输过第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;第一邻双栈交换机与双栈交换机之间的链路为N-STP链路;第二内容中心网络请求包是向第一内容中心网络请求包中添加N-STP链路指示信息后得到的。
可选地,发送单元403,具体用于:通过处理单元402将第二内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;向至少一个第一邻双栈交换机发送赋值MAC地址的第二内容中心网络请求包。
可选地,发送单元403,还用于:若通过处理单元402确定第一内容中心网络请求包满足预设条件,且第一内容中心网络请求包中不包括N-STP链路指示信息,则:向STP链路中包括的邻交换机发送第一内容中心网络请求包。
可选地,处理单元402,还用于:将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;发送单元403,具体用于:向STP链路中包括的邻交换机发送赋值MAC地址的第一内容中心网络请求包。
可选地,发送单元403,还用于:若通过处理单元402确定请求包满足预设条件,且第一内容中心网络请求包中包括N-STP链路指示信息;则:向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送第一内容中心网络请求包;其中,第二邻双栈交换机与双栈交换机之间的链路为STP链路。
可选地,处理单元402,还用于:将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;发送单元403,具体用于:向至少一个第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的第一内容中心网络请求包。
可选地,预设条件还包括:通过处理单元402在CS中未查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容;其中,CS中存储有内容名字与内容中心网络内容包内容的关联关系;其中,一个内容名字对应的内容中心网络请求包用于获取该内容名字关联的内容中心网络内容包内容。
可选地,处理单元402,还用于:在通过接收单元401接收第一内容中心网络请求包 之后,若在CS中查询到第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容,则:将内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将第一内容中心网络内容包的目标MAC地址域赋值为第一内容中心网络请求包的源MAC;将第一内容中心网络内容包中的源MAC地址域赋值为双栈交换机的MAC地址;发送单元403,还用于:发送赋值MAC地址后的第一内容中心网络内容包。
可选地,预设条件还包括:通过处理单元402在PIT中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;其中,PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
可选地,预设条件还包括:通过处理单元402在FIB中未查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;其中,FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
可选地,处理单元402,还用于:在通过接收单元401接收第一内容中心网络请求包之后,若确定在FIB中查询到第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,则:将第一内容中心网络请求包中的目标MAC地址域赋值为在FIB中查询到的第一内容中心网络请求包的内容名字对应的MAC地址;将第一内容中心网络请求包中的源MAC地址域赋值为双栈交换机的MAC地址;发送单元403,还用于:发送赋值MAC地址后的第一内容中心网络请求包。
可选地,预设条件还包括:在通过接收单元401接收到第一内容中心网络请求包之前未收到请求包标识与第一内容中心网络请求包的请求包标识相同的内容中心网络请求包;其中,一个内容中心网络请求包对应一个请求包标识。
可选地,接收单元401,还用于:接收第二内容中心网络内容包;其中,第二内容中心网络内容包中包括源MAC地址域和目的MAC地址域;处理单元402,还用于:若在PIT中查询出第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址,其中,N个端口号N个MAC地址一一对应;N为大于等于1的整数,则:针对N个端口号中的每个端口号,对第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为双栈交换机的MAC地址;发送单元403,还用于:将赋值MAC地址后的第二内容中心网络内容包从该端口发送出去;
其中,第二内容中心网络内容包的内容名字与第二内容中心网络内容包对应的内容中心网络请求包的内容名字相同;PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
可选地,处理单元402,还用于:在通过接收单元401接收第二内容中心网络内容包之后,若确定在转发信息库FIB中未查询到第二内容中心网络内容包的内容名字关联的:端口号和MAC地址,则:将第二内容中心网络内容包的内容名字、接收第二内容中心网络内容包的的端口号、接收第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入FIB中;其中,FIB中存储有内容名字、发送该内容名字对应的内容中心网络 请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
应理解,以上各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,接收单元401和发送单元403可以由收发器302实现,处理单元402可以由处理器301实现。如图3所示,双栈交换机300可以包括处理器301、收发器302和存储器303。其中,存储器303可以用于存储处理器301执行方案时的代码,该代码可为双栈交换机300出厂时预装的程序/代码。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现、当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。指令可以存储在计算机存储介质中,或者从一个计算机存储介质向另一个计算机存储介质传输,例如,指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带、磁光盘(MO)等)、光介质(例如,CD、DVD、BD、HVD等)、或者半导体介质(例如ROM、EPROM、EEPROM、非易失性存储器(NAND FLASH)、固态硬盘(Solid State Disk,SSD))等。
本领域内的技术人员应明白,本申请实施例可提供为方法、系统、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些赋值和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (29)

  1. 一种以太网和内容中心网络混合部署下的数据包传输方法,其特征在于,包括:
    双栈交换机接收请求包;
    所述双栈交换机若确定所述请求包满足预设条件;其中,所述预设条件包括所述请求包为第一内容中心网络请求包,所述第一内容中心网络请求包中包括源媒体访问控制MAC地址域和目的MAC地址域;则执行:
    若所述第一内容中心网络请求包中不包括非生成树协议N-STP链路指示信息,所述N-STP链路指示信息用于指示传输过所述第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;则:
    所述双栈交换机向所述至少一个第一邻双栈交换机发送第二内容中心网络请求包;
    其中,所述第一邻双栈交换机与所述双栈交换机之间的链路为N-STP链路;所述第二内容中心网络请求包是向所述第一内容中心网络请求包中添加所述N-STP链路指示信息后得到的。
  2. 如权利要求1所述的方法,其特征在于,所述双栈交换机向至少一个所述第一邻双栈交换机发送第二内容中心网络请求包,包括:
    所述双栈交换机将所述第二内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述双栈交换机向至少一个所述第一邻双栈交换机发送赋值MAC地址的所述第二内容中心网络请求包。
  3. 如权利要求1或2所述的方法,其特征在于,所述双栈交换机若确定所述第一内容中心网络请求包满足预设条件,且所述第一内容中心网络请求包中不包括N-STP链路指示信息之后,还包括:
    所述双栈交换机向生成树协议STP链路中包括的邻交换机发送所述第一内容中心网络请求包。
  4. 如权利要求3所述的方法,其特征在于,所述双栈交换机向STP链路中包括的邻交换机发送所述第一内容中心网络请求包,包括:
    所述双栈交换机将所述第一内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述双栈交换机向所述STP链路中包括的邻交换机发送赋值MAC地址的所述第一内容中心网络请求包。
  5. 如权利要求1至4任一权利要求所述的方法,其特征在于,所述双栈交换机若确定所述请求包满足预设条件之后,还包括:
    若所述第一内容中心网络请求包中包括N-STP链路指示信息;则:
    所述双栈交换机向至少一个所述第一邻双栈交换机和/或至少一个第二邻双栈交换机发送所述第一内容中心网络请求包;
    其中,所述第二邻双栈交换机与所述双栈交换机之间的链路为STP链路。
  6. 如权利要求5所述的方法,其特征在于,所述双栈交换机向至少一个所述第一邻双栈交换机和/或至少一个第二邻双栈交换机发送所述第一内容中心网络请求包,包括:
    所述双栈交换机将所述第一内容中心网络请求包中的源MAC地址域赋值为所述双栈 交换机的MAC地址;
    所述双栈交换机向至少一个所述第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的所述第一内容中心网络请求包。
  7. 如权利要求1至6任一权利要求所述的方法,其特征在于,所述预设条件还包括:
    所述双栈交换机在内容存储器CS中未查询到所述第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容;
    其中,所述CS中存储有内容名字与内容中心网络内容包内容的关联关系;其中,一个内容名字对应的内容中心网络请求包用于获取该内容名字关联的内容中心网络内容包内容。
  8. 如权利要求7所述的方法,其特征在于,所述双栈交换机接收第一内容中心网络请求包之后,还包括:
    所述双栈交换机若在所述CS中查询到所述第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容,则:
    所述双栈交换机将所述内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将所述第一内容中心网络内容包的目标MAC地址域赋值为所述第一内容中心网络请求包的源MAC;将所述第一内容中心网络内容包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述双栈交换机发送赋值MAC地址后的所述第一内容中心网络内容包。
  9. 如权利要求7或8所述的方法,其特征在于,所述预设条件还包括:所述双栈交换机在兴趣请求表PIT中未查询到所述第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;
    其中,所述PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
  10. 如权利要求7至9任一权利要求所述的方法,其特征在于,所述预设条件还包括:
    所述双栈交换机在转发信息库FIB中未查询到所述第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;
    其中,所述FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,所述FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
  11. 如权利要求10所述的方法,其特征在于,所述双栈交换机接收第一内容中心网络请求包之后,还包括:
    若所述双栈交换机在所述FIB中查询到所述第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,则:
    所述双栈交换机将所述第一内容中心网络请求包中的目标MAC地址域赋值为在所述FIB中查询到的所述第一内容中心网络请求包的内容名字对应的MAC地址;将所述第一内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述双栈交换机发送赋值MAC地址后的所述第一内容中心网络请求包。
  12. 如权利要求1至11任一权利要求所述的方法,其特征在于,所述预设条件还包括:
    在接收到所述第一内容中心网络请求包之前未收到请求包标识与所述第一内容中心网络请求包的请求包标识相同的内容中心网络请求包;
    其中,一个内容中心网络请求包对应一个请求包标识。
  13. 如权利要求1至12任一权利要求所述的方法,其特征在于,所述方法还包括:
    所述双栈交换机接收第二内容中心网络内容包;其中,所述第二内容中心网络内容包中包括源MAC地址域和目的MAC地址域;
    所述双栈交换机若在PIT中查询出所述第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址,其中,N个端口号N个MAC地址一一对应;N为大于等于1的整数,则:
    针对所述N个端口号中的每个端口号,所述双栈交换机对所述第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为所述双栈交换机的MAC地址,将赋值MAC地址后的所述第二内容中心网络内容包从该端口发送出去;
    其中,所述第二内容中心网络内容包的内容名字与所述第二内容中心网络内容包对应的内容中心网络请求包的内容名字相同;
    所述PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
  14. 如权利要求13所述的方法,其特征在于,所述双栈交换机接收所述第二内容中心网络内容包之后,还包括:
    所述双栈交换机若在FIB中未查询到所述第二内容中心网络内容包的内容名字关联的:端口号和MAC地址,则:
    所述双栈交换机将所述第二内容中心网络内容包的内容名字、接收所述第二内容中心网络内容包的的端口号、接收所述第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入所述FIB中;
    其中,所述FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,所述FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
  15. 一种以太网和内容中心网络混合部署中的双栈交换机,其特征在于,包括:
    处理器,用于若确定通过收发器接收到的请求包满足预设条件,确定所述第一内容中心网络请求包中不包括非生成树协议N-STP链路指示信息;
    所述收发器,用于接收所述请求包;向所述至少一个第一邻双栈交换机发送第二内容中心网络请求包;
    其中,所述预设条件包括所述请求包为第一内容中心网络请求包,所述第一内容中心网络请求包中包括源媒体访问控制MAC地址域和目的MAC地址域;所述N-STP链路指示信息用于指示传输过所述第一内容中心网络请求包的所有传输链路中的至少一个传输链路为N-STP链路;所述第一邻双栈交换机与所述双栈交换机之间的链路为N-STP链路;所述第二内容中心网络请求包是向所述第一内容中心网络请求包中添加所述N-STP链路 指示信息后得到的。
  16. 如权利要求15所述的双栈交换机,其特征在于,所述处理器,还用于:
    将所述第二内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述收发器,具体用于:
    向至少一个所述第一邻双栈交换机发送赋值MAC地址的所述第二内容中心网络请求包。
  17. 如权利要求15或16所述的双栈交换机,其特征在于,所述处理器,还用于:
    若确定所述第一内容中心网络请求包满足预设条件,且所述第一内容中心网络请求包中不包括N-STP链路指示信息,则:
    通过所述收发器向生成树协议STP链路中包括的邻交换机发送所述第一内容中心网络请求包。
  18. 如权利要求17所述的双栈交换机,其特征在于,所述处理器,还用于:
    将所述第一内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述收发器,具体用于:
    向所述STP链路中包括的邻交换机发送赋值MAC地址的所述第一内容中心网络请求包。
  19. 如权利要求15至18任一权利要求所述的双栈交换机,其特征在于,所述处理器,还用于:
    若确定所述请求包满足预设条件,且所述第一内容中心网络请求包中包括N-STP链路指示信息;则:
    通过所述收发器向至少一个所述第一邻双栈交换机和/或至少一个第二邻双栈交换机发送所述第一内容中心网络请求包;
    其中,所述第二邻双栈交换机与所述双栈交换机之间的链路为STP链路。
  20. 如权利要求19所述的双栈交换机,其特征在于,所述处理器,还用于:
    将所述第一内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述收发器,具体用于:
    向至少一个所述第一邻双栈交换机和/或至少一个第二邻双栈交换机发送赋值MAC地址的所述第一内容中心网络请求包。
  21. 如权利要求15至20任一权利要求所述的双栈交换机,其特征在于,所述预设条件还包括:
    通过所述处理器在内容存储器CS中未查询到所述第一内容中心网络请求包的内容名字关联的内容中心网络内容包内容;
    其中,所述CS中存储有内容名字与内容中心网络内容包内容的关联关系;其中,一个内容名字对应的内容中心网络请求包用于获取该内容名字关联的内容中心网络内容包内容。
  22. 如权利要求21所述的双栈交换机,其特征在于,所述处理器,还用于:
    在通过所述收发器接收第一内容中心网络请求包之后,若在所述CS中查询到所述第 一内容中心网络请求包的内容名字关联的内容中心网络内容包内容,则:将所述内容中心网络内容包内容封装为第一内容中心网络内容包的数据域,并将所述第一内容中心网络内容包的目标MAC地址域赋值为所述第一内容中心网络请求包的源MAC;将所述第一内容中心网络内容包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述收发器,还用于:
    发送赋值MAC地址后的所述第一内容中心网络内容包。
  23. 如权利要求21或22所述的双栈交换机,其特征在于,所述预设条件还包括:通过所述处理器在兴趣请求表PIT中未查询到所述第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;
    其中,所述PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
  24. 如权利要求21至23任一权利要求所述的双栈交换机,其特征在于,所述预设条件还包括:
    通过所述处理器在转发信息库FIB中未查询到所述第一内容中心网络请求包的内容名字关联的:端口号和MAC地址;
    其中,所述FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,所述FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
  25. 如权利要求24所述的双栈交换机,其特征在于,所述处理器,还用于:
    在通过所述收发器接收第一内容中心网络请求包之后,若确定在所述FIB中查询到所述第一内容中心网络请求包的内容名字关联的:端口号和MAC地址,则:将所述第一内容中心网络请求包中的目标MAC地址域赋值为在所述FIB中查询到的所述第一内容中心网络请求包的内容名字对应的MAC地址;将所述第一内容中心网络请求包中的源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述收发器,还用于:
    发送赋值MAC地址后的所述第一内容中心网络请求包。
  26. 如权利要求15至25任一权利要求所述的双栈交换机,其特征在于,所述预设条件还包括:
    在通过所述收发器接收到所述第一内容中心网络请求包之前未收到请求包标识与所述第一内容中心网络请求包的请求包标识相同的内容中心网络请求包;
    其中,一个内容中心网络请求包对应一个请求包标识。
  27. 如权利要求15至26任一权利要求所述的双栈交换机,其特征在于,
    所述处理器,还用于:
    通过所述收发器接收第二内容中心网络内容包之后,若在PIT中查询出所述第二内容中心网络内容包的内容名字关联的N个端口号和N个MAC地址,其中,N个端口号N个MAC地址一一对应;N为大于等于1的整数,则:其中,所述第二内容中心网络内容包中包括源MAC地址域和目的MAC地址域;
    针对所述N个端口号中的每个端口号,对所述第二内容中心网络内容包中的目标MAC地址域赋值为该端口号关联的MAC地址,对源MAC地址域赋值为所述双栈交换机的MAC地址;
    所述收发器,还用于:
    接收第二内容中心网络内容包;将赋值MAC地址后的所述第二内容中心网络内容包从该端口发送出去;
    其中,所述第二内容中心网络内容包的内容名字与所述第二内容中心网络内容包对应的内容中心网络请求包的内容名字相同;所述PIT中存储有内容名字、接收该内容名字对应的内容中心网络请求包的端口号、接收到的该内容名字对应的内容中心网络请求包中的源MAC地址三者之间的关联关系。
  28. 如权利要求27所述的双栈交换机,其特征在于,所述处理器,还用于:
    在通过所述收发器接收所述第二内容中心网络内容包之后,若确定在FIB中未查询到所述第二内容中心网络内容包的内容名字关联的:端口号和MAC地址,则:将所述第二内容中心网络内容包的内容名字、接收所述第二内容中心网络内容包的的端口号、接收所述第二内容中心网络内容包的端口号的MAC地址三者之间的关联关系存入所述FIB中;
    其中,所述FIB中存储有内容名字、发送该内容名字对应的内容中心网络请求包的端口号、发送该内容名字对应的内容中心网络请求包的下一跳MAC地址三者之间的关联关系;或者,所述FIB中存储有内容名字、接收该内容名字对应的内容中心网络内容包的端口号、接收到的该接收该内容名字对应的内容中心网络内容包中的源MAC地址三者之间的关联关系。
  29. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令在被计算机调用时,使所述计算机执行如权利要求1至14任一权利要求所述的方法。
PCT/CN2017/119051 2017-05-16 2017-12-27 以太网内容中心网络混合下数据包传输方法装置存储介质 WO2018209962A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710363159.3 2017-05-16
CN201710363159.3A CN108881071B (zh) 2017-05-16 2017-05-16 以太网内容中心网络混合下数据包传输方法装置存储介质

Publications (2)

Publication Number Publication Date
WO2018209962A1 true WO2018209962A1 (zh) 2018-11-22
WO2018209962A9 WO2018209962A9 (zh) 2019-02-21

Family

ID=64273216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119051 WO2018209962A1 (zh) 2017-05-16 2017-12-27 以太网内容中心网络混合下数据包传输方法装置存储介质

Country Status (2)

Country Link
CN (1) CN108881071B (zh)
WO (1) WO2018209962A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014089986A1 (zh) * 2012-12-12 2014-06-19 华为技术有限公司 路由转发、建立路由表、和获取内容的方法及其装置
CN104348728A (zh) * 2013-08-08 2015-02-11 华为技术有限公司 生成转发信息的方法及设备
CN104410655A (zh) * 2014-09-26 2015-03-11 清华大学 基于命名机制的分布式网络的存储系统及方法
CN105610829A (zh) * 2015-12-30 2016-05-25 天津大学 基于内容中心网络的5g网络系统架构及数据传输方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821050B (zh) * 2012-08-15 2015-07-29 南京南瑞继保电气有限公司 一种快速生成树协议应用于单环网拓扑的处理方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014089986A1 (zh) * 2012-12-12 2014-06-19 华为技术有限公司 路由转发、建立路由表、和获取内容的方法及其装置
CN104348728A (zh) * 2013-08-08 2015-02-11 华为技术有限公司 生成转发信息的方法及设备
CN104410655A (zh) * 2014-09-26 2015-03-11 清华大学 基于命名机制的分布式网络的存储系统及方法
CN105610829A (zh) * 2015-12-30 2016-05-25 天津大学 基于内容中心网络的5g网络系统架构及数据传输方法

Also Published As

Publication number Publication date
WO2018209962A9 (zh) 2019-02-21
CN108881071A (zh) 2018-11-23
CN108881071B (zh) 2020-02-14

Similar Documents

Publication Publication Date Title
JP7079866B2 (ja) パケット処理方法、及びデバイス
EP2751963B1 (en) Topology discovery in a hybrid network
EP3154227B1 (en) Packet transmission method, node, path management server and storage medium
US8804732B1 (en) Methods and apparatus for separate control and data planes in a wireless network
WO2017113306A1 (zh) 可扩展虚拟局域网报文发送方法、计算机设备和可读介质
WO2018059284A1 (zh) 一种数据传输的方法及网络设备
WO2016062169A1 (zh) 一种报文传输方法及装置
WO2019183919A1 (zh) 融合组网的方法和装置
TWI543565B (zh) 封包重傳的方法、使用此方法的資料伺服器及封包重傳系統
WO2021139289A1 (zh) 报文发送方法、路由表项的生成方法、装置及存储介质
WO2012155867A1 (zh) 一种报文发送方法及接入控制器
EP3813318B1 (en) Packet transmission method, communication device, and system
WO2017015839A1 (zh) 一种基于sdn的arp实现方法及装置
WO2019033964A1 (zh) 一种传输报文的方法、转发设备、控制器及系统
WO2018001339A1 (zh) 虚拟可扩展局域网vxlan中报文转发方法及装置
WO2022121707A1 (zh) 报文传输方法、设备及系统
JP2024504466A (ja) パケット転送方法、パケット処理方法、およびデバイス
JP2022516355A (ja) データ送信方法及び機器
WO2018209962A1 (zh) 以太网内容中心网络混合下数据包传输方法装置存储介质
WO2013023465A1 (zh) 身份位置分离与传统网络互联互通方法、ilr和asr
CN116095197A (zh) 数据传输方法及相关装置
CN111865801B (zh) 一种基于Virtio端口传输数据的方法和系统
WO2015010514A1 (zh) 一种信号转换方法、装置及系统
US11962673B2 (en) Packet tunneling and decapsulation with split-horizon attributes
CN113497767A (zh) 传输数据的方法、装置、计算设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17909869

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17909869

Country of ref document: EP

Kind code of ref document: A1