WO2021233158A1 - Method for data transmission, first box and second box - Google Patents

Method for data transmission, first box and second box Download PDF

Info

Publication number
WO2021233158A1
WO2021233158A1 PCT/CN2021/092945 CN2021092945W WO2021233158A1 WO 2021233158 A1 WO2021233158 A1 WO 2021233158A1 CN 2021092945 W CN2021092945 W CN 2021092945W WO 2021233158 A1 WO2021233158 A1 WO 2021233158A1
Authority
WO
WIPO (PCT)
Prior art keywords
box
management
message
control
information
Prior art date
Application number
PCT/CN2021/092945
Other languages
French (fr)
Chinese (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 WO2021233158A1 publication Critical patent/WO2021233158A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software
    • 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

Definitions

  • This application relates to the field of network communication, and more specifically, to a data transmission method, a first box, and a second box.
  • the box architecture router may be, for example, a scale out router
  • the scale out router is a router system composed of a scale out architecture network and a management and control server.
  • the scale-out architecture network mainly includes line card boxes and switching boxes
  • the management and control server is mainly responsible for the management and control of the boxes in the scale-out architecture network.
  • an additional switch is deployed, and the switch implements communication between the management and control server and the scale-out network through the newly built network.
  • the newly-built network provides an out-of-band channel for communication between the management and control server and the scale-out architecture network.
  • the management and control server can perform out-of-band management and control on the boxes in the scale-out architecture network through the out-of-band channel.
  • scale out routers can support a large number of boxes, when the number of line card boxes and switching boxes in the scale out router is large, and the site deployment is large, the out-of-band channel increases the complexity of the project deployment and increases the customer’s construction, Maintenance costs.
  • the embodiments of the present application provide a data transmission method, a first box, a second box, and computer equipment.
  • a scale out router system the cost and complexity of construction and maintenance can be reduced.
  • a data transmission method is provided, which is applied to a scale out switching network that is uniformly controlled by a management and control server.
  • the method includes: a first box receives a first management and control message sent by the management and control server, wherein the The first box is a proxy box, and the first management and control message is a message sent when the management and control server manages and controls the second box; the first box determines that the first management and control message is sent to the second box The first box sends the first management and control message to the second box according to the first forwarding entry.
  • the first box is a proxy box.
  • the first box is directly connected to the management and control server.
  • the second box is not directly connected to the control server.
  • the management and control server can directly send management and control messages to each box through the in-band channel formed by the port on the box panel to realize in-band management and control communication. There is no need to build and maintain a set of external network to send management and control messages, which can reduce the cost and complexity of construction and maintenance.
  • the first management control message is a non-fragmented message.
  • the first management control message includes one or more of the following: software version message, resource configuration message, service configuration message, device management message, table entry message,
  • the software version message includes the software version of the second box delivered by the management and control server to the second box
  • the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, and the configuration information includes one or more of the following: memory division of the control chip, configuration of interface addresses, ternary The content addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  • the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box.
  • the port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
  • the first management and control message includes the information of the second box, and the first box determines that the first management and control message is sent to the second box according to the information of the second box.
  • the information of the second box includes an identifier of the second box and/or information of a control chip in the second box.
  • the method before the first box sends the first management and control message to the second box according to the first forwarding entry, the method further includes:
  • the first box receives the first message sent by the second box.
  • the first message includes the identification of the second box and the information of the control chip in the second box; the first box establishes the first message according to the first message.
  • One forwarding entry One forwarding entry.
  • a box has multiple control chips, and the control message may be sent to one of the control chips.
  • the first forwarding entry here needs to include the information of the control chip in the second box. In this way, the first box Only then will the first management and control message be successfully sent to the corresponding control chip in the second box according to the first forwarding entry.
  • the information of the control chip includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
  • the method further includes: the first box sends a second message to the second box, and the second message includes information and instruction information of the management and control server.
  • the indication information indicates that the first box is an agent box, so that the second box establishes agent information according to the second message, and sends a second management and control message to the first box according to the agent information.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server
  • the second management and control message includes one of the following Or multiple: hardware messages, software messages, protocol messages
  • the hardware messages include: hardware information and hardware status information reported by the second box to the management and control server
  • the hardware information includes the second box
  • the information includes the model of the control chip, the number of interfaces in the second box, the hardware status information includes information about the faulty interface on the second box
  • the protocol message includes the second control message sent by the second box The protocol used.
  • the information of the management and control server includes the Internet Protocol IP address and/or the media access control MAC address of the management and control server.
  • the first box is the main time-scale box
  • the method further includes: the first box sends a time-scale notification message to the second box, and the time-scale notification message includes the first time-scale notification message.
  • the method further includes: the first box opens a passage from the first box to the second box.
  • the first box opens the channel from the first box to the second box. It can be understood that after the first box knows the FIC ID and the number of ports of the second box, it opens the queue between the first box and the second box. At this time, the first box The box knows the location and port of the second box and can send unicast data to the second box.
  • the first box receives a third message broadcasted by the second box, and the third message includes the FIC ID of the second box and the FIC ID of the second box. Number of ports; the first box opens the channel from the first box to the second box according to the third message.
  • the method further includes: the first box unicasts a fourth message to the second box, and the fourth message includes the FIC ID of the first box and the FIC ID of the first box. The number of ports, so that the second box opens the channel from the second box to the first box according to the fourth message.
  • the first box opens the channel from the first box to the second box, so that the first box can send unicast data to the second box, but the second box does not know the relevant information of the first box (for example, the first box).
  • the FIC ID and port number of the box so the second box also needs to open the queue between the second box and the first box based on the relevant information of the first box.
  • the second box knows the location and port of the first box. You can send unicast data to the first box.
  • the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
  • the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
  • the method further includes: the first box receives a second management and control message sent by the second box, and the destination IP address and/or the destination MAC address of the second management and control message is the management and control server IP address and/or MAC address.
  • a data transmission method is provided, which is applied to a scale out switching network that is uniformly controlled by a management and control server.
  • the method includes: a second box receives a second message sent by the first box, and the second message It includes the information and instruction information of the management and control server, where the information of the management and control server includes the IP address and/or MAC address of the management and control server, and the instruction information indicates that the first box is a proxy box; the second box establishes proxy information, and the proxy The information includes the proxy box identification ID, the Internet Protocol IP address and/or media access control MAC address of the control server; the second box sends the second control message according to the proxy box identification ID in the proxy information as the first box For the first box, the destination IP address and/or destination MAC address of the second management and control message is the IP address and/or MAC address of the management and control server.
  • the first box is an agent box, which is directly connected to the management and control server.
  • the second box is not directly connected to the control server.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
  • the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages
  • the hardware messages include: the second box The hardware information and hardware status information reported by the management and control server, the hardware information includes the model of the control chip in the second box, the number of interfaces in the second box, and the hardware status information includes Fault interface information
  • the protocol message includes the protocol used by the second box to send the second management and control message.
  • the method further includes: the second box sends a first message to the first box, and the first message includes the identifier of the second box and the control chip in the second box. Information, so that the first box establishes a first forwarding entry according to the first message, and the first forwarding entry is used by the first box to forward the first management and control message sent by the management and control server to the second box.
  • the first management and control message is a non-fragmented message.
  • the first management and control message includes one or more of the following: software version message, resource configuration message, service configuration message , Device management messages, entry messages,
  • the software version message includes the software version of the second box delivered by the management and control server to the second box
  • the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content
  • the addressable memory TCAM resource division the service configuration message includes a quality of service QOS service
  • the entry message includes a routing table generated by a routing protocol.
  • the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box.
  • the port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
  • the information of the control chip includes the IP address of the control chip and/or the port number of the control chip in the second box.
  • the first box is the main time-scale box
  • the method further includes: the second box receives a time-scale notification message broadcast by the first box, and the time-scale notification message includes the first time-scale notification message.
  • the second box synchronizes its own time scale according to the time scale of the first box.
  • the method further includes: the second box opens a passage from the second box to the first box.
  • the second box receives a fourth message unicast sent by the first box, and the fourth message includes the FIC ID of the first box and the number of ports of the first box; The second box opens the channel from the second box to the first box according to the fourth message.
  • the method further includes: the second box sends a third message to the first box, and the third message includes the FIC ID of the switching network interface card of the second box and the first box. The number of ports of the second box, so that the first box opens the channel from the first box to the second box according to the third message.
  • the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
  • the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
  • the method further includes: the second box receives a first management and control message sent by the first box, and the first management and control message includes information of the second box.
  • a first box is provided, the first box is deployed in a scale out switching network that is uniformly controlled by a management and control server, the first box is a proxy box, and the first box includes:
  • a receiving module configured to receive a first management and control message sent by the management and control server, where the first management and control message is a message sent when the management and control server manages and controls the second box;
  • the determining module is used to determine that the first management and control message is sent to the second box;
  • the sending module is configured to send the first management and control message to the second box according to the first forwarding entry.
  • the first management control message is a non-fragmented message.
  • the first management control message includes one or more of the following: software version message, resource configuration message, service configuration message, device management message, table entry message,
  • the software version message includes the software version of the second box delivered by the management and control server to the second box
  • the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, and the configuration information includes one or more of the following: memory division of the control chip, configuration of interface addresses, ternary The content addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  • the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box.
  • the port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
  • the first management and control message includes the information of the second box
  • the determining module is specifically configured to: according to the information of the second box, determine that the first management and control message is sent to the second box. Two boxes.
  • the information of the second box includes the identification of the second box and/or the information of the control chip in the second box.
  • the receiving module is further configured to: receive a first message sent by the second box, and the first message includes the identification of the second box and the information of the control chip in the second box ;
  • the first box further includes: an establishment module, configured to establish the first forwarding entry according to the first message.
  • the information of the control chip includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
  • the sending module is further configured to: send a second message to the second box, the second message includes information and indication information of the management and control server, where the information of the management and control server includes The Internet Protocol IP address and/or media access control MAC address of the management and control server, the indication information indicates that the first box is a proxy box, so that the second box establishes proxy information according to the second message, and converts it according to the proxy information
  • the second control message is sent to the first box.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server
  • the second management and control message includes one of the following Or multiple types: hardware messages, software messages, protocol messages
  • the hardware messages include: hardware information and hardware status information reported by the second box to the management and control server
  • the hardware information includes the second box
  • the information includes the model of the control chip, the number of interfaces in the second box, the hardware status information includes information about the faulty interface on the second box
  • the protocol message includes the second control message sent by the second box The protocol used.
  • the first box is the main time stamp box
  • the sending module is further configured to: send a time stamp notification message to the second box, and the time stamp notification message includes the first box ID And the time scale of the first line card box, so that the second box synchronizes its own time scale according to the time scale of the first box.
  • it also includes:
  • the opening module is used to open the passage from the first box to the second box.
  • the receiving module is specifically configured to: receive a third message broadcasted and sent by the second box, and the third message includes the FIC ID of the switching network interface card of the second box and the second box. Number of ports of the second box;
  • the opening module is specifically configured to: open the channel from the first box to the second box according to the third message.
  • the sending module is further configured to unicast a fourth message to the second box, the fourth message including the FIC ID of the first box and the number of ports of the first box , So that the second box opens the channel from the second box to the first box according to the fourth message.
  • the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
  • the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
  • the receiving module is further configured to: receive a second management and control message sent by the second box, and the destination IP address and/or destination MAC address of the second management and control message is the IP of the management and control server Address and/or MAC address.
  • a second box in a fourth aspect, includes:
  • the receiving module is configured to receive a second message sent by the first box, the second message includes information and indication information of the management and control server, wherein the information of the management and control server includes the IP address and/or MAC address of the management and control server ,
  • the instruction information indicates that the first box is a proxy box;
  • the establishment module is used to establish agent information, the agent information includes the agent box identification ID, the Internet Protocol IP address of the management and control server, and/or the media access control MAC address;
  • the sending module is used to send a second management and control message to the first box based on the proxy box identification ID in the proxy information.
  • the destination IP address and/or destination MAC address of the second management and control message is the management and control message.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
  • the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages
  • the hardware messages include: the second box The hardware information and hardware status information reported by the management and control server, the hardware information includes the model of the control chip in the second box, the number of interfaces in the second box, and the hardware status information includes Fault interface information
  • the protocol message includes the protocol used by the second box to send the second management and control message.
  • the sending module is further configured to: send a first message to the first box, the first message including the identifier of the second box and the information of the control chip in the second box, So that the first box establishes a first forwarding entry according to the first message, and the first forwarding entry is used by the first box to forward the first management and control message sent by the management and control server to the second box.
  • the first management and control message is a non-fragmented message.
  • the first management and control message includes one or more of the following: software version message, resource configuration message, service configuration message , Device management message, entry message,
  • the software version message includes the software version of the second box delivered by the management and control server to the second box
  • the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content
  • the addressable memory TCAM resource division the service configuration message includes a quality of service QOS service
  • the entry message includes a routing table generated by a routing protocol.
  • the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box.
  • the port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
  • the information of the control chip includes the IP address of the control chip and/or the port number of the control chip in the second box.
  • the first box is the main time-scaled box
  • the receiving module is further configured to: receive a time stamp notification message broadcast by the first box, where the time stamp notification message includes the first box ID and the time stamp of the first line card box;
  • a synchronization module for synchronizing its own time scale according to the time scale of the first box.
  • it also includes:
  • the opening module is used to open the passage from the second box to the first box.
  • the receiving module is further configured to: receive a fourth message sent by the first box, where the fourth message includes the FIC ID of the first box and the number of ports of the first box;
  • the opening module is specifically configured to: open the channel from the second box to the first box according to the fourth message.
  • the sending module is further configured to: send a third message to the first box, the third message including the FIC ID of the switching network interface card of the second box and the second box The number of ports to facilitate the first box to open the channel from the first box to the second box according to the third message.
  • the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
  • the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
  • the receiving module is further configured to: receive a first management and control message sent by the first box, and the first management and control message includes information about the second box.
  • a computer device including: at least one processor and a memory, where the memory is used to store a computer program, and the at least one processor is used to call and run the computer program from the memory to execute the first Aspect or any one of the possible implementations of the first aspect.
  • the number of processors is not limited.
  • the processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software.
  • the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
  • a computer device including: at least one processor and a memory, where the memory is used to store a computer program, and the at least one processor is used to call and run the computer program from the memory, so that the second Aspect or the method provided by any possible implementation manner of the second aspect.
  • the number of processors is not limited.
  • the processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software.
  • the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
  • a computer program product includes: computer program code, when the computer program code runs on a computer, the computer executes the first aspect or any one of the possible implementations of the first aspect The method in the way.
  • a computer program product includes: computer program code, when the computer program code runs on a computer, the computer executes the second aspect or any possible implementation of the second aspect The method in the way.
  • a computer-readable storage medium stores computer program code.
  • the computer program code runs on a computer, the computer executes the first aspect or any one of the first aspects.
  • These computer-readable storages include but are not limited to one or more of the following: read-only memory (ROM), programmable ROM (programmable ROM, PROM), erasable PROM (erasable PROM, EPROM), Flash memory, electrically EPROM (electrically EPROM, EEPROM), and hard drive.
  • a computer-readable storage medium stores computer program code.
  • the computer program code runs on a computer, the computer executes the second aspect or any one of the second aspects.
  • These computer-readable storages include but are not limited to one or more of the following: read-only memory (ROM), programmable ROM (programmable ROM, PROM), erasable PROM (erasable PROM, EPROM), Flash memory, electrically EPROM (electrically EPROM, EEPROM), and hard drive.
  • a chip in an eleventh aspect, includes a processor and a data interface, wherein the processor reads instructions stored in the memory through the data interface to execute the first aspect or any possible implementation of the first aspect The method in the way.
  • the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
  • CPU central processing unit
  • MCU microcontroller unit
  • MPU microprocessor
  • digital signal processor digital signal processor
  • processing DSP
  • SoC system on chip
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the number of processors is not limited.
  • the processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software.
  • the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
  • a chip in a twelfth aspect, includes a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the second aspect or any possible implementation of the second aspect The method in the way.
  • the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
  • CPU central processing unit
  • MCU microcontroller unit
  • MPU microprocessor
  • digital signal processor digital signal processor
  • processing DSP
  • SoC system on chip
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the number of processors is not limited.
  • the processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software.
  • the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
  • FIG. 1 is a schematic structural diagram of a computer device 100 provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a system architecture suitable for an embodiment of the present application provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of opening a channel between a new line card box and other line card boxes according to an embodiment of the present application.
  • Fig. 6 is a schematic diagram of a communication connection between a line card box and a management and control server in the system provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of time stamp synchronization between boxes provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a method for time stamp synchronization when there are multiple master time stamp boxes provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another method for time stamp synchronization when there are multiple master time stamp boxes according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a first box 1000 provided by an embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a second box 1100 provided by an embodiment of the present application.
  • references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • the following at least one item (a)” or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a).
  • at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
  • the data transmission method provided in the embodiments of this application can be applied to computer equipment, which can also be referred to as a computer system, including a hardware layer, an operating system layer running on the hardware layer, and applications running on the operating system layer Floor.
  • the hardware layer includes hardware such as processing unit, memory, and memory control unit, and the function and structure of the hardware are described in detail later.
  • the operating system is any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system.
  • the application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
  • the computer system is a handheld device such as a smart phone, or a terminal device such as a personal computer.
  • In-band management and control can be implemented in a scale out switching network that is uniformly controlled by the management and control server.
  • the execution subject of the data transmission party provided in the embodiments of the present application may be a computer system, or a functional module in the computer system that can call and execute the program.
  • FIG. 1 is a schematic structural diagram of a computer device 100 provided by an embodiment of the present application.
  • the computer device 100 shown in FIG. 1 includes: at least one processor 110 and a memory 120.
  • the computer device 100 further includes a system bus, where the processor 110 and the memory 120 are respectively connected to the system bus.
  • the processor 110 can access the memory 120 through the system bus.
  • the processor 110 can perform data reading and writing or code execution in the memory 120 through the system bus.
  • the system bus is a peripheral component interconnect express (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect express
  • EISA extended industry standard architecture
  • the system bus is divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in FIG. 1, but it does not mean that there is only one bus or one type of bus.
  • the function of the processor 110 is mainly to interpret instructions (or codes) of a computer program and process data in computer software.
  • the instructions of the computer program and the data in the computer software can be stored in the memory 120 or the cache 116.
  • the processor 110 may be an integrated circuit chip with signal processing capability.
  • the processor 110 is a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA). ) Or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • general-purpose processors are microprocessors and so on.
  • the processor 110 is a central processing unit (central processing unit, CPU).
  • each processor 110 includes at least one processing unit 112 and a memory control unit 114.
  • the processing unit 112 is also called a core (core) or a core, which is the most important component of the processor.
  • the processing unit 112 is manufactured by monocrystalline silicon with a certain production process, and all calculations, receiving commands, storing commands, and processing data of the processor are executed by the core.
  • the processing units run program instructions independently, and use parallel computing capabilities to speed up the program's running speed.
  • Various processing units have a fixed logical structure.
  • the processing unit includes, for example, logic units such as a first-level cache, a second-level cache, an execution unit, an instruction-level unit, and a bus interface.
  • the memory control unit 114 is used to control data interaction between the memory 120 and the processing unit 112. Specifically, the memory control unit 114 receives a memory access request from the processing unit 112, and controls access to the memory based on the memory access request.
  • the memory control unit is a device such as a memory management unit (MMU).
  • MMU memory management unit
  • each memory control unit 114 performs addressing for the memory 120 through the system bus.
  • an arbiter (not shown) is configured in the system bus, and the arbiter is responsible for processing and coordinating the competing access of multiple processing units 112.
  • the processing unit 112 and the memory control unit 114 are communicatively connected through a connection line inside the chip, such as an address line, so as to realize the communication between the processing unit 112 and the memory control unit 114.
  • each processor 110 further includes a cache 116, where the cache is a buffer for data exchange (referred to as a cache).
  • the processing unit 112 wants to read data, it will first find the required data in the cache, if it finds it, execute it directly, and if it cannot find it, it will find it from the memory. Since the running speed of the cache is much faster than that of the memory, the function of the cache is to help the processing unit 112 run faster.
  • the memory 120 can provide a running space for the processes in the computer device 100.
  • the memory 120 stores a computer program (specifically, the code of the program) for generating the process.
  • the processor allocates a corresponding storage space for the process in the memory 120.
  • the aforementioned storage space further includes a text segment, an initialization data segment, a bit initialization data segment, a stack segment, a heap segment, and so on.
  • the memory 120 stores data generated during the running of the process, such as intermediate data, or process data, in the storage space corresponding to the above process.
  • the memory is also referred to as internal memory, and its function is to temporarily store operational data in the processor 110 and data exchanged with an external memory such as a hard disk.
  • the processor 110 transfers the data to be calculated into the memory for calculation, and the processing unit 112 transmits the result after the calculation is completed.
  • the memory 120 is a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • non-volatile memory is read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically erasable Except for programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory is random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • static random access memory static random access memory
  • dynamic RAM dynamic RAM
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory synchronous DRAM, SDRAM
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous connection dynamic random access memory serial DRAM, SLDRAM
  • direct rambus RAM direct rambus RAM
  • the computer device 100 in the embodiment of the present application includes various hardware in a computer system in the prior art, for example, a computer device. 100 also includes other storage than the memory 120, for example, a disk storage and the like.
  • the frame-type router includes a main control board, a switch fabric unit (SFU), and a line processing unit (LPU).
  • SFU is the switching network version, which has the switching function.
  • LPU is the interface board, which has service processing and forwarding functions.
  • the main control board is mainly responsible for the control and management of the system, for example, the out-of-band channel management SFU and LPU.
  • the out-of-band channel is a new network created by the local area network switch (LAN switch) module integrated on the main control board to control signal flow (for example, signaling signal flow, operation and maintenance signal flow, and clock signal flow). ) Will perform out-of-band management on the SFU and LPU through the out-of-band channel.
  • LAN switch local area network switch
  • the LAN switch module is a module with the function of a local area network switch.
  • the line card box mainly undertakes the switching function in the network, which is similar to the switching processing unit SFU in the frame-based router, which has the switching function.
  • the switch box is mainly responsible for service processing and forwarding in the network, similar to the line processing unit LPU in the frame-based router, with service processing and forwarding functions.
  • the network formed between the line card box and the switch box can be used for data packet transmission.
  • the data packet of one switch box can be transmitted to other switch boxes through one or more line card boxes in the network.
  • the data may be a message on the data plane, or may also be a control message on the management plane, which is not specifically limited in this application.
  • the management functions of the control server can include, but are not limited to, one or more of the following: the online and offline of devices in the system, the power-on and power-off of boards, the opening and closing of ports, the management of software versions and software revisions of all boards in the system distribution.
  • the control function of the control server can include, but is not limited to, one or more of the following: provide a unified configuration interface, send configuration to each device in the system, save and restore configuration, run various communication protocols, and produce items under the table Send to each device of the system to control the forwarding behavior of the entire system.
  • the message used to manage and control the entire router system is different from the data forwarded by the router.
  • devices in the system go online and offline, notify the messages generated by the management and control server, and the management server manages the messages generated by the devices in the system; the management and control server compares the software version of each device in the system, and distributes the data generated by the software version; the management server downloads The configuration data sent, the entry data generated by the communication protocol.
  • the line card box and the switch box contain two parts of the chip, one is the hard forwarding chip, and the other is the management and control chip.
  • the management and control chip may also be referred to as a control chip.
  • Control messages are generally not transmitted through the data plane network, but a new set of separate network transmission, which is out-of-band transmission; control messages are sent from the control server to the control chip, directly using the data plane network, called in-band transmission .
  • the in-band network composed of line card boxes and switching boxes, in order to support more even load sharing, data packets will be fragmented and reorganized during transmission, fragment generation will carry a generation time, and the intermediate network will be based on the distribution.
  • the time carried by the fragments is sorted to reduce the difficulty of fragment reorganization. This requires that the time of the equipment in the scale-out system is synchronized. If the time is not synchronized, fragmentation and reorganization will not be supported, and the data plane cannot be connected.
  • the in-band transmission of control messages is to send data packets that do not need to be fragmented to avoid fragmentation and recombination, so that part of the control information can be transmitted in the in-band channel.
  • the box architecture router may be, for example, a scale out switching network that is uniformly controlled by a management and control server, or may be referred to as a scale out router for short.
  • a scale out router is a router system composed of a scale out architecture network and the aforementioned management and control server.
  • the scale-out architecture network includes the above-mentioned line card box and the above-mentioned switch box.
  • management and control server may be implemented by a certain server, or may also be implemented by any one of an exchange box or a line card box, which is not limited in this application.
  • the control server may be located on the central processing unit (CPU) of the switch box or on the CPU of the line card box.
  • management and control server can also be referred to as a server for short.
  • the server in the following is the management and control server, which is mainly responsible for the control and management of the entire scale out router system.
  • Fig. 2 is a schematic block diagram of a possible scale-out router provided by an embodiment of the present application.
  • the scale out router includes a plurality of switching boxes 210, a plurality of line card boxes 220, and a management and control server 230.
  • the multiple line card boxes 220 are connected by a switch box 210. Specifically, the multiple line card boxes 220 may be connected by a data plane connection 240 between the boxes.
  • the management and control server 230 is connected to the line card box 220, and is connected through the panel port connection 250 of the line card box 220.
  • line card boxes 220 are not directly connected to each other, the exchange boxes 210 are not directly connected to each other, and the control server 230 is not directly connected to all boxes.
  • the management and control server needs to be responsible for the management and control of the entire system. Since the management and control server 230 is not directly connected to all boxes, an additional switch is deployed in this solution.
  • the switch implements the management and control server and each box (for example, multiple switch boxes 210 and multiple A line card box 220) is directly connected.
  • the newly built network provides an out-of-band channel for the communication between the management and control server and each box.
  • the management and control server can perform out-of-band management and control of each box through the out-of-band channel.
  • scale out routers can support a large number of boxes, when the number of line card boxes and switching boxes in the scale out router is large, and the site deployment is large, the out-of-band channel increases the complexity of the project deployment and increases the customer’s construction, Maintenance costs.
  • the embodiment of the application provides a data transmission method.
  • the management and control server can directly send management and control messages to each box through the in-band channel formed by the port on the box panel to achieve in-band management and control communication. There is no need to build and maintain an additional external network to send management and control messages, which can reduce the cost and complexity of construction and maintenance.
  • the following describes in detail a data transmission method provided by an embodiment of the present application with reference to FIG. 3.
  • the method is applied to a scale out switching network that is uniformly controlled by a management and control server, and is executed by the above-mentioned computer equipment.
  • the method may include steps 310-330, and steps 310-330 will be described in detail below.
  • Step 310 The first box receives the first management and control message sent by the management and control server.
  • the management and control server is mainly responsible for the control and management of the entire scale out router system
  • the first management and control message is a message sent when the management and control server manages and controls the second box.
  • the management and control server needs to manage and control the second box, and it can send the first management and control message to the second box.
  • the first management and control message sent by the management and control server to the second box is used to manage and control the second box.
  • the first management control message in this application may include, but is not limited to, one or more of the following: software version message, resource configuration message, service configuration message, device management message, and table entry message.
  • the software version message includes the software version of the second box delivered by the management and control server to the second box
  • the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, and the configuration information includes one or more of the following: memory division of the control chip, configuration of interface addresses, ternary The content addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  • the first management and control message sent by the management and control server to the second box needs to be sent to the control chip of the second box, and the control chip of the second box performs specific management and control actions.
  • the management and control server wants to send the first management and control message to the second box, and it needs to select a proxy box.
  • the control server sends the first control message to the second box that is not directly connected to it, it can first send it to the proxy box, and the proxy box forwards it to the second box.
  • the first box is used as a proxy box
  • the second box can be used as a non-proxy box.
  • the proxy box can directly send management and control messages with the management and control server, while the non-agent box and the management and control server cannot directly send management and control messages. If a non-agent box needs to send a control message to the control server, or the control server needs to send a control message to a non-agent box, it can be sent to the agent box first, and the agent box forwards it to the non-agent box or to the control server.
  • management and control message may be a non-fragmented message.
  • the management and control message in this application may be a non-fragmented message, and the management and control message does not need to be decomposed into many small enough fragments to be transmitted on the link.
  • the above-mentioned management and control message may be a non-fragmented message.
  • the management and control message may be a fragmented message.
  • the first box directly connected to the control server is selected as the proxy box, and the first box is responsible for receiving the first control message sent by the control server to the second box through the panel port, for example, the connection 250 in FIG. And it is sent to the second box through the channel to the second box (also called a scale out switching network).
  • first box and the second box may be the line card box 220.
  • line card box 220 For the specific description of the line card box, please refer to the above description, which will not be repeated here.
  • Step 320 The first box determines that the first management and control message is sent to the second box.
  • the first box After the first box receives the first management and control message sent by the management and control server, it needs to determine which box the first management and control message is sent to.
  • the first management and control message may include the information of the second box, and the first box may determine that the first management and control message is sent to the second box according to the information of the second box.
  • the first management and control message includes an identifier of the second box, and the first box can determine based on the identifier that the first management and control message is sent to the second box.
  • the first management and control message also includes information about the control chip in the second box, and the first box can determine that the first management and control message is sent to the second box based on the information about the control chip in the second box. of.
  • the information of the control chip in this application includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
  • the second box may include multiple chips.
  • the control chip is a chip responsible for management and control.
  • the second box is managed and controlled.
  • Step 330 The first box sends the first management and control message to the second box according to the first forwarding entry.
  • the first forwarding entry includes an identifier of the second box, information of a control chip in the second box, and a port number for the first box to send the first management control message to the second box.
  • the first box determines that the first control message is sent by the control server to the second box.
  • the first box can send the first box to the second box through the first box in the first forwarding entry.
  • the port number of the control message, the first control message is sent to the control chip in the second box.
  • the management and control server can directly send management and control messages to each box through the in-band channel formed by the port on the box panel to realize in-band management and control communication. There is no need to build and maintain a set of external network to send management and control messages, which can reduce the cost and complexity of construction and maintenance.
  • the first box may also establish the first forwarding entry.
  • the first box may receive the first message sent by the second box, and the first message includes the identifier of the second box and the information of the control chip in the second box.
  • the first box can establish a first forwarding entry according to the received first message, and the first forwarding entry can also be referred to as forwarding information.
  • the first box serves as a proxy box.
  • the management and control server can send the management and control messages sent to other boxes to the first box as the proxy box through the panel port, and the first box forwards it to the other boxes through the scale out switching network.
  • other boxes such as the second box, need to send a second control message to the control server.
  • the second box can be sent to the first box of the proxy box through the scale out switching network, and the first box will transfer the message through the panel port.
  • the second management and control message is sent to the management and control server.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
  • the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages, where the hardware messages include: hardware information and hardware status reported by the second box to the management and control server Information, the hardware information includes the model of the control chip in the second box information, the number of interfaces in the second box, the hardware status information includes faulty interface information on the second box, and the protocol message includes The protocol used by the second box to send the second management control message.
  • the second box sending the second management and control message to the management and control server as an example.
  • the second box needs to establish a second forwarding entry (also called proxy information), and send the second management and control message to the first box according to the proxy information.
  • proxy information includes the identification ID of the proxy box (for example, the first box), the Internet Protocol IP address and/or the media access control MAC address of the management and control server, and the destination IP address and/or of the second management and control message
  • the destination MAC address is the IP address and/or MAC address of the management and control server.
  • the above-mentioned second management and control message is used to send some status information of the device to the management and control server.
  • the above-mentioned second management and control message is used to send to the management and control server. Control response message.
  • the second management and control message may include, but is not limited to: the version of the device, the interface information on the device (for example, the state of the interface and the number of interfaces), and the chip information on the device (for example, the number of chips and the version of the chip).
  • the second box will also receive a second message sent by the first box.
  • the second message includes the IP address and/or MAC address of the management and control server and indication information.
  • the instruction information indicates that the first box is a proxy box.
  • the second box establishes proxy information according to the second message, and when sending the second control message to the control server, it can determine the destination IP address and/or of the second control message according to the IP address and/or MAC address of the control server in the proxy information Destination MAC address, and according to the identification ID of the agent box (for example, the first box) in the agent information, send the second control message to the agent box (for example, the first box).
  • FIG. 4 is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • the method shown in FIG. 4 may include steps 410-420, and steps 410-420 will be described in detail below.
  • Step 410 After the new line card box is online, open the channel from the newly online line card box to other online line card boxes.
  • in-band broadcast announcements and unicast responses are used to open the channel from the new line card box to other line card boxes.
  • Fig. 5 as an example to illustrate the process of opening a channel from a new line card box to other line card boxes.
  • the newly launched line card box may also be referred to as the new line card box for short.
  • the new line card box is used for description below.
  • the new line card box 2 After the new line card box 2 is connected to the system, it broadcasts the information of the new line card box 2 to other online line card boxes.
  • the new line card box 2 After the new line card box 2 is connected to the system, the unicast channel between it and other online line card boxes (for example, line card box 0 and line card box 1) has not been opened yet.
  • the new line card box 2 can send broadcast messages to other online line card boxes (for example, line card box 0 and line card box 1) through the in-band switching network.
  • the broadcast message includes the information of the new line card box 2.
  • the in-band switching network may be a network composed of multiple switching boxes, and each line card box is connected or communicating through the in-band switching network.
  • the information of the new line card box 2 may be one or more of the following: the identity (ID) port number of the new line card box 2.
  • the new line card box 2 may be a switching network interface card (FIC) ID. It should be understood that the FIC ID is the identification of the new line card box 2 in the in-band switching network.
  • FIC switching network interface card
  • the broadcast message may be, for example, a broadcast heartbeat message.
  • the new line card box 2 broadcasts the information of the new line card box 2 to other online line card boxes through a heartbeat message.
  • line card box 2 After other online line card boxes (for example, line card box 0 and line card box 1) receive the information broadcast by the new line card box 2, the information of the new line card box 2 is recorded locally and opened with the new line card Unicast channel between box 2.
  • line card box 0 and line card box 1 After other online line card boxes (for example, line card box 0 and line card box 1) receive the information broadcast by the new line card box 2, the information of the new line card box 2 is recorded locally and opened with the new line card Unicast channel between box 2.
  • line card box 0 Take line card box 0 as an example. After line card box 0 receives the information broadcast by new line card box 2, it can open the corresponding unicast channel according to the ID and/or port number of new line card box 2, and open line card box 0 and new line card box. Unicast channel between line card box 2 (0->2).
  • the line card box 0 can also initialize the unicast channel (0->2) between the line card box 0 and the new line card box 2.
  • the line card box can perform unicast queues. Some other settings, for example, setting some parameters of the queue, recording some related information (for example, the FIC ID received from which channel), etc.
  • the online line card box 1 can also open the unicast channel (1->2) between the line card box 1 and the new line card box 2 according to the above method.
  • the unicast channel (1->2) between the line card box 1 and the new line card box 2 according to the above method.
  • line card box 0 and line card box 1 can also send unicasts to new line card box 2 after opening the unicast channels between them and new line card box 2 respectively. Response information.
  • line card box 0 Take line card box 0 as an example. After line card box 0 opens the unicast channel (0->2) between it and new line card box 2, it sends a unicast response message to new line card box 2.
  • the unicast response message includes line card box 0 ID, port number (port number).
  • the online line card box 1 can also send a unicast response message to the new line card box 2.
  • the online line card box 1 can also send a unicast response message to the new line card box 2.
  • the unicast response message may be, for example, a unicast heartbeat confirmation message.
  • the new line card box 2 After the new line card box 2 receives the unicast response message sent by other online line card boxes, it opens the unicast channel between it and other online line card boxes.
  • the new line card box 2 After the new line card box 2 receives the unicast response message sent by other online line card boxes, it opens the line between it and other online line card boxes according to the ID and port number of the line card box in the unicast response message Unicast channel.
  • the new line card box 2 can open the corresponding unicast channel according to the ID and/or port number of the line card box 0, and open the unicast channel between the new line card box 2 and the line card box 0 (2->0).
  • the new line card box 2 after the new line card box 2 receives the unicast response message sent by the online line card box 1, it can also open the unicast channel between the new line card box 2 and the line card box 1 (2- >1). For details, please refer to the above description, which will not be repeated here.
  • Step 420 Realize the communication connection between the line card box in the system and the management and control server.
  • the channels between the various line card boxes are opened, so that the communication connection between the various line card boxes can be realized.
  • the channel may be, for example, a management and control channel, which is used to send management and control messages (also referred to as management and control messages) between various line card boxes.
  • a box can be designated as a proxy box. All other line card boxes need to communicate with the control server, and only need to send the information to the agent box, and then transfer the information from the agent box to the control server. Similarly, the management and control server must communicate with other line card boxes, and also send information to the agent box, and the agent box transfers the information to other line card boxes.
  • the agent box needs to know the location of the control server and the location of other boxes, and the other boxes and the control server do not need to care about the location of the other party, thereby reducing the complexity of the system.
  • the other line card boxes need to communicate with the control server, and only need to send the information to the proxy box, without worrying about whether the control server is online, thereby improving the flexibility of the system , Reduce the delay.
  • the embodiment of the present application does not specifically limit the implementation of selecting the proxy box from all the boxes.
  • the box directly connected to the control server is selected as the proxy box.
  • the line card box 0 directly connected to the management and control server is used as a proxy box, and other boxes (for example, line card box 1 and line card box 2) are used as non-agent boxes for illustration.
  • the line card box 0 as the proxy box passes through the channel to other non-agent boxes and sends unicast message 1 to the other non-agent boxes respectively.
  • the line card box 0 can pass through the channel opened with other non-agent boxes (for example, line card box 1 and line card box 2), to other non-agent boxes (for example, line card box 1 and line card box 2) Send a unicast message 1.
  • the unicast message 1 includes the information of the management and control server, the port number of the line card box 0 connected to the management and control server, and indicates that the line card box 0 is a proxy box.
  • the unicast message 1 includes: a box role (box role) field, a server target port (server target port, server TP) field, and a server information (server information, server info) field.
  • the box role field is set to "master agent”
  • the server TP field is set to the port number of the line card box 0 local and the control server connection
  • the server info field is set to the server's internet protocol (IP) address and media access control (media access control, MAC) address, etc.
  • IP internet protocol
  • MAC media access control
  • Other non-agent boxes generate agent information according to the unicast message 1 sent by the line card box 0 as the agent box.
  • non-agent boxes for example, line card box 1 and line card box 2
  • line card box 1 and line card box 2 after receiving the unicast message 1 sent by the line card box 0 as the proxy box, can be generated locally according to the information included in the unicast message 1 respectively Agency information.
  • the agent information generated by the line card box 1 according to the information included in the unicast message 1 includes: agent ID, server TP, IP address and MAC address of the management and control server.
  • the line card box 2 as a non-agent box can also generate proxy information based on the information included in the unicast message 1. For details, please refer to the above description, which will not be repeated here.
  • non-agent boxes can respectively send unicast message 2 to line card box 0 through the channel opened with line card box 0 as a proxy box.
  • the unicast message 2 includes the local control port of the non-agent box. information.
  • Line card box 1 can send unicast message 2 to line card box 0.
  • the unicast message 2 includes: a box role field and a control target port (control TP, ctrl TP) field.
  • the box role field is set to "non-agent”
  • the ctrl TP field is set to the IP address of the local control port of the line card box 1 and the TP of the local control port.
  • line card box 2 as a non-agent box can also send unicast message 2 to line card box 0.
  • line card box 2 as a non-agent box can also send unicast message 2 to line card box 0.
  • the local control port information of the box can be understood as the information of the chip controlled by the box, for example, the IP address of the chip and the TP of the chip.
  • the line card box 0 as a proxy box generates forwarding information according to the unicast message 2 sent by other non-proxy boxes.
  • the forwarding information can be locally generated according to the information included in the unicast message 2 respectively.
  • the proxy information generated by the line card box 0 according to the information included in the unicast message 2 includes: the ID of the line card box 1, the IP address of the local control port of the line card box 1, and the TP of the local control port.
  • the proxy box establishes the forwarding information locally, and the non-agent box establishes the agent information locally.
  • the control server has a control message to be sent to other proxy boxes, which can be sent to the proxy box, and the proxy box forwards the control message to the corresponding non-agent box according to the established forwarding information.
  • other proxy boxes have control messages to be sent to the control server, which can be sent to the proxy box based on their locally established proxy information, and the proxy box forwards it to the control server directly connected to it.
  • the management and control server has a management and control message 1 sent to the non-agent line card box 1.
  • the control server can send the control message 1 to the line card box 0 as the proxy box through the panel port, and the control message 1 indicates that the message is sent to the line card box 1.
  • the control server can determine the IP address of the local control port of the line card box 1 and the TP of the local control port according to the control message 1 and the forwarding information. And according to the IP address of the local control port of the line card box 1 and the TP of the local control port, the control message 1 is unicast forwarded to the line card box 1 through the in-band switching network (the channel opened between each box).
  • the management and control message 1 may include one or more of the following: software version of the box, control information for the box, configuration information for the box, entry information generated by the management and control server, and so on.
  • the non-agent line card box 1 has a control message 2 sent to the control server.
  • the line card box 1 can unicast the control message 2 to the line card box 0 as the proxy box through the in-band switching network (the channel opened between each box) according to the proxy ID in the proxy information stored locally.
  • the destination IP address in the message is the IP address of the server, and TP is the TP of the server.
  • line card box 0 receives the control message 2, according to the destination IP address as the server's IP address, and TP is the server's TP, it unicasts the control message 2 to the control server through the panel port connected to the control server.
  • the management and control message 2 may be a non-agent box restore management and control confirmation message to the management and control server, or report the status information of the device.
  • each box in the scale out router, has its own time stamp.
  • the time stamp of each box In the process of sending data packets through the in-band channel of the scale out router, if the time stamp of each box is inconsistent, It will cause fragmentation of packets, and disorder will occur during reorganization. Therefore, in a scale out router, if a data message is sent, each box needs to synchronize the time stamp.
  • a master time stamp box is negotiated among the line card boxes that have been online, and the remaining boxes are follower boxes.
  • the main time-scale box periodically broadcasts its own time-scale, makes time-scale notifications
  • the follow-up box receives the time-scale notification, and synchronizes its own time-scale.
  • the content notified by the main time stamp box may include: own time stamp and own box ID (Box ID).
  • the box directly connected to the management server can be selected as the main time stamp box.
  • the box with the largest or smallest Box ID can also be selected as the main time stamp box.
  • a box directly connected to the selection and control server is selected as the main time stamp box as an example.
  • the connection relationship between the control server and the boxes in the system changes, there will be multiple boxes with the role of "direct connection" in a short period of time. In other words, in a short period of time, there will be multiple master time stamp boxes. At this point, you need to wait for N cycles, and then set yourself as the main time stamp box.
  • FIG. 8 is a schematic flowchart of a method for time stamp synchronization when there are multiple master time stamp boxes provided by an embodiment of the present application.
  • the execution subject of the method shown in FIG. 8 is the box A directly connected to the management and control server in the scale out router.
  • the method may include steps 810-880, and steps 810-880 will be described in detail below.
  • Step 805 Box A determines that there is no master time stamp box in the scale out router, and the time stamp is initialized synchronously.
  • box A in the scale out router if it is determined that there is no master time stamp box in the scale out router, the time stamp of this box A does not change with the time stamps of other boxes.
  • Step 810 Box A receives the notification sent by the data plane management module UC module, and promotes itself to a directly connected box.
  • Step 815 Box A sets itself as the main time stamp box.
  • Step 820 Box A judges whether there are two master time stamp boxes in the scale out router.
  • box A will receive the time stamp channels sent by other master time stamp boxes. If box A receives the time stamp channel sent by other master time stamp boxes, it can be determined that there are two master time stamp boxes in the scale out router.
  • Step 823 Maintain the time stamp initialization state for N cycles.
  • the time stamp initialization state is maintained for N cycles.
  • Step 825 If the box A determines that there are multiple synchronization areas, it can be delayed for a period of time.
  • Step 830 If box A determines that the previous box is disconnected from the box directly connected to the control server, there should be only one box A and one directly connected box at this time.
  • Step 835 Box A determines whether the time scale it follows is its own time scale.
  • step 840 is executed.
  • step 845 may be executed.
  • Step 840 An error is reported, and the time stamp synchronization is initialized.
  • step 823 is continued.
  • Step 845 If Box A determines that there is no synchronization zone, inform UC that a heartbeat message can be sent.
  • box A determines that there is no synchronization zone, it can be understood that there is only one directly connected box in the scale out router.
  • This directly connected box can be used as the main time stamp box to send heartbeat messages to other follow time stamp boxes for Mark the box at any time to notify its own main time stamp.
  • Step 850 There is only one directly connected box, and the system works normally.
  • Step 855 Box A disconnects the server.
  • Step 860 Before the UC detects the local disconnection, it determines whether there are other boxes directly connected to the control server.
  • step 865 is executed.
  • step 870 is executed.
  • Step 865 Make sure that there are two directly connected boxes and two main time stamp boxes in the system.
  • Step 867 It can be determined that there are multiple synchronization areas in the system at this time.
  • Step 870 UC detects that box A is a non-primary time-scale box, and channel box A reduces itself to a non-primary time-scale box.
  • Step 875 Box A notifies UC to stop sending heartbeat messages.
  • box A is a non-primary time stamp box, box A cannot advertise its own time stamp to other boxes in the system. Therefore, box A can notify UC to stop sending heartbeat messages.
  • Step 880 Determine whether there are other boxes in the system directly connected to the control server.
  • step 850 If it is determined that there are other boxes in the system directly connected to the control server, proceed to step 850.
  • FIG. 9 is a schematic flowchart of another method for time stamp synchronization when there are multiple master time stamp boxes according to an embodiment of the present application.
  • the execution subject of the method shown in FIG. 9 is box B in the scale out router that is not directly connected to the management and control server.
  • the method may include steps 910-950, and steps 910-950 will be described in detail below.
  • Step 910 Box B determines that there is no master time stamp box in the scale out router, and the time stamp is initialized synchronously.
  • Step 920 Box B periodically detects the local time stamp following state.
  • Step 930 Box B judges whether it follows other main time stamp boxes.
  • step 940 is executed.
  • step 950 is executed.
  • Step 940 Box B notifies UC that a heartbeat message can be sent.
  • time stamp synchronization can be realized, thereby sending a heartbeat message and opening a data channel to facilitate sending data messages through the data channel.
  • Step 950 Box B notifies UC to stop sending heartbeat messages.
  • box B does not follow other main time stamp boxes, time stamp synchronization is not achieved between box B and other boxes, data channels cannot be opened between the boxes, and data messages cannot be sent. Therefore, UC can be notified to stop sending heartbeat messages.
  • a dual channel is abstracted on the data link between the line card box and the switch box.
  • the physical link between the line card box and the switch box abstracts a data channel and a control channel.
  • the data channel uses data packets
  • the control channel uses management and control information.
  • the server uses this control channel when it manages and controls the line card box and the switch box.
  • a new control heart cell type can be added to the message to distinguish between data messages and control messages.
  • the data message can also be called data information, and it takes the data channel.
  • Control messages can also be referred to as management and control information, and go through the management and control channel.
  • control message it is also possible to force the control message to be encapsulated in one cell, so that the control message does not need to be split and reassembled, thereby eliminating the need to rely on time stamp synchronization. That is to say, in this case, there is no need to select the main time-scale box, and there is no need to synchronize the time-scales between the following boxes according to the information of the main time-scale.
  • the management and control server, the line card box, and the switching box are interconnected through the management and control channel, and the management and control channel will not be disconnected even when the data channel is disconnected due to the time stamp asynchronous.
  • the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • FIG. 10 is a schematic block diagram of a first box 1000 provided by an embodiment of the present application.
  • the first box 1000 can be implemented as part or all of the device through software, hardware or a combination of the two. It should be understood that the first box 1000, as a functional module in the computer device 100, is used to execute the above-mentioned method flow executed by the computer device 100.
  • the first box 1000 is a proxy box, and the first box 1000 includes: a receiving module 1010, a determining module 1020, and a sending module 1030, where:
  • the receiving module 1010 is configured to receive a first management and control message sent by the management and control server, where the first management and control message is a message sent when the management and control server manages and controls the second box;
  • the determining module 1020 is configured to determine that the first management and control message is sent to the second box;
  • the sending module 1030 is configured to send the first management control message to the second box according to the first forwarding entry, where the first forwarding entry includes the identification of the second box and the information of the control chip in the second box And the port number for the first box to send the first management and control message to the second box.
  • the first management control message is a non-fragmented message.
  • the first management and control message includes one or more of the following: a software version message, a resource configuration message, a service configuration message, a device management message, and an entry message
  • the software version message includes the The software version of the second box issued by the management and control server to the second box
  • the resource configuration message includes, but is not limited to: the box number assigned by the management and control server to the second box
  • the configuration information issued by the control chip in the box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, the ternary content addressable memory TCAM resource division, so
  • the service configuration message includes a quality of service QOS service
  • the entry message includes a routing table generated by a routing protocol.
  • the first management and control message includes information about the second box
  • the determining module 1020 is specifically configured to determine, according to the information of the second box, that the first management and control message is sent to the second box.
  • the information of the second box includes the identification of the second box and/or the information of the control chip in the second box.
  • the receiving module 1010 is further configured to: receive a first message sent by the second box, where the first message includes the identifier of the second box and information about the control chip in the second box;
  • the first box 1000 also includes:
  • the establishment module 1040 is configured to establish the first forwarding entry according to the first message.
  • the information of the control chip includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
  • the sending module 1030 is further configured to: send a second message to the second box, the second message including the information of the management and control server and instruction information, wherein the information of the management and control server includes the Internet of the management and control server Protocol IP address and/or media access control MAC address, the indication information indicates that the first box is a proxy box, so that the second box establishes proxy information according to the second message, and sends the second control message according to the proxy information Give this first box.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server
  • the second management and control message includes one or more of the following: hardware messages , Software message, protocol message
  • the hardware message includes: hardware information and hardware status information reported by the second box to the management and control server
  • the hardware information includes the model of the control chip in the second box message
  • the protocol message includes the protocol used by the second box to send the second management and control message.
  • the first box 1000 is the main time stamp box
  • the sending module 1030 is further configured to: send a time stamp notification message to the second box, and the time stamp notification message includes the first box ID and the first box ID.
  • the first box 1000 further includes: an opening module 1050 for opening the passage from the first box to the second box.
  • the receiving module 1010 is specifically configured to: receive a third message broadcast and sent by the second box, the third message including the FIC ID of the switching network interface card of the second box and the number of ports of the second box ;
  • the opening module 1050 is specifically configured to: open the channel from the first box to the second box according to the third message.
  • the sending module 1030 is further configured to unicast a fourth message to the second box, and the fourth message includes the FIC ID of the first box and the number of ports of the first box, so as to facilitate the first box.
  • the second box opens the channel from the second box to the first box according to the fourth message.
  • the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding messages.
  • the management and control server is located on a processor of a line card box or a switch box, and the switch box is used to undertake the switching function.
  • the receiving module 1010 is further configured to: receive a second management and control message sent by the second box, where the destination IP address and/or destination MAC address of the second management and control message is the IP address and/or MAC address of the management and control server address.
  • FIG. 11 is a schematic block diagram of a second box 1100 provided by an embodiment of the present application.
  • the second box 1100 can be implemented as part or all of the device through software, hardware or a combination of the two. It should be understood that the second box 1100 is used as a functional module in the computer device 100 to execute the above-mentioned method flow executed by the computer device 100.
  • the second box 1100 is not directly connected to the management and control server.
  • the second box 1100 includes: a receiving module 111, a establishing module 1120, and a sending module 1130, in which:
  • the receiving module 1110 is configured to receive a second message sent by the first box, where the second message includes the IP address and/or MAC address of the management and control server and indication information, and the indication information indicates that the first box is a proxy box;
  • the establishment module 1120 is used to establish agent information, the agent information includes the agent box identification ID, the Internet Protocol IP address of the management and control server, and/or the media access control MAC address;
  • the sending module 1130 is configured to send a second management control message to the first box according to the proxy box identification ID in the proxy information, and the destination IP address and/or destination MAC address of the second management control message is the first box.
  • the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
  • the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages
  • the hardware messages include: hardware reported by the second box to the management and control server Information, hardware status information, the hardware information includes the model of the control chip in the second box, the number of interfaces in the second box, the hardware status information includes the faulty interface information on the second box
  • the The protocol message includes the protocol used by the second box to send the second management and control message.
  • the sending module 1130 is further configured to: send a first message to the first box, and the first message includes the identification of the second box and the information of the control chip in the second box, so that the first The box establishes a first forwarding entry according to the first message, and the first forwarding entry is used by the first box to forward the first management and control message sent by the management and control server to the second box.
  • the first management and control message is a non-fragmented message.
  • the first management and control message includes one or more of the following: software version message, resource configuration message, service configuration message, device management message, table Item message,
  • the software version message includes the software version of the second box delivered by the management and control server to the second box
  • the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content
  • the addressable memory TCAM resource division the service configuration message includes a quality of service QOS service
  • the entry message includes a routing table generated by a routing protocol.
  • the first forwarding entry includes the identifier of the second box, the information of the control chip, and the port number of the first box that sends the first management control message to the second box, so
  • the control chip in the second box is a chip responsible for executing the first management and control message in the second box.
  • the information of the control chip includes the IP address of the control chip in the second box and/or the port number of the control chip.
  • the first box is the master time stamp box
  • the receiving module 1110 is further configured to: receive a time stamp notification message broadcast by the first box, and the time stamp notification message includes the first box ID and the first time stamp.
  • the second box 1100 further includes: a synchronization module 1140 for synchronizing its own time scale according to the time scale of the first box.
  • the second box 1100 further includes: an opening module 1150 for opening the passage from the second box to the first box.
  • the receiving module 1110 is further configured to: receive a fourth message sent by the first box, where the fourth message includes the FIC ID of the first box and the number of ports of the first box;
  • the opening module 1150 is specifically configured to: open the channel from the second box to the first box according to the fourth message.
  • the sending module 1130 is further configured to send a third message to the first box, the third message including the FIC ID of the switching network interface card of the second box and the number of ports of the second box, so that Open the channel from the first box to the second box in the first box according to the third message.
  • the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding messages.
  • the management and control server is located on a processor of a line card box or a switch box, and the switch box is used to undertake the switching function.
  • the receiving module 1110 is further configured to: receive a first management and control message sent by the first box, where the first management and control message includes information about the second box.
  • a computer-readable storage medium stores instructions.
  • the computing device executes the first box. The method performed.
  • a computer-readable storage medium stores instructions.
  • the computing device is caused to execute the above-mentioned second box. The method performed.
  • a computer program product containing instructions is also provided, which when running on a computing device, causes the computing device to execute the method executed by the above-mentioned first box.
  • a computer program product containing instructions is also provided, which when running on a computing device, causes the computing device to execute the method executed by the above-mentioned second box.
  • a chip which includes a processor and a data interface, wherein the processor reads instructions stored on the memory through the data interface to execute the method executed by the first box.
  • the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
  • CPU central processing unit
  • MCU microcontroller unit
  • MPU microprocessor
  • digital signal processor digital signal processor
  • processing DSP
  • SoC system on chip
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the number of processors is not limited.
  • the processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software.
  • the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
  • a chip which includes a processor and a data interface, wherein the processor reads instructions stored on the memory through the data interface to execute the method executed by the second box.
  • the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
  • CPU central processing unit
  • MCU microcontroller unit
  • MPU microprocessor
  • digital signal processor digital signal processor
  • processing DSP
  • SoC system on chip
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the number of processors is not limited.
  • the processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software.
  • the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
  • the above-mentioned embodiments are all or partly implemented by software, hardware, firmware or any other combination.
  • the above-mentioned embodiments are all or partly implemented in the form of a computer program product.
  • the computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer is a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be passed from a website, a computer, a server, or a data center. Wired (such as infrared, wireless, microwave, etc.) to transmit to another website, computer, server or data center.
  • the computer-readable storage medium is any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more sets of available media.
  • the usable medium is a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium.
  • the semiconductor medium is a solid state drive.
  • the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there can be other divisions in actual implementation, such as the combination or integration of multiple units or components. To another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual couplings or direct couplings or communication connections are indirect couplings or communication connections between devices or units through some interfaces, and are in electrical, mechanical or other forms.
  • the units described as separate parts are physically separated, or not physically separated, and the parts displayed as units are physically separated, or are not physical units, that is, they are located in one place, or are also distributed to Multiple network units. Some or all of the units are selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each unit physically exists alone, or two or more units are integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media capable of storing program codes. .

Landscapes

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

Abstract

Provided by the present application is a method for data transmission. The method comprises that: a first box receives a first management and control message sent by a management and control server; the first box determines that the first management and control message is sent to a second box; and the first box sends the first management and control message to the second box according to a first forwarding entry, the first forwarding entry comprising the identification of the second box, information of a control chip in the second box, and a port number by means of which the first box sends the first management and control message to the second box. In a scale out switching network that is uniformly managed and controlled by the management and control server, the present application is able to reduce the costs and complexity of construction and maintenance.

Description

数据传输的方法、第一盒子以及第二盒子Data transmission method, first box and second box
本申请要求于2020年5月22日提交的申请号为202010438591.6、发明名称为“数据传输的方法、第一盒子以及第二盒子”的中国专利申请优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on May 22, 2020 with the application number 202010438591.6 and the invention title "Data transmission method, the first box and the second box", the entire content of which is incorporated into this application by reference middle.
技术领域Technical field
本申请涉及网络通信领域,并且更具体地,涉及一种数据传输的方法、第一盒子以及第二盒子。This application relates to the field of network communication, and more specifically, to a data transmission method, a first box, and a second box.
背景技术Background technique
为了便于扩展容量,路由器由框式架构逐渐演变为盒式架构。盒式架构路由器例如可以是scale out路由器,scale out路由器是由scale out架构的网络和管控服务器组成的路由器系统。其中,scale out架构的网络主要包括线卡盒子和交换盒子,管控服务器主要负责对scale out架构网络中的盒子进行管理和控制工作。In order to facilitate capacity expansion, routers have gradually evolved from a box-type architecture to a box-type architecture. The box architecture router may be, for example, a scale out router, and the scale out router is a router system composed of a scale out architecture network and a management and control server. Among them, the scale-out architecture network mainly includes line card boxes and switching boxes, and the management and control server is mainly responsible for the management and control of the boxes in the scale-out architecture network.
相关的技术方案中,额外部署了一个交换机,该交换机通过新建的网络实现管控服务器和scale out架构的网络之间进行通信。该新建的网络为管控服务器和scale out架构的网络之间的通信提供了带外通道,管控服务器可以通过该带外通道对scale out架构的网络中的盒子进行带外的管理和控制。In related technical solutions, an additional switch is deployed, and the switch implements communication between the management and control server and the scale-out network through the newly built network. The newly-built network provides an out-of-band channel for communication between the management and control server and the scale-out architecture network. The management and control server can perform out-of-band management and control on the boxes in the scale-out architecture network through the out-of-band channel.
由于scale out路由器可支持较多数量的盒子,当scale out路由器中线卡盒子和交换盒子的数量较多,场地部署较大时,带外通道为工程部署提高了复杂度,增加了客户的建设、维护成本。Since scale out routers can support a large number of boxes, when the number of line card boxes and switching boxes in the scale out router is large, and the site deployment is large, the out-of-band channel increases the complexity of the project deployment and increases the customer’s construction, Maintenance costs.
发明内容Summary of the invention
本申请实施例提供一种数据传输的方法、第一盒子、第二盒子以及计算机设备,在scale out路由器系统中,可以降低施工、维护的成本和复杂度。The embodiments of the present application provide a data transmission method, a first box, a second box, and computer equipment. In a scale out router system, the cost and complexity of construction and maintenance can be reduced.
第一方面,提供了一种数据传输的方法,该方法应用于由管控服务器统一管控的scale out交换网络,该方法包括:第一盒子接收该管控服务器发送的第一管控消息,其中,所述第一盒子为代理盒子,所述第一管控消息为所述管控服务器对所述第二盒子进行管理和控制时所发送的消息;该第一盒子确定该第一管控消息是发送给第二盒子的;该第一盒子根据第一转发表项将该第一管控消息发送给该第二盒子。In the first aspect, a data transmission method is provided, which is applied to a scale out switching network that is uniformly controlled by a management and control server. The method includes: a first box receives a first management and control message sent by the management and control server, wherein the The first box is a proxy box, and the first management and control message is a message sent when the management and control server manages and controls the second box; the first box determines that the first management and control message is sent to the second box The first box sends the first management and control message to the second box according to the first forwarding entry.
其中,该第一盒子为代理盒子,在一些实施例中,第一盒子与该管控服务器直连。该第二盒子与该管控服务器非直连。Wherein, the first box is a proxy box. In some embodiments, the first box is directly connected to the management and control server. The second box is not directly connected to the control server.
上述技术方案中,在scale out路由器系统中,管控服务器可以直接通过盒子面板上的端口形成的带内通道向各个盒子发送管理和控制消息,实现带内管控通信。无需额外建立和维护一套外带网络来发送管理和控制消息,从而可以降低施工、维护的成本和复杂度。In the above technical solution, in the scale out router system, the management and control server can directly send management and control messages to each box through the in-band channel formed by the port on the box panel to realize in-band management and control communication. There is no need to build and maintain a set of external network to send management and control messages, which can reduce the cost and complexity of construction and maintenance.
在一种可能的实现方式中,该第一管控消息为不分片的消息。In a possible implementation manner, the first management control message is a non-fragmented message.
在另一种可能的实现方式中,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,In another possible implementation manner, the first management control message includes one or more of the following: software version message, resource configuration message, service configuration message, device management message, table entry message,
其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, and the configuration information includes one or more of the following: memory division of the control chip, configuration of interface addresses, ternary The content addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
在另一种可能的实现方式中,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中的控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。In another possible implementation manner, the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box. The port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
在另一种可能的实现方式中,该第一管控消息中包括该第二盒子的信息,该第一盒子根据该第二盒子的信息,确定该第一管控消息是发送给该第二盒子的。In another possible implementation manner, the first management and control message includes the information of the second box, and the first box determines that the first management and control message is sent to the second box according to the information of the second box. .
在另一种可能的实现方式中,该第二盒子的信息包括该第二盒子的标识和/或该第二盒子中控制芯片的信息。In another possible implementation manner, the information of the second box includes an identifier of the second box and/or information of a control chip in the second box.
在另一种可能的实现方式中,在该第一盒子根据第一转发表项将该第一管控消息发送给该第二盒子之前,该方法还包括:In another possible implementation manner, before the first box sends the first management and control message to the second box according to the first forwarding entry, the method further includes:
该第一盒子接收该第二盒子发送的第一消息,该第一消息中包括该第二盒子的标识、该第二盒子中控制芯片的信息;该第一盒子根据该第一消息建立该第一转发表项。The first box receives the first message sent by the second box. The first message includes the identification of the second box and the information of the control chip in the second box; the first box establishes the first message according to the first message. One forwarding entry.
应理解,一个盒子会有多个控制芯片,管控消息可能是给其中的某一个控制芯片发送的,这里的第一转发表项中需要包括第二盒子中控制芯片的信息,这样,第一盒子才会根据第一转发表项将第一管控消息成功发送给第二盒子中对应的控制芯片。It should be understood that a box has multiple control chips, and the control message may be sent to one of the control chips. The first forwarding entry here needs to include the information of the control chip in the second box. In this way, the first box Only then will the first management and control message be successfully sent to the corresponding control chip in the second box according to the first forwarding entry.
在另一种可能的实现方式中,该控制芯片的信息包括该第二盒子中该控制芯片的互联网协议IP地址和/或该控制芯片的端口号。In another possible implementation manner, the information of the control chip includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
在另一种可能的实现方式中,该方法还包括:该第一盒子向该第二盒子发送第二消息,该第二消息中包括该管控服务器的信息以及指示信息。In another possible implementation manner, the method further includes: the first box sends a second message to the second box, and the second message includes information and instruction information of the management and control server.
该指示信息指示该第一盒子为代理盒子,以便于该第二盒子根据该第二消息建立代理信息,并根据该代理信息将第二管控消息发送给该第一盒子。The indication information indicates that the first box is an agent box, so that the second box establishes agent information according to the second message, and sends a second management and control message to the first box according to the agent information.
在另一种可能的实现方式中,所述第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子息中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。In another possible implementation, the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server, and the second management and control message includes one of the following Or multiple: hardware messages, software messages, protocol messages, where the hardware messages include: hardware information and hardware status information reported by the second box to the management and control server, and the hardware information includes the second box The information includes the model of the control chip, the number of interfaces in the second box, the hardware status information includes information about the faulty interface on the second box, and the protocol message includes the second control message sent by the second box The protocol used.
该管控服务器的信息包括该管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址。The information of the management and control server includes the Internet Protocol IP address and/or the media access control MAC address of the management and control server.
在另一种可能的实现方式中,该第一盒子为主时标盒子,该方法还包括:该第一盒子向该第二盒子发送时标通告消息,该时标通告消息中包括该第一盒子ID以及该第一线卡 盒子的时标,以便于该第二盒子根据该第一盒子的时标同步自己的时标。In another possible implementation manner, the first box is the main time-scale box, and the method further includes: the first box sends a time-scale notification message to the second box, and the time-scale notification message includes the first time-scale notification message. The box ID and the time stamp of the first line card box, so that the second box synchronizes its own time stamp according to the time stamp of the first box.
在另一种可能的实现方式中,该方法还包括:该第一盒子打开所述第一盒子到该第二盒子的通道。In another possible implementation manner, the method further includes: the first box opens a passage from the first box to the second box.
第一盒子打开第一盒子到第二盒子的通道,可以理解为第一盒子知道第二盒子的FIC ID以及端口数量后,打开第一盒子和第二盒子之间的队列,此时,第一盒子知道第二盒子的位置和端口,可以向第二盒子发单播数据。The first box opens the channel from the first box to the second box. It can be understood that after the first box knows the FIC ID and the number of ports of the second box, it opens the queue between the first box and the second box. At this time, the first box The box knows the location and port of the second box and can send unicast data to the second box.
在另一种可能的实现方式中,该第一盒子接收该第二盒子广播发送的第三消息,该第三消息中包括该第二盒子的交换网接口卡标识FIC ID和该第二盒子的端口数量;该第一盒子根据该第三消息打开该第一盒子到该第二盒子的通道。In another possible implementation manner, the first box receives a third message broadcasted by the second box, and the third message includes the FIC ID of the second box and the FIC ID of the second box. Number of ports; the first box opens the channel from the first box to the second box according to the third message.
在另一种可能的实现方式中,该方法还包括:该第一盒子向该第二盒子单播发送第四消息,该第四消息中包括该第一盒子的FIC ID和该第一盒子的端口数量,以便于该第二盒子根据该第四消息打开该第二盒子到该第一盒子的通道。In another possible implementation manner, the method further includes: the first box unicasts a fourth message to the second box, and the fourth message includes the FIC ID of the first box and the FIC ID of the first box. The number of ports, so that the second box opens the channel from the second box to the first box according to the fourth message.
应理解,第一盒子打开第一盒子到第二盒子的通道,从而使得第一个盒子可以向第二盒子发单播数据,但是第二盒子不知道第一盒子的相关信息(例如,第一盒子的FIC ID以及端口数量),所以第二盒子还需要根据第一盒子的相关信息打开第二盒子和第一盒子之间的队列,此时,第二盒子知道第一盒子的位置和端口,可以向第一盒子发单播数据。It should be understood that the first box opens the channel from the first box to the second box, so that the first box can send unicast data to the second box, but the second box does not know the relevant information of the first box (for example, the first box). The FIC ID and port number of the box), so the second box also needs to open the queue between the second box and the first box based on the relevant information of the first box. At this time, the second box knows the location and port of the first box. You can send unicast data to the first box.
在另一种可能的实现方式中,该第一盒子和该第二盒子为线卡盒子,该线卡盒子用于负责报文的处理和转发。In another possible implementation manner, the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
在另一种可能的实现方式中,该管控服务器位于线卡盒子或交换盒子的处理器上,该交换盒子用于承担交换功能。In another possible implementation manner, the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
在另一种可能的实现方式中,该方法还包括:该第一盒子接收该第二盒子发送的第二管控消息,该第二管控消息的目的IP地址和/或目的MAC地址为该管控服务器的IP地址和/或MAC地址。In another possible implementation manner, the method further includes: the first box receives a second management and control message sent by the second box, and the destination IP address and/or the destination MAC address of the second management and control message is the management and control server IP address and/or MAC address.
第二方面,提供了一种数据传输的方法,该方法应用于由管控服务器统一管控的scale out交换网络,该方法包括:第二盒子接收第一盒子发送的第二消息,该第二消息中包括管控服务器的信息以及指示信息,其中,该管控服务器的信息包括该管控服务器的IP地址和/或MAC地址,该指示信息指示该第一盒子为代理盒子;第二盒子建立代理信息,该代理信息中包括代理盒子标识ID、该管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址;该第二盒子根据该代理信息中该代理盒子标识ID为第一盒子,将第二管控消息发送给该第一盒子,该第二管控消息的目的IP地址和/或目的MAC地址为该管控服务器的IP地址和/或MAC地址。In a second aspect, a data transmission method is provided, which is applied to a scale out switching network that is uniformly controlled by a management and control server. The method includes: a second box receives a second message sent by the first box, and the second message It includes the information and instruction information of the management and control server, where the information of the management and control server includes the IP address and/or MAC address of the management and control server, and the instruction information indicates that the first box is a proxy box; the second box establishes proxy information, and the proxy The information includes the proxy box identification ID, the Internet Protocol IP address and/or media access control MAC address of the control server; the second box sends the second control message according to the proxy box identification ID in the proxy information as the first box For the first box, the destination IP address and/or destination MAC address of the second management and control message is the IP address and/or MAC address of the management and control server.
其中,该第一盒子为代理盒子,与该管控服务器直连。该第二盒子与该管控服务器非直连。Among them, the first box is an agent box, which is directly connected to the management and control server. The second box is not directly connected to the control server.
在一种可能的实现方式中,该第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息。In a possible implementation, the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
在另一种可能的实现方式中,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息 包括所述第二盒子发送所述第二管控消息所使用的协议。In another possible implementation, the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages, where the hardware messages include: the second box The hardware information and hardware status information reported by the management and control server, the hardware information includes the model of the control chip in the second box, the number of interfaces in the second box, and the hardware status information includes Fault interface information, the protocol message includes the protocol used by the second box to send the second management and control message.
在另一种可能的实现方式中,该方法还包括:该第二盒子向该第一盒子发送第一消息,该第一消息中包括该第二盒子的标识、该第二盒子中控制芯片的信息,以便于该第一盒子根据该第一消息建立第一转发表项,该第一转发表项用于该第一盒子将该管控服务器发送的第一管控消息转发给该第二盒子。In another possible implementation manner, the method further includes: the second box sends a first message to the first box, and the first message includes the identifier of the second box and the control chip in the second box. Information, so that the first box establishes a first forwarding entry according to the first message, and the first forwarding entry is used by the first box to forward the first management and control message sent by the management and control server to the second box.
在另一种可能的实现方式中,所述第一管控消息为不分片的消息述所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,In another possible implementation manner, the first management and control message is a non-fragmented message. The first management and control message includes one or more of the following: software version message, resource configuration message, service configuration message , Device management messages, entry messages,
其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content The addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
在另一种可能的实现方式中,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。In another possible implementation manner, the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box. The port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
在另一种可能的实现方式中,该控制芯片的信息包括该第二盒子中该控制芯片的IP地址和/或该控制芯片的端口号。In another possible implementation manner, the information of the control chip includes the IP address of the control chip and/or the port number of the control chip in the second box.
在另一种可能的实现方式中,该第一盒子为主时标盒子,该方法还包括:该第二盒子接收该第一盒子广播的时标通告消息,该时标通告消息中包括该第一盒子ID以及该第一线卡盒子的时标;In another possible implementation manner, the first box is the main time-scale box, and the method further includes: the second box receives a time-scale notification message broadcast by the first box, and the time-scale notification message includes the first time-scale notification message. A box ID and the time stamp of the first line card box;
该第二盒子根据该第一盒子的时标同步自己的时标。The second box synchronizes its own time scale according to the time scale of the first box.
在另一种可能的实现方式中,该方法还包括:该第二盒子打开所述第二盒子到该第一盒子的通道。In another possible implementation manner, the method further includes: the second box opens a passage from the second box to the first box.
在另一种可能的实现方式中,该第二盒子接收该第一盒子单播发送的第四消息,该第四消息中包括该第一盒子的FIC ID和该第一盒子的端口数量;该第二盒子根据该第四消息打开该第二盒子到该第一盒子的通道。In another possible implementation manner, the second box receives a fourth message unicast sent by the first box, and the fourth message includes the FIC ID of the first box and the number of ports of the first box; The second box opens the channel from the second box to the first box according to the fourth message.
在另一种可能的实现方式中,该方法还包括:该第二盒子向该第一盒子发送第三消息,该第三消息中包括该第二盒子的交换网接口卡标识FIC ID和该第二盒子的端口数量,以便于该第一盒子根据该第三消息打开该第一盒子到该第二盒子的通道。In another possible implementation manner, the method further includes: the second box sends a third message to the first box, and the third message includes the FIC ID of the switching network interface card of the second box and the first box. The number of ports of the second box, so that the first box opens the channel from the first box to the second box according to the third message.
在另一种可能的实现方式中,该第一盒子和该第二盒子为线卡盒子,该线卡盒子用于负责报文的处理和转发。In another possible implementation manner, the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
在另一种可能的实现方式中,该管控服务器位于线卡盒子或交换盒子的处理器上,该交换盒子用于承担交换功能。In another possible implementation manner, the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
在另一种可能的实现方式中,该方法还包括:该第二盒子接收该第一盒子发送的第一管控消息,第一管控消息中包括该第二盒子的信息。In another possible implementation manner, the method further includes: the second box receives a first management and control message sent by the first box, and the first management and control message includes information of the second box.
第二方面和第二方面的任意一个可能的实现方式的有益效果和第一方面以及第一方面的任意一个可能的实现方式的有益效果是对应的,对此,不再赘述。The beneficial effects of any possible implementation manner of the second aspect and the second aspect correspond to the beneficial effects of the first aspect and any possible implementation manner of the first aspect, and details are not described herein again.
第三方面,提供了一种第一盒子,该第一盒子部署在由管控服务器统一管控的scale out交换网络中,该第一盒子为代理盒子,该第一盒子包括:In a third aspect, a first box is provided, the first box is deployed in a scale out switching network that is uniformly controlled by a management and control server, the first box is a proxy box, and the first box includes:
接收模块,用于接收该管控服务器发送的第一管控消息,其中,所述第一管控消息为所述管控服务器对所述第二盒子进行管理和控制时所发送的消息;A receiving module, configured to receive a first management and control message sent by the management and control server, where the first management and control message is a message sent when the management and control server manages and controls the second box;
确定模块,用于确定该第一管控消息是发送给第二盒子的;The determining module is used to determine that the first management and control message is sent to the second box;
发送模块,用于根据第一转发表项将该第一管控消息发送给该第二盒子。The sending module is configured to send the first management and control message to the second box according to the first forwarding entry.
在一种可能的实现方式中,该第一管控消息为不分片的消息。In a possible implementation manner, the first management control message is a non-fragmented message.
在另一种可能的实现方式中,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,In another possible implementation manner, the first management control message includes one or more of the following: software version message, resource configuration message, service configuration message, device management message, table entry message,
其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, and the configuration information includes one or more of the following: memory division of the control chip, configuration of interface addresses, ternary The content addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
在另一种可能的实现方式中,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中的控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。In another possible implementation manner, the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box. The port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
在另一种可能的实现方式中,该第一管控消息中包括该第二盒子的信息,该确定模块具体用于:根据该第二盒子的信息,确定该第一管控消息是发送给该第二盒子的。In another possible implementation manner, the first management and control message includes the information of the second box, and the determining module is specifically configured to: according to the information of the second box, determine that the first management and control message is sent to the second box. Two boxes.
该第二盒子的信息包括该第二盒子的标识和/或该第二盒子中控制芯片的信息。The information of the second box includes the identification of the second box and/or the information of the control chip in the second box.
在另一种可能的实现方式中,该接收模块还用于:接收该第二盒子发送的第一消息,该第一消息中包括该第二盒子的标识、该第二盒子中控制芯片的信息;In another possible implementation manner, the receiving module is further configured to: receive a first message sent by the second box, and the first message includes the identification of the second box and the information of the control chip in the second box ;
该第一盒子还包括:建立模块,用于根据该第一消息建立该第一转发表项。The first box further includes: an establishment module, configured to establish the first forwarding entry according to the first message.
在另一种可能的实现方式中,该控制芯片的信息包括该第二盒子中该控制芯片的互联网协议IP地址和/或该控制芯片的端口号。In another possible implementation manner, the information of the control chip includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
在另一种可能的实现方式中,该发送模块还用于:向该第二盒子发送第二消息,该第二消息中包括该管控服务器的信息以及指示信息,其中,该管控服务器的信息包括该管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址,该指示信息指示该第一盒子为代理盒子,以便于该第二盒子根据该第二消息建立代理信息,并根据该代理信息将第二管控消息发送给该第一盒子。In another possible implementation manner, the sending module is further configured to: send a second message to the second box, the second message includes information and indication information of the management and control server, where the information of the management and control server includes The Internet Protocol IP address and/or media access control MAC address of the management and control server, the indication information indicates that the first box is a proxy box, so that the second box establishes proxy information according to the second message, and converts it according to the proxy information The second control message is sent to the first box.
在另一种可能的实现方式中,所述第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子息中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。In another possible implementation, the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server, and the second management and control message includes one of the following Or multiple types: hardware messages, software messages, protocol messages, where the hardware messages include: hardware information and hardware status information reported by the second box to the management and control server, and the hardware information includes the second box The information includes the model of the control chip, the number of interfaces in the second box, the hardware status information includes information about the faulty interface on the second box, and the protocol message includes the second control message sent by the second box The protocol used.
在另一种可能的实现方式中,该第一盒子为主时标盒子,该发送模块还用于:向该第二盒子发送时标通告消息,该时标通告消息中包括该第一盒子ID以及该第一线卡盒子的 时标,以便于该第二盒子根据该第一盒子的时标同步自己的时标。In another possible implementation manner, the first box is the main time stamp box, and the sending module is further configured to: send a time stamp notification message to the second box, and the time stamp notification message includes the first box ID And the time scale of the first line card box, so that the second box synchronizes its own time scale according to the time scale of the first box.
在另一种可能的实现方式中,还包括:In another possible implementation, it also includes:
打开模块,用于打开所述第一盒子到该第二盒子的通道。The opening module is used to open the passage from the first box to the second box.
在另一种可能的实现方式中,该接收模块具体用于:接收该第二盒子广播发送的第三消息,该第三消息中包括该第二盒子的交换网接口卡标识FIC ID和该第二盒子的端口数量;In another possible implementation manner, the receiving module is specifically configured to: receive a third message broadcasted and sent by the second box, and the third message includes the FIC ID of the switching network interface card of the second box and the second box. Number of ports of the second box;
该打开模块具体用于:根据该第三消息打开该第一盒子到该第二盒子的通道。The opening module is specifically configured to: open the channel from the first box to the second box according to the third message.
在另一种可能的实现方式中,该发送模块还用于:向该第二盒子单播发送第四消息,该第四消息中包括该第一盒子的FIC ID和该第一盒子的端口数量,以便于该第二盒子根据该第四消息打开该第二盒子到该第一盒子的通道。In another possible implementation, the sending module is further configured to unicast a fourth message to the second box, the fourth message including the FIC ID of the first box and the number of ports of the first box , So that the second box opens the channel from the second box to the first box according to the fourth message.
在另一种可能的实现方式中,该第一盒子和该第二盒子为线卡盒子,该线卡盒子用于负责报文的处理和转发。In another possible implementation manner, the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
在另一种可能的实现方式中,该管控服务器位于线卡盒子或交换盒子的处理器上,该交换盒子用于承担交换功能。In another possible implementation manner, the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
在另一种可能的实现方式中,该接收模块还用于:接收该第二盒子发送的第二管控消息,该第二管控消息的目的IP地址和/或目的MAC地址为该管控服务器的IP地址和/或MAC地址。In another possible implementation, the receiving module is further configured to: receive a second management and control message sent by the second box, and the destination IP address and/or destination MAC address of the second management and control message is the IP of the management and control server Address and/or MAC address.
第四方面,提供了一种第二盒子,该第二盒子包括:In a fourth aspect, a second box is provided, and the second box includes:
接收模块,用于接收该第一盒子发送的第二消息,该第二消息中包括该管控服务器的信息以及指示信息,其中,该管控服务器的信息包括该管控服务器的IP地址和/或MAC地址,该指示信息指示该第一盒子为代理盒子;The receiving module is configured to receive a second message sent by the first box, the second message includes information and indication information of the management and control server, wherein the information of the management and control server includes the IP address and/or MAC address of the management and control server , The instruction information indicates that the first box is a proxy box;
建立模块,用于建立代理信息,该代理信息中包括代理盒子标识ID、该管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址;The establishment module is used to establish agent information, the agent information includes the agent box identification ID, the Internet Protocol IP address of the management and control server, and/or the media access control MAC address;
发送模块,用于根据该代理信息中该代理盒子标识ID为第一盒子,将第二管控消息发送给该第一盒子,该第二管控消息的目的IP地址和/或目的MAC地址为该管控服务器的IP地址和/或MAC地址。The sending module is used to send a second management and control message to the first box based on the proxy box identification ID in the proxy information. The destination IP address and/or destination MAC address of the second management and control message is the management and control message. The IP address and/or MAC address of the server.
在一种可能的实现方式中,该第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息。In a possible implementation, the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
在另一种可能的实现方式中,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。In another possible implementation, the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages, where the hardware messages include: the second box The hardware information and hardware status information reported by the management and control server, the hardware information includes the model of the control chip in the second box, the number of interfaces in the second box, and the hardware status information includes Fault interface information, the protocol message includes the protocol used by the second box to send the second management and control message.
在另一种可能的实现方式中,该发送模块还用于:向该第一盒子发送第一消息,该第一消息中包括该第二盒子的标识、该第二盒子中控制芯片的信息,以便于该第一盒子根据该第一消息建立第一转发表项,该第一转发表项用于该第一盒子将该管控服务器发送的第一管控消息转发给该第二盒子。In another possible implementation manner, the sending module is further configured to: send a first message to the first box, the first message including the identifier of the second box and the information of the control chip in the second box, So that the first box establishes a first forwarding entry according to the first message, and the first forwarding entry is used by the first box to forward the first management and control message sent by the management and control server to the second box.
在另一种可能的实现方式中,所述第一管控消息为不分片的消息述所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、 表项消息,In another possible implementation manner, the first management and control message is a non-fragmented message. The first management and control message includes one or more of the following: software version message, resource configuration message, service configuration message , Device management message, entry message,
其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content The addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
在另一种可能的实现方式中,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。In another possible implementation manner, the first forwarding entry includes the identifier of the second box, the information of the control chip, and the first box sends the first management control to the second box. The port number of the message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
在另一种可能的实现方式中,该控制芯片的信息包括该第二盒子中该控制芯片的IP地址和/或该控制芯片的端口号。In another possible implementation manner, the information of the control chip includes the IP address of the control chip and/or the port number of the control chip in the second box.
在另一种可能的实现方式中,该第一盒子为主时标盒子,In another possible implementation, the first box is the main time-scaled box,
该接收模块还用于:接收该第一盒子广播的时标通告消息,该时标通告消息中包括该第一盒子ID以及该第一线卡盒子的时标;The receiving module is further configured to: receive a time stamp notification message broadcast by the first box, where the time stamp notification message includes the first box ID and the time stamp of the first line card box;
还包括:同步模块,用于根据该第一盒子的时标同步自己的时标。It also includes: a synchronization module for synchronizing its own time scale according to the time scale of the first box.
在另一种可能的实现方式中,还包括:In another possible implementation, it also includes:
打开模块,用于打开该第二盒子到该第一盒子的通道。The opening module is used to open the passage from the second box to the first box.
在另一种可能的实现方式中,该接收模块还用于:接收该第一盒子发送的第四消息,该第四消息中包括该第一盒子的FIC ID和该第一盒子的端口数量;In another possible implementation manner, the receiving module is further configured to: receive a fourth message sent by the first box, where the fourth message includes the FIC ID of the first box and the number of ports of the first box;
该打开模块具体用于:根据该第四消息打开该第二盒子到该第一盒子的通道。The opening module is specifically configured to: open the channel from the second box to the first box according to the fourth message.
在另一种可能的实现方式中,该发送模块还用于:向该第一盒子发送第三消息,该第三消息中包括该第二盒子的交换网接口卡标识FIC ID和该第二盒子的端口数量,以便于该第一盒子根据该第三消息打开该第一盒子到该第二盒子的通道。In another possible implementation manner, the sending module is further configured to: send a third message to the first box, the third message including the FIC ID of the switching network interface card of the second box and the second box The number of ports to facilitate the first box to open the channel from the first box to the second box according to the third message.
在另一种可能的实现方式中,该第一盒子和该第二盒子为线卡盒子,该线卡盒子用于负责报文的处理和转发。In another possible implementation manner, the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding packets.
在另一种可能的实现方式中,该管控服务器位于线卡盒子或交换盒子的处理器上,该交换盒子用于承担交换功能。In another possible implementation manner, the management and control server is located on the processor of the line card box or the switch box, and the switch box is used to undertake the switching function.
在另一种可能的实现方式中,该接收模块还用于:接收该第一盒子发送的第一管控消息,第一管控消息中包括该第二盒子的信息。In another possible implementation manner, the receiving module is further configured to: receive a first management and control message sent by the first box, and the first management and control message includes information about the second box.
第五方面,提供了一种计算机设备,包括:至少一个处理器和存储器,其中该存储器用于存储计算机程序,该至少一个处理器用于从存储器中调用并运行该计算机程序,使得执行上述第一方面或第一方面任意一种可能的实现方式提供的方法。In a fifth aspect, a computer device is provided, including: at least one processor and a memory, where the memory is used to store a computer program, and the at least one processor is used to call and run the computer program from the memory to execute the first Aspect or any one of the possible implementations of the first aspect.
可选地,在具体实现中,该处理器的个数不做限制。该处理器是通用处理器,可选地,该通用处理器能够通过硬件来实现或通过软件来实现。当通过硬件实现时,该处理器是逻辑电路、集成电路等;当通过软件来实现时,该处理器是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器集成在处理器中,位于该处理器之外,独立存在。Optionally, in a specific implementation, the number of processors is not limited. The processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software. When implemented by hardware, the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
第六方面,提供了一种计算机设备,包括:至少一个处理器和存储器,其中该存储器用于存储计算机程序,该至少一个处理器用于从存储器中调用并运行该计算机程序,使得 执行上述第二方面或第二方面任意一种可能的实现方式提供的方法。In a sixth aspect, a computer device is provided, including: at least one processor and a memory, where the memory is used to store a computer program, and the at least one processor is used to call and run the computer program from the memory, so that the second Aspect or the method provided by any possible implementation manner of the second aspect.
可选地,在具体实现中,该处理器的个数不做限制。该处理器是通用处理器,可选地,该通用处理器能够通过硬件来实现或通过软件来实现。当通过硬件实现时,该处理器是逻辑电路、集成电路等;当通过软件来实现时,该处理器是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器集成在处理器中,位于该处理器之外,独立存在。Optionally, in a specific implementation, the number of processors is not limited. The processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software. When implemented by hardware, the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
第七方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述第一方面或第一方面任意一种可能的实现方式中的方法。In a seventh aspect, a computer program product is provided, the computer program product includes: computer program code, when the computer program code runs on a computer, the computer executes the first aspect or any one of the possible implementations of the first aspect The method in the way.
第八方面,提供了一种计算机程序产品,该计算机程序产品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述第二方面或第二方面任意一种可能的实现方式中的方法。In an eighth aspect, a computer program product is provided, the computer program product includes: computer program code, when the computer program code runs on a computer, the computer executes the second aspect or any possible implementation of the second aspect The method in the way.
第九方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述第一方面或第一方面任意一种可能的实现方式中的方法。这些计算机可读存储包括但不限于如下的一个或者多个:只读存储器(read-only memory,ROM)、可编程ROM(programmable ROM,PROM)、可擦除的PROM(erasable PROM,EPROM)、Flash存储器、电EPROM(electrically EPROM,EEPROM)以及硬盘驱动器(hard drive)。In a ninth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores computer program code. When the computer program code runs on a computer, the computer executes the first aspect or any one of the first aspects. One of the possible implementation methods. These computer-readable storages include but are not limited to one or more of the following: read-only memory (ROM), programmable ROM (programmable ROM, PROM), erasable PROM (erasable PROM, EPROM), Flash memory, electrically EPROM (electrically EPROM, EEPROM), and hard drive.
第十方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得计算机执行上述第二方面或第二方面任意一种可能的实现方式中的方法。这些计算机可读存储包括但不限于如下的一个或者多个:只读存储器(read-only memory,ROM)、可编程ROM(programmable ROM,PROM)、可擦除的PROM(erasable PROM,EPROM)、Flash存储器、电EPROM(electrically EPROM,EEPROM)以及硬盘驱动器(hard drive)。In a tenth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores computer program code. When the computer program code runs on a computer, the computer executes the second aspect or any one of the second aspects. One of the possible implementation methods. These computer-readable storages include but are not limited to one or more of the following: read-only memory (ROM), programmable ROM (programmable ROM, PROM), erasable PROM (erasable PROM, EPROM), Flash memory, electrically EPROM (electrically EPROM, EEPROM), and hard drive.
第十一方面,提供一种芯片,该芯片包括处理器与数据接口,其中,处理器通过该数据接口读取存储器上存储的指令,以执行第一方面或第一方面任意一种可能的实现方式中的方法。In an eleventh aspect, a chip is provided. The chip includes a processor and a data interface, wherein the processor reads instructions stored in the memory through the data interface to execute the first aspect or any possible implementation of the first aspect The method in the way.
在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或可编辑逻辑器件(programmable logic device,PLD)的形式实现。In the specific implementation process, the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
可选地,在具体实现中,该处理器的个数不做限制。该处理器是通用处理器,可选地,该通用处理器能够通过硬件来实现或通过软件来实现。当通过硬件实现时,该处理器是逻辑电路、集成电路等;当通过软件来实现时,该处理器是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器集成在处理器中,位于该处理器之外,独立存在。Optionally, in a specific implementation, the number of processors is not limited. The processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software. When implemented by hardware, the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
第十二方面,提供一种芯片,该芯片包括处理器与数据接口,其中,处理器通过该数据接口读取存储器上存储的指令,以执行第二方面或第二方面任意一种可能的实现方式中的方法。In a twelfth aspect, a chip is provided. The chip includes a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the second aspect or any possible implementation of the second aspect The method in the way.
在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控 制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或可编辑逻辑器件(programmable logic device,PLD)的形式实现。In the specific implementation process, the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
可选地,在具体实现中,该处理器的个数不做限制。该处理器是通用处理器,可选地,该通用处理器能够通过硬件来实现或通过软件来实现。当通过硬件实现时,该处理器是逻辑电路、集成电路等;当通过软件来实现时,该处理器是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器集成在处理器中,位于该处理器之外,独立存在。Optionally, in a specific implementation, the number of processors is not limited. The processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software. When implemented by hardware, the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
附图说明Description of the drawings
图1是本申请实施例提供的一种计算机设备100的架构示意图。FIG. 1 is a schematic structural diagram of a computer device 100 provided by an embodiment of the present application.
图2是本申请实施例提供的一种适用于本申请实施例的系统架构的示意图。FIG. 2 is a schematic diagram of a system architecture suitable for an embodiment of the present application provided by an embodiment of the present application.
图3是本申请实施例提供的一种数据传输的方法的示意性流程图。FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
图4是本申请实施例提供的另一种数据传输的方法的示意性流程图。FIG. 4 is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
图5是本申请实施例提供的一种打开新线卡盒子和其他线卡盒子之间的通道的示意图。Fig. 5 is a schematic diagram of opening a channel between a new line card box and other line card boxes according to an embodiment of the present application.
图6是本申请实施例提供的一种实现系统中的线卡盒子和管控服务器之间的通信连接的示意图。Fig. 6 is a schematic diagram of a communication connection between a line card box and a management and control server in the system provided by an embodiment of the present application.
图7是本申请实施例提供的一种盒子之间进行时标同步的示意图。Fig. 7 is a schematic diagram of time stamp synchronization between boxes provided by an embodiment of the present application.
图8是本申请实施例提供的一种在有多个主时标盒子时进行时标同步的方法的示意性流程图。FIG. 8 is a schematic flowchart of a method for time stamp synchronization when there are multiple master time stamp boxes provided by an embodiment of the present application.
图9是本申请实施例提供的另一种在有多个主时标盒子时进行时标同步的方法的示意性流程图。FIG. 9 is a schematic flowchart of another method for time stamp synchronization when there are multiple master time stamp boxes according to an embodiment of the present application.
图10是本申请实施例提供的一种第一盒子1000的示意性框图。FIG. 10 is a schematic block diagram of a first box 1000 provided by an embodiment of the present application.
图11是本申请实施例提供的一种第二盒子1100的示意性框图。FIG. 11 is a schematic block diagram of a second box 1100 provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
本申请将围绕包括多个设备、组件、模块等的系统来呈现各个方面、实施例或特征。应当理解和明白的是,各个系统可以包括另外的设备、组件、模块等,并且/或者可以并不包括结合附图讨论的所有设备、组件、模块等。此外,还可以使用这些方案的组合。This application will present various aspects, embodiments or features around a system including multiple devices, components, modules, etc. It should be understood and understood that each system may include additional devices, components, modules, etc., and/or may not include all the devices, components, modules, etc. discussed in conjunction with the accompanying drawings. In addition, a combination of these schemes can also be used.
另外,在本申请实施例中,“示例的”、“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用示例的一词旨在以具体方式呈现概念。In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as an "example" in this application should not be construed as being more preferable or advantageous than other embodiments or design solutions. Rather, the term example is used to present the concept in a concrete way.
本申请实施例中,“相应的(corresponding,relevant)”和“对应的(corresponding)”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。In the embodiments of the present application, "corresponding (relevant)" and "corresponding" can sometimes be used interchangeably. It should be noted that the meanings to be expressed are the same when the difference is not emphasized.
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术 问题,同样适用。The network architecture and business scenarios described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. Those of ordinary skill in the art will know that with the network With the evolution of architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References described in this specification to "one embodiment" or "some embodiments", etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects before and after are in an "or" relationship. "The following at least one item (a)" or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a). For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple .
本申请实施例提供的数据传输的方法可应用于计算机设备,计算机设备也可以被称为计算机系统,包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。该硬件层包括处理单元、内存和内存控制单元等硬件,随后对该硬件的功能和结构进行详细说明。该操作系统是任意一种或多种通过进程(process)实现业务处理的计算机操作系统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。该应用层包含浏览器、通讯录、文字处理软件、即时通信软件等应用程序。并且,在本申请实施例中,可选地,该计算机系统是智能手机等手持设备,或个人计算机等终端设备,本申请并未特别限定,只要能够通过本申请实施例提供的数据传输的方法,在管控服务器统一管控的scale out交换网络中实现带内管控即可。本申请实施例提供的数据传输的方的执行主体可以是计算机系统,或者,是计算机系统中能够调用程序并执行程序的功能模块。The data transmission method provided in the embodiments of this application can be applied to computer equipment, which can also be referred to as a computer system, including a hardware layer, an operating system layer running on the hardware layer, and applications running on the operating system layer Floor. The hardware layer includes hardware such as processing unit, memory, and memory control unit, and the function and structure of the hardware are described in detail later. The operating system is any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. Moreover, in the embodiments of the present application, optionally, the computer system is a handheld device such as a smart phone, or a terminal device such as a personal computer. , In-band management and control can be implemented in a scale out switching network that is uniformly controlled by the management and control server. The execution subject of the data transmission party provided in the embodiments of the present application may be a computer system, or a functional module in the computer system that can call and execute the program.
图1是本申请实施例提供的一种计算机设备100的架构示意图。图1所示的计算机设备100包括:至少一个处理器110和内存120。FIG. 1 is a schematic structural diagram of a computer device 100 provided by an embodiment of the present application. The computer device 100 shown in FIG. 1 includes: at least one processor 110 and a memory 120.
可选地,计算机设备100还包括系统总线,其中,处理器110和内存120分别与系统总线连接。处理器110能够通过系统总线访问内存120,例如,处理器110能够通过系统总线在内存120中进行数据读写或代码执行。该系统总线是快捷外设部件互连标准(peripheral component interconnect express,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述系统总线分为地址总线、数据总线、控制总线等。为便于表示,图1中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Optionally, the computer device 100 further includes a system bus, where the processor 110 and the memory 120 are respectively connected to the system bus. The processor 110 can access the memory 120 through the system bus. For example, the processor 110 can perform data reading and writing or code execution in the memory 120 through the system bus. The system bus is a peripheral component interconnect express (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus is divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in FIG. 1, but it does not mean that there is only one bus or one type of bus.
其中,处理器110的功能主要是解释计算机程序的指令(或者说,代码)以及处理计算机软件中的数据。其中,该计算机程序的指令以及计算机软件中的数据能够保存在内存120或者缓存116中。Among them, the function of the processor 110 is mainly to interpret instructions (or codes) of a computer program and process data in computer software. Wherein, the instructions of the computer program and the data in the computer software can be stored in the memory 120 or the cache 116.
在本申请实施例中,处理器110可能是集成电路芯片,具有信号的处理能力。作为示例而非限定,处理器110是通用处理器、数字信号处理器(digital signal processor,DSP)、 专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。其中,通用处理器是微处理器等。例如,该处理器110是中央处理单元(central processing unit,CPU)。In the embodiment of the present application, the processor 110 may be an integrated circuit chip with signal processing capability. As an example and not a limitation, the processor 110 is a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA). ) Or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Among them, general-purpose processors are microprocessors and so on. For example, the processor 110 is a central processing unit (central processing unit, CPU).
其中,每个处理器110包括至少一个处理单元112和内存控制单元114。Among them, each processor 110 includes at least one processing unit 112 and a memory control unit 114.
可选地,处理单元112也称为核心(core)或内核,是处理器最重要的组成部分。处理单元112是由单晶硅以一定的生产工艺制造出来的,处理器所有的计算、接受命令、存储命令、处理数据都由核心执行。处理单元分别独立地运行程序指令,利用并行计算的能力加快程序的运行速度。各种处理单元都具有固定的逻辑结构,例如,处理单元包括例如,一级缓存、二级缓存、执行单元、指令级单元和总线接口等逻辑单元。Optionally, the processing unit 112 is also called a core (core) or a core, which is the most important component of the processor. The processing unit 112 is manufactured by monocrystalline silicon with a certain production process, and all calculations, receiving commands, storing commands, and processing data of the processor are executed by the core. The processing units run program instructions independently, and use parallel computing capabilities to speed up the program's running speed. Various processing units have a fixed logical structure. For example, the processing unit includes, for example, logic units such as a first-level cache, a second-level cache, an execution unit, an instruction-level unit, and a bus interface.
内存控制单元114用于控制内存120与处理单元112之间的数据交互。具体地说,内存控制单元114从处理单元112接收内存访问请求,并基于该内存访问请求控制针对内存的访问。作为示例而非限定,在本申请实施例中,内存控制单元是内存管理单元(memory management unit,MMU)等器件。The memory control unit 114 is used to control data interaction between the memory 120 and the processing unit 112. Specifically, the memory control unit 114 receives a memory access request from the processing unit 112, and controls access to the memory based on the memory access request. As an example and not a limitation, in the embodiment of the present application, the memory control unit is a device such as a memory management unit (MMU).
在本申请实施例,各内存控制单元114通过系统总线进行针对内存120的寻址。并且在系统总线中配置仲裁器(未图示),该仲裁器负责处理和协调多个处理单元112的竞争访问。In the embodiment of the present application, each memory control unit 114 performs addressing for the memory 120 through the system bus. In addition, an arbiter (not shown) is configured in the system bus, and the arbiter is responsible for processing and coordinating the competing access of multiple processing units 112.
在本申请实施例中,处理单元112和内存控制单元114通过芯片内部的连接线,例如地址线,通信连接,从而实现处理单元112和内存控制单元114之间的通信。In the embodiment of the present application, the processing unit 112 and the memory control unit 114 are communicatively connected through a connection line inside the chip, such as an address line, so as to realize the communication between the processing unit 112 and the memory control unit 114.
可选地,每个处理器110还包括缓存116,其中,缓存是数据交换的缓冲区(称作cache)。当处理单元112要读取数据时,会首先从缓存中查找需要的数据,如果找到了则直接执行,找不到的话则从内存中找。由于缓存的运行速度比内存快得多,故缓存的作用就是帮助处理单元112更快地运行。Optionally, each processor 110 further includes a cache 116, where the cache is a buffer for data exchange (referred to as a cache). When the processing unit 112 wants to read data, it will first find the required data in the cache, if it finds it, execute it directly, and if it cannot find it, it will find it from the memory. Since the running speed of the cache is much faster than that of the memory, the function of the cache is to help the processing unit 112 run faster.
内存(memory)120能够为计算机设备100中的进程提供运行空间,例如,内存120中保存用于生成进程的计算机程序(具体地说,是程序的代码)。计算机程序被处理器运行而生成进程后,处理器在内存120中为该进程分配对应的存储空间。进一步的,上述存储空间进一步包括文本段、初始化数据段、位初始化数据段、栈段、堆段等等。内存120在上述进程对应的存储空间中保存进程运行期间产生的数据,例如,中间数据,或过程数据等等。The memory (memory) 120 can provide a running space for the processes in the computer device 100. For example, the memory 120 stores a computer program (specifically, the code of the program) for generating the process. After the computer program is run by the processor to generate a process, the processor allocates a corresponding storage space for the process in the memory 120. Further, the aforementioned storage space further includes a text segment, an initialization data segment, a bit initialization data segment, a stack segment, a heap segment, and so on. The memory 120 stores data generated during the running of the process, such as intermediate data, or process data, in the storage space corresponding to the above process.
可选地,内存也称为内存储器,其作用是用于暂时存放处理器110中的运算数据,以及与硬盘等外部存储器交换的数据。只要计算机在运行中,处理器110就会把需要运算的数据调到内存中进行运算,当运算完成后处理单元112再将结果传送出来。Optionally, the memory is also referred to as internal memory, and its function is to temporarily store operational data in the processor 110 and data exchanged with an external memory such as a hard disk. As long as the computer is running, the processor 110 transfers the data to be calculated into the memory for calculation, and the processing unit 112 transmits the result after the calculation is completed.
作为示例而非限定,在本申请实施例中,内存120是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、 同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的内存120旨在包括但不限于这些和任意其它适合类型的存储器。As an example and not a limitation, in the embodiment of the present application, the memory 120 is a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, non-volatile memory is read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically erasable Except for programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory is random access memory (RAM), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), and synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) ) And direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory 120 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
应理解,以上列举的计算机设备100的结构仅为示例性说明,本申请并未限定于此,本申请实施例的计算机设备100包括现有技术中计算机系统中的各种硬件,例如,计算机设备100还包括除内存120以外的其他存储器,例如,磁盘存储器等。It should be understood that the structure of the computer device 100 listed above is only an exemplary description, and the present application is not limited thereto. The computer device 100 in the embodiment of the present application includes various hardware in a computer system in the prior art, for example, a computer device. 100 also includes other storage than the memory 120, for example, a disk storage and the like.
为了便于理解,下面先对本申请实施例可能涉及的相关术语和概念进行介绍。To facilitate understanding, the following first introduces related terms and concepts that may be involved in the embodiments of the present application.
1、框式架构路由器1. Box-based router
框式架构路由器包括主控板、交换处理单元(switch fabric unit,SFU)以及线路处理单元(line process unit,LPU)。其中,SFU即交换网版,具有交换功能。LPU即接口板,具有业务的处理和转发功能。主控板主要负责对系统的控制和管理工作,例如,带外通道管理SFU以及LPU。The frame-type router includes a main control board, a switch fabric unit (SFU), and a line processing unit (LPU). Among them, SFU is the switching network version, which has the switching function. The LPU is the interface board, which has service processing and forwarding functions. The main control board is mainly responsible for the control and management of the system, for example, the out-of-band channel management SFU and LPU.
应理解,带外通道是由主控板上集成的局域网交换(local area network switch,LAN switch)模块新建的一个网络,管控信号流(例如,信令信号流、操作维护信号流、时钟信号流)会经过该带外通道对SFU以及LPU实行带外管理。It should be understood that the out-of-band channel is a new network created by the local area network switch (LAN switch) module integrated on the main control board to control signal flow (for example, signaling signal flow, operation and maintenance signal flow, and clock signal flow). ) Will perform out-of-band management on the SFU and LPU through the out-of-band channel.
还应理解,LAN switch模块是一种具有局域网交换机功能的模块。It should also be understood that the LAN switch module is a module with the function of a local area network switch.
2、线卡盒子2. Line card box
线卡盒子在网络中主要承担交换功能,类似于框式架构路由器中的交换处理单元SFU,具有交换功能。The line card box mainly undertakes the switching function in the network, which is similar to the switching processing unit SFU in the frame-based router, which has the switching function.
3、交换盒子3. Exchange box
交换盒子在网络中主要承担业务的处理和转发,类似于框式架构路由器中的线路处理单元LPU,具有业务的处理和转发功能。The switch box is mainly responsible for service processing and forwarding in the network, similar to the line processing unit LPU in the frame-based router, with service processing and forwarding functions.
应理解,线卡盒子和交换盒子之间组成的网络可以用于数据包的传输,具体的,一个交换盒子的数据包可以通过该网络中的一个或多个线卡盒子传输至其他交换盒子。该数据可以是数据面的消息,或者还可以是管理面的管控消息,本申请对此不做具体限定。It should be understood that the network formed between the line card box and the switch box can be used for data packet transmission. Specifically, the data packet of one switch box can be transmitted to other switch boxes through one or more line card boxes in the network. The data may be a message on the data plane, or may also be a control message on the management plane, which is not specifically limited in this application.
4、管控服务器4. Control server
负责对线卡盒子和交换盒子进行管理和控制,相当于框式路由器中主控板的角色。Responsible for the management and control of the line card box and the switch box, which is equivalent to the role of the main control board in the frame router.
管控服务器的管理功能可以包括但不限于以下中的一种或多种:系统内设备的上下线,单板的上下电,端口的打开和关闭,系统内所有单板的软件版本管理和软件的分发。The management functions of the control server can include, but are not limited to, one or more of the following: the online and offline of devices in the system, the power-on and power-off of boards, the opening and closing of ports, the management of software versions and software revisions of all boards in the system distribution.
管控服务器的控制功能可以包括但不限于以下中的一种或多种:提供统一的配置界面,向系统内各设备下发配置,配置保存和恢复,运行各种通信协议,并生产表项下发到系统各设备中,控制整个系统单的转发行为。The control function of the control server can include, but is not limited to, one or more of the following: provide a unified configuration interface, send configuration to each device in the system, save and restore configuration, run various communication protocols, and produce items under the table Send to each device of the system to control the forwarding behavior of the entire system.
5、管控消息5. Control messages
用来管理和控制整个路由器系统的消息,区别于路由器转发的数据。如:系统内设备上下线,通告给管控服务器产生的消息,管控服务器管理系统内设备产生的消息;管控服务器比对系统内各设备的软件版本,下发软件版本所产生的数据;管控服务器下发的配置数据,通信协议生成的表项数据。The message used to manage and control the entire router system is different from the data forwarded by the router. For example: devices in the system go online and offline, notify the messages generated by the management and control server, and the management server manages the messages generated by the devices in the system; the management and control server compares the software version of each device in the system, and distributes the data generated by the software version; the management server downloads The configuration data sent, the entry data generated by the communication protocol.
6、控制芯片6. Control chip
线卡盒子和交换盒子包含了两部分的芯片,一部分是硬转发的芯片,一部分是管理和控制的芯片。本申请实施例中,管理和控制的芯片也可以称为控制芯片。The line card box and the switch box contain two parts of the chip, one is the hard forwarding chip, and the other is the management and control chip. In the embodiments of the present application, the management and control chip may also be referred to as a control chip.
7、带内传输7. In-band transmission
管控消息一般不是通过数据面的网络传输,而是新建一套单独的网络传输,这种是带外传输;管控消息从管控服务器送到控制芯片,直接使用数据面的网络,称为带内传输。Control messages are generally not transmitted through the data plane network, but a new set of separate network transmission, which is out-of-band transmission; control messages are sent from the control server to the control chip, directly using the data plane network, called in-band transmission .
8、时标同步8. Time stamp synchronization
即时间同步,线卡盒子和交换盒子组成的带内网络,为支持更均匀的负载分担,数据包传输时会分片和重组,分片生成时会携带一个生成的时间,中间网络会根据分片携带的时间,对分片进行排序,减小分片重组难度。这要求scale-out系统中设备的时间是同步的,如果时间不同步,将无法支持分片重组,数据面无法联通。而带内传输的管控消息,是通过发送无需分片的数据包,避免分片重组,得以在带内通道传输部分管控信息。That is, time synchronization, the in-band network composed of line card boxes and switching boxes, in order to support more even load sharing, data packets will be fragmented and reorganized during transmission, fragment generation will carry a generation time, and the intermediate network will be based on the distribution. The time carried by the fragments is sorted to reduce the difficulty of fragment reorganization. This requires that the time of the equipment in the scale-out system is synchronized. If the time is not synchronized, fragmentation and reorganization will not be supported, and the data plane cannot be connected. The in-band transmission of control messages is to send data packets that do not need to be fragmented to avoid fragmentation and recombination, so that part of the control information can be transmitted in the in-band channel.
9、盒式架构路由器9. Box architecture router
盒式架构路由器例如可以是由管控服务器统一管控的scale out交换网络,也可以简称为scale out路由器。The box architecture router may be, for example, a scale out switching network that is uniformly controlled by a management and control server, or may be referred to as a scale out router for short.
应理解,scale out路由器是由scale out架构的网络和上述管控服务器组成的路由器系统。其中,scale out架构的网络包括上述线卡盒子和上述交换盒子。It should be understood that a scale out router is a router system composed of a scale out architecture network and the aforementioned management and control server. Among them, the scale-out architecture network includes the above-mentioned line card box and the above-mentioned switch box.
还应理解,管控服务器可以由某台服务器(server)实现,或者,还可以由交换盒子或线卡盒子中的任意一个实现,本申请对此不做限定。具体的,以管控服务器由交换盒子或线卡盒子中的任意一个实现为例,管控服务器可以位于交换盒子的中央处理器(center process unit,CPU)上,或位于线卡盒子的CPU上。It should also be understood that the management and control server may be implemented by a certain server, or may also be implemented by any one of an exchange box or a line card box, which is not limited in this application. Specifically, taking the control server implemented by any one of the switch box or the line card box as an example, the control server may be located on the central processing unit (CPU) of the switch box or on the CPU of the line card box.
需要说明的是,管控服务器也可简称为服务器,下面中的服务器也就是管控服务器,主要负责整个scale out路由器系统的控制和管理工作。It should be noted that the management and control server can also be referred to as a server for short. The server in the following is the management and control server, which is mainly responsible for the control and management of the entire scale out router system.
图2是本申请实施例提供的一种可能的scale out路由器的示意性框图。如图2所示,该scale out路由器中包括多个交换盒子210、多个线卡盒子220以及管控服务器230。Fig. 2 is a schematic block diagram of a possible scale-out router provided by an embodiment of the present application. As shown in FIG. 2, the scale out router includes a plurality of switching boxes 210, a plurality of line card boxes 220, and a management and control server 230.
其中,多个线卡盒子220之间通过交换盒子210连接。具体的,多个线卡盒子220之间可以是通过盒子间的数据平面连线240连接。管控服务器230接在线卡盒子220上,通过线卡盒子220的面板口连线250连接。Among them, the multiple line card boxes 220 are connected by a switch box 210. Specifically, the multiple line card boxes 220 may be connected by a data plane connection 240 between the boxes. The management and control server 230 is connected to the line card box 220, and is connected through the panel port connection 250 of the line card box 220.
应理解,线卡盒子220相互之间不直连,交换盒子210相互之间不直连,管控服务器230不与所有的盒子直连。It should be understood that the line card boxes 220 are not directly connected to each other, the exchange boxes 210 are not directly connected to each other, and the control server 230 is not directly connected to all boxes.
相关的技术方案中,在scale out路由器中,管控服务器需要负责整个系统的管理和控制工作。由于管控服务器230不与所有的盒子直连,因此,该方案中额外部署了一个交换机,该交换机通过新建的网络实现管控服务器和各盒子(例如,scale out路由器中的多个交换盒子210以及多个线卡盒子220)直连。该新建的网络为管控服务器和各盒子之间的通信提供了带外通道,管控服务器可以通过该带外通道对各盒子进行带外的管理和控制。In related technical solutions, in the scale out router, the management and control server needs to be responsible for the management and control of the entire system. Since the management and control server 230 is not directly connected to all boxes, an additional switch is deployed in this solution. The switch implements the management and control server and each box (for example, multiple switch boxes 210 and multiple A line card box 220) is directly connected. The newly built network provides an out-of-band channel for the communication between the management and control server and each box. The management and control server can perform out-of-band management and control of each box through the out-of-band channel.
由于scale out路由器可支持较多数量的盒子,当scale out路由器中线卡盒子和交换盒子的数量较多,场地部署较大时,带外通道为工程部署提高了复杂度,增加了客户的建设、维护成本。Since scale out routers can support a large number of boxes, when the number of line card boxes and switching boxes in the scale out router is large, and the site deployment is large, the out-of-band channel increases the complexity of the project deployment and increases the customer’s construction, Maintenance costs.
本申请实施例提供了一种数据传输的方法,在scale out路由器系统中,管控服务器可 以直接通过盒子面板上的端口形成的带内通道向各个盒子发送管理和控制消息,实现带内管控通信。而无需额外建立和维护一套外带网络来发送管理和控制消息,从而可以降低施工、维护的成本和复杂度。The embodiment of the application provides a data transmission method. In a scale out router system, the management and control server can directly send management and control messages to each box through the in-band channel formed by the port on the box panel to achieve in-band management and control communication. There is no need to build and maintain an additional external network to send management and control messages, which can reduce the cost and complexity of construction and maintenance.
下面结合图3,对本申请实施例提供的一种数据传输的方法进行详细描述。该方法应用于由管控服务器统一管控的scale out交换网络中,由上述计算机设备执行。如图3所示,该方法可以包括步骤310-330,下面分别对步骤310-330进行详细描述。The following describes in detail a data transmission method provided by an embodiment of the present application with reference to FIG. 3. The method is applied to a scale out switching network that is uniformly controlled by a management and control server, and is executed by the above-mentioned computer equipment. As shown in Fig. 3, the method may include steps 310-330, and steps 310-330 will be described in detail below.
步骤310:第一盒子接收所述管控服务器发送的第一管控消息。Step 310: The first box receives the first management and control message sent by the management and control server.
本申请实施例中,管控服务器主要负责整个scale out路由器系统的控制和管理工作,第一管控消息为所述管控服务器对所述第二盒子进行管理和控制时所发送的消息。例如,负责整个系统的软件版本管理,配置管理,设备管理,控制协议等工作。作为一个示例,该管控服务器需要对第二盒子进行管理和控制,其可以向第二盒子发送第一管控消息。管控服务器向第二盒子发送的第一管控消息用于对第二盒子进行管理和控制。In the embodiment of the present application, the management and control server is mainly responsible for the control and management of the entire scale out router system, and the first management and control message is a message sent when the management and control server manages and controls the second box. For example, responsible for the software version management, configuration management, equipment management, control protocol, etc. of the entire system. As an example, the management and control server needs to manage and control the second box, and it can send the first management and control message to the second box. The first management and control message sent by the management and control server to the second box is used to manage and control the second box.
作为示例,本申请中的第一管控消息可以包括但不限于以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息。As an example, the first management control message in this application may include, but is not limited to, one or more of the following: software version message, resource configuration message, service configuration message, device management message, and table entry message.
其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, and the configuration information includes one or more of the following: memory division of the control chip, configuration of interface addresses, ternary The content addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
应理解,管控服务器向第二盒子发送的第一管控消息,需要发送至第二盒子的控制芯片,由第二盒子的控制芯片执行具体的管理和控制动作。It should be understood that the first management and control message sent by the management and control server to the second box needs to be sent to the control chip of the second box, and the control chip of the second box performs specific management and control actions.
具体的,如果第二盒子与管控服务器非直连,本申请实施例中管控服务器想要向第二盒子发送第一管控消息,需要选定一个代理盒子。管控服务器将向与其非直连的第二盒子发送第一管控消息时,可以先发送给代理盒子,并由该代理盒子转发给该第二盒子。应理解,如果第一盒子作为代理盒子,该第二盒子可以作为非代理盒子。Specifically, if the second box is not directly connected to the management and control server, in the embodiment of the present application, the management and control server wants to send the first management and control message to the second box, and it needs to select a proxy box. When the control server sends the first control message to the second box that is not directly connected to it, it can first send it to the proxy box, and the proxy box forwards it to the second box. It should be understood that if the first box is used as a proxy box, the second box can be used as a non-proxy box.
应理解,本申请实施例中,代理盒子可以直接与管控服务器之间发送管控消息,而非代理盒子与管控服务器之间不能直接发送管控消息。如果非代理盒子需要向管控服务器发送管控消息,或者管控服务器需要向非代理盒子发送管控消息,可以先发送给代理盒子,由代理盒子转发给非代理盒子或转发给管控服务器。It should be understood that, in the embodiment of the present application, the proxy box can directly send management and control messages with the management and control server, while the non-agent box and the management and control server cannot directly send management and control messages. If a non-agent box needs to send a control message to the control server, or the control server needs to send a control message to a non-agent box, it can be sent to the agent box first, and the agent box forwards it to the non-agent box or to the control server.
还应理解,上述管控消息可以是不分片的消息。在互联网协议中,当数据包比链路的最大传输单元大时,可以将该数据包分解成很多的足够小的片段,以便能够在该链路上传输。而本申请中的管控消息可以是不分片的消息,该管控消息不需要被分解成很多的足够小的片段便可在该链路上传输。It should also be understood that the foregoing management and control message may be a non-fragmented message. In the Internet protocol, when a data packet is larger than the maximum transmission unit of the link, the data packet can be broken down into many small enough fragments so as to be able to be transmitted on the link. However, the management and control message in this application may be a non-fragmented message, and the management and control message does not need to be decomposed into many small enough fragments to be transmitted on the link.
也就是说,在时标同步之前,上述管控消息可以是不分片的消息。在时标同步之后,该管控消息可以是分片的消息。具体的有关时标同步的方法,请参考下文中的描述,此处暂不详述。In other words, before the time stamp synchronization, the above-mentioned management and control message may be a non-fragmented message. After the time stamp is synchronized, the management and control message may be a fragmented message. For the specific method of time stamp synchronization, please refer to the description below, which will not be detailed here.
本申请中,选择与管控服务器直连的第一盒子作为代理盒子,该第一盒子负责通过面板口,例如,图2中的连线250接收管控服务器发送给第二盒子的第一管控消息,并通过 到第二盒子的通道(也可以称为scale out交换网络)发送给第二盒子。In this application, the first box directly connected to the control server is selected as the proxy box, and the first box is responsible for receiving the first control message sent by the control server to the second box through the panel port, for example, the connection 250 in FIG. And it is sent to the second box through the channel to the second box (also called a scale out switching network).
应理解,上述第一盒子,第二盒子可以是线卡盒子220,具体的有关线卡盒子的描述,请参见上文中的说明,此处不再赘述。It should be understood that the above-mentioned first box and the second box may be the line card box 220. For the specific description of the line card box, please refer to the above description, which will not be repeated here.
步骤320:第一盒子确定第一管控消息是发送给第二盒子的。Step 320: The first box determines that the first management and control message is sent to the second box.
第一盒子在接收到管控服务器发送的第一管控消息后,需要确定该第一管控消息是发送给哪个盒子的。具体的,第一管控消息中可以包括第二盒子的信息,第一盒子可以根据该第二盒子的信息确定该第一管控消息是发送给第二盒子的。After the first box receives the first management and control message sent by the management and control server, it needs to determine which box the first management and control message is sent to. Specifically, the first management and control message may include the information of the second box, and the first box may determine that the first management and control message is sent to the second box according to the information of the second box.
实现方式有种,一种可能的实现方式中,第一管控消息中包括第二盒子的标识,第一盒子可以根据该标识确定第一管控消息是发送给第二盒子的。另一种可能的实现方式中,第一管控消息中还包括第二盒子中控制芯片的信息,第一盒子可以根据该第二盒子中控制芯片的信息确定第一管控消息是发送给第二盒子的。There are several ways of implementation. In a possible implementation way, the first management and control message includes an identifier of the second box, and the first box can determine based on the identifier that the first management and control message is sent to the second box. In another possible implementation manner, the first management and control message also includes information about the control chip in the second box, and the first box can determine that the first management and control message is sent to the second box based on the information about the control chip in the second box. of.
作为示例,本申请中控制芯片的信息包括所述第二盒子中所述控制芯片的互联网协议IP地址和/或所述控制芯片的端口号。As an example, the information of the control chip in this application includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
应理解,第二盒子中可包括多个芯片,其中,控制芯片是一个负责管理和控制的芯片,该芯片用于接收管控服务器向该第二盒子下发的管控消息,并根据该管控消息对第二盒子进行管理和控制。It should be understood that the second box may include multiple chips. The control chip is a chip responsible for management and control. The second box is managed and controlled.
步骤330:第一盒子根据第一转发表项将第一管控消息发送给第二盒子。Step 330: The first box sends the first management and control message to the second box according to the first forwarding entry.
所述第一转发表项包括所述第二盒子的标识、所述第二盒子中控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号。The first forwarding entry includes an identifier of the second box, information of a control chip in the second box, and a port number for the first box to send the first management control message to the second box.
第一盒子在确定所述第一管控消息是该管控服务器发送给第二盒子的,该第一盒子可以通过第一转发表项中所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,将该第一管控消息发送给第二盒子中的控制芯片。The first box determines that the first control message is sent by the control server to the second box. The first box can send the first box to the second box through the first box in the first forwarding entry. The port number of the control message, the first control message is sent to the control chip in the second box.
上述技术方案中,在scale out路由器系统中,管控服务器可以直接通过盒子面板上的端口形成的带内通道向各个盒子发送管理和控制消息,实现带内管控通信。无需额外建立和维护一套外带网络来发送管理和控制消息,从而可以降低施工、维护的成本和复杂度。In the above technical solution, in the scale out router system, the management and control server can directly send management and control messages to each box through the in-band channel formed by the port on the box panel to realize in-band management and control communication. There is no need to build and maintain a set of external network to send management and control messages, which can reduce the cost and complexity of construction and maintenance.
可选地,在步骤330之前,所述第一盒子还可以建立该第一转发表项。具体的,第一盒子可以接收第二盒子发送的第一消息,该第一消息中包括第二盒子的标识、第二盒子中控制芯片的信息。第一盒子根据接收到的第一消息可以建立第一转发表项,该第一转发表项也可以称为转发信息。Optionally, before step 330, the first box may also establish the first forwarding entry. Specifically, the first box may receive the first message sent by the second box, and the first message includes the identifier of the second box and the information of the control chip in the second box. The first box can establish a first forwarding entry according to the received first message, and the first forwarding entry can also be referred to as forwarding information.
需要说明的是,本申请实施例中,第一盒子作为代理盒子。一方面,管控服务器可以将发送给其他盒子的管控消息通过面板口发送给作为代理盒子的第一盒子,并由第一盒子通过scale out交换网络转发给该其他盒子。另一方面,其他盒子,例如第二盒子需要向管控服务器发送第二管控消息,该第二盒子可以通过scale out交换网络发送给代理盒子的第一盒子,并由第一盒子通过面板口将该第二管控消息发送给作管控服务器。It should be noted that, in this embodiment of the application, the first box serves as a proxy box. On the one hand, the management and control server can send the management and control messages sent to other boxes to the first box as the proxy box through the panel port, and the first box forwards it to the other boxes through the scale out switching network. On the other hand, other boxes, such as the second box, need to send a second control message to the control server. The second box can be sent to the first box of the proxy box through the scale out switching network, and the first box will transfer the message through the panel port. The second management and control message is sent to the management and control server.
应理解,所述第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息。所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子息中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发 送所述第二管控消息所使用的协议。It should be understood that the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server. The second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages, where the hardware messages include: hardware information and hardware status reported by the second box to the management and control server Information, the hardware information includes the model of the control chip in the second box information, the number of interfaces in the second box, the hardware status information includes faulty interface information on the second box, and the protocol message includes The protocol used by the second box to send the second management control message.
具体的,以第二盒子向管控服务器发送第二管控消息为例。第二盒子需要建立第二转发表项(也可以称为代理信息),并根据该代理信息将第二管控消息发送给第一盒子。应理解,该代理信息中包括代理盒子(例如,第一盒子)标识ID、所述管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址,该第二管控消息的目的IP地址和/或目的MAC地址为所述管控服务器的IP地址和/或MAC地址。Specifically, take the second box sending the second management and control message to the management and control server as an example. The second box needs to establish a second forwarding entry (also called proxy information), and send the second management and control message to the first box according to the proxy information. It should be understood that the proxy information includes the identification ID of the proxy box (for example, the first box), the Internet Protocol IP address and/or the media access control MAC address of the management and control server, and the destination IP address and/or of the second management and control message The destination MAC address is the IP address and/or MAC address of the management and control server.
应理解,本申请实施例中,一种实现方式中,上述第二管控消息用于向管控服务器发送设备的一些状态信息,另一种实现方式中,上述第二管控消息用于向管控服务器发送管控应答消息。该第二管控消息中可以包括但不限于:设备的版本,设备上的接口信息(例如,接口的状态以及接口的数量)、设备上的芯片信息(例如,芯片的数量以及芯片的版本)。It should be understood that in the embodiment of the present application, in one implementation, the above-mentioned second management and control message is used to send some status information of the device to the management and control server. In another implementation, the above-mentioned second management and control message is used to send to the management and control server. Control response message. The second management and control message may include, but is not limited to: the version of the device, the interface information on the device (for example, the state of the interface and the number of interfaces), and the chip information on the device (for example, the number of chips and the version of the chip).
可选地,在第二盒子建立代理信息之前,该第二盒子还会接收到第一盒子发送的第二消息,第二消息中包括管控服务器的IP地址和/或MAC地址以及指示信息,该指示信息指示第一盒子为代理盒子。第二盒子根据第二消息建立代理信息,并在向管控服务器发送第二管控消息时,可以根据代理信息中管控服务器的IP地址和/或MAC地址确定第二管控消息的目的IP地址和/或目的MAC地址,并根据代理信息中代理盒子(例如,第一盒子)标识ID,将该第二管控消息发送给代理盒子(例如,第一盒子)。Optionally, before the second box establishes proxy information, the second box will also receive a second message sent by the first box. The second message includes the IP address and/or MAC address of the management and control server and indication information. The instruction information indicates that the first box is a proxy box. The second box establishes proxy information according to the second message, and when sending the second control message to the control server, it can determine the destination IP address and/or of the second control message according to the IP address and/or MAC address of the control server in the proxy information Destination MAC address, and according to the identification ID of the agent box (for example, the first box) in the agent information, send the second control message to the agent box (for example, the first box).
上述技术方案中,其他盒子在需要向管控服务器发送管控消息时,可以将该管控消息先发送给代理盒子,这样,即使管控服务器还没有上线,也不会影响整个scale out路由器系统的启动和工作,提高了scale out路由器的工作效率。In the above technical solution, when other boxes need to send management and control messages to the management and control server, they can send the management and control messages to the agent box first. In this way, even if the management and control server is not online, it will not affect the startup and work of the entire scale out router system. , Improve the work efficiency of scale-out routers.
下面结合图4,对本申请实施例的一种数据传输的方法的具体实现过程进行详细描述。应注意,图4的例子仅仅是为了帮助本领域技术人员理解本申请实施例,而非要将申请实施例限制于图4所示例的具体数值或具体场景。本领域技术人员根据图4所给出的例子,显然可以进行各种等价的修改或变化,这样的修改和变化也落入本申请实施例的范围内。The specific implementation process of a data transmission method according to an embodiment of the present application will be described in detail below with reference to FIG. 4. It should be noted that the example in FIG. 4 is only to help those skilled in the art understand the embodiments of the present application, and is not intended to limit the application embodiments to the specific values or specific scenarios illustrated in FIG. 4. Those skilled in the art can obviously make various equivalent modifications or changes based on the example given in FIG. 4, and such modifications and changes also fall within the scope of the embodiments of the present application.
图4是本申请实施例提供的另一种数据传输的方法的示意性流程图。图4所示的方法可以包括步骤410-420,下面分别对步骤410-420进行详细描述。FIG. 4 is a schematic flowchart of another data transmission method provided by an embodiment of the present application. The method shown in FIG. 4 may include steps 410-420, and steps 410-420 will be described in detail below.
应理解,为了便于描述,图4中以线卡盒子为例进行说明。It should be understood that, for ease of description, the line card box is taken as an example for description in FIG. 4.
步骤410:新线卡盒子上线后,打开新上线的线卡盒子到其他已上线的线卡盒子的通道。Step 410: After the new line card box is online, open the channel from the newly online line card box to other online line card boxes.
当scale out路由器系统中新上线一个线卡盒子后,采用带内的广播通告,单播应答的方式打开新线卡盒子到其他线卡盒子的通道。When a new line card box is launched in the scale out router system, in-band broadcast announcements and unicast responses are used to open the channel from the new line card box to other line card boxes.
作为示例,以图5为例,对打开新线卡盒子到其他线卡盒子的通道的过程进行举例说明。As an example, take Fig. 5 as an example to illustrate the process of opening a channel from a new line card box to other line card boxes.
应理解,新上线的线卡盒子也可以简称为新线卡盒子,为了便于描述,下面以新线卡盒子进行说明。It should be understood that the newly launched line card box may also be referred to as the new line card box for short. For ease of description, the new line card box is used for description below.
1、新线卡盒子2接入系统后,向其他已上线的线卡盒子广播新线卡盒子2的信息。1. After the new line card box 2 is connected to the system, it broadcasts the information of the new line card box 2 to other online line card boxes.
新线卡盒子2接入系统后,此时其与其他已上线的线卡盒子(例如,线卡盒子0和线卡盒子1)之间的单播通道还没有打开。新线卡盒子2可以通过带内交换网络向其他已上线的线卡盒子(例如,线卡盒子0和线卡盒子1)发送广播消息。该广播消息中包括新线 卡盒子2的信息。After the new line card box 2 is connected to the system, the unicast channel between it and other online line card boxes (for example, line card box 0 and line card box 1) has not been opened yet. The new line card box 2 can send broadcast messages to other online line card boxes (for example, line card box 0 and line card box 1) through the in-band switching network. The broadcast message includes the information of the new line card box 2.
需要说明的是,带内交换网络可以是由多个交换盒子组成的网络,各个线卡盒子之间通过该带内交换网络进行连接或通信。It should be noted that the in-band switching network may be a network composed of multiple switching boxes, and each line card box is connected or communicating through the in-band switching network.
新线卡盒子2的信息可以是以下中的一种或多种:新线卡盒子2的标识(identity,ID)端口个数(port number)。The information of the new line card box 2 may be one or more of the following: the identity (ID) port number of the new line card box 2.
在一些实施例中,新线卡盒子2的可以是交换网接口卡(switching network interface card,FIC)ID。应理解,FIC ID为新线卡盒子2在带内交换网络中的标识。In some embodiments, the new line card box 2 may be a switching network interface card (FIC) ID. It should be understood that the FIC ID is the identification of the new line card box 2 in the in-band switching network.
本申请实施例中,该广播消息例如可以是广播的心跳消息。新线卡盒子2通过心跳消息向其他已上线的线卡盒子广播该新线卡盒子2的信息。In the embodiment of the present application, the broadcast message may be, for example, a broadcast heartbeat message. The new line card box 2 broadcasts the information of the new line card box 2 to other online line card boxes through a heartbeat message.
2、其他已上线的线卡盒子打开其与新线卡盒子2之间的单播通道。2. Open the unicast channel between other online card boxes and the new line card box 2.
其他已上线的线卡盒子(例如,线卡盒子0和线卡盒子1)在接收到新线卡盒子2广播的信息之后,本地记录新线卡盒子2的信息,并打开其与新线卡盒子2之间的单播通道。After other online line card boxes (for example, line card box 0 and line card box 1) receive the information broadcast by the new line card box 2, the information of the new line card box 2 is recorded locally and opened with the new line card Unicast channel between box 2.
以线卡盒子0为例。线卡盒子0在接收到新线卡盒子2广播的信息之后,可以根据新线卡盒子2的ID和/或端口个数(port number)打开对应的单播通道,打开线卡盒子0和新线卡盒子2之间的单播通道(0->2)。Take line card box 0 as an example. After line card box 0 receives the information broadcast by new line card box 2, it can open the corresponding unicast channel according to the ID and/or port number of new line card box 2, and open line card box 0 and new line card box. Unicast channel between line card box 2 (0->2).
应理解,本申请实施例中,线卡盒子0还可以初始化线卡盒子0和新线卡盒子2之间的单播通道(0->2),例如,线卡盒子可以对单播队列进行一些其他的设置,例如,设置该队列的一些参数,记录一些相关信息(例如,是从哪个管道接收到的FIC ID)等。It should be understood that in the embodiment of the present application, the line card box 0 can also initialize the unicast channel (0->2) between the line card box 0 and the new line card box 2. For example, the line card box can perform unicast queues. Some other settings, for example, setting some parameters of the queue, recording some related information (for example, the FIC ID received from which channel), etc.
同样的,已上线的线卡盒子1也可以根据上述方法打开线卡盒子1和新线卡盒子2之间的单播通道(1->2),具体的请参考上文中的描述,此处不再赘述。Similarly, the online line card box 1 can also open the unicast channel (1->2) between the line card box 1 and the new line card box 2 according to the above method. For details, please refer to the above description, here No longer.
3、其他已上线的线卡盒子向新线卡盒子2发送单播应答信息。3. Other online line card boxes send unicast response information to the new line card box 2.
其他已上线的线卡盒子(例如,线卡盒子0和线卡盒子1)在分别打开其与新线卡盒子2之间的单播通道后,还可以分别向新线卡盒子2发送单播应答信息。Other online line card boxes (for example, line card box 0 and line card box 1) can also send unicasts to new line card box 2 after opening the unicast channels between them and new line card box 2 respectively. Response information.
以线卡盒子0为例。线卡盒子0在打开其与新线卡盒子2之间的单播通道(0->2)后,向新线卡盒子2发送单播应答消息,该单播应答消息中包括线卡盒子0的ID、端口个数(port number)。Take line card box 0 as an example. After line card box 0 opens the unicast channel (0->2) between it and new line card box 2, it sends a unicast response message to new line card box 2. The unicast response message includes line card box 0 ID, port number (port number).
同样的,已上线的线卡盒子1也可以向新线卡盒子2发送单播应答消息。具体的请参考上文中的描述,此处不再赘述。Similarly, the online line card box 1 can also send a unicast response message to the new line card box 2. For details, please refer to the above description, which will not be repeated here.
本申请实施例中,该单播应答消息例如可以是单播心跳确认消息。In the embodiment of the present application, the unicast response message may be, for example, a unicast heartbeat confirmation message.
4、新线卡盒子2接收到其他已上线的线卡盒子发送的单播应答消息后,打开其与其他已上线的线卡盒子之间的单播通道。4. After the new line card box 2 receives the unicast response message sent by other online line card boxes, it opens the unicast channel between it and other online line card boxes.
新线卡盒子2在接收到其他已上线的线卡盒子发送的单播应答消息后,根据单播应答消息中线卡盒子的ID、端口个数,打开其与其他已上线的线卡盒子之间的单播通道。After the new line card box 2 receives the unicast response message sent by other online line card boxes, it opens the line between it and other online line card boxes according to the ID and port number of the line card box in the unicast response message Unicast channel.
以新线卡盒子2接收到线卡盒子0发送的单播应答消息为例。新线卡盒子2可以根据线卡盒子0的ID和/或端口个数打开对应的单播通道,打开新线卡盒子2和线卡盒子0之间的单播通道(2->0)。Take the new line card box 2 receiving the unicast response message sent by the line card box 0 as an example. The new line card box 2 can open the corresponding unicast channel according to the ID and/or port number of the line card box 0, and open the unicast channel between the new line card box 2 and the line card box 0 (2->0).
同样的,新线卡盒子2接收到已上线的线卡盒子1发送的单播应答消息后,也可以根据上述方法打开新线卡盒子2和线卡盒子1之间的单播通道(2->1),具体的请参考上文中的描述,此处不再赘述。Similarly, after the new line card box 2 receives the unicast response message sent by the online line card box 1, it can also open the unicast channel between the new line card box 2 and the line card box 1 (2- >1). For details, please refer to the above description, which will not be repeated here.
步骤420:实现系统中的线卡盒子和管控服务器之间的通信连接。Step 420: Realize the communication connection between the line card box in the system and the management and control server.
应理解,在步骤410中打开各个线卡盒子之间的通道,从而可以实现各个线卡盒子之间的通信连接。该通道例如可以是管控通道,用于各个线卡盒子之间发送管控消息(又可称为管理和控制消息)。It should be understood that, in step 410, the channels between the various line card boxes are opened, so that the communication connection between the various line card boxes can be realized. The channel may be, for example, a management and control channel, which is used to send management and control messages (also referred to as management and control messages) between various line card boxes.
由于管控服务器和管控通道没有直接连接,这导致线卡盒子无法直接找到管控服务器。同样管控服务器也无法直接找到所有的线卡盒子。因此,本申请实施例中,可以指定一个盒子作为代理盒子。所有其他的线卡盒子要与管控服务器通信,只需要将信息发往代理盒子,由代理盒子中转给管控服务器。同样的,管控服务器要与其他的线卡盒子通信,也将信息发往代理盒子,由代理盒子中转给其他的线卡盒子。Since the control server and the control channel are not directly connected, the line card box cannot directly find the control server. Similarly, the control server cannot directly find all the line card boxes. Therefore, in this embodiment of the application, a box can be designated as a proxy box. All other line card boxes need to communicate with the control server, and only need to send the information to the agent box, and then transfer the information from the agent box to the control server. Similarly, the management and control server must communicate with other line card boxes, and also send information to the agent box, and the agent box transfers the information to other line card boxes.
这样,一方面,只需要代理盒子知道管控服务器的位置以及其他盒子的位置,其他盒子和管控服务器都无需关心对方在什么位置,从而降低系统的复杂性。另一方,在scale out路由器中,选出代理盒子之后,其他的线卡盒子要与管控服务器通信,只要将信息发往代理盒子即可,而无需关心管控服务器是否上线,从而提高系统的灵活性,降低延时。In this way, on the one hand, only the agent box needs to know the location of the control server and the location of other boxes, and the other boxes and the control server do not need to care about the location of the other party, thereby reducing the complexity of the system. On the other hand, in the scale out router, after the proxy box is selected, the other line card boxes need to communicate with the control server, and only need to send the information to the proxy box, without worrying about whether the control server is online, thereby improving the flexibility of the system , Reduce the delay.
本申请实施例对从所有的盒子中选择代理盒子的实现方式不做具体限定。一种可能的实现方式中,选择和管控服务器直连的盒子为代理盒子。The embodiment of the present application does not specifically limit the implementation of selecting the proxy box from all the boxes. In a possible implementation, the box directly connected to the control server is selected as the proxy box.
作为示例,以图6为例,对实现系统中的线卡盒子和管控服务器之间的通信连接的具体实现方式进行详细描述。As an example, taking FIG. 6 as an example, a detailed description will be given of the specific implementation manner of the communication connection between the line card box and the management and control server in the system.
应理解,为了便于描述,图6中以和管控服务器直连的线卡盒子0作为代理盒子,其他盒子(例如,线卡盒子1和线卡盒子2)作为非代理盒子为例进行说明。It should be understood that, for ease of description, in FIG. 6, the line card box 0 directly connected to the management and control server is used as a proxy box, and other boxes (for example, line card box 1 and line card box 2) are used as non-agent boxes for illustration.
1、作为代理盒子的线卡盒子0通过到其他非代理盒子的通道,分别向其他非代理盒子发送单播消息1。1. The line card box 0 as the proxy box passes through the channel to other non-agent boxes and sends unicast message 1 to the other non-agent boxes respectively.
具体的,线卡盒子0可以通过与其他非代理盒子(例如,线卡盒子1和线卡盒子2)之间打开的通道,分别向其他非代理盒子(例如,线卡盒子1和线卡盒子2)发送单播消息1,该单播消息1中包括管控服务器的信息、线卡盒子0与管控服务器连接的端口号以及指示所述线卡盒子0为代理盒子。Specifically, the line card box 0 can pass through the channel opened with other non-agent boxes (for example, line card box 1 and line card box 2), to other non-agent boxes (for example, line card box 1 and line card box 2) Send a unicast message 1. The unicast message 1 includes the information of the management and control server, the port number of the line card box 0 connected to the management and control server, and indicates that the line card box 0 is a proxy box.
例如,单播消息1中包含:盒子角色(box role)字段、服务器目标端口(server target port,server TP)字段、服务器信息(server information,server info)字段。其中,box role字段设为“主代理”,server TP字段设为线卡盒子0本地和管控服务器连接的端口号,server info字段设为服务器的互联网协议(internet protocol,IP)地址、媒体访问控制(media access control,MAC)地址等。For example, the unicast message 1 includes: a box role (box role) field, a server target port (server target port, server TP) field, and a server information (server information, server info) field. Among them, the box role field is set to "master agent", the server TP field is set to the port number of the line card box 0 local and the control server connection, and the server info field is set to the server's internet protocol (IP) address and media access control (media access control, MAC) address, etc.
2、其他非代理盒子根据作为代理盒子的线卡盒子0发送的单播消息1生成代理信息。2. Other non-agent boxes generate agent information according to the unicast message 1 sent by the line card box 0 as the agent box.
其他非代理盒子(例如,线卡盒子1和线卡盒子2)在接收到作为代理盒子的线卡盒子0发送的单播消息1后,可以分别根据该单播消息1中包括的信息本地生成代理信息。Other non-agent boxes (for example, line card box 1 and line card box 2), after receiving the unicast message 1 sent by the line card box 0 as the proxy box, can be generated locally according to the information included in the unicast message 1 respectively Agency information.
以非代理盒子中的线卡盒子1为例。线卡盒子1根据单播消息1中包括的信息生成的代理信息包括:代理ID、server TP、管控服务器的IP地址、MAC地址。Take the line card box 1 in the non-agent box as an example. The agent information generated by the line card box 1 according to the information included in the unicast message 1 includes: agent ID, server TP, IP address and MAC address of the management and control server.
同样的,作为非代理盒子的线卡盒子2,也可以根据单播消息1中包括的信息生成的代理信息。具体的请参考上文中的描述,此处不再赘述。Similarly, the line card box 2 as a non-agent box can also generate proxy information based on the information included in the unicast message 1. For details, please refer to the above description, which will not be repeated here.
3、其他非代理盒子分别向作为代理盒子的线卡盒子0发送单播消息2。3. Other non-agent boxes respectively send unicast message 2 to line card box 0 as the agent box.
具体的,其他非代理盒子可以通过与作为代理盒子的线卡盒子0之间打开的通道,分 别向线卡盒子0发送单播消息2,该单播消息2中包括非代理盒子的本地控制口信息。Specifically, other non-agent boxes can respectively send unicast message 2 to line card box 0 through the channel opened with line card box 0 as a proxy box. The unicast message 2 includes the local control port of the non-agent box. information.
以非代理盒子中的线卡盒子1为例。线卡盒子1可以向线卡盒子0发送单播消息2。该单播消息2中包含:box role字段以及控制目标端口(control TP,ctrl TP)字段。其中,box role字段设为“非代理”,ctrl TP字段设为线卡盒子1的本地控制口的IP地址以及本地控制口的TP。Take the line card box 1 in the non-agent box as an example. Line card box 1 can send unicast message 2 to line card box 0. The unicast message 2 includes: a box role field and a control target port (control TP, ctrl TP) field. Among them, the box role field is set to "non-agent", and the ctrl TP field is set to the IP address of the local control port of the line card box 1 and the TP of the local control port.
同样的,作为非代理盒子的线卡盒子2,也可以向线卡盒子0发送单播消息2。具体的请参考上文中的描述,此处不再赘述。Similarly, line card box 2 as a non-agent box can also send unicast message 2 to line card box 0. For details, please refer to the above description, which will not be repeated here.
应理解,盒子的本地控制口信息可以理解为盒子的管控制的芯片的信息,例如,该芯片的IP地址以及该芯片的TP。It should be understood that the local control port information of the box can be understood as the information of the chip controlled by the box, for example, the IP address of the chip and the TP of the chip.
4、作为代理盒子的线卡盒子0根据其他非代理盒子发送的单播消息2生成转发信息。4. The line card box 0 as a proxy box generates forwarding information according to the unicast message 2 sent by other non-proxy boxes.
线卡盒子0接收其他非代理盒子(例如,线卡盒子1和线卡盒子2)分别发送的单播消息2后,可以分别根据该单播消息2中包括的信息本地生成转发信息。After the line card box 0 receives the unicast message 2 respectively sent by other non-agent boxes (for example, the line card box 1 and the line card box 2), the forwarding information can be locally generated according to the information included in the unicast message 2 respectively.
以线卡盒子0接收到线卡盒子1发送的单播消息2为例。线卡盒子0根据单播消息2中包括的信息生成的代理信息包括:线卡盒子1的ID、线卡盒子1的本地控制口的IP地址以及本地控制口的TP。Take the line card box 0 receiving the unicast message 2 sent by the line card box 1 as an example. The proxy information generated by the line card box 0 according to the information included in the unicast message 2 includes: the ID of the line card box 1, the IP address of the local control port of the line card box 1, and the TP of the local control port.
上文中,代理盒子本地建立了转发信息,非代理盒子本地建立了代理信息。这样,管控服务器有要向其他的代理盒子发送的管控消息,可以发送给代理盒子,由代理盒子根据建立的转发信息,将该管控消息转发给对应的非代理盒子。同样的,其他的代理盒子有要向管控服务器发送的管控消息,可以根据其本地建立的代理信息发送给代理盒子,由代理盒子转发给其与直连的管控服务器。In the above, the proxy box establishes the forwarding information locally, and the non-agent box establishes the agent information locally. In this way, the control server has a control message to be sent to other proxy boxes, which can be sent to the proxy box, and the proxy box forwards the control message to the corresponding non-agent box according to the established forwarding information. Similarly, other proxy boxes have control messages to be sent to the control server, which can be sent to the proxy box based on their locally established proxy information, and the proxy box forwards it to the control server directly connected to it.
作为一个示例,管控服务器有向非代理的线卡盒子1发送的管控消息1。管控服务器可以通过面板口将管控消息1发送给作为代理盒子的线卡盒子0,该管控消息1中指示该消息是发送给线卡盒子1的。管控服务器可以根据该管控消息1以及转发信息,确定线卡盒子1的本地控制口的IP地址以及本地控制口的TP。并根据该线卡盒子1的本地控制口的IP地址以及本地控制口的TP,通过带内交换网络(各个盒子之间打开的通道)将管控消息1单播转发至线卡盒子1。As an example, the management and control server has a management and control message 1 sent to the non-agent line card box 1. The control server can send the control message 1 to the line card box 0 as the proxy box through the panel port, and the control message 1 indicates that the message is sent to the line card box 1. The control server can determine the IP address of the local control port of the line card box 1 and the TP of the local control port according to the control message 1 and the forwarding information. And according to the IP address of the local control port of the line card box 1 and the TP of the local control port, the control message 1 is unicast forwarded to the line card box 1 through the in-band switching network (the channel opened between each box).
作为示例,本申请实施例中,管控消息1可以包括以下中的一种或多种:盒子的软件版本、对盒子的控制信息、对盒子的配置信息、管控服务器生成的表项信息等。As an example, in the embodiment of the present application, the management and control message 1 may include one or more of the following: software version of the box, control information for the box, configuration information for the box, entry information generated by the management and control server, and so on.
作为另一个示例,非代理的线卡盒子1有向管控服务器发送的管控消息2。线卡盒子1可以根据本地保存的代理信息中的代理ID,通过带内交换网络(各个盒子之间打开的通道)将该管控消息2单播发送给作为代理盒子的线卡盒子0,该管控消息中的目的IP地址为服务器的IP地址,TP为服务器的TP。线卡盒子0接收到管控消息2后,根据目的IP地址为服务器的IP地址,TP为服务器的TP,通过与管控服务器连接的面板端口,将管控消息2单播转发至管控服务器。As another example, the non-agent line card box 1 has a control message 2 sent to the control server. The line card box 1 can unicast the control message 2 to the line card box 0 as the proxy box through the in-band switching network (the channel opened between each box) according to the proxy ID in the proxy information stored locally. The destination IP address in the message is the IP address of the server, and TP is the TP of the server. After line card box 0 receives the control message 2, according to the destination IP address as the server's IP address, and TP is the server's TP, it unicasts the control message 2 to the control server through the panel port connected to the control server.
应理解,本申请实施例中,管控消息2可以是非代理的盒子向管控服务器恢复管控确认消息,或上报本设备的状态信息等。It should be understood that, in this embodiment of the present application, the management and control message 2 may be a non-agent box restore management and control confirmation message to the management and control server, or report the status information of the device.
可选地,在一些实施例中,在scale out路由器中,各个盒子均有自己的时标,在通过scale out路由器的带内通道发送数据报文的过程中,如果各个盒子的时标不一致,会导致报文分片,重组时会出现乱序的情况。因此,在scale out路由器中,如果发送数据报文, 需要各个盒子进行时标同步。Optionally, in some embodiments, in the scale out router, each box has its own time stamp. In the process of sending data packets through the in-band channel of the scale out router, if the time stamp of each box is inconsistent, It will cause fragmentation of packets, and disorder will occur during reorganization. Therefore, in a scale out router, if a data message is sent, each box needs to synchronize the time stamp.
本申请实施例中,通过带内管控平面,在已经上线的线卡盒子中协商出一个主时标盒子,其余盒子为跟随盒子。例如,参见图7,主时标盒子定期广播自己的时标,进行时标通告,跟随盒子收到时标通告,同步自己的时标。其中,主时标盒子通告的内容可以包括:自己的时标和自己的盒子标识(Box ID)。In the embodiment of the present application, through the in-band control plane, a master time stamp box is negotiated among the line card boxes that have been online, and the remaining boxes are follower boxes. For example, referring to Figure 7, the main time-scale box periodically broadcasts its own time-scale, makes time-scale notifications, and the follow-up box receives the time-scale notification, and synchronizes its own time-scale. Among them, the content notified by the main time stamp box may include: own time stamp and own box ID (Box ID).
主时标盒子的选取方式有多种,本申请不做具体限定。一种可能的实现方式中,可以选取和管控服务器直连的盒子为主时标盒子。另一种可能的实现方式中,还可以选取Box ID最大或最小的盒子,为主时标盒子。There are many ways to select the main time-scale box, which is not specifically limited in this application. In one possible implementation, the box directly connected to the management server can be selected as the main time stamp box. In another possible implementation, the box with the largest or smallest Box ID can also be selected as the main time stamp box.
可选地,在一些实施例中,以选取和管控服务器直连的盒子为主时标盒子为例。当管控服务器与系统中盒子的连接关系发生变化时,会在短时间内存在多个角色为“直连”的盒子。也就是说,在短时间内,会存在多个主时标盒子。此时,需要等待N个周期,再将自己置为主时标盒子。Optionally, in some embodiments, a box directly connected to the selection and control server is selected as the main time stamp box as an example. When the connection relationship between the control server and the boxes in the system changes, there will be multiple boxes with the role of "direct connection" in a short period of time. In other words, in a short period of time, there will be multiple master time stamp boxes. At this point, you need to wait for N cycles, and then set yourself as the main time stamp box.
下面结合图8-图9,对存在多个主时标盒子时如何进行时标同步的具体实现方式进行详细说明。The specific implementation of how to synchronize time stamps when there are multiple master time stamp boxes will be described in detail below with reference to FIGS. 8-9.
图8是本申请实施例提供的一种在有多个主时标盒子时进行时标同步的方法的示意性流程图。图8所示的方法的执行主体为scale out路由器中与管控服务器直连的盒子A。如图8所示,该方法可以包括步骤810-880,下面分别对步骤810-880进行详细描述。FIG. 8 is a schematic flowchart of a method for time stamp synchronization when there are multiple master time stamp boxes provided by an embodiment of the present application. The execution subject of the method shown in FIG. 8 is the box A directly connected to the management and control server in the scale out router. As shown in Fig. 8, the method may include steps 810-880, and steps 810-880 will be described in detail below.
步骤805:盒子A确定scale out路由器中没有主时标盒子,时标同步初始化。Step 805: Box A determines that there is no master time stamp box in the scale out router, and the time stamp is initialized synchronously.
scale out路由器中的盒子A在确定scale out路由器中没有主时标盒子的情况下,该盒子A的时标不跟随其他盒子的时标而变化。In the case of box A in the scale out router, if it is determined that there is no master time stamp box in the scale out router, the time stamp of this box A does not change with the time stamps of other boxes.
步骤810:盒子A接收数据面管理模块UC模块发送的通告,将其自己升为直连盒子。Step 810: Box A receives the notification sent by the data plane management module UC module, and promotes itself to a directly connected box.
步骤815:盒子A将自己设置为主时标盒子。Step 815: Box A sets itself as the main time stamp box.
步骤820:盒子A判断scale out路由器中是否存在两个主时标盒子。Step 820: Box A judges whether there are two master time stamp boxes in the scale out router.
具体的,如果scale out路由器中除了盒子A还有其他的盒子是主时标盒子,那么该盒子A就会接收到其他主时标盒子发出的时标通道。如果盒子A接收到了其他主时标盒子发出的时标通道,可以确定scale out路由器中存在两个主时标盒子。Specifically, if there are other boxes besides box A in the scale out router that are master time stamp boxes, then this box A will receive the time stamp channels sent by other master time stamp boxes. If box A receives the time stamp channel sent by other master time stamp boxes, it can be determined that there are two master time stamp boxes in the scale out router.
步骤823:持续N个周期保持时标初始化状态。Step 823: Maintain the time stamp initialization state for N cycles.
本申请实施例中,无论scale out路由器中是否存在两个主时标盒子,都先持续N个周期保持时标初始化状态。In this embodiment of the application, regardless of whether there are two master time stamp boxes in the scale out router, the time stamp initialization state is maintained for N cycles.
步骤825:如果盒子A确定有多个同步区,可以延迟一段时间。Step 825: If the box A determines that there are multiple synchronization areas, it can be delayed for a period of time.
步骤830:如果盒子A确定前续和管控服务器直连的盒子断开连接,此时应该只有一个盒子A一个直连盒子。Step 830: If box A determines that the previous box is disconnected from the box directly connected to the control server, there should be only one box A and one directly connected box at this time.
步骤835:盒子A确定其跟随的时标是否为自身的时标。Step 835: Box A determines whether the time scale it follows is its own time scale.
如果盒子A跟随的时标不是其自身的时标,则执行步骤840。If the time scale followed by box A is not its own time scale, step 840 is executed.
如果盒子A跟随的时标为自身的时标,则可以执行步骤845。If the time scale followed by box A is its own time scale, step 845 may be executed.
步骤840:报错,置时标同步为初始化。Step 840: An error is reported, and the time stamp synchronization is initialized.
如果盒子A跟随的时标不是其自身的时标,作报错后,置时标同步为初始化,并继续执行步骤823。If the time stamp followed by box A is not its own time stamp, after an error is reported, the time stamp synchronization is initialized, and step 823 is continued.
步骤845:如果盒子A确定没有同步区,则通知UC可发心跳消息。Step 845: If Box A determines that there is no synchronization zone, inform UC that a heartbeat message can be sent.
应理解,如果盒子A确定没有同步区,可以理解为scale out路由器中只有一个直连盒子,该直连盒子可以作为主时标盒子,向其他跟随时标盒子发送心跳消息,用于向其他跟随时标盒子通知其自己的主时标。It should be understood that if box A determines that there is no synchronization zone, it can be understood that there is only one directly connected box in the scale out router. This directly connected box can be used as the main time stamp box to send heartbeat messages to other follow time stamp boxes for Mark the box at any time to notify its own main time stamp.
步骤850:只有一个直连盒子,系统正常工作。Step 850: There is only one directly connected box, and the system works normally.
步骤855:盒子A断开服务器。Step 855: Box A disconnects the server.
步骤860:UC检测本地断开连接之前,确定是否还有其他盒子直连管控服务器。Step 860: Before the UC detects the local disconnection, it determines whether there are other boxes directly connected to the control server.
如果UC确定本地断开连接之前还有其他盒子直连管控服务器,则执行步骤865。If UC determines that there are other boxes directly connected to the management and control server before the local connection is disconnected, step 865 is executed.
如果UC确定本地断开连接之前没有其他盒子直连管控服务器,则执行步骤870。If the UC determines that no other boxes are directly connected to the management and control server before the local connection is disconnected, step 870 is executed.
步骤865:确定系统中有两个直连盒子,两个主时标盒子。Step 865: Make sure that there are two directly connected boxes and two main time stamp boxes in the system.
步骤867:可以确定此时系统中有多个同步区。Step 867: It can be determined that there are multiple synchronization areas in the system at this time.
步骤870:UC检测盒子A为非主时标盒子,通道盒子A将其自己降为非主时标盒子。Step 870: UC detects that box A is a non-primary time-scale box, and channel box A reduces itself to a non-primary time-scale box.
步骤875:盒子A通知UC停止发送心跳消息。Step 875: Box A notifies UC to stop sending heartbeat messages.
应理解,如果盒子A为非主时标盒子,盒子A不可以向系统中的其他盒子通告其自己的时标,因此,盒子A可通知UC停止发送心跳消息。It should be understood that if box A is a non-primary time stamp box, box A cannot advertise its own time stamp to other boxes in the system. Therefore, box A can notify UC to stop sending heartbeat messages.
步骤880:确定系统中是否有其他盒子直连管控服务器。Step 880: Determine whether there are other boxes in the system directly connected to the control server.
如果确定系统中有其他盒子直连管控服务器,可继续执行步骤850。If it is determined that there are other boxes in the system directly connected to the control server, proceed to step 850.
如果确定系统中没有其他盒子直连管控服务器,可继续执行步骤805。If it is determined that no other boxes in the system are directly connected to the control server, proceed to step 805.
图9是本申请实施例提供的另一种在有多个主时标盒子时进行时标同步的方法的示意性流程图。图9所示的方法的执行主体为scale out路由器中与管控服务器非直连的盒子B。如图9所示,该方法可以包括步骤910-950,下面分别对步骤910-950进行详细描述。FIG. 9 is a schematic flowchart of another method for time stamp synchronization when there are multiple master time stamp boxes according to an embodiment of the present application. The execution subject of the method shown in FIG. 9 is box B in the scale out router that is not directly connected to the management and control server. As shown in FIG. 9, the method may include steps 910-950, and steps 910-950 will be described in detail below.
步骤910:盒子B确定scale out路由器中没有主时标盒子,时标同步初始化。Step 910: Box B determines that there is no master time stamp box in the scale out router, and the time stamp is initialized synchronously.
步骤920:盒子B周期性检测本地时标跟随状态。Step 920: Box B periodically detects the local time stamp following state.
步骤930:盒子B判断其是否跟随其他主时标盒子。Step 930: Box B judges whether it follows other main time stamp boxes.
如果盒子B判断其跟随了其他主时标盒子,则执行步骤940。If box B judges that it follows other main time stamp boxes, step 940 is executed.
如果盒子B判断其没有跟随了其他主时标盒子,则执行步骤950。If box B determines that it does not follow other main time stamp boxes, step 950 is executed.
步骤940:盒子B通知UC可发心跳消息。Step 940: Box B notifies UC that a heartbeat message can be sent.
如果盒子B其跟随了其他主时标盒子,则可以实现时标同步,从而发送心跳消息,打开数据通道,以便于通过该数据通道发送数据消息。If box B follows other main time stamp boxes, time stamp synchronization can be realized, thereby sending a heartbeat message and opening a data channel to facilitate sending data messages through the data channel.
步骤950:盒子B通知UC停发心跳消息。Step 950: Box B notifies UC to stop sending heartbeat messages.
如果盒子B没有跟随了其他主时标盒子,则盒子B和其他盒子之间没有实现时标同步,盒子之间无法打通数据通道,也无法发送数据消息,因此,可以通知UC停发心跳消息。If box B does not follow other main time stamp boxes, time stamp synchronization is not achieved between box B and other boxes, data channels cannot be opened between the boxes, and data messages cannot be sent. Therefore, UC can be notified to stop sending heartbeat messages.
可选地,在一些实施例中,在线卡盒子和交换盒子之间的数据链路上,抽象出双通道。例如,参见图9,线卡盒子和交换盒子之间的物理链路上抽象出数据通道和管控通道。其中,数据通道走数据报文,管控通道走管理和控制信息,服务器对线卡盒子和交换盒子进行管控时走该管控通道。Optionally, in some embodiments, a dual channel is abstracted on the data link between the line card box and the switch box. For example, referring to Figure 9, the physical link between the line card box and the switch box abstracts a data channel and a control channel. Among them, the data channel uses data packets, and the control channel uses management and control information. The server uses this control channel when it manages and controls the line card box and the switch box.
本申请实施例中,可以在报文中增加一种新的控制心信元类型,用于区分数据报文和控制报文。其中,数据报文也可称为数据信息,走数据通道。控制报文也可称为管理和控制信息,走管控通道。In the embodiments of the present application, a new control heart cell type can be added to the message to distinguish between data messages and control messages. Among them, the data message can also be called data information, and it takes the data channel. Control messages can also be referred to as management and control information, and go through the management and control channel.
可选地,在一些实施例中,还可以将强制将控制报文封装在一个信元中,使控制报文无需切分重组,从而不必依赖时标同步。也就是说,在这种情况下,不需要选择出主时标盒子,各个跟随盒子之间不需要按照主时标的信息进行时标同步。Optionally, in some embodiments, it is also possible to force the control message to be encapsulated in one cell, so that the control message does not need to be split and reassembled, thereby eliminating the need to rely on time stamp synchronization. That is to say, in this case, there is no need to select the main time-scale box, and there is no need to synchronize the time-scales between the following boxes according to the information of the main time-scale.
需要说明的是,本申请实施例中,管控服务器、线卡盒子以及交换盒子通过管控通道互联互通,即使在时标不同步导致数据通道断开时,管控通道不会断开。It should be noted that, in the embodiment of the present application, the management and control server, the line card box, and the switching box are interconnected through the management and control channel, and the management and control channel will not be disconnected even when the data channel is disconnected due to the time stamp asynchronous.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation.
下面将结合图10-图11,详细描述本申请装置的实施例。应理解,方法实施例的描述与装置实施例的描述相互对应,因此,未详细描述的部分可以参见前面方法实施例。Hereinafter, the embodiments of the device of the present application will be described in detail with reference to FIGS. 10-11. It should be understood that the description of the method embodiment and the description of the device embodiment correspond to each other, and therefore, the parts that are not described in detail may refer to the previous method embodiment.
图10是本申请实施例提供的一种第一盒子1000的示意性框图。该第一盒子1000可以通过软件、硬件或者两者的结合实现成为装置中的部分或者全部。应理解,第一盒子1000作为计算机设备100中的功能模块,用于执行上述计算机设备100执行的方法流程。FIG. 10 is a schematic block diagram of a first box 1000 provided by an embodiment of the present application. The first box 1000 can be implemented as part or all of the device through software, hardware or a combination of the two. It should be understood that the first box 1000, as a functional module in the computer device 100, is used to execute the above-mentioned method flow executed by the computer device 100.
该第一盒子1000为代理盒子,该第一盒子1000包括:接收模块1010,确定模块1020,发送模块1030,其中:The first box 1000 is a proxy box, and the first box 1000 includes: a receiving module 1010, a determining module 1020, and a sending module 1030, where:
接收模块1010,用于接收该管控服务器发送的第一管控消息,其中,所述第一管控消息为所述管控服务器对所述第二盒子进行管理和控制时所发送的消息;The receiving module 1010 is configured to receive a first management and control message sent by the management and control server, where the first management and control message is a message sent when the management and control server manages and controls the second box;
确定模块1020,用于确定该第一管控消息是发送给第二盒子的;The determining module 1020 is configured to determine that the first management and control message is sent to the second box;
发送模块1030,用于根据第一转发表项将该第一管控消息发送给该第二盒子,其中,该第一转发表项包括该第二盒子的标识、该第二盒子中控制芯片的信息以及该第一盒子向该第二盒子发送该第一管控消息的端口号。The sending module 1030 is configured to send the first management control message to the second box according to the first forwarding entry, where the first forwarding entry includes the identification of the second box and the information of the control chip in the second box And the port number for the first box to send the first management and control message to the second box.
可选地,该第一管控消息为不分片的消息。Optionally, the first management control message is a non-fragmented message.
可选地,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Optionally, the first management and control message includes one or more of the following: a software version message, a resource configuration message, a service configuration message, a device management message, and an entry message, where the software version message includes the The software version of the second box issued by the management and control server to the second box, and the resource configuration message includes, but is not limited to: the box number assigned by the management and control server to the second box, The configuration information issued by the control chip in the box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, the ternary content addressable memory TCAM resource division, so The service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
可选地,该第一管控消息中包括该第二盒子的信息,Optionally, the first management and control message includes information about the second box,
该确定模块1020具体用于:根据该第二盒子的信息,确定该第一管控消息是发送给该第二盒子的。The determining module 1020 is specifically configured to determine, according to the information of the second box, that the first management and control message is sent to the second box.
可选地,该第二盒子的信息包括该第二盒子的标识和/或该第二盒子中控制芯片的信息。Optionally, the information of the second box includes the identification of the second box and/or the information of the control chip in the second box.
可选地,该接收模块1010还用于:接收该第二盒子发送的第一消息,该第一消息中包括该第二盒子的标识、该第二盒子中控制芯片的信息;Optionally, the receiving module 1010 is further configured to: receive a first message sent by the second box, where the first message includes the identifier of the second box and information about the control chip in the second box;
该第一盒子1000还包括:The first box 1000 also includes:
建立模块1040,用于根据该第一消息建立该第一转发表项。The establishment module 1040 is configured to establish the first forwarding entry according to the first message.
可选地,该控制芯片的信息包括该第二盒子中该控制芯片的互联网协议IP地址和/或 该控制芯片的端口号。Optionally, the information of the control chip includes the Internet Protocol IP address of the control chip in the second box and/or the port number of the control chip.
可选地,该发送模块1030还用于:向该第二盒子发送第二消息,该第二消息中包括该管控服务器的信息以及指示信息,其中,该管控服务器的信息包括该管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址,该指示信息指示该第一盒子为代理盒子,以便于该第二盒子根据该第二消息建立代理信息,并根据该代理信息将第二管控消息发送给该第一盒子。Optionally, the sending module 1030 is further configured to: send a second message to the second box, the second message including the information of the management and control server and instruction information, wherein the information of the management and control server includes the Internet of the management and control server Protocol IP address and/or media access control MAC address, the indication information indicates that the first box is a proxy box, so that the second box establishes proxy information according to the second message, and sends the second control message according to the proxy information Give this first box.
可选地,所述第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子息中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。Optionally, the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server, and the second management and control message includes one or more of the following: hardware messages , Software message, protocol message, wherein the hardware message includes: hardware information and hardware status information reported by the second box to the management and control server, and the hardware information includes the model of the control chip in the second box message The number of interfaces in the second box, the hardware status information includes fault interface information on the second box, and the protocol message includes the protocol used by the second box to send the second management and control message.
可选地,该第一盒子1000为主时标盒子,该发送模块1030还用于:向该第二盒子发送时标通告消息,该时标通告消息中包括该第一盒子ID以及该第一线卡盒子的时标,以便于该第二盒子根据该第一盒子的时标同步自己的时标。Optionally, the first box 1000 is the main time stamp box, and the sending module 1030 is further configured to: send a time stamp notification message to the second box, and the time stamp notification message includes the first box ID and the first box ID. The time stamp of the line card box, so that the second box synchronizes its own time stamp according to the time stamp of the first box.
可选地,该第一盒子1000还包括:打开模块1050,用于打开所述第一盒子到该第二盒子的通道。Optionally, the first box 1000 further includes: an opening module 1050 for opening the passage from the first box to the second box.
可选地,该接收模块1010具体用于:接收该第二盒子广播发送的第三消息,该第三消息中包括该第二盒子的交换网接口卡标识FIC ID和该第二盒子的端口数量;Optionally, the receiving module 1010 is specifically configured to: receive a third message broadcast and sent by the second box, the third message including the FIC ID of the switching network interface card of the second box and the number of ports of the second box ;
该打开模块1050具体用于:根据该第三消息打开该第一盒子到该第二盒子的通道。The opening module 1050 is specifically configured to: open the channel from the first box to the second box according to the third message.
可选地,该发送模块1030还用于:向该第二盒子单播发送第四消息,该第四消息中包括该第一盒子的FIC ID和该第一盒子的端口数量,以便于该第二盒子根据该第四消息打开该第二盒子到该第一盒子的通道。Optionally, the sending module 1030 is further configured to unicast a fourth message to the second box, and the fourth message includes the FIC ID of the first box and the number of ports of the first box, so as to facilitate the first box. The second box opens the channel from the second box to the first box according to the fourth message.
可选地,该第一盒子和该第二盒子为线卡盒子,该线卡盒子用于负责报文的处理和转发。Optionally, the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding messages.
可选地,该管控服务器位于线卡盒子或交换盒子的处理器上,该交换盒子用于承担交换功能。Optionally, the management and control server is located on a processor of a line card box or a switch box, and the switch box is used to undertake the switching function.
可选地,该接收模块1010还用于:接收该第二盒子发送的第二管控消息,该第二管控消息的目的IP地址和/或目的MAC地址为该管控服务器的IP地址和/或MAC地址。Optionally, the receiving module 1010 is further configured to: receive a second management and control message sent by the second box, where the destination IP address and/or destination MAC address of the second management and control message is the IP address and/or MAC address of the management and control server address.
图11是本申请实施例提供的一种第二盒子1100的示意性框图。该第二盒子1100可以通过软件、硬件或者两者的结合实现成为装置中的部分或者全部。应理解,第二盒子1100作为计算机设备100中的功能模块,用于执行上述计算机设备100执行的方法流程。FIG. 11 is a schematic block diagram of a second box 1100 provided by an embodiment of the present application. The second box 1100 can be implemented as part or all of the device through software, hardware or a combination of the two. It should be understood that the second box 1100 is used as a functional module in the computer device 100 to execute the above-mentioned method flow executed by the computer device 100.
该第二盒子1100与管控服务器非直连,该第二盒子1100包括:接收模块111,建立模块1120,发送模块1130,其中:The second box 1100 is not directly connected to the management and control server. The second box 1100 includes: a receiving module 111, a establishing module 1120, and a sending module 1130, in which:
接收模块1110,用于接收该第一盒子发送的第二消息,该第二消息中包括该管控服务器的IP地址和/或MAC地址以及指示信息,该指示信息指示该第一盒子为代理盒子;The receiving module 1110 is configured to receive a second message sent by the first box, where the second message includes the IP address and/or MAC address of the management and control server and indication information, and the indication information indicates that the first box is a proxy box;
建立模块1120,用于建立代理信息,该代理信息中包括代理盒子标识ID、该管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址;The establishment module 1120 is used to establish agent information, the agent information includes the agent box identification ID, the Internet Protocol IP address of the management and control server, and/or the media access control MAC address;
发送模块1130,用于根据该代理信息中该代理盒子标识ID为第一盒子,将第二管控 消息发送给该第一盒子,该第二管控消息的目的IP地址和/或目的MAC地址为该管控服务器的IP地址和/或MAC地址。The sending module 1130 is configured to send a second management control message to the first box according to the proxy box identification ID in the proxy information, and the destination IP address and/or destination MAC address of the second management control message is the first box. The IP address and/or MAC address of the control server.
可选地,该第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息。Optionally, the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server.
可选地,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。Optionally, the second management and control message includes one or more of the following: hardware messages, software messages, and protocol messages, where the hardware messages include: hardware reported by the second box to the management and control server Information, hardware status information, the hardware information includes the model of the control chip in the second box, the number of interfaces in the second box, the hardware status information includes the faulty interface information on the second box, the The protocol message includes the protocol used by the second box to send the second management and control message.
可选地,该发送模块1130还用于:向该第一盒子发送第一消息,该第一消息中包括该第二盒子的标识、该第二盒子中控制芯片的信息,以便于该第一盒子根据该第一消息建立第一转发表项,该第一转发表项用于该第一盒子将该管控服务器发送的第一管控消息转发给该第二盒子。Optionally, the sending module 1130 is further configured to: send a first message to the first box, and the first message includes the identification of the second box and the information of the control chip in the second box, so that the first The box establishes a first forwarding entry according to the first message, and the first forwarding entry is used by the first box to forward the first management and control message sent by the management and control server to the second box.
可选地,所述第一管控消息为不分片的消息述所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,Optionally, the first management and control message is a non-fragmented message. The first management and control message includes one or more of the following: software version message, resource configuration message, service configuration message, device management message, table Item message,
其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括但不限于:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes but is not limited to: the management and control server is the second box The assigned box number, the configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content The addressable memory TCAM resource division, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
可选地,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。Optionally, the first forwarding entry includes the identifier of the second box, the information of the control chip, and the port number of the first box that sends the first management control message to the second box, so The control chip in the second box is a chip responsible for executing the first management and control message in the second box.
可选地,该控制芯片的信息包括该第二盒子中该控制芯片的IP地址和/或该控制芯片的端口号。Optionally, the information of the control chip includes the IP address of the control chip in the second box and/or the port number of the control chip.
可选地,该第一盒子为主时标盒子,该接收模块1110还用于:接收该第一盒子广播的时标通告消息,该时标通告消息中包括该第一盒子ID以及该第一线卡盒子的时标;Optionally, the first box is the master time stamp box, and the receiving module 1110 is further configured to: receive a time stamp notification message broadcast by the first box, and the time stamp notification message includes the first box ID and the first time stamp. The time scale of the line card box;
第二盒子1100还包括:同步模块1140,用于根据该第一盒子的时标同步自己的时标。The second box 1100 further includes: a synchronization module 1140 for synchronizing its own time scale according to the time scale of the first box.
可选地,第二盒子1100还包括:打开模块1150,用于打开第二盒子到该第一盒子的通道。Optionally, the second box 1100 further includes: an opening module 1150 for opening the passage from the second box to the first box.
可选地,该接收模块1110还用于:接收该第一盒子发送的第四消息,该第四消息中包括该第一盒子的FIC ID和该第一盒子的端口数量;Optionally, the receiving module 1110 is further configured to: receive a fourth message sent by the first box, where the fourth message includes the FIC ID of the first box and the number of ports of the first box;
该打开模块1150具体用于:根据该第四消息打开该第二盒子到该第一盒子的通道。The opening module 1150 is specifically configured to: open the channel from the second box to the first box according to the fourth message.
可选地,该发送模块1130还用于:向该第一盒子发送第三消息,该第三消息中包括该第二盒子的交换网接口卡标识FIC ID和该第二盒子的端口数量,以便于该第一盒子根据该第三消息打开该第一盒子到该第二盒子的通道。Optionally, the sending module 1130 is further configured to send a third message to the first box, the third message including the FIC ID of the switching network interface card of the second box and the number of ports of the second box, so that Open the channel from the first box to the second box in the first box according to the third message.
可选地,该第一盒子和该第二盒子为线卡盒子,该线卡盒子用于负责报文的处理和转发。Optionally, the first box and the second box are line card boxes, and the line card boxes are used for processing and forwarding messages.
可选地,该管控服务器位于线卡盒子或交换盒子的处理器上,该交换盒子用于承担交换功能。Optionally, the management and control server is located on a processor of a line card box or a switch box, and the switch box is used to undertake the switching function.
可选地,该接收模块1110还用于:接收该第一盒子发送的第一管控消息,第一管控消息中包括该第二盒子的信息。Optionally, the receiving module 1110 is further configured to: receive a first management and control message sent by the first box, where the first management and control message includes information about the second box.
本实施例中,还提供了一种计算机可读存储介质,计算机可读存储介质存储有指令,当计算机可读存储介质中的指令在计算设备上被执行时,使得计算设备执行上述第一盒子所执行的方法。In this embodiment, a computer-readable storage medium is also provided. The computer-readable storage medium stores instructions. When the instructions in the computer-readable storage medium are executed on a computing device, the computing device executes the first box. The method performed.
本实施例中,还提供了一种计算机可读存储介质,计算机可读存储介质存储有指令,当计算机可读存储介质中的指令在计算设备上被执行时,使得计算设备执行上述第二盒子所执行的方法。In this embodiment, a computer-readable storage medium is also provided. The computer-readable storage medium stores instructions. When the instructions in the computer-readable storage medium are executed on a computing device, the computing device is caused to execute the above-mentioned second box. The method performed.
本实施例中,还提供了一种包含指令的计算机程序产品,当其在计算设备上运行时,使得计算设备执行上述第一盒子所执行的方法。In this embodiment, a computer program product containing instructions is also provided, which when running on a computing device, causes the computing device to execute the method executed by the above-mentioned first box.
本实施例中,还提供了一种包含指令的计算机程序产品,当其在计算设备上运行时,使得计算设备执行上述第二盒子所执行的方法。In this embodiment, a computer program product containing instructions is also provided, which when running on a computing device, causes the computing device to execute the method executed by the above-mentioned second box.
本实施例中,还提供了一种芯片,该芯片包括处理器与数据接口,其中,处理器通过所述数据接口读取存储器上存储的指令,以执行第一盒子所执行的方法。In this embodiment, a chip is also provided, which includes a processor and a data interface, wherein the processor reads instructions stored on the memory through the data interface to execute the method executed by the first box.
在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或可编辑逻辑器件(programmable logic device,PLD)的形式实现。In the specific implementation process, the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
可选地,在具体实现中,该处理器的个数不做限制。该处理器是通用处理器,可选地,该通用处理器能够通过硬件来实现或通过软件来实现。当通过硬件实现时,该处理器是逻辑电路、集成电路等;当通过软件来实现时,该处理器是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器集成在处理器中,位于该处理器之外,独立存在。Optionally, in a specific implementation, the number of processors is not limited. The processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software. When implemented by hardware, the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
本实施例中,还提供了一种芯片,该芯片包括处理器与数据接口,其中,处理器通过所述数据接口读取存储器上存储的指令,以执行第二盒子所执行的方法。In this embodiment, a chip is also provided, which includes a processor and a data interface, wherein the processor reads instructions stored on the memory through the data interface to execute the method executed by the second box.
在具体实现过程中,该芯片可以以中央处理器(central processing unit,CPU)、微控制器(micro controller unit,MCU)、微处理器(micro processing unit,MPU)、数字信号处理器(digital signal processing,DSP)、片上系统(system on chip,SoC)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或可编辑逻辑器件(programmable logic device,PLD)的形式实现。In the specific implementation process, the chip can be implemented with a central processing unit (CPU), a microcontroller (microcontroller unit, MCU), a microprocessor (microprocessing unit, MPU), and a digital signal processor (digital signal processor). processing, DSP), system on chip (SoC), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or programmable logic device , PLD).
可选地,在具体实现中,该处理器的个数不做限制。该处理器是通用处理器,可选地,该通用处理器能够通过硬件来实现或通过软件来实现。当通过硬件实现时,该处理器是逻辑电路、集成电路等;当通过软件来实现时,该处理器是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器集成在处理器中,位于该处理器之外,独立存在。Optionally, in a specific implementation, the number of processors is not limited. The processor is a general-purpose processor, and optionally, the general-purpose processor can be implemented by hardware or by software. When implemented by hardware, the processor is a logic circuit, integrated circuit, etc.; when implemented by software, the processor is a general-purpose processor, which is implemented by reading the software code stored in the memory, and the memory is integrated in the processing In the processor, it is located outside the processor and exists independently.
上述实施例,全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令或计算机程序。在计算机上加载或执行所述计算机指令或计算 机程序时,全部或部分地产生按照本申请实施例所述的流程或功能。The above-mentioned embodiments are all or partly implemented by software, hardware, firmware or any other combination. When implemented using software, the above-mentioned embodiments are all or partly implemented in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
可选地,所述计算机为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令能够存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令从一个网站站点、计算机、服务器或数据中心通过有线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。Optionally, the computer is a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be passed from a website, a computer, a server, or a data center. Wired (such as infrared, wireless, microwave, etc.) to transmit to another website, computer, server or data center.
所述计算机可读存储介质是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质是固态硬盘。The computer-readable storage medium is any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more sets of available media. The usable medium is a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium is a solid state drive.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示存在三种关系,例如,A和/或B,表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B是单数或者复数。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系,但也可能表示的是一种“和/或”的关系,具体可参考前后文进行理解。It should be understood that the term "and/or" in this article is only an association relationship describing associated objects, indicating that there are three types of relationships. There are three cases of B, where A and B are singular or plural. In addition, the character "/" in this text generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and/or" relationship, which can be understood with reference to the context.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员能够意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员能够对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art can be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of this application.
所属领域的技术人员能够清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,请参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and concise description, please refer to the corresponding process in the foregoing method embodiment for the specific working process of the system, device, and unit described above, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,能够通过其它的方式实现。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways.
例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时能够有另外的划分方式,例如多个单元或组件结合或者集成到另一个系统,或一些特征能够被忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接是通过一些接口,装置或单元的间接耦合或通信连接,是电性,机械或其它的形式。For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there can be other divisions in actual implementation, such as the combination or integration of multiple units or components. To another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections are indirect couplings or communication connections between devices or units through some interfaces, and are in electrical, mechanical or other forms.
可选地,所述作为分离部件说明的单元是物理上分开的,或者不是物理上分开的,作为单元显示的部件是物理上分开的,或者不是物理单元,即位于一个地方,或者也分布到多个网络单元上。根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Optionally, the units described as separate parts are physically separated, or not physically separated, and the parts displayed as units are physically separated, or are not physical units, that is, they are located in one place, or are also distributed to Multiple network units. Some or all of the units are selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元能够集成在一个处理单元中,可选地,是各个单元单独物理存在,或者两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit. Optionally, each unit physically exists alone, or two or more units are integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,能够存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分能够以软件产品的形式体现出来,该计算机 软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种能够存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media capable of storing program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (30)

  1. 一种数据传输的方法,其特征在于,所述方法包括:A method of data transmission, characterized in that the method includes:
    第一盒子接收管控服务器发送的第一管控消息,其中,所述第一盒子为代理盒子,所述第一管控消息为所述管控服务器对所述第二盒子进行管理和控制时所发送的消息;The first box receives the first management and control message sent by the management and control server, where the first box is a proxy box, and the first management and control message is a message sent when the management and control server manages and controls the second box ;
    所述第一盒子确定所述第一管控消息是发送给第二盒子的,所述第二盒子与所述管控服务器非直连;The first box determines that the first management and control message is sent to a second box, and the second box is not directly connected to the management and control server;
    所述第一盒子根据第一转发表项将所述第一管控消息发送给所述第二盒子。The first box sends the first management and control message to the second box according to the first forwarding entry.
  2. 根据权利要求1所述的方法,其特征在于,所述第一管控消息为不分片的消息,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,The method according to claim 1, wherein the first management and control message is a non-fragmented message, and the first management and control message includes one or more of the following: software version message, resource configuration message, Business configuration messages, device management messages, table entry messages,
    其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes: the box allocated by the management and control server to the second box Number, configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content can be found The address memory TCAM resources are divided, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中的控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。The method according to claim 1 or 2, wherein the first forwarding entry includes the identification of the second box, the information of the control chip, and the sending of the first box to the second box The port number of the first management control message, and the control chip in the second box is the chip responsible for executing the first management control message in the second box.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,在所述第一盒子根据第一转发表项将所述第一管控消息发送给所述第二盒子之前,所述方法还包括:The method according to any one of claims 1 to 3, characterized in that, before the first box sends the first management control message to the second box according to a first forwarding entry, the method Also includes:
    所述第一盒子接收所述第二盒子发送的第一消息,所述第一消息中包括所述第二盒子的标识、所述第二盒子中控制芯片的信息;The first box receives a first message sent by the second box, and the first message includes an identifier of the second box and information about a control chip in the second box;
    所述第一盒子根据所述第一消息建立所述第一转发表项。The first box establishes the first forwarding entry according to the first message.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述第一盒子向所述第二盒子发送第二消息,所述第二消息中包括所述管控服务器的信息以及指示信息,其中,所述管控服务器的信息包括所述管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址,所述指示信息指示所述第一盒子为代理盒子,以便于所述第二盒子根据所述第二消息建立代理信息,并根据所述代理信息将第二管控消息发送给所述第一盒子。The first box sends a second message to the second box, and the second message includes information and instruction information of the management and control server, wherein the information of the management and control server includes the Internet Protocol IP of the management and control server Address and/or media access control MAC address, the indication information indicates that the first box is a proxy box, so that the second box establishes proxy information according to the second message, and transfers the second The control message is sent to the first box.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述第一盒子为主时标盒子,The method according to any one of claims 1 to 5, wherein the first box is a main time-scaled box,
    所述方法还包括:The method also includes:
    所述第一盒子向所述第二盒子发送时标通告消息,所述时标通告消息中包括所述第一盒子ID以及所述第一盒子的时标,所述第一盒子的时标为所述第一盒子的时间,所述时标通告消息用于所述第二盒子根据所述第一盒子的时标,同步所述第二盒子的时标与所述第一盒子的时标。The first box sends a time stamp notification message to the second box, the time stamp notification message includes the first box ID and the time stamp of the first box, and the time stamp of the first box is The time of the first box, the time stamp notification message is used by the second box to synchronize the time stamp of the second box with the time stamp of the first box according to the time stamp of the first box.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    所述第一盒子接收所述第二盒子广播发送的第三消息,所述第三消息中包括所述第二盒子的交换网接口卡标识FIC ID和所述第二盒子的端口数量;The first box receives a third message broadcasted by the second box, and the third message includes the FIC ID of the switching network interface card of the second box and the number of ports of the second box;
    所述第一盒子根据所述第三消息打开所述第一盒子到所述第二盒子的通道。The first box opens a passage from the first box to the second box according to the third message.
  8. 一种数据传输的方法,其特征在于,所述方法包括:A method of data transmission, characterized in that the method includes:
    第二盒子接收第一盒子发送的第二消息,所述第二消息中包括管控服务器的信息以及指示信息,其中,所述管控服务器的信息包括所述管控服务器的IP地址和/或MAC地址,所述指示信息指示所述第一盒子为代理盒子;The second box receives the second message sent by the first box. The second message includes information and instruction information of the management and control server, wherein the information of the management and control server includes the IP address and/or MAC address of the management and control server, The instruction information indicates that the first box is a proxy box;
    所述第二盒子建立代理信息,所述代理信息中包括代理盒子标识ID、所述管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址,所述第二盒子与所述管控服务器非直连;The second box establishes proxy information, and the proxy information includes the proxy box identification ID, the Internet Protocol IP address and/or the media access control MAC address of the management and control server, and the second box is not directly connected to the management and control server. even;
    所述第二盒子根据所述代理信息中所述代理盒子标识ID为第一盒子,将第二管控消息发送给所述第一盒子,所述第二管控消息的目的IP地址和/或目的MAC地址为所述管控服务器的IP地址和/或MAC地址,所述第一盒子与所述管控服务器直连。The second box sends a second management and control message to the first box according to the proxy box identification ID in the proxy information as the first box, and the destination IP address and/or destination MAC of the second management and control message The address is the IP address and/or MAC address of the management and control server, and the first box is directly connected to the management and control server.
  9. 根据权利要求8所述的方法,其特征在于,所述第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。The method according to claim 8, wherein the second management and control message is a non-fragmented message sent by the control chip in the second box to the management and control server, and the second management and control message includes the following One or more of: hardware messages, software messages, and protocol messages, where the hardware messages include: hardware information and hardware status information reported by the second box to the management and control server, and the hardware information includes the The model of the control chip in the second box, the number of interfaces in the second box, the hardware status information includes fault interface information on the second box, and the protocol message includes the second box sent by the second box. The protocol used for the control message.
  10. 根据权利要求8或9所述的方法,其特征在于,所述第一盒子为主时标盒子,The method according to claim 8 or 9, wherein the first box is a main time-scaled box,
    所述方法还包括:The method also includes:
    所述第二盒子接收所述第一盒子广播的时标通告消息,所述时标通告消息中包括所述第一盒子ID以及所述第一线卡盒子的时标;Receiving, by the second box, a time stamp notification message broadcast by the first box, where the time stamp notification message includes the first box ID and the time stamp of the first line card box;
    所述第二盒子根据所述第一盒子的时标同步自己的时标。The second box synchronizes its own time scale according to the time scale of the first box.
  11. 根据权利要求8至10中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8 to 10, wherein the method further comprises:
    所述第二盒子接收所述第一盒子发送的第四消息,所述第四消息中包括所述第一盒子的FIC ID和所述第一盒子的端口数量;The second box receives a fourth message sent by the first box, where the fourth message includes the FIC ID of the first box and the number of ports of the first box;
    所述第二盒子根据所述第四消息打开所述第二盒子到所述第一盒子的通道。The second box opens a passage from the second box to the first box according to the fourth message.
  12. 根据权利要求8至11中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 8 to 11, wherein the method further comprises:
    所述第二盒子接收所述第一盒子发送的第一管控消息,第一管控消息中包括所述第二盒子的信息。The second box receives the first management and control message sent by the first box, and the first management and control message includes the information of the second box.
  13. 根据权利要求12所述的方法,其特征在于,所述第一管控消息为不分片的消息,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,The method according to claim 12, wherein the first management and control message is a non-fragmented message, and the first management and control message includes one or more of the following: software version message, resource configuration message, Business configuration messages, device management messages, table entry messages,
    其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所 述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes: the box allocated by the management and control server to the second box Number, configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content can be found The address memory TCAM resources are divided, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  14. 一种第一盒子,其特征在于,所述第一盒子为代理盒子,所述第一盒子包括:A first box, characterized in that, the first box is a proxy box, and the first box includes:
    接收模块,用于接收所述管控服务器发送的第一管控消息,其中,所述第一管控消息为所述管控服务器对所述第二盒子进行管理和控制时所发送的消息;A receiving module, configured to receive a first management and control message sent by the management and control server, where the first management and control message is a message sent when the management and control server manages and controls the second box;
    确定模块,用于确定所述第一管控消息是发送给第二盒子的,所述第二盒子与所述管控服务器非直连;A determining module, configured to determine that the first management and control message is sent to a second box, and the second box is not directly connected to the management and control server;
    发送模块,用于根据第一转发表项将所述第一管控消息发送给所述第二盒子。The sending module is configured to send the first management and control message to the second box according to the first forwarding entry.
  15. 根据权利要求14所述的第一盒子,其特征在于,所述第一管控消息为不分片的消息,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,The first box according to claim 14, wherein the first management and control message is a non-fragmented message, and the first management and control message includes one or more of the following: software version message, resource configuration Messages, business configuration messages, device management messages, entry messages,
    其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes: the box allocated by the management and control server to the second box Number, configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content can be found The address memory TCAM resources are divided, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  16. 根据权利要求14或15所述的第一盒子,其特征在于,所述第一转发表项包括所述第二盒子的标识、所述控制芯片的信息以及所述第一盒子向所述第二盒子发送所述第一管控消息的端口号,所述第二盒子中的控制芯片为所述第二盒子中负责执行所述第一管控消息的芯片。The first box according to claim 14 or 15, wherein the first forwarding entry includes the identification of the second box, the information of the control chip, and the information of the first box to the second The box sends the port number of the first management and control message, and the control chip in the second box is the chip responsible for executing the first management and control message in the second box.
  17. 根据权利要求14至16中任一项所述的第一盒子,其特征在于,所述接收模块还用于:接收所述第二盒子发送的第一消息,所述第一消息中包括所述第二盒子的标识、所述第二盒子中控制芯片的信息;The first box according to any one of claims 14 to 16, wherein the receiving module is further configured to: receive a first message sent by the second box, the first message including the The identification of the second box, and the information of the control chip in the second box;
    所述第一盒子还包括:The first box also includes:
    建立模块,用于根据所述第一消息建立所述第一转发表项。The establishment module is used to establish the first forwarding entry according to the first message.
  18. 根据权利要求14至17中任一项所述的第一盒子,其特征在于,所述发送模块还用于:The first box according to any one of claims 14 to 17, wherein the sending module is further configured to:
    向所述第二盒子发送第二消息,所述第二消息中包括所述管控服务器的信息以及指示信息,其中,所述管控服务器的信息包括所述管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址,所述指示信息指示所述第一盒子为代理盒子,以便于所述第二盒子根据所述第二消息建立代理信息,并根据所述代理信息将第二管控消息发送给所述第一盒子。Send a second message to the second box, the second message includes information and instruction information of the management and control server, wherein the information of the management and control server includes the Internet Protocol IP address and/or media of the management and control server Access control MAC address, the indication information indicates that the first box is a proxy box, so that the second box establishes proxy information according to the second message, and sends a second management and control message to all of them according to the proxy information. The first box.
  19. 根据权利要求14至18中任一项所述的第一盒子,其特征在于,所述第一盒子为主时标盒子,The first box according to any one of claims 14 to 18, wherein the first box is a main time-scaled box,
    所述发送模块还用于:向所述第二盒子发送时标通告消息,所述时标通告消息中包括所述第一盒子ID以及所述第一线卡盒子的时标,以便于所述第二盒子根据所述第一盒子的时标同步自己的时标。The sending module is further configured to send a time stamp notification message to the second box, where the time stamp notification message includes the first box ID and the time stamp of the first line card box, so as to facilitate the The second box synchronizes its own time scale according to the time scale of the first box.
  20. 根据权利要求14至19中任一项所述的第一盒子,其特征在于,所述接收模块具体用于:The first box according to any one of claims 14 to 19, wherein the receiving module is specifically configured to:
    接收所述第二盒子单播广播发送的第三消息,所述第三消息中包括所述第二盒子的交 换网接口卡标识FIC ID和所述第二盒子的端口数量;Receiving a third message sent by a unicast broadcast of the second box, where the third message includes the switching network interface card identification FIC ID of the second box and the number of ports of the second box;
    还包括:Also includes:
    打开模块,用于根据所述第三消息打开所述第一盒子到所述第二盒子的通道。The opening module is used to open the passage from the first box to the second box according to the third message.
  21. 一种第二盒子,其特征在于,所述第二盒子包括:A second box, characterized in that, the second box includes:
    接收模块,用于接收所述第一盒子发送的第二消息,所述第二消息中包括所述管控服务器的信息以及指示信息,其中,所述管控服务器的信息包括所述管控服务器的IP地址和/或MAC地址,所述指示信息指示所述第一盒子为代理盒子;The receiving module is configured to receive a second message sent by the first box, the second message including information and indication information of the management and control server, wherein the information of the management and control server includes the IP address of the management and control server And/or a MAC address, the indication information indicates that the first box is a proxy box;
    建立模块,用于建立代理信息,所述代理信息中包括代理盒子标识ID、所述管控服务器的互联网协议IP地址和/或媒体访问控制MAC地址;The establishment module is used to establish agent information, the agent information includes the agent box identification ID, the Internet Protocol IP address of the management and control server and/or the media access control MAC address;
    发送模块,用于根据所述代理信息中所述代理盒子标识ID为第一盒子,将第二管控消息发送给所述第一盒子,所述第二管控消息的目的IP地址和/或目的MAC地址为所述管控服务器的IP地址和/或MAC地址。The sending module is configured to send a second management and control message to the first box according to the proxy box identification ID in the proxy information as the first box, and the destination IP address and/or destination MAC of the second management and control message The address is the IP address and/or MAC address of the management and control server.
  22. 根据权利要求21所述的第二盒子,其特征在于,所述第二管控消息为所述第二盒子中控制芯片向所述管控服务器发送的不分片的消息,所述第二管控消息包括以下中的一种或多种:硬件消息、软件消息、协议消息,其中,所述硬件消息包括:所述第二盒子向所述管控服务器上报的硬件信息、硬件状态信息,所述硬件信息包括所述第二盒子中控制芯片的型号、所述第二盒子中接口的数量,所述硬件状态信息包括所述第二盒子上故障接口信息,所述协议消息包括所述第二盒子发送所述第二管控消息所使用的协议。The second box according to claim 21, wherein the second management and control message is a non-fragmented message sent by a control chip in the second box to the management and control server, and the second management and control message includes One or more of the following: hardware messages, software messages, and protocol messages, where the hardware messages include: hardware information and hardware status information reported by the second box to the management and control server, and the hardware information includes The model of the control chip in the second box, the number of interfaces in the second box, the hardware status information includes fault interface information on the second box, and the protocol message includes the second box sending the The protocol used by the second control message.
  23. 根据权利要求21或22所述的第二盒子,其特征在于,所述第一盒子为主时标盒子,The second box according to claim 21 or 22, wherein the first box is a main time-marked box,
    所述接收模块还用于:接收所述第一盒子广播的时标通告消息,所述时标通告消息中包括所述第一盒子ID以及所述第一线卡盒子的时标;The receiving module is further configured to: receive a time stamp notification message broadcast by the first box, where the time stamp notification message includes the first box ID and the time stamp of the first line card box;
    还包括:同步模块,用于根据所述第一盒子的时标同步自己的时标。It also includes: a synchronization module for synchronizing its own time scale according to the time scale of the first box.
  24. 根据权利要求21至23中任一项所述的第二盒子,其特征在于,所述接收模块还用于:接收所述第一盒子发送的第四消息,所述第四消息中包括所述第一盒子的FIC ID和所述第一盒子的端口数量;The second box according to any one of claims 21 to 23, wherein the receiving module is further configured to: receive a fourth message sent by the first box, and the fourth message includes the The FIC ID of the first box and the number of ports of the first box;
    还包括:Also includes:
    所述打开模块,用于根据所述第四消息打开所述第二盒子到所述第一盒子的通道。The opening module is configured to open a passage from the second box to the first box according to the fourth message.
  25. 根据权利要求21至24中任一项所述的第二盒子,其特征在于,所述接收模块还用于:The second box according to any one of claims 21 to 24, wherein the receiving module is further used for:
    接收所述第一盒子发送的第一管控消息,第一管控消息中包括所述第二盒子的信息。Receiving a first management and control message sent by the first box, where the first management and control message includes information about the second box.
  26. 根据权利要求21至25中任一项所述的第二盒子,其特征在于,所述第一管控消息为不分片的消息,所述第一管控消息包括以下中的一种或多种:软件版本消息、资源配置消息、业务配置消息、设备管理消息、表项消息,The second box according to any one of claims 21 to 25, wherein the first management and control message is a non-fragmented message, and the first management and control message includes one or more of the following: Software version message, resource configuration message, service configuration message, device management message, table entry message,
    其中,所述软件版本消息包括所述管控服务器向所述第二盒子下发的所述第二盒子的软件版本,所述资源配置消息包括:所述管控服务器为所述第二盒子分配的盒子编号、向所述第二盒子中的控制芯片下发的配置信息,所述配置信息包括以下中的一种或多种:所述控制芯片的内存划分、接口地址的配置、三元内容可寻址存储器TCAM资源划分,所述业务配置消息包括服务质量QOS业务,所述表项消息包括由路由协议生成的路由表。Wherein, the software version message includes the software version of the second box delivered by the management and control server to the second box, and the resource configuration message includes: the box allocated by the management and control server to the second box Number, configuration information issued to the control chip in the second box, the configuration information includes one or more of the following: the memory division of the control chip, the configuration of the interface address, and the ternary content can be found The address memory TCAM resources are divided, the service configuration message includes a quality of service QOS service, and the entry message includes a routing table generated by a routing protocol.
  27. 一种计算机设备,其特征在于,包括:处理器和存储器,所述存储器用于存储程序,所述处理器用于从存储器中调用并运行所述程序以执行权利要求1至7中任一项所述的方法。A computer device, characterized by comprising: a processor and a memory, the memory is used to store a program, the processor is used to call and run the program from the memory to execute any one of claims 1 to 7 The method described.
  28. 一种计算机设备,其特征在于,包括:处理器和存储器,所述存储器用于存储程序,所述处理器用于从存储器中调用并运行所述程序以执行权利要求8至13中任一项所述的方法。A computer device, comprising: a processor and a memory, the memory is used to store a program, the processor is used to call and run the program from the memory to execute any one of claims 8 to 13 The method described.
  29. 一种计算机可读存储介质,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求1至7中任一项所述的方法。A computer-readable storage medium, characterized by comprising a computer program, which when the computer program runs on a computer, causes the computer to execute the method according to any one of claims 1 to 7.
  30. 一种计算机可读存储介质,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求8至13中任一项所述的方法。A computer-readable storage medium, characterized by comprising a computer program, which when the computer program runs on a computer, causes the computer to execute the method according to any one of claims 8 to 13.
PCT/CN2021/092945 2020-05-22 2021-05-11 Method for data transmission, first box and second box WO2021233158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010438591.6A CN113709050A (en) 2020-05-22 2020-05-22 Data transmission method, first box and second box
CN202010438591.6 2020-05-22

Publications (1)

Publication Number Publication Date
WO2021233158A1 true WO2021233158A1 (en) 2021-11-25

Family

ID=78645962

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/092945 WO2021233158A1 (en) 2020-05-22 2021-05-11 Method for data transmission, first box and second box

Country Status (2)

Country Link
CN (1) CN113709050A (en)
WO (1) WO2021233158A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534328A (en) * 2009-04-14 2009-09-16 华为技术有限公司 Relay agent generation method, single boards and network equipment
EP2611067A1 (en) * 2011-12-30 2013-07-03 Thomson Licensing System and method for combining multiple communication links
CN110050446A (en) * 2016-12-19 2019-07-23 华为技术有限公司 Programmable low time delay switching network for router extending transversely
CN111026324A (en) * 2018-10-09 2020-04-17 华为技术有限公司 Updating method and device of forwarding table entry

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534328A (en) * 2009-04-14 2009-09-16 华为技术有限公司 Relay agent generation method, single boards and network equipment
EP2611067A1 (en) * 2011-12-30 2013-07-03 Thomson Licensing System and method for combining multiple communication links
CN110050446A (en) * 2016-12-19 2019-07-23 华为技术有限公司 Programmable low time delay switching network for router extending transversely
CN111026324A (en) * 2018-10-09 2020-04-17 华为技术有限公司 Updating method and device of forwarding table entry

Also Published As

Publication number Publication date
CN113709050A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US11563669B2 (en) Method for implementing network virtualization and related apparatus and communications system
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
EP2888858B1 (en) Method and apparatus of generalized network controller for a software defined network (sdn)
WO2018086014A1 (en) Packet processing method in cloud computing system, host, and system
US8010673B2 (en) Transitioning network traffic between logical partitions in one or more data processing systems
US10671139B2 (en) Operable server system when standby power of PSU fails
CN111130901A (en) Device management method, device, communication device and storage medium
US20110205904A1 (en) Relay apparatus, virtual machine system, and relay method
CN111682927B (en) Message synchronization method, device, equipment and medium based on MLAG environment
WO2021135468A1 (en) Segment identifier determining method and device
WO2020135542A1 (en) Cloud computing data center system, gateway, server, and message processing method
CN105049464B (en) Techniques for accelerating network virtualization
CN103631652A (en) Method and system for achieving virtual machine migration
US9654421B2 (en) Providing real-time interrupts over ethernet
US11991083B2 (en) Systems and methods for enhanced autonegotiation
US20200236065A1 (en) Methods and apparatus to reduce packet flooding and duplicate packets in a multi-fabric virtual network
CN114303349A (en) Bidirectional Forwarding Detection (BFD) offload in virtual network interface controllers
TW201911942A (en) Data transmission, data retransmission, data processing method and device
JP2020511873A (en) MAC address synchronization
WO2021175105A1 (en) Connection method and apparatus, device, and storage medium
EP4068708A1 (en) Network operation method, apparatus, and device and storage medium
WO2021233158A1 (en) Method for data transmission, first box and second box
CN108123865B (en) Message processing method and device
CN110086657B (en) Configuration synchronization method and device
US11290516B1 (en) Prioritized MSRP transmissions to reduce traffic interruptions

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: 21808860

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: 21808860

Country of ref document: EP

Kind code of ref document: A1