WO2014117474A1 - Routing method, system, and related device - Google Patents

Routing method, system, and related device Download PDF

Info

Publication number
WO2014117474A1
WO2014117474A1 PCT/CN2013/078756 CN2013078756W WO2014117474A1 WO 2014117474 A1 WO2014117474 A1 WO 2014117474A1 CN 2013078756 W CN2013078756 W CN 2013078756W WO 2014117474 A1 WO2014117474 A1 WO 2014117474A1
Authority
WO
WIPO (PCT)
Prior art keywords
data frame
interface device
interface
forwarding
message
Prior art date
Application number
PCT/CN2013/078756
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 WO2014117474A1 publication Critical patent/WO2014117474A1/en

Links

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/72Routing based on the source address

Definitions

  • the present invention claims the priority of a Chinese patent application filed on January 29, 2013 by the Chinese Patent Office, the application number is 201310034174.5, and the invention name is "routing method, system and related equipment", the entire contents thereof. This is incorporated herein by reference.
  • TECHNICAL FIELD The present invention relates to the field of communications technologies, and in particular, to a distributed routing method, system, and related device.
  • the current wide area network (WAN) side interface, the forwarding plane, and the control plane are all concentrated in one router.
  • the central processing unit (CPU) of the router is used for route calculation, providing user interaction interface and routing forwarding.
  • All kinds of WAN side interfaces are fixed or plug-in type. There are two types of connection methods with the CPU of the router: 1.
  • the CPU bus direct out interface mode the cost of this mode is low, but it is limited to the outbound interface of the CPU. The number is generally less.
  • 2. Use a switch chip or a bridge chip to connect between the CPU and the WAN side interface to solve the problem of a small number of CPU outbound interfaces, and provide a certain number of WAN side interface boards.
  • SUMMARY Embodiments of the present invention provide a routing method, a system, and related devices, which can provide multiple interfaces, which saves investment costs and upgrade costs.
  • the interface concentrator adds an identifier of the inbound interface device to the first data frame to form a second data frame, and the second data is After the frame is sent to the forwarding processing device, the frame may further include:
  • the interface concentrator receives the forwarding data frame sent by the forwarding processing device, where the forwarding data frame includes the packet and the identity and port number of the outbound interface device, and the identity identifier and port number of the outbound interface device are Obtaining, by the forwarding processing device, the second data frame and performing route searching; and
  • the interface concentrator sends the forwarding data frame to the outbound interface device according to the identity identifier of the outbound interface device in the forwarding data frame, so that the outbound interface device is from the forwarding data frame.
  • the port corresponding to the port number of the interface device is sent to send the packet.
  • the interface concentrator may further include: the interface concentrator Detecting that the inbound interface device or the outbound interface device is inserted, and receiving a third data frame sent by the inbound interface device or the outbound interface device, where the third data frame includes the ingress interface device or Describe all port numbers of the interface device and corresponding port types.
  • a second aspect of the present invention provides a routing method, which may include:
  • the forwarding processing device receives the second data frame sent by the interface concentrator, where the second data frame includes a packet received by the inbound interface device connected to the interface concentrator, and an identifier of the inbound interface device. Recognizing the port number of the received message;
  • the forwarding processing device parses the second data frame according to the identity identifier of the inbound interface device and the port number of the received packet in the second data frame, and performs routing and forwarding.
  • the forwarding processing device according to the identity identifier of the inbound interface device in the second data frame, and the port number of receiving the packet,
  • the two data frames are parsed and routed, including:
  • the forwarding processing device acquires a corresponding interface link layer from the interface information table of the forwarding processing device according to the identity identifier of the inbound interface device and the port number of the packet in the second data frame.
  • the forwarding processing device performs route searching according to the parsed packet, and routes and forwards the packet.
  • the forwarding processing device performs a route search according to the parsed packet, and routes and forwards the packet, specifically including :
  • the forwarding processing device performs a route search according to the parsed packet, and obtains an identity identifier and a port number of the outbound interface device that forwards the packet, and the identity identifier of the outbound interface device that forwards the packet Adding a port number to the parsed packet to form a forwarding data frame, and sending the forwarding data frame to the interface concentrator, so that the interface concentrator is configured according to the forwarding station in the forwarding data frame.
  • the port number of the outbound interface device that forwards the packet is sent from the port corresponding to the port number of the outbound interface device that forwards the packet.
  • a third aspect of the present invention provides an interface concentrator, which may include:
  • a transceiver module configured to receive a first data frame sent by the inbound interface device, where the first data frame includes a packet received by the inbound interface device and a port number of the inbound interface device that receives the packet; and an insertion module Adding an identity of the inbound interface device to the first data frame to form a second data frame, and sending, by the transceiver module, the second data frame to a forwarding processing device, to enable the forwarding Processing the device according to the identity of the ingress interface device in the second data frame And the inbound interface device receives the port number of the packet, parses the second data frame, and performs routing and forwarding.
  • the transceiver module is further configured to receive a forwarding data frame that is sent by the forwarding processing device, where the forwarding data frame includes the packet and an identity of the outbound interface device.
  • the port corresponding to the port number sends the message.
  • the transceiver module is further configured to detect insertion of the inbound interface device or the outbound interface device, and receive the inbound interface device.
  • the third data frame sent by the outbound interface device where the third data frame includes all port numbers of the inbound interface device or the outbound interface device and a corresponding port type
  • the inserting module is further used in the And adding, by the transceiver module, the fourth data frame to the forwarding processing device,
  • the forwarding processing device sends the identity identifier, all the port numbers, and the port type of the inbound interface device or the outbound interface device to the control processing device, so that the control processing device acquires the inbound interface device according to the port type or
  • the interface link layer corresponding to all ports of the outbound interface device is configured, and the identity of the ingress interface device or the outbound interface device is all
  • the port number and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
  • a fourth aspect of the present invention provides a forwarding processing device, which may include:
  • transceiver module configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the inbound interface device connected to the interface concentrator, an identity identifier of the inbound interface device, and a receiving station The port number of the message;
  • the parsing module is configured to parse the second data frame according to the identity identifier of the ingress interface device in the second data frame and the port number of receiving the packet;
  • the routing module is configured to perform route forwarding according to the parsed first data frame.
  • the parsing module is further configured to: according to the identity identifier of the inbound interface device in the second data frame, and the port number of receiving the packet, Obtaining a corresponding interface link layer configuration from the interface information table of the forwarding processing device, and parsing the packet according to the interface link layer configuration.
  • the routing module is further configured to perform route search according to the parsed packet, and obtain the packet forwarding Adding an identifier and a port number of the interface device, adding the identity identifier and the port number of the outbound interface device that forwards the packet to the parsed packet to form a forwarding data frame, and sending the forwarding data frame to The interface concentrator, so that the interface concentrator sends the forwarding data frame to the forwarding of the packet according to the identity of the outbound interface device that forwards the packet in the forwarding data frame.
  • a fifth aspect of the present invention provides a routing system, which may include:
  • At least one interface device configured to receive a packet, and encapsulate the packet into a first data frame, where the first data frame includes a port number that the interface device receives the packet;
  • the routing system and the routing method are deployed in a distributed manner by the interface device, the interface concentrator, and the forwarding processing device, and work in a cooperative manner to implement a router function, so that one forwarding processing device can forward packets received by multiple interface devices, thereby fully utilizing the forwarding processing device. Performance, ease of management and maintenance, saving on investment costs and upgrade costs.
  • FIG. 1 is a schematic diagram of a routing system according to an embodiment of the present invention.
  • FIG. 2 to FIG. 5 are schematic flowcharts of a routing method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a data frame according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another data frame according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an interface concentrator according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another interface concentrator according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a forwarding processing device according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another forwarding processing device according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the routing system is connected to the network or the terminal device for routing and forwarding packets, and includes multiple interface devices 10, an interface concentrator 20, a forwarding processing device 30, and a control processing device 40.
  • the interface device 10 receives the packet and sends it to the forwarding processing device 30 via the interface concentrator 20, and the forwarding processing device 30 performs a route search to find the interface device 10 that forwards the packet, and sends the packet through the interface concentrator 20.
  • the interface device 10 is configured to forward the packet to the destination address, so as to complete the routing and forwarding of the packet.
  • the interface device 10 is specifically a WAN interface device.
  • the functions of the interface device 10, the interface concentrator 20, the forwarding processing device 30, and the control processing device 40 of this embodiment may be specifically implemented according to the routing method in FIG. 2 to FIG. 5 below.
  • the specific implementation process reference may be made to FIG. 2 to FIG. The related description of 5 will not be repeated here.
  • a routing method provided by an embodiment of the present invention includes:
  • the interface device 10 when the interface device 10 receives the network side message or the message from the terminal device, the interface device 10 functions as an inbound interface device, and when the interface device 10 forwards the message to the network side or the terminal. When the device is used, the interface device 10 functions as an outgoing interface device.
  • the interface device 10 receives a packet, where the packet includes a network side packet and a packet from the terminal device, and the interface for receiving the packet at this time is received.
  • the device 10 acts as an ingress interface device that encapsulates the message into a first data frame for proper transmission to the destination within the routing system.
  • the inbound interface device or the outbound interface device is any interface device 10 connected to the interface concentrator 20, which may be the same interface device 10 or a different interface device 10.
  • the interface device in order to facilitate the description of the packet forwarding process, is divided into an inbound interface device and an outbound interface device according to the packet processing and sending and receiving directions.
  • the format of the first data frame may be as shown in FIG. 6.
  • the first data frame includes message additional information and a message received by the interface device 10, and the message additional information includes an identity identifier (ID) of the interface device. Port number and reserved bits of the interface device.
  • the identity of the interface device is the identity of the inbound interface device 10 that sends the first data frame to the interface concentrator 20, and the port number is the second port number of the inbound interface device 10 that receives the packet.
  • the first data frame is an Ethernet data frame
  • the message additional information is a total of 32 bits, wherein 8 bits are the identity of the interface device, 16 bits are the port number of the interface device, and 8 bits are Reserved bit.
  • the interface device 10 is unaware of its own identity, such that the identity of the interface device of the first data frame is empty.
  • FIG. 7 is a diagram showing another format of a first data frame according to an embodiment of the present invention.
  • the first data frame in FIG. 7 is different from the first data frame in FIG. 6 in that it further includes a destination media access control (MAC) address, a source MAC address, and a type, and the rest is the same as in FIG.
  • the first data frame is the same and will not be described here.
  • the first data frame includes a 32-bit destination MAC address, a 32-bit source MAC address, and a 16-bit type.
  • the destination MAC address of the first data frame is the MAC address of the interface concentrator 20
  • the source MAC address is the MAC address of the inbound interface device 10
  • the type represents the protocol type of the packet received by the interface device 10, for example. Ethernet type.
  • the interface concentrator 20 adds an identity of the inbound interface device that sends the first data frame to the first data frame to form a second data frame, and sends the second data frame to the forwarding processing device 30.
  • the format of the second data frame is the same as the format of the first data frame, as shown in FIG. 6 or FIG. 7, and thus is not described herein again.
  • the forwarding processing device 30 parses the packet according to the identity of the inbound interface device and the second port number of the received packet in the second data frame, and performs routing and forwarding.
  • the interface concentrator 20 can connect multiple interface devices 10, and each interface device 10 further includes multiple second ports, so that one forwarding processing device 30 can forward the packets from multiple interface devices 10. Packets of multiple ports, so that the forwarding processing device 30 can support large-scale interface requirements, and the performance of the forwarding processing device 30 is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
  • a routing method provided by a second embodiment of the present invention includes:
  • the inbound interface device 10 receives the packet, encapsulates the packet into a first data frame, and sends the packet to the interface concentrator 20.
  • the interface concentrator 20 For details, refer to 201, and details are not described here.
  • the interface concentrator 20 adds an identity of the inbound interface device 10 that sends the first data frame to the first data frame to form a second data frame, and sends the second data frame to the forwarding processing device 30. For details, see 202, and details are not described here.
  • the forwarding processing device 30 obtains the corresponding interface link layer configuration from the interface information table of the forwarding processing device 30 according to the identity identifier of the inbound interface device and the second port number of the received packet in the second data frame.
  • the interface link layer configuration is a form of a device connected to the second port of the interface device that sends the message, such as an Ethernet device or another network device.
  • the forwarding processing device 30 parses the message in the second data frame according to the interface link layer configuration.
  • the interface link layer is configured as an Ethernet configuration
  • the forwarding processing device 30 parses the message in the second data frame according to the packet format of the Ethernet format.
  • the forwarding processing device 30 performs route lookup according to the parsed packet, and routes and forwards the packet.
  • the 305 specifically includes:
  • the forwarding processing device 30 performs a route search according to the parsed packet, and obtains an identity identifier and a second port number of the outbound interface device 10 that forwards the packet, and the interface device 10 that forwards the packet is The identity identifier and the second port number are added to form a forwarded data frame in the message parsed from the second data frame, and the forwarded data frame is sent to the interface concentrator 20.
  • the format of the forwarded data frame is the same as the format of the first data frame and the second data frame, as shown in FIG. 6 or FIG. 7, and details are not described herein again.
  • the outbound interface device can also receive the packet as the inbound interface device, and the inbound interface device can also forward the packet as the outbound interface device.
  • the interface concentrator 20 sends the forwarding data frame to the outbound interface device 10 that forwards the packet according to the identity of the outbound interface device 10 that forwards the packet in the forwarding data frame.
  • the outbound interface device 10 that forwards the packet corresponds to the second port number of the outbound interface device 10 that forwards the packet according to the second port number of the outbound interface device 10 that forwards the packet in the forwarding data frame.
  • the second port sends a packet to complete the routing and forwarding of the packet.
  • the outbound interface device 10 that forwards the packet sends a packet to the destination from the second port corresponding to the second port number of the outbound interface device 10 that forwards the packet, and completes the report.
  • the interface device 10 connected to the interface concentrator 20 can also be dynamically added. Referring to FIG. 5 and FIG. 1 , a routing method provided by an embodiment of the present invention includes:
  • the interface device 10 is inserted into the interface concentrator 20 to generate and send a third data frame to the interface concentrator 20, where the third data frame includes all second port numbers of the inserted interface device 10 and corresponding port types.
  • the interface concentrator 20 can insert a plurality of interface devices 10, and when a new interface device 10 is inserted into the interface concentrator 20, the new interface device 10 transmits a third data frame to the interface concentrator 20. , the interface concentrator 20 is informed of all its second port numbers and corresponding port types.
  • the port type includes a configurable type and a non-configurable type.
  • the configurable type indicates that the port can be configured as needed.
  • the non-configurable type indicates that the configuration of the port is fixed and cannot be set.
  • the third data frame further includes an interface link layer configuration corresponding to a port of a non-configurable type.
  • the interface concentrator 20 adds the identity of the inserted interface device 10 in the third data frame to form a fourth data frame, and sends the fourth data frame to the forwarding processing device 30.
  • the format of the third data frame and the fourth data frame are as shown in FIG. 6 or FIG. 7, and details are not described herein again.
  • the interface concentrator 20 assigns an identity to the inserted interface device 10 and adds it to the third data frame.
  • the forwarding processing device 30 transmits the identity of the inserted interface device 10, all the second port numbers, and the port type to the control processing device 40.
  • the control processing device 40 acquires an interface link layer configuration corresponding to all the second ports of the inserted interface device 10 according to the port type, and inserts the identity of the inserted interface device 10, all second port numbers, and corresponding interfaces. Interface information table stored in the link layer configuration to the forwarding processing device 30 When the inserted interface device 10 receives the packet, the forwarding processing device 30 can search the interface information table to parse the packet for processing. In some embodiments of the invention, control processing device 40 assigns an interface link layer configuration to the configurable type of ports based on the configurable type.
  • Each interface device 10 includes a first port and a plurality of second ports, respectively, and is connected to the interface concentrator 20 through the first port.
  • Each interface device 10 receives or transmits a message through its respective second port.
  • a plurality of second ports of each interface device 10 may receive messages simultaneously or in part.
  • the interface device 10 includes an inbound interface device and an outbound interface device.
  • the interface device 10 receives a network side message or a message from the terminal device, the interface device 10 functions as an inbound interface device.
  • the interface device 10 forwards the packet to the network side or the terminal device, the interface device 10 functions as an outbound interface device.
  • the inbound interface device 10 is configured to receive the packet through the second port, encapsulate the packet into the first data frame, and send the packet to the interface concentrator 20 through the first port, where the first data frame includes the inbound interface device 10 receiving the packet.
  • the second port number of the text is configured to be received from the second port, encapsulate the packet into the first data frame, and send the packet to the interface concentrator 20 through the first port, where the first data frame includes the inbound interface device 10 receiving the packet.
  • the second port number of the text is configured to receive the packet through the second port, encapsulate the packet into the first data frame, and send the packet to the interface concentrator 20 through the first port, where the first data frame includes the inbound interface device 10 receiving the packet.
  • the interface concentrator 20 is configured to receive the first data frame sent by the interface device 10, and add the identity of the inbound interface device 10 in the first data frame to form a second data frame.
  • the interface concentrator 20 connects different interface devices 10 through different ports, so that the identity of the ingress interface device 10 that transmits the first data frame can be identified.
  • the forwarding processing device 30 is connected to the interface concentrator 20 for parsing and routing the packet according to the identity of the ingress interface device 10 in the second data frame and the second port number of the received packet.
  • the forwarding processing device 30 includes an interface information table, where the interface information table includes an identity identifier of all interface devices 10 and a second port number of the received message and a corresponding interface link layer configuration.
  • the forwarding processing device 30 is configured to obtain a corresponding interface link layer configuration from the interface information table according to the identity identifier of the inbound interface device 10 and the second port number of the received packet in the second data frame, according to the interface.
  • the link layer configuration parses the packet and performs the path based on the parsed packet. By looking up, and routing the message.
  • the forwarding processing device 30 is further configured to perform a route search according to the parsed message, obtain an identity identifier of the outbound interface device 10 that forwards the packet, and a second port number of the sent packet.
  • the identifier and the second port number of the interface device 10 are added to the parsed message to form a forwarding data frame, and the forwarding data frame is sent to the interface concentrator 20.
  • the interface concentrator 20 is further configured to send the forwarded data frame to the outgoing interface device 10 according to the identity of the outgoing interface device 10 in the forwarded data frame.
  • the outbound interface device 10 is configured to send a packet according to the port corresponding to the second port number of the outbound interface device 10 in the forwarding data frame.
  • the routing system receives the packet through the interface device 10, and the interface concentrator 20 sends the packet to the forwarding processing device 30 for route search, and then the interface concentrator 20 sends the packet to the interface device 10 for forwarding. .
  • the interface device 10 to which the interface concentrator 20 is connected may also be dynamically added.
  • the interface device 10 When the interface device 10 is initially inserted into the interface concentrator 20, the interface device 10 is further configured to generate and transmit a third data frame to the interface concentrator 20, the third data frame including all port numbers of the interface device 10 and corresponding port types.
  • the interface concentrator 20 is further configured to add the identity of the interface device 10 in the third data frame to form a fourth data frame, and send the fourth data frame to the forwarding processing device 30.
  • the forwarding processing device 30 transmits the identity of the interface device 10, all port numbers, and corresponding port types to the control processing device 40.
  • the control processing device 40 is configured to acquire an interface link layer configuration corresponding to all ports of the interface device 10 according to the port type, and store the identity identifier of the interface device 10, all port numbers, and corresponding interface link layer configurations to the forwarding processing device 30. In the interface information table.
  • the port type includes a configurable type and a non-configurable type.
  • the third data frame further includes an interface chain corresponding to the port of the non-configurable type.
  • Control processing device 40 may assign an interface link layer configuration to ports that are configurable types of configurable types.
  • control processing device 40 is coupled to forwarding processing device 30 for processing manager control, message processing, and protocol processing.
  • an interface concentrator 80 which includes a transceiver module 800 and an insertion module 810, is provided. among them,
  • the transceiver module 800 is configured to receive a first data frame sent by the inbound interface device, where the first data frame includes a packet received by the inbound interface device and a port on which the inbound interface device receives the packet. number;
  • the insertion module 810 is configured to add an identity of the inbound interface device in the first data frame to form a second data frame.
  • the transceiver module 800 is further configured to send the second data frame to the forwarding processing device, so that the forwarding processing device receives the packet according to the identity identifier of the inbound interface device in the second data frame and the inbound interface device.
  • the port number resolves the second data frame and performs routing and forwarding.
  • the transceiver module 800 is further configured to receive a forwarding data frame sent by the forwarding processing device, where the forwarding data frame includes the packet and an identity identifier and a port number of the interface device that forwards the packet.
  • the identity identifier and the port number of the interface device that forwards the packet are obtained by the forwarding processing device performing routing search according to the parsed packet, and the identity of the interface device that forwards the packet according to the forwarding data frame.
  • the transceiver module 800 is further configured to detect insertion of the interface device, and receive a third data frame sent by the inserted interface device, where the third data frame includes all port numbers of the inserted interface device and The corresponding port type.
  • the insertion module 810 is further configured to add an identifier of the inserted interface device in the third data frame to form a fourth data frame, and send the fourth data frame to the forwarding processing device by the transceiver module 800, so that the forwarding processing device inserts the interface.
  • the device identifier, all the port numbers, and the port type are sent to the control processing device, so that the control processing device obtains the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and the identity of the inserted interface device is
  • the identifier, all port numbers, and corresponding interface link layer configurations are stored in the interface information table of the forwarding processing device.
  • the interface concentrator 80 can be connected to multiple interface devices, and each interface device further includes multiple ports. Through the interface concentrator 80, one forwarding processing device can forward packets from multiple ports of multiple interface devices. Therefore, the forwarding processing device can support large-scale interface requirements. And the performance of the forwarding processing device is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
  • the number of interface devices connected to the interface concentrator 80 can be dynamically adjusted for management and maintenance.
  • an embodiment of the present invention further provides an interface concentrator 90, including a transceiver 901, a processor 902, and a memory 903.
  • the number of processors 902 in the interface concentrator 90 may be one or more, FIG. Take a processor as an example.
  • the transceiver 901, the processor 902, and the memory 903 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
  • the memory 903 is used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 903 may include a high speed random access memory (RAM) memory, and may also include a non-volatile memory, for example, at least one disk storage device.
  • RAM random access memory
  • the transceiver device 901 is configured to receive a first data frame sent by the inbound interface device, where the first data frame includes a packet received by the inbound interface device and a port number of the inbound interface device receiving the packet. ;
  • the processor 902 executes a program stored in the memory 903, for adding the identity of the inbound interface device in the first data frame to form a second data frame;
  • the transceiver device 901 is further configured to send the second data frame to the forwarding processing device, so that the forwarding processing device receives the packet according to the identity identifier of the inbound interface device in the second data frame and the inbound interface device.
  • the port number resolves the second data frame and performs routing and forwarding.
  • the transceiver 901 is further configured to receive a forwarding data frame sent by the forwarding processing device, where the forwarding data frame includes the packet and an identity identifier and a port number of the interface device that forwards the packet.
  • the identity identifier and the port number of the interface device that forwards the packet are obtained by the forwarding processing device performing routing search according to the parsed packet, and the identity of the interface device that forwards the packet according to the forwarding data frame.
  • the transceiver 901 is further configured to detect insertion of the interface device, and receive a third data frame sent by the inserted interface device, where the third data frame includes all port numbers of the inserted interface device and The corresponding port type.
  • the processor 902 is further configured to add an identifier of the inserted interface device to form a fourth data frame in the third data frame, and send the fourth data frame to the forwarding processing device by using the transceiver 901, so that the forwarding processing device is to be inserted.
  • the identity of the interface device, the port number, and the port type are sent to the control processing device, so that the control processing device obtains the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and inserts the interface device into the interface device.
  • the identity identifier, all port numbers, and corresponding interface link layer configurations are stored in the interface information table of the forwarding processing device.
  • the interface concentrator 90 can be connected to multiple interface devices, and each interface device further includes multiple ports. Through the interface concentrator 90, one forwarding processing device can forward packets from multiple ports of multiple interface devices. Therefore, the forwarding processing device can support large-scale interface requirements, and the performance of the forwarding processing device is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
  • the number of interface devices connected to the interface concentrator 90 can be dynamically adjusted for management and maintenance.
  • a forwarding processing device 100 which includes a transceiver module 1000, a parsing module 1010, and a routing module 1020, is provided.
  • the transceiver module 1000 is configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the interface device connected to the interface concentrator, an identity identifier of the interface device, and receiving the report.
  • the port number of the text is provided.
  • the parsing module 1010 is configured to parse the second data frame according to the identity of the interface device in the second data frame and the port number of the received message.
  • the routing module 1020 is configured to perform route forwarding according to the parsed second data frame.
  • the parsing module 1010 is configured to obtain a corresponding interface link layer configuration from the interface information table of the forwarding processing device according to the identity identifier of the interface device in the second data frame and the port number of the packet, and according to The interface link layer configuration parses the packet.
  • the routing module is also used for roots And performing the route search according to the parsed packet, obtaining the identity identifier and the port number of the interface device that forwards the packet, and adding the identity identifier and the port number of the interface device that forwards the packet to the parsed report
  • the forwarding data frame is formed in the text, and the forwarding data frame is sent to the interface concentrator, so that the interface concentrator sends the forwarding data frame according to the identity identifier of the interface device that forwards the packet in the forwarding data frame to The interface device that forwards the packet sends the packet to the port corresponding to the port number of the interface device that forwards the packet to the packet.
  • the transceiver module 1000 is further configured to receive a second data frame sent by the interface concentrator, where the second data frame includes an identity of the inserted interface device, all port numbers, and a port type, and The identity of the inserted interface device, the port number, and the port type are sent to the control processing device, so that the control processing device acquires the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and The identity of the inserted interface device, all port numbers, and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
  • the interface concentrator connected to the forwarding processing device 100 can connect multiple interface devices, and each interface device further includes multiple ports, so that one forwarding processing device 100 can forward reports from multiple ports of multiple interface devices. Therefore, the forwarding processing device 100 can support large-scale interface requirements, and the performance of the forwarding processing device 100 is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
  • an embodiment of the present invention further provides a forwarding processing device 110, including a transceiver device 1101, a processor 1102, and a memory 1103.
  • the number of processors 1102 in the forwarding processing device 110 may be one or more, in FIG. Take a processor as an example.
  • the transceiver 1101, the processor 1102, and the memory 1103 may be connected by a bus or other means, wherein FIG. 11 is exemplified by a bus connection.
  • the memory 1103 is configured to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 1103 may include a high-speed random access memory (RAM) memory, and may also include non-volatile storage. Non-volatile memory, for example, at least one disk is stored in four devices.
  • the transceiver device 1101 is configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the interface device connected to the interface concentrator, an identity identifier of the interface device, and receiving the report.
  • the port number of the text is configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the interface device connected to the interface concentrator, an identity identifier of the interface device, and receiving the report.
  • the port number of the text is configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the interface device connected to the interface concentrator, an identity identifier of the interface device, and receiving the report. The port number of the text.
  • the processor 1102 executes a program stored in the memory 1103, configured to parse the second data frame according to the identity of the interface device in the second data frame and the port number of the received message. And used for routing and forwarding according to the parsed second data frame.
  • the processor 1102 is further configured to obtain, according to the identity identifier of the interface device in the second data frame, the port number of the packet, and obtain the corresponding interface link layer configuration from the interface information table of the forwarding processing device, and Parsing the packet according to the interface link layer configuration of the interface.
  • the routing module is further configured to perform a route search according to the parsed packet, obtain an identity identifier and a port number of the interface device that forwards the packet, and add the identity identifier and the port number of the interface device that forwards the packet to Forming a forwarding data frame in the parsed packet, and sending the forwarding data frame to the interface concentrator, so that the interface concentrator sends the identity identifier of the interface device that forwards the packet according to the forwarding data frame.
  • the forwarding data frame is sent to the interface device that forwards the packet, and the port corresponding to the port number of the interface device that forwards the packet to the packet is sent by the port that forwards the packet.
  • the transceiver 1101 is further configured to receive a second data frame sent by the interface concentrator, where the second data frame includes an identifier of the inserted interface device, all port numbers, and a port type, and The identity of the inserted interface device, the port number, and the port type are sent to the control processing device, so that the control processing device acquires the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and The identity of the inserted interface device, all port numbers, and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
  • the interface concentrator connected to the forwarding processing device 110 can connect multiple interface devices, and each interface device further includes multiple ports, so that one forwarding processing device 110 can forward reports from multiple ports of multiple interface devices.
  • the forwarding processing device 110 can support large specifications. Interface requirements, and the performance of the forwarding processing device 110 is fully utilized, facilitating management and maintenance, saving investment costs and upgrading costs.
  • the embodiment of the present invention further provides a routing system, including at least one interface device 10, such as the interface concentrator 20 shown in FIG. 8 or FIG. 9, and the forwarding processing device 30 shown in FIG. 10 or FIG. ;
  • the interface device 10 includes a first port and a plurality of second ports, and is connected to the interface concentrator 20 through the first port; and receives or transmits a message through the second port.
  • a plurality of second ports of each interface device 10 may receive messages simultaneously or in part.
  • the interface device 10 is configured to receive a packet, and the packet is encapsulated into a first data frame and sent to the interface concentrator 20, where the first data frame includes a second port number that the interface device receives the packet;
  • the interface concentrator 20 is configured to add an identifier of the interface device that sends the first data frame to the first data frame to form a second data frame, and send the second data frame to the forwarding processing device 30; 30.
  • the method is used to parse and perform routing and forwarding according to the identity identifier of the interface device in the second data frame and the second port number of the received text.
  • the interface concentrator 20 is further configured to receive a forwarding data frame sent by the forwarding processing device 30, where the forwarding data frame includes an identifier and a port number of the packet and the outbound interface device, and an identity identifier and a port of the outbound interface device.
  • the number is obtained by the forwarding processing device parsing the second data frame and performing a route search; and sending the forwarding data frame to the out according to the identity of the outbound interface device in the forwarding data frame And the interface device, so that the outbound interface device sends the packet from a port corresponding to the port number of the outbound interface device in the forwarding data frame.
  • the interface device 10 when the interface device 10 receives the network side message or the message from the terminal device, the interface device 10 functions as an inbound interface device, and when the interface device 10 forwards the message to the network side or the terminal.
  • the interface device 10 functions as an outgoing interface device.
  • the interface device 10 receives the packet, and encapsulates the packet into a first data frame and sends it to the interface concentrator 20.
  • the interface device 10 at this time serves as the interface device.
  • the interface device 10 receives the forwarded data frame from the interface concentrator and sends a message according to the port number in the forwarded data frame.
  • the interface device 10 at this time acts as the inbound interface device.
  • the routing system may further include a control processing device 40, as shown in FIG.
  • the interface concentrator 20 is further configured to detect that the interface device 10 is inserted, and receive a third data frame sent by the interface device 10, where the third data frame includes all port numbers of the interface device 10 and Corresponding port type; adding the identity of the interface device 10 to the third data frame to form a fourth data frame, and sending the fourth data frame to the forwarding processing device 30, so that the forwarding processing device 30 will The identity of the interface device 10, all port numbers and port types are sent to the control processing device 40;
  • the control processing device 40 is configured to acquire an interface link layer configuration corresponding to all ports of the interface device 10 according to the port type, and identify the identity of the interface device 10, all port numbers, and corresponding interface link layers.
  • the configuration is stored in the interface information table of the forwarding processing device 30.
  • the forwarding processing device 30 can look up the interface information table to parse the message for processing.
  • control processing device 40 is used to process manager control, control message processing, protocol processing, and the like.
  • the control processing device 40 does not require a strong processing capability but has high requirements for interface friendliness and maintainability. Therefore, the control processing device 40 can be a professional network device, or can be software installed on the server to implement administrator control, control message processing, and protocol processing.
  • the software installed on the server provides great flexibility for the operation and maintenance of the administrator, and the server can simultaneously implement the control and network management of the router, which greatly simplifies the deployment of the router maintenance.
  • the routing method related device of the present invention the plurality of interface devices, the interface concentrator, the forwarding processing device, and the control processing device are distributedly deployed, work together to implement a router function, and the interface concentrator can connect multiple interface devices, and each interface device
  • the method further includes multiple ports, so that one forwarding processing device can forward packets from multiple ports of multiple interface devices, so that the forwarding processing device can support large-scale interface requirements, and the performance of the forwarding processing device is fully utilized, which is convenient for management. And maintenance, saving investment costs and upgrade costs.
  • the storage medium may include : Read only memory, random access memory, disk or optical disk, and so on. , , I ⁇ , . , , , .

Abstract

Disclosed are a routing method and a related device. In some feasible embodiments of the present invention, an interface concentrator receives a first data frame sent by an inbound interface device, wherein the first data frame comprises a packet received by the inbound interface device and the number of a port where the inbound interface device receives the packet ; and the interface concentrator adds an identity of the inbound interface device in the first data frame to form a second data frame, and sends the second data frame to a forwarding processing device, so that the forwarding processing device parses the second data frame and performs routing and forwarding according to the identity of the inbound interface device in the second data frame and the number of the port where the inbound interface device receives the packet. The present invention facilitates management and maintenance.

Description

路由方法、 系统及相关设备 本申请要求于 2013 年 01 月 29 日提交中国专利局、 申请号为 201310034174.5、 发明名称为"路由方法、 系统及相关设备"的中国专利申请的 优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术领域, 具体涉及分布式的路由方法、 系统及相关设 备。 背景技术 当前各类广域网 ( wide area network , 简称 WAN )侧接口以及转发面、 控制面都是集中在一个路由器内。 路由器的中央处理器 (central processing unit, 简称 CPU ) 用于路由计算、 提供用户交互界面及路由转发。  The present invention claims the priority of a Chinese patent application filed on January 29, 2013 by the Chinese Patent Office, the application number is 201310034174.5, and the invention name is "routing method, system and related equipment", the entire contents thereof. This is incorporated herein by reference. TECHNICAL FIELD The present invention relates to the field of communications technologies, and in particular, to a distributed routing method, system, and related device. The current wide area network (WAN) side interface, the forwarding plane, and the control plane are all concentrated in one router. The central processing unit (CPU) of the router is used for route calculation, providing user interaction interface and routing forwarding.
各类 WAN侧接口是固定或者插卡式, 其和路由器的 CPU的连接方式一 般有两类方式: 1、 CPU总线直接出接口方式, 此方式的成本低, 但是受限制 于 CPU 的出接口个数, 一般都比较少。 2、 利用交换芯片或者桥接芯片连接 于 CPU与 WAN侧接口之间, 解决 CPU出接口个数少的问题, 可以提供一定 数量的 WAN侧接口板。  All kinds of WAN side interfaces are fixed or plug-in type. There are two types of connection methods with the CPU of the router: 1. The CPU bus direct out interface mode, the cost of this mode is low, but it is limited to the outbound interface of the CPU. The number is generally less. 2. Use a switch chip or a bridge chip to connect between the CPU and the WAN side interface to solve the problem of a small number of CPU outbound interfaces, and provide a certain number of WAN side interface boards.
然而, 在需要集中使用大量 WAN侧接口的时候, 无论釆用上述哪种连接 方式, 一台路由器都无法支持大规格的接口需求。 此时需要部署大量的路由 器设备, 而对于部署和维护的要求及成本都很高。 发明内容 本发明实施例提供一种路由方法、 系统及相关设备, 可提供多个接口, 节省投资成本和升级成本。  However, when a large number of WAN-side interfaces need to be used in a centralized manner, no matter which of the above connection methods is used, one router cannot support the large-scale interface requirements. A large number of router devices need to be deployed at this time, and the requirements and costs for deployment and maintenance are high. SUMMARY Embodiments of the present invention provide a routing method, a system, and related devices, which can provide multiple interfaces, which saves investment costs and upgrade costs.
本发明第一方面提供一种路由方法, 可包括: 接口集中器接收入接口设 备发送的第一数据帧, 所述第一数据帧包括所述入接口设备接收的报文及所 述入接口设备接收所述报文的端口号; 及 所述接口集中器在所述第一数据帧中增加所述入接口设备的身份标识形 成第二数据帧, 并将所述第二数据帧发送至转发处理设备, 以使所述转发处 理设备根据所述第二数据帧中的所述入接口设备的身份标识及所述入接口设 备接收所述报文的端口号对所述第二数据帧进行解析并进行路由转发。 A first aspect of the present invention provides a routing method, which may include: an interface concentrator receiving a first data frame sent by an inbound interface device, where the first data frame includes a packet received by the inbound interface device and the inbound interface device Receiving the port number of the message; and The interface concentrator adds the identity of the inbound interface device to the first data frame to form a second data frame, and sends the second data frame to the forwarding processing device, so that the forwarding processing device is configured according to And the second data frame is parsed and routed and forwarded by the identity identifier of the inbound interface device in the second data frame and the port number of the inbound interface device receiving the packet.
结合第一方面, 在第一种可能的实现方式中, 所述接口集中器在所述第 一数据帧中增加所述入接口设备的身份标识形成第二数据帧, 并将所述第二 数据帧发送至转发处理设备之后, 还可包括:  With reference to the first aspect, in a first possible implementation manner, the interface concentrator adds an identifier of the inbound interface device to the first data frame to form a second data frame, and the second data is After the frame is sent to the forwarding processing device, the frame may further include:
所述接口集中器接收所述转发处理设备发送的转发数据帧, 所述转发数 据帧包括所述报文及出接口设备的身份标识与端口号, 所述出接口设备的身 份标识与端口号为所述转发处理设备对所述第二数据帧进行解析并进行路由 查找所获得; 及  The interface concentrator receives the forwarding data frame sent by the forwarding processing device, where the forwarding data frame includes the packet and the identity and port number of the outbound interface device, and the identity identifier and port number of the outbound interface device are Obtaining, by the forwarding processing device, the second data frame and performing route searching; and
所述接口集中器根据所述转发数据帧中的所述出接口设备的身份标识发 送所述转发数据帧至所述出接口设备, 以使所述出接口设备从所述转发数据 帧中的所述出接口设备的端口号对应的端口发送所述报文。  The interface concentrator sends the forwarding data frame to the outbound interface device according to the identity identifier of the outbound interface device in the forwarding data frame, so that the outbound interface device is from the forwarding data frame. The port corresponding to the port number of the interface device is sent to send the packet.
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述接口集中器接收所述转发处理设备发送的转发数据帧之前, 还可包括: 所述接口集中器侦测到所述入接口设备或所述出接口设备插入, 并接收 所述入接口设备或所述出接口设备发送的第三数据帧, 所述第三数据帧包括 所述入接口设备或所述出接口设备的所有端口号及对应的端口类型;  With the first possible implementation of the first aspect, in a second possible implementation manner, before the interface concentrator receives the forwarding data frame sent by the forwarding processing device, the interface concentrator may further include: the interface concentrator Detecting that the inbound interface device or the outbound interface device is inserted, and receiving a third data frame sent by the inbound interface device or the outbound interface device, where the third data frame includes the ingress interface device or Describe all port numbers of the interface device and corresponding port types.
所述接口集中器在所述第三数据帧中增加所述入接口设备或所述出接口 设备的身份标识形成第四数据帧, 并发送所述第四数据帧至所述转发处理设 备, 以使所述转发处理设备将所述入接口设备或所述出接口设备的身份标识、 所有端口号及端口类型发送至控制处理设备, 使所述控制处理设备根据所述 端口类型获取所述入接口设备或所述出接口设备的所有端口对应的接口链路 层配置, 并将所述入接口设备或所述出接口设备的身份标识、 所有端口号及 对应的接口链路层配置储存至所述转发处理设备的接口信息表中。  Adding, by the interface concentrator, the identity of the inbound interface device or the outbound interface device to form a fourth data frame in the third data frame, and sending the fourth data frame to the forwarding processing device, Sending, by the forwarding processing device, the identity identifier, all port numbers, and port types of the inbound interface device or the outbound interface device to the control processing device, so that the control processing device acquires the ingress interface according to the port type Configuring an interface link layer corresponding to all ports of the device or the outbound interface device, and storing the identity of the inbound interface device or the outbound interface device, all port numbers, and corresponding interface link layer configurations to the Forward the processing device's interface information table.
本发明第二方面提供一种路由方法, 其可包括:  A second aspect of the present invention provides a routing method, which may include:
转发处理设备接收接口集中器发送的第二数据帧, 所述第二数据帧包括 与所述接口集中器相连的入接口设备接收的报文、 所述入接口设备的身份标 识及接收所述报文的端口号; 及 The forwarding processing device receives the second data frame sent by the interface concentrator, where the second data frame includes a packet received by the inbound interface device connected to the interface concentrator, and an identifier of the inbound interface device. Recognizing the port number of the received message; and
所述转发处理设备根据所述第二数据帧中的所述入接口设备的身份标识 及接收所述报文的端口号对所述第二数据帧进行解析并进行路由转发。  The forwarding processing device parses the second data frame according to the identity identifier of the inbound interface device and the port number of the received packet in the second data frame, and performs routing and forwarding.
结合第二方面, 在第一种可能的实现方式中, 所述转发处理设备根据所 述第二数据帧中的所述入接口设备的身份标识及接收所述报文的端口号对所 述第二数据帧进行解析并进行路由转发, 具体包括:  With reference to the second aspect, in a first possible implementation, the forwarding processing device, according to the identity identifier of the inbound interface device in the second data frame, and the port number of receiving the packet, The two data frames are parsed and routed, including:
所述转发处理设备根据所述第二数据帧中的所述入接口设备的身份标识 及接收所述报文的端口号, 从所述转发处理设备的接口信息表中获取对应的 接口链路层配置;  The forwarding processing device acquires a corresponding interface link layer from the interface information table of the forwarding processing device according to the identity identifier of the inbound interface device and the port number of the packet in the second data frame. Configuration
所述转发处理设备根据所述接口链路层配置解析所述报文; 及  Transmitting, by the forwarding processing device, the packet according to the interface link layer configuration; and
所述转发处理设备根据所述解析后的报文进行路由查找, 并路由转发所 述报文。  The forwarding processing device performs route searching according to the parsed packet, and routes and forwards the packet.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述转发处理设备根据所述解析后的报文进行路由查找, 并路由转发所述报 文, 具体包括:  With the first possible implementation of the second aspect, in a second possible implementation manner, the forwarding processing device performs a route search according to the parsed packet, and routes and forwards the packet, specifically including :
所述转发处理设备根据所述解析后的报文进行路由查找, 获得转发所述 报文的出接口设备的身份标识与端口号, 将所述转发所述报文的出接口设备 的身份标识与端口号增加到所述解析后的报文中形成转发数据帧, 并发送所 述转发数据帧至所述接口集中器, 以使所述接口集中器根据所述转发数据帧 中的所述转发所述报文的出接口设备的身份标识发送所述转发数据帧至所述 转发所述报文的出接口设备, 使所述转发所述报文的出接口设备根据所述转 发数据帧中的所述转发所述报文的出接口设备的端口号从所述转发所述报文 的出接口设备的端口号对应的端口发送所述报文。  The forwarding processing device performs a route search according to the parsed packet, and obtains an identity identifier and a port number of the outbound interface device that forwards the packet, and the identity identifier of the outbound interface device that forwards the packet Adding a port number to the parsed packet to form a forwarding data frame, and sending the forwarding data frame to the interface concentrator, so that the interface concentrator is configured according to the forwarding station in the forwarding data frame. And sending, by the identifier of the outbound interface of the packet, the forwarding data frame to the outbound interface device that forwards the packet, so that the outbound interface device that forwards the packet according to the forwarding data frame The port number of the outbound interface device that forwards the packet is sent from the port corresponding to the port number of the outbound interface device that forwards the packet.
本发明第三方面提供一种接口集中器, 其可包括:  A third aspect of the present invention provides an interface concentrator, which may include:
收发模块, 用于接收入接口设备发送的第一数据帧, 所述第一数据帧包 括所述入接口设备接收的报文及所述入接口设备接收所述报文的端口号; 及 插入模块, 用于在所述第一数据帧中增加所述入接口设备的身份标识形 成第二数据帧, 并通过所述收发模块将所述第二数据帧发送至转发处理设备, 以使所述转发处理设备根据所述第二数据帧中的所述入接口设备的身份标识 及所述入接口设备接收所述报文的端口号对所述第二数据帧进行解析并进行 路由转发。 a transceiver module, configured to receive a first data frame sent by the inbound interface device, where the first data frame includes a packet received by the inbound interface device and a port number of the inbound interface device that receives the packet; and an insertion module Adding an identity of the inbound interface device to the first data frame to form a second data frame, and sending, by the transceiver module, the second data frame to a forwarding processing device, to enable the forwarding Processing the device according to the identity of the ingress interface device in the second data frame And the inbound interface device receives the port number of the packet, parses the second data frame, and performs routing and forwarding.
结合第三方面, 在第一种可能的实现方式中, 所述收发模块还用于接收 所述转发处理设备发送的转发数据帧, 所述转发数据帧包括所述报文及出接 口设备的身份标识与端口号, 所述出接口设备的身份标识与端口号为所述转 发处理设备对所述第二数据帧进行解析并进行路由查找所获得; 及  With reference to the third aspect, in a first possible implementation, the transceiver module is further configured to receive a forwarding data frame that is sent by the forwarding processing device, where the forwarding data frame includes the packet and an identity of the outbound interface device. An identifier and a port number, where the identity and port number of the outbound interface device are obtained by the forwarding processing device parsing the second data frame and performing route searching;
根据所述转发数据帧中的所述出接口设备的身份标识发送所述转发数据 帧至所述出接口设备, 以使所述出接口设备从所述转发数据帧中的所述出接 口设备的端口号对应的端口发送所述 ^艮文。  Sending the forwarding data frame to the outbound interface device according to the identity of the outbound interface device in the forwarding data frame, so that the outbound interface device is from the outbound interface device in the forwarding data frame. The port corresponding to the port number sends the message.
结合第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述收发模块还用于侦测所述入接口设备或出接口设备的插入, 接收所述入 接口设备或所述出接口设备发送的第三数据帧, 所述第三数据帧包括所述入 接口设备或所述出接口设备的所有端口号及对应的端口类型, 所述插入模块 还用于在所述第三数据帧中增加所述入接口设备或所述出接口设备的身份标 识形成第四数据帧, 并通过所述收发模块发送所述第四数据帧至所述转发处 理设备, 以使所述转发处理设备将所述入接口设备或所述出接口设备的身份 标识、 所有端口号及端口类型发送至控制处理设备, 使所述控制处理设备根 据所述端口类型获取所述入接口设备或所述出接口设备的所有端口对应的接 口链路层配置, 并将所述入接口设备或所述出接口设备的身份标识、 所有端 口号及对应的接口链路层配置储存至所述转发处理设备的接口信息表中。  With the first possible implementation of the third aspect, in a second possible implementation, the transceiver module is further configured to detect insertion of the inbound interface device or the outbound interface device, and receive the inbound interface device. Or the third data frame sent by the outbound interface device, where the third data frame includes all port numbers of the inbound interface device or the outbound interface device and a corresponding port type, and the inserting module is further used in the And adding, by the transceiver module, the fourth data frame to the forwarding processing device, The forwarding processing device sends the identity identifier, all the port numbers, and the port type of the inbound interface device or the outbound interface device to the control processing device, so that the control processing device acquires the inbound interface device according to the port type or The interface link layer corresponding to all ports of the outbound interface device is configured, and the identity of the ingress interface device or the outbound interface device is all The port number and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
本发明第四方面提供一种转发处理设备, 其可包括:  A fourth aspect of the present invention provides a forwarding processing device, which may include:
收发模块, 用于接收接口集中器发送的第二数据帧, 所述第二数据帧包 括与所述接口集中器相连的入接口设备接收的报文、 所述入接口设备的身份 标识及接收所述报文的端口号;  a transceiver module, configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the inbound interface device connected to the interface concentrator, an identity identifier of the inbound interface device, and a receiving station The port number of the message;
解析模块, 用于根据所述第二数据帧中的所述入接口设备的身份标识及 接收所述报文的端口号对所述第二数据帧进行解析; 及  The parsing module is configured to parse the second data frame according to the identity identifier of the ingress interface device in the second data frame and the port number of receiving the packet; and
路由模块, 用于根据解析后的第一数据帧进行路由转发。  The routing module is configured to perform route forwarding according to the parsed first data frame.
结合第四方面, 在第一种可能的实现方式中, 所述解析模块还用于根据 所述第二数据帧中的所述入接口设备的身份标识及接收所述报文的端口号, 从所述转发处理设备的接口信息表中获取对应的接口链路层配置, 并根据所 述接口链路层配置解析所述报文。 With reference to the fourth aspect, in a first possible implementation manner, the parsing module is further configured to: according to the identity identifier of the inbound interface device in the second data frame, and the port number of receiving the packet, Obtaining a corresponding interface link layer configuration from the interface information table of the forwarding processing device, and parsing the packet according to the interface link layer configuration.
结合第四方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述路由模块还用于根据所述解析后的报文进行路由查找, 获得转发所述报 文的出接口设备的身份标识与端口号, 将所述转发所述报文的出接口设备的 身份标识与端口号增加到所述解析后的报文中形成转发数据帧, 并发送所述 转发数据帧至所述接口集中器, 以使所述接口集中器根据所述转发数据帧中 的所述转发所述报文的出接口设备的身份标识发送所述转发数据帧至所述转 发所述报文的出接口设备, 使所述转发所述报文的出接口设备根据所述转发 数据帧中的所述转发所述报文的出接口设备的端口号从所述转发所述报文的 出接口设备的端口号对应的端口发送所述报文。  With the first possible implementation of the fourth aspect, in a second possible implementation, the routing module is further configured to perform route search according to the parsed packet, and obtain the packet forwarding Adding an identifier and a port number of the interface device, adding the identity identifier and the port number of the outbound interface device that forwards the packet to the parsed packet to form a forwarding data frame, and sending the forwarding data frame to The interface concentrator, so that the interface concentrator sends the forwarding data frame to the forwarding of the packet according to the identity of the outbound interface device that forwards the packet in the forwarding data frame. The outbound interface device, the outbound interface device that forwards the packet, according to the port number of the outbound interface device that forwards the packet in the forwarding data frame, from the outbound interface device that forwards the packet The port corresponding to the port number sends the packet.
本发明第五方面提供一种路由系统, 其可包括:  A fifth aspect of the present invention provides a routing system, which may include:
至少一个接口设备, 用于接收报文, 将所述报文封装成第一数据帧, 所 述第一数据帧包括所述接口设备接收所述报文的端口号; 及  At least one interface device, configured to receive a packet, and encapsulate the packet into a first data frame, where the first data frame includes a port number that the interface device receives the packet;
本发明各实施例中所述的接口集中器; 及  An interface concentrator as described in various embodiments of the present invention; and
及本发明各实施例中所述的转发处理设备。  And the forwarding processing device described in the embodiments of the present invention.
上述路由系统及路由方法因接口设备、 接口集中器、 转发处理设备分布 式部署, 协同工作实现路由器功能, 使得一个转发处理设备可以转发多个接 口设备接收的报文, 从而充分利用转发处理设备的性能, 便于管理和维护, 节省投资成本和升级成本。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图;  The routing system and the routing method are deployed in a distributed manner by the interface device, the interface concentrator, and the forwarding processing device, and work in a cooperative manner to implement a router function, so that one forwarding processing device can forward packets received by multiple interface devices, thereby fully utilizing the forwarding processing device. Performance, ease of management and maintenance, saving on investment costs and upgrade costs. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any creative work;
图 1是本发明实施例提供的一种路由系统的示意图。  FIG. 1 is a schematic diagram of a routing system according to an embodiment of the present invention.
图 2至图 5是本发明实施例提供的一种路由方法的流程示意图。  2 to FIG. 5 are schematic flowcharts of a routing method according to an embodiment of the present invention.
图 6是本发明实施例提供的一种数据帧的示意图。 图 7是本发明实施例提供的另一种数据帧的示意图。 FIG. 6 is a schematic diagram of a data frame according to an embodiment of the present invention. FIG. 7 is a schematic diagram of another data frame according to an embodiment of the present invention.
图 8是本发明实施例提供的一种接口集中器的示意图。  FIG. 8 is a schematic diagram of an interface concentrator according to an embodiment of the present invention.
图 9是本发明实施例提供的另一种接口集中器的示意图。  FIG. 9 is a schematic diagram of another interface concentrator according to an embodiment of the present invention.
图 10是本发明实施例提供的一种转发处理设备的示意图。  FIG. 10 is a schematic diagram of a forwarding processing device according to an embodiment of the present invention.
图 11是本发明实施例提供的另一种转发处理设备的示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。  FIG. 11 is a schematic diagram of another forwarding processing device according to an embodiment of the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图 1 ,本发明实施例提供的一种路由系统的示意图。在本实施例中, 路由系统连接网络或终端设备, 用于进行报文的路由转发, 包括多个接口设 备 10、接口集中器 20、 转发处理设备 30及控制处理设备 40。 接口设备 10接 收报文, 经由接口集中器 20发送至转发处理设备 30 , 转发处理设备 30进行 路由查找, 以找到转发所述报文的接口设备 10, 并通过接口集中器 20发送所 述报文至查找到的接口设备 10,使查找到的接口设备 10转发所述报文至目的 地址, 从而完成所述报文的路由转发。  1 is a schematic diagram of a routing system according to an embodiment of the present invention. In this embodiment, the routing system is connected to the network or the terminal device for routing and forwarding packets, and includes multiple interface devices 10, an interface concentrator 20, a forwarding processing device 30, and a control processing device 40. The interface device 10 receives the packet and sends it to the forwarding processing device 30 via the interface concentrator 20, and the forwarding processing device 30 performs a route search to find the interface device 10 that forwards the packet, and sends the packet through the interface concentrator 20. The interface device 10 is configured to forward the packet to the destination address, so as to complete the routing and forwarding of the packet.
本发明实施例中, 接口设备 10具体为 WAN接口设备。  In the embodiment of the present invention, the interface device 10 is specifically a WAN interface device.
本实施例的接口设备 10、 接口集中器 20、 转发处理设备 30及控制处理 设备 40的功能可根据下述图 2至图 5中的路由方法具体实现, 其具体实现过 程可参照图 2至图 5的相关描述, 此处不再赘述。  The functions of the interface device 10, the interface concentrator 20, the forwarding processing device 30, and the control processing device 40 of this embodiment may be specifically implemented according to the routing method in FIG. 2 to FIG. 5 below. For the specific implementation process, reference may be made to FIG. 2 to FIG. The related description of 5 will not be repeated here.
参阅图 2并结合图 1 , 本发明实施例提供的一种路由方法包括:  Referring to FIG. 2 and FIG. 1 , a routing method provided by an embodiment of the present invention includes:
201 , 入接口设备 10接收报文, 将报文封装成第一数据帧并发送至接口 集中器 20, 所述第一数据帧包括入接口设备 10接收报文的第二端口号。  201. The inbound interface device 10 receives the packet, and encapsulates the packet into a first data frame and sends the packet to the interface concentrator 20. The first data frame includes a second port number that the interface device 10 receives the packet.
在本发明的一些实施例中, 当接口设备 10接收网络侧报文或来自终端设 备的报文时, 该接口设备 10作为入接口设备, 而当接口设备 10将报文转发 至网络侧或终端设备时, 该接口设备 10作为出接口设备。 接口设备 10接收 报文, 该报文包括网络侧报文及来自终端设备的报文, 此时接收报文的接口 设备 10作为入接口设备, 该接口设备 10将报文封装成第一数据帧, 以能在 路由系统内正确传送到目的地。 In some embodiments of the present invention, when the interface device 10 receives the network side message or the message from the terminal device, the interface device 10 functions as an inbound interface device, and when the interface device 10 forwards the message to the network side or the terminal. When the device is used, the interface device 10 functions as an outgoing interface device. The interface device 10 receives a packet, where the packet includes a network side packet and a packet from the terminal device, and the interface for receiving the packet at this time is received. The device 10 acts as an ingress interface device that encapsulates the message into a first data frame for proper transmission to the destination within the routing system.
需要说明的是, 入接口设备或出接口设备是连接到接口集中器 20中的任 意一个接口设备 10,可能是同一个接口设备 10,也可能是不同的接口设备 10。 本发明实施例中, 为方便叙述报文转发过程, 根据报文处理和收发方向, 将 接口设备分为入接口设备和出接口设备。  It should be noted that the inbound interface device or the outbound interface device is any interface device 10 connected to the interface concentrator 20, which may be the same interface device 10 or a different interface device 10. In the embodiment of the present invention, in order to facilitate the description of the packet forwarding process, the interface device is divided into an inbound interface device and an outbound interface device according to the packet processing and sending and receiving directions.
举例来说, 第一数据帧的格式可以如图 6所示, 第一数据帧包括报文附 加信息及入接口设备 10接收到的报文, 报文附加信息包括接口设备的身份标 识(ID )、 接口设备的端口号及保留位。 其中接口设备的身份标识为发送第一 数据帧至接口集中器 20的入接口设备 10的身份标识, 端口号为入接口设备 10接收报文的第二端口号。 在本发明的一些实施例中, 第一数据帧为以太网 数据帧, 报文附加信息共 32比特, 其中, 8比特为接口设备的身份标识, 16 比特为接口设备的端口号, 8比特为保留位。 在本发明的一些实施例中, 接口 设备 10并不知晓其自身的身份标识, 因而第一数据帧的接口设备的身份标识 为空。  For example, the format of the first data frame may be as shown in FIG. 6. The first data frame includes message additional information and a message received by the interface device 10, and the message additional information includes an identity identifier (ID) of the interface device. Port number and reserved bits of the interface device. The identity of the interface device is the identity of the inbound interface device 10 that sends the first data frame to the interface concentrator 20, and the port number is the second port number of the inbound interface device 10 that receives the packet. In some embodiments of the present invention, the first data frame is an Ethernet data frame, and the message additional information is a total of 32 bits, wherein 8 bits are the identity of the interface device, 16 bits are the port number of the interface device, and 8 bits are Reserved bit. In some embodiments of the invention, the interface device 10 is unaware of its own identity, such that the identity of the interface device of the first data frame is empty.
图 7所示为本发明实施例提供的另一种第一数据帧的格式。 图 7中的第 一数据帧与图 6 中的第一数据帧的不同之处在于, 还包括目的介质访问控制 ( Media Access Control, MAC )地址、 来源 MAC地址及类型, 其余与图 6 中的第一数据帧相同, 因而此处不再赘述。 在本发明的一些实施例中, 第一 数据帧包括 32比特的目的 MAC地址、 32比特的来源 MAC地址及 16比特的 类型。在本实施例中, 第一数据帧的目的 MAC地址为接口集中器 20的 MAC 地址, 来源 MAC地址为入接口设备 10的 MAC地址, 类型代表入接口设备 10接收的报文的协议类型, 例如以太网类型。  FIG. 7 is a diagram showing another format of a first data frame according to an embodiment of the present invention. The first data frame in FIG. 7 is different from the first data frame in FIG. 6 in that it further includes a destination media access control (MAC) address, a source MAC address, and a type, and the rest is the same as in FIG. The first data frame is the same and will not be described here. In some embodiments of the invention, the first data frame includes a 32-bit destination MAC address, a 32-bit source MAC address, and a 16-bit type. In this embodiment, the destination MAC address of the first data frame is the MAC address of the interface concentrator 20, the source MAC address is the MAC address of the inbound interface device 10, and the type represents the protocol type of the packet received by the interface device 10, for example. Ethernet type.
202, 接口集中器 20在第一数据帧中增加发送第一数据帧的入接口设备 的身份标识形成第二数据帧, 并发送第二数据帧至转发处理设备 30。 在本发 明的一些实施例中, 第二数据帧的格式与第一数据帧的格式相同, 如图 6或 图 7所示, 因而此处不再赘述。  202. The interface concentrator 20 adds an identity of the inbound interface device that sends the first data frame to the first data frame to form a second data frame, and sends the second data frame to the forwarding processing device 30. In some embodiments of the present invention, the format of the second data frame is the same as the format of the first data frame, as shown in FIG. 6 or FIG. 7, and thus is not described herein again.
203 , 转发处理设备 30根据第二数据帧中的入接口设备的身份标识及接 收报文的第二端口号对报文进行解析并进行路由转发。 本实施例中的路由方法中,接口集中器 20可以连接多个接口设备 10, 而 每个接口设备 10还包括多个第二端口, 使得一个转发处理设备 30可以转发 来自多个接口设备 10的多个端口的报文, 从而转发处理设备 30可以支持大 规格的接口需求,并且转发处理设备 30的性能被充分利用,便于管理和维护, 节省投资成本和升级成本。 203. The forwarding processing device 30 parses the packet according to the identity of the inbound interface device and the second port number of the received packet in the second data frame, and performs routing and forwarding. In the routing method in this embodiment, the interface concentrator 20 can connect multiple interface devices 10, and each interface device 10 further includes multiple second ports, so that one forwarding processing device 30 can forward the packets from multiple interface devices 10. Packets of multiple ports, so that the forwarding processing device 30 can support large-scale interface requirements, and the performance of the forwarding processing device 30 is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
参阅图 3并结合图 1 , 本发明第二实施例提供的一种路由方法, 包括: Referring to FIG. 3 and FIG. 1 , a routing method provided by a second embodiment of the present invention includes:
301 , 入接口设备 10接收报文, 将报文封装成第一数据帧并发送至接口 集中器 20。 具体参见 201 , 在此不再赘述。 301. The inbound interface device 10 receives the packet, encapsulates the packet into a first data frame, and sends the packet to the interface concentrator 20. For details, refer to 201, and details are not described here.
302, 接口集中器 20在第一数据帧中增加发送第一数据帧的入接口设备 10的身份标识形成第二数据帧, 并发送第二数据帧至转发处理设备 30。 具体 参见 202, 在此不再赘述。  302. The interface concentrator 20 adds an identity of the inbound interface device 10 that sends the first data frame to the first data frame to form a second data frame, and sends the second data frame to the forwarding processing device 30. For details, see 202, and details are not described here.
303 , 转发处理设备 30根据第二数据帧中的入接口设备的身份标识及接 收报文的第二端口号从转发处理设备 30的接口信息表中获取对应的接口链路 层配置。 在本发明的一些实施例中, 接口链路层配置代表发送报文的接口设 备的第二端口连接的设备的形态, 例如为以太网的设备还是其他网络形式的 设备。  303. The forwarding processing device 30 obtains the corresponding interface link layer configuration from the interface information table of the forwarding processing device 30 according to the identity identifier of the inbound interface device and the second port number of the received packet in the second data frame. In some embodiments of the present invention, the interface link layer configuration is a form of a device connected to the second port of the interface device that sends the message, such as an Ethernet device or another network device.
304, 转发处理设备 30根据所述接口链路层配置解析第二数据帧中的报 文。 在本发明的一些实施例中, 例如接口链路层配置为以太网配置, 转发处 理设备 30根据以太网形式的报文格式解析第二数据帧中的报文。  304. The forwarding processing device 30 parses the message in the second data frame according to the interface link layer configuration. In some embodiments of the present invention, for example, the interface link layer is configured as an Ethernet configuration, and the forwarding processing device 30 parses the message in the second data frame according to the packet format of the Ethernet format.
305 , 转发处理设备 30根据解析后的报文进行路由查找, 并路由转发所 述报文。  305. The forwarding processing device 30 performs route lookup according to the parsed packet, and routes and forwards the packet.
进一步的, 如图 4所示, 所述 305具体包括:  Further, as shown in FIG. 4, the 305 specifically includes:
401 , 转发处理设备 30根据所述解析后的报文进行路由查找, 获得转发 所述报文的出接口设备 10的身份标识与第二端口号, 将转发所述报文的出接 口设备 10的身份标识与第二端口号增加到从所述第二数据帧中解析出的报文 中形成转发数据帧, 并发送转发数据帧至接口集中器 20。 在本发明的一些实 施例中, 转发数据帧的格式与第一数据帧及第二数据帧的格式相同, 如图 6 或图 7 所示, 此处不再赘述。 在本发明的一些实施例中, 出接口设备也可作 为入接口设备接收报文, 入接口设备也可作为出接口设备转发报文。 402, 接口集中器 20根据转发数据帧中的转发所述报文的出接口设备 10 的身份标识发送转发数据帧至转发所述报文的出接口设备 10。 401. The forwarding processing device 30 performs a route search according to the parsed packet, and obtains an identity identifier and a second port number of the outbound interface device 10 that forwards the packet, and the interface device 10 that forwards the packet is The identity identifier and the second port number are added to form a forwarded data frame in the message parsed from the second data frame, and the forwarded data frame is sent to the interface concentrator 20. In some embodiments of the present invention, the format of the forwarded data frame is the same as the format of the first data frame and the second data frame, as shown in FIG. 6 or FIG. 7, and details are not described herein again. In some embodiments of the present invention, the outbound interface device can also receive the packet as the inbound interface device, and the inbound interface device can also forward the packet as the outbound interface device. The interface concentrator 20 sends the forwarding data frame to the outbound interface device 10 that forwards the packet according to the identity of the outbound interface device 10 that forwards the packet in the forwarding data frame.
403 , 转发所述报文的出接口设备 10根据转发数据帧中的转发所述报文 的出接口设备 10的第二端口号从转发所述报文的出接口设备 10的第二端口 号对应的第二端口发送报文, 从而完成报文的路由转发。 在本发明的一些实 施例中, 转发所述报文的出接口设备 10 ,从转发所述报文的出接口设备 10的 第二端口号对应的第二端口发送报文至目的地, 完成报文的路由转发。 进一步的, 还可以动态增加接口集中器 20连接的接口设备 10。 参阅图 5 并结合图 1 , 本发明实施例提供的一种路由方法, 包括:  403. The outbound interface device 10 that forwards the packet corresponds to the second port number of the outbound interface device 10 that forwards the packet according to the second port number of the outbound interface device 10 that forwards the packet in the forwarding data frame. The second port sends a packet to complete the routing and forwarding of the packet. In some embodiments of the present invention, the outbound interface device 10 that forwards the packet sends a packet to the destination from the second port corresponding to the second port number of the outbound interface device 10 that forwards the packet, and completes the report. The routing of the text. Further, the interface device 10 connected to the interface concentrator 20 can also be dynamically added. Referring to FIG. 5 and FIG. 1 , a routing method provided by an embodiment of the present invention includes:
501 , 接口设备 10插入接口集中器 20, 生成并发送第三数据帧至接口集 中器 20 ,所述第三数据帧包括插入的接口设备 10的所有第二端口号及对应的 端口类型。 在本发明的一些实施例中, 接口集中器 20可以插入多个接口设备 10, 当有新的接口设备 10插入接口集中器 20时, 新接口设备 10会发送第三 数据帧至接口集中器 20 ,告知接口集中器 20其所有第二端口号及对应的端口 类型。 端口类型包括可配置类型及不可配置类型, 可配置类型代表该端口可 根据需要进行配置, 不可配置类型代表该端口的配置固定, 不能进行设定。 在本发明的一些实施例中, 第三数据帧还包括不可配置类型的端口对应的接 口链路层配置。  501. The interface device 10 is inserted into the interface concentrator 20 to generate and send a third data frame to the interface concentrator 20, where the third data frame includes all second port numbers of the inserted interface device 10 and corresponding port types. In some embodiments of the present invention, the interface concentrator 20 can insert a plurality of interface devices 10, and when a new interface device 10 is inserted into the interface concentrator 20, the new interface device 10 transmits a third data frame to the interface concentrator 20. , the interface concentrator 20 is informed of all its second port numbers and corresponding port types. The port type includes a configurable type and a non-configurable type. The configurable type indicates that the port can be configured as needed. The non-configurable type indicates that the configuration of the port is fixed and cannot be set. In some embodiments of the invention, the third data frame further includes an interface link layer configuration corresponding to a port of a non-configurable type.
502, 接口集中器 20在第三数据帧中增加插入的接口设备 10的身份标识 形成第四数据帧, 并发送所述第四数据帧至转发处理设备 30。 在本发明的一 些实施例中, 第三数据帧与第四数据帧的格式如图 6或图 7所示, 此处不再 赘述。 当接口设备 10插入接口集中器 20时, 接口集中器 20为插入的接口设 备 10分配身份标识并增加到第三数据帧中。  502. The interface concentrator 20 adds the identity of the inserted interface device 10 in the third data frame to form a fourth data frame, and sends the fourth data frame to the forwarding processing device 30. In some embodiments of the present invention, the format of the third data frame and the fourth data frame are as shown in FIG. 6 or FIG. 7, and details are not described herein again. When the interface device 10 is inserted into the interface concentrator 20, the interface concentrator 20 assigns an identity to the inserted interface device 10 and adds it to the third data frame.
503 , 转发处理设备 30将插入的接口设备 10的身份标识、 所有第二端口 号及端口类型发送控制处理设备 40。  503. The forwarding processing device 30 transmits the identity of the inserted interface device 10, all the second port numbers, and the port type to the control processing device 40.
504, 控制处理设备 40根据所述端口类型获取插入的接口设备 10的所有 第二端口对应的接口链路层配置, 并将插入的接口设备 10的身份标识、 所有 第二端口号及对应的接口链路层配置储存至转发处理设备 30 的接口信息表 中, 从而插入的接口设备 10接收到报文时, 转发处理设备 30可查找接口信 息表, 来对应解析报文, 从而进行处理。 在本发明的一些实施例中, 控制处 理设备 40 根据所述可配置类型为所述可配置类型的端口分配接口链路层配 置。 504. The control processing device 40 acquires an interface link layer configuration corresponding to all the second ports of the inserted interface device 10 according to the port type, and inserts the identity of the inserted interface device 10, all second port numbers, and corresponding interfaces. Interface information table stored in the link layer configuration to the forwarding processing device 30 When the inserted interface device 10 receives the packet, the forwarding processing device 30 can search the interface information table to parse the packet for processing. In some embodiments of the invention, control processing device 40 assigns an interface link layer configuration to the configurable type of ports based on the configurable type.
为便于更好的实施本发明实施例的上述方案, 下面还提供用于配合实施 上述方案的相关装置。  In order to facilitate the implementation of the above-described aspects of the embodiments of the present invention, related devices for cooperating to implement the above aspects are also provided below.
每个接口设备 10分别包括第一端口与多个第二端口, 并分别通过第一端 口连接接口集中器 20。  Each interface device 10 includes a first port and a plurality of second ports, respectively, and is connected to the interface concentrator 20 through the first port.
每个接口设备 10通过各自的第二端口接收或发送报文。 在本发明的一些 实施例中, 每个接口设备 10的多个第二端口可同时或部分接收报文。  Each interface device 10 receives or transmits a message through its respective second port. In some embodiments of the invention, a plurality of second ports of each interface device 10 may receive messages simultaneously or in part.
在本发明的一些实施例中, 接口设备 10包括入接口设备及出接口设备, 当接口设备 10接收网络侧报文或来自终端设备的报文时, 该接口设备 10作 为入接口设备, 而当接口设备 10将报文转发至网络侧或终端设备时, 该接口 设备 10作为出接口设备。  In some embodiments of the present invention, the interface device 10 includes an inbound interface device and an outbound interface device. When the interface device 10 receives a network side message or a message from the terminal device, the interface device 10 functions as an inbound interface device. When the interface device 10 forwards the packet to the network side or the terminal device, the interface device 10 functions as an outbound interface device.
入接口设备 10用于通过第二端口接收报文, 将报文封装成第一数据帧并 通过第一端口发送至接口集中器 20 , 所述第一数据帧包括所述入接口设备 10 接收报文的第二端口号。  The inbound interface device 10 is configured to receive the packet through the second port, encapsulate the packet into the first data frame, and send the packet to the interface concentrator 20 through the first port, where the first data frame includes the inbound interface device 10 receiving the packet. The second port number of the text.
接口集中器 20用于接收入接口设备 10发送的第一数据帧, 并在所述第 一数据帧中增加该入接口设备 10的身份标识形成第二数据帧。接口集中器 20 通过不同的端口连接不同的接口设备 10 , 从而可识别发送第一数据帧的入接 口设备 10的身份标识。  The interface concentrator 20 is configured to receive the first data frame sent by the interface device 10, and add the identity of the inbound interface device 10 in the first data frame to form a second data frame. The interface concentrator 20 connects different interface devices 10 through different ports, so that the identity of the ingress interface device 10 that transmits the first data frame can be identified.
转发处理设备 30与接口集中器 20连接, 用于根据第二数据帧中的入接 口设备 10的身份标识及接收报文的第二端口号对报文进行解析并进行路由转 发。  The forwarding processing device 30 is connected to the interface concentrator 20 for parsing and routing the packet according to the identity of the ingress interface device 10 in the second data frame and the second port number of the received packet.
在本发明的一些实施例中, 转发处理设备 30包括接口信息表, 所述接口 信息表包括所有接口设备 10的身份标识及接收报文的第二端口号及对应的接 口链路层配置。转发处理设备 30具体用于根据第二数据帧中的入接口设备 10 的身份标识及接收报文的第二端口号从所述接口信息表中获取对应的接口链 路层配置, 根据所述接口链路层配置解析报文, 及根据解析后的报文进行路 由查找, 并路由转发报文。 In some embodiments of the present invention, the forwarding processing device 30 includes an interface information table, where the interface information table includes an identity identifier of all interface devices 10 and a second port number of the received message and a corresponding interface link layer configuration. The forwarding processing device 30 is configured to obtain a corresponding interface link layer configuration from the interface information table according to the identity identifier of the inbound interface device 10 and the second port number of the received packet in the second data frame, according to the interface. The link layer configuration parses the packet and performs the path based on the parsed packet. By looking up, and routing the message.
在本发明的一些实施例中, 转发处理设备 30还用于根据解析后的报文进 行路由查找, 获得转发报文的出接口设备 10的身份标识与发送报文的第二端 口号, 将所述出接口设备 10的身份标识与第二端口号增加到所述解析出的报 文中形成转发数据帧, 并发送转发数据帧至接口集中器 20。接口集中器 20还 用于根据转发数据帧中的出接口设备 10的身份标识, 将转发数据帧发送至所 述出接口设备 10。 所述出接口设备 10 用于根据转发数据帧中的出接口设备 10的第二端口号对应的端口发送报文。 至此,路由系统通过接口设备 10接收 报文, 经过接口集中器 20发送至转发处理设备 30进行路由查找, 再通过接 口集中器 20发送到查找到的接口设备 10转发出去, 从而实现报文的路由。  In some embodiments of the present invention, the forwarding processing device 30 is further configured to perform a route search according to the parsed message, obtain an identity identifier of the outbound interface device 10 that forwards the packet, and a second port number of the sent packet. The identifier and the second port number of the interface device 10 are added to the parsed message to form a forwarding data frame, and the forwarding data frame is sent to the interface concentrator 20. The interface concentrator 20 is further configured to send the forwarded data frame to the outgoing interface device 10 according to the identity of the outgoing interface device 10 in the forwarded data frame. The outbound interface device 10 is configured to send a packet according to the port corresponding to the second port number of the outbound interface device 10 in the forwarding data frame. At this point, the routing system receives the packet through the interface device 10, and the interface concentrator 20 sends the packet to the forwarding processing device 30 for route search, and then the interface concentrator 20 sends the packet to the interface device 10 for forwarding. .
在本发明的一些实施例中, 还可以动态增加接口集中器 20连接的接口设 备 10。 当接口设备 10初始插入接口集中器 20时,接口设备 10还用于生成并 发送第三数据帧至接口集中器 20 ,第三数据帧包括接口设备 10的所有端口号 及对应的端口类型。 接口集中器 20还用于在第三数据帧中增加接口设备 10 的身份标识形成第四数据帧, 并发送第四数据帧至转发处理设备 30。 转发处 理设备 30将所述接口设备 10的身份标识、 所有端口号及对应的端口类型发 送至控制处理设备 40。 控制处理设备 40用于根据端口类型获取接口设备 10 的所有端口对应的接口链路层配置, 并将接口设备 10的身份标识、 所有端口 号及对应的接口链路层配置储存至转发处理设备 30的接口信息表中。  In some embodiments of the invention, the interface device 10 to which the interface concentrator 20 is connected may also be dynamically added. When the interface device 10 is initially inserted into the interface concentrator 20, the interface device 10 is further configured to generate and transmit a third data frame to the interface concentrator 20, the third data frame including all port numbers of the interface device 10 and corresponding port types. The interface concentrator 20 is further configured to add the identity of the interface device 10 in the third data frame to form a fourth data frame, and send the fourth data frame to the forwarding processing device 30. The forwarding processing device 30 transmits the identity of the interface device 10, all port numbers, and corresponding port types to the control processing device 40. The control processing device 40 is configured to acquire an interface link layer configuration corresponding to all ports of the interface device 10 according to the port type, and store the identity identifier of the interface device 10, all port numbers, and corresponding interface link layer configurations to the forwarding processing device 30. In the interface information table.
在本发明的一些实施例中, 所述端口类型包括可配置类型及不可配置类 型, 当端口类型为不可配置类型时, 所述第三数据帧还包括该不可配置类型 的端口所对应的接口链路层配置。 控制处理设备 40可以根据可配置类型为可 配置类型的端口分配接口链路层配置。  In some embodiments of the present invention, the port type includes a configurable type and a non-configurable type. When the port type is a non-configurable type, the third data frame further includes an interface chain corresponding to the port of the non-configurable type. Road layer configuration. Control processing device 40 may assign an interface link layer configuration to ports that are configurable types of configurable types.
在本发明的一些实施例中,控制处理设备 40连接转发处理设备 30 ,还用 于处理管理者控制、 控制报文处理及协议处理。  In some embodiments of the invention, control processing device 40 is coupled to forwarding processing device 30 for processing manager control, message processing, and protocol processing.
参阅图 8 , 本发明实施例提供的一种接口集中器 80, 包括收发模块 800 及插入模块 810。 其中,  Referring to FIG. 8, an interface concentrator 80, which includes a transceiver module 800 and an insertion module 810, is provided. among them,
所述收发模块 800用于接收入接口设备发送的第一数据帧, 所述第一数 据帧包括所述入接口设备接收的报文及所述入接口设备接收所述报文的端口 号; The transceiver module 800 is configured to receive a first data frame sent by the inbound interface device, where the first data frame includes a packet received by the inbound interface device and a port on which the inbound interface device receives the packet. number;
所述插入模块 810用于在第一数据帧中增加所述入接口设备的身份标识 形成第二数据帧;  The insertion module 810 is configured to add an identity of the inbound interface device in the first data frame to form a second data frame.
所述收发模块 800还用于将第二数据帧发送至转发处理设备, 以使转发 处理设备根据第二数据帧中的所述入接口设备的身份标识及所述入接口设备 接收所述报文的端口号对第二数据帧进行解析并进行路由转发。  The transceiver module 800 is further configured to send the second data frame to the forwarding processing device, so that the forwarding processing device receives the packet according to the identity identifier of the inbound interface device in the second data frame and the inbound interface device. The port number resolves the second data frame and performs routing and forwarding.
在本发明的一些实施例中, 收发模块 800还用于接收转发处理设备发送 的转发数据帧, 所述转发数据帧包括所述报文及转发所述报文的接口设备的 身份标识与端口号, 转发所述报文的接口设备的身份标识与端口号为转发处 理设备根据解析后的报文进行路由查找所获得, 及根据转发数据帧中的所述 转发所述报文的接口设备的身份标识发送转发数据帧至所述转发所述报文的 接口设备, 以使所述转发所述报文的接口设备根据转发数据帧中的转发所述 报文的接口设备的端口号从所述转发所述报文的接口设备的端口号对应的端 口发送所述报文。  In some embodiments of the present invention, the transceiver module 800 is further configured to receive a forwarding data frame sent by the forwarding processing device, where the forwarding data frame includes the packet and an identity identifier and a port number of the interface device that forwards the packet. The identity identifier and the port number of the interface device that forwards the packet are obtained by the forwarding processing device performing routing search according to the parsed packet, and the identity of the interface device that forwards the packet according to the forwarding data frame. Identifying the sending and forwarding data frame to the interface device that forwards the packet, so that the interface device that forwards the packet forwards from the port number of the interface device that forwards the packet according to the forwarding data frame The port corresponding to the port number of the interface device of the packet sends the packet.
在本发明的一些实施例中, 收发模块 800还用于侦测接口设备的插入, 接收插入的接口设备发送的第三数据帧, 所述第三数据帧包括插入的接口设 备的所有端口号及对应的端口类型。 插入模块 810还用于在第三数据帧中增 加插入的接口设备的身份标识形成第四数据帧, 并通过收发模块 800发送第 四数据帧至转发处理设备, 以使转发处理设备将插入的接口设备的身份标识、 所有端口号及端口类型发送至控制处理设备, 使控制处理设备根据所述端口 类型获取插入的接口设备的所有端口对应的接口链路层配置, 并将插入的接 口设备的身份标识、 所有端口号及对应的接口链路层配置储存至所述转发处 理设备的接口信息表中。  In some embodiments of the present invention, the transceiver module 800 is further configured to detect insertion of the interface device, and receive a third data frame sent by the inserted interface device, where the third data frame includes all port numbers of the inserted interface device and The corresponding port type. The insertion module 810 is further configured to add an identifier of the inserted interface device in the third data frame to form a fourth data frame, and send the fourth data frame to the forwarding processing device by the transceiver module 800, so that the forwarding processing device inserts the interface. The device identifier, all the port numbers, and the port type are sent to the control processing device, so that the control processing device obtains the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and the identity of the inserted interface device is The identifier, all port numbers, and corresponding interface link layer configurations are stored in the interface information table of the forwarding processing device.
可以理解的是, 本实施例的接口集中器 80的各功能模块的功能可根据上 述方法实施例中的方法具体实现, 其具体实现过程可参照上述方法实施例中 的相关描述, 此处不再赘述。  It can be understood that the functions of the function modules of the interface concentrator 80 of the embodiment may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, refer to the related description in the foregoing method embodiment, where the description is no longer Narration.
本实施例中接口集中器 80可以连接多个接口设备, 而每个接口设备还包 括多个端口, 通过接口集中器 80使得一个转发处理设备可以转发来自多个接 口设备的多个端口的报文, 从而转发处理设备可以支持大规格的接口需求, 并且转发处理设备的性能被充分利用, 便于管理和维护, 节省投资成本和升 级成本。 In this embodiment, the interface concentrator 80 can be connected to multiple interface devices, and each interface device further includes multiple ports. Through the interface concentrator 80, one forwarding processing device can forward packets from multiple ports of multiple interface devices. Therefore, the forwarding processing device can support large-scale interface requirements. And the performance of the forwarding processing device is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
此外, 接口集中器 80上连接的接口设备的个数可动态调整, 方便管理和 维护。  In addition, the number of interface devices connected to the interface concentrator 80 can be dynamically adjusted for management and maintenance.
参阅图 9, 本发明实施例还提供一种接口集中器 90 , 包括收发装置 901、 处理器 902和存储器 903; 接口集中器 90中的处理器 902的数量可以为一个 或多个, 图 9中以一个处理器为例。在本发明的一些实施例中,收发装置 901、 处理器 902和存储器 903可通过总线或其它方式连接, 其中, 图 9中以通过 总线连接为例。  Referring to FIG. 9, an embodiment of the present invention further provides an interface concentrator 90, including a transceiver 901, a processor 902, and a memory 903. The number of processors 902 in the interface concentrator 90 may be one or more, FIG. Take a processor as an example. In some embodiments of the present invention, the transceiver 901, the processor 902, and the memory 903 may be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
存储器 903 , 用于存放程序。 具体地, 程序可以包括程序代码, 所述程序 代码包括计算机操作指令。存储器 903可能包含高速随机存取存储器(random access memory,简称 RAM )存储器,也可能还包括非易失性存储器( non-volatile memory ) , 例^口至少一个磁盘存 4诸器。  The memory 903 is used to store a program. In particular, the program can include program code, the program code including computer operating instructions. The memory 903 may include a high speed random access memory (RAM) memory, and may also include a non-volatile memory, for example, at least one disk storage device.
其中, 所述收发装置 901 用于接收入接口设备发送的第一数据帧, 所述 第一数据帧包括所述入接口设备接收的报文及所述入接口设备接收所述报文 的端口号;  The transceiver device 901 is configured to receive a first data frame sent by the inbound interface device, where the first data frame includes a packet received by the inbound interface device and a port number of the inbound interface device receiving the packet. ;
所述处理器 902执行存储器 903所存放的程序, 用于在第一数据帧中增 加所述入接口设备的身份标识形成第二数据帧;  The processor 902 executes a program stored in the memory 903, for adding the identity of the inbound interface device in the first data frame to form a second data frame;
所述收发装置 901 还用于将第二数据帧发送至转发处理设备, 以使转发 处理设备根据第二数据帧中的所述入接口设备的身份标识及所述入接口设备 接收所述报文的端口号对第二数据帧进行解析并进行路由转发。  The transceiver device 901 is further configured to send the second data frame to the forwarding processing device, so that the forwarding processing device receives the packet according to the identity identifier of the inbound interface device in the second data frame and the inbound interface device. The port number resolves the second data frame and performs routing and forwarding.
在本发明的一些实施例中, 收发装置 901 还用于接收转发处理设备发送 的转发数据帧, 所述转发数据帧包括所述报文及转发所述报文的接口设备的 身份标识与端口号, 转发所述报文的接口设备的身份标识与端口号为转发处 理设备根据解析后的报文进行路由查找所获得, 及根据转发数据帧中的所述 转发所述报文的接口设备的身份标识发送转发数据帧至所述转发所述报文的 接口设备, 以使所述转发所述报文的接口设备根据转发数据帧中的转发所述 报文的接口设备的端口号从所述转发所述报文的接口设备的端口号对应的端 口发送所述报文。 在本发明的一些实施例中, 收发装置 901 还用于侦测接口设备的插入, 接收插入的接口设备发送的第三数据帧, 所述第三数据帧包括插入的接口设 备的所有端口号及对应的端口类型。 所述处理器 902还用于在第三数据帧中 增加插入的接口设备的身份标识形成第四数据帧, 并通过收发装置 901 发送 第四数据帧至转发处理设备, 以使转发处理设备将插入的接口设备的身份标 识、 所有端口号及端口类型发送至控制处理设备, 使控制处理设备根据所述 端口类型获取插入的接口设备的所有端口对应的接口链路层配置, 并将插入 的接口设备的身份标识、 所有端口号及对应的接口链路层配置储存至所述转 发处理设备的接口信息表中。 In some embodiments of the present invention, the transceiver 901 is further configured to receive a forwarding data frame sent by the forwarding processing device, where the forwarding data frame includes the packet and an identity identifier and a port number of the interface device that forwards the packet. The identity identifier and the port number of the interface device that forwards the packet are obtained by the forwarding processing device performing routing search according to the parsed packet, and the identity of the interface device that forwards the packet according to the forwarding data frame. Identifying the sending and forwarding data frame to the interface device that forwards the packet, so that the interface device that forwards the packet forwards from the port number of the interface device that forwards the packet according to the forwarding data frame The port corresponding to the port number of the interface device of the packet sends the packet. In some embodiments of the present invention, the transceiver 901 is further configured to detect insertion of the interface device, and receive a third data frame sent by the inserted interface device, where the third data frame includes all port numbers of the inserted interface device and The corresponding port type. The processor 902 is further configured to add an identifier of the inserted interface device to form a fourth data frame in the third data frame, and send the fourth data frame to the forwarding processing device by using the transceiver 901, so that the forwarding processing device is to be inserted. The identity of the interface device, the port number, and the port type are sent to the control processing device, so that the control processing device obtains the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and inserts the interface device into the interface device. The identity identifier, all port numbers, and corresponding interface link layer configurations are stored in the interface information table of the forwarding processing device.
可以理解的是, 本实施例的接口集中器 90的各功能模块的功能可根据上 述方法实施例中的方法具体实现, 其具体实现过程可参照上述方法实施例中 的相关描述, 此处不再赘述。  It can be understood that the functions of the function modules of the interface concentrator 90 of the embodiment may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, refer to the related description in the foregoing method embodiment, where Narration.
本实施例中接口集中器 90可以连接多个接口设备, 而每个接口设备还包 括多个端口, 通过接口集中器 90使得一个转发处理设备可以转发来自多个接 口设备的多个端口的报文, 从而转发处理设备可以支持大规格的接口需求, 并且转发处理设备的性能被充分利用, 便于管理和维护, 节省投资成本和升 级成本。  In this embodiment, the interface concentrator 90 can be connected to multiple interface devices, and each interface device further includes multiple ports. Through the interface concentrator 90, one forwarding processing device can forward packets from multiple ports of multiple interface devices. Therefore, the forwarding processing device can support large-scale interface requirements, and the performance of the forwarding processing device is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
此外, 接口集中器 90上连接的接口设备的个数可动态调整, 方便管理和 维护。  In addition, the number of interface devices connected to the interface concentrator 90 can be dynamically adjusted for management and maintenance.
参阅图 10, 本发明实施例提供的一种转发处理设备 100, 包括收发模块 1000、 解析模块 1010及路由模块 1020。 其中, 收发模块 1000用于接收接口 集中器发送的第二数据帧, 所述第二数据帧包括与接口集中器相连的接口设 备接收的报文、 所述接口设备的身份标识及接收所述报文的端口号。  Referring to FIG. 10, a forwarding processing device 100, which includes a transceiver module 1000, a parsing module 1010, and a routing module 1020, is provided. The transceiver module 1000 is configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the interface device connected to the interface concentrator, an identity identifier of the interface device, and receiving the report. The port number of the text.
解析模块 1010用于根据第二数据帧中的接口设备的身份标识及接收所述 报文的端口号对第二数据帧进行解析。 路由模块 1020用于根据解析后的第二 数据帧进行路由转发。  The parsing module 1010 is configured to parse the second data frame according to the identity of the interface device in the second data frame and the port number of the received message. The routing module 1020 is configured to perform route forwarding according to the parsed second data frame.
进一步的, 解析模块 1010用于根据第二数据帧中的接口设备的身份标识 及接收所述报文的端口号, 从转发处理设备的接口信息表中获取对应的接口 链路层配置, 并根据所述接口链路层配置解析所述报文。 路由模块还用于根 据解析后的报文进行路由查找, 获得转发所述报文的接口设备的身份标识与 端口号, 将所述转发所述报文的接口设备的身份标识与端口号增加到所述解 析的报文中形成转发数据帧, 并发送转发数据帧至接口集中器, 以使接口集 中器根据所述转发数据帧中的所述转发所述报文的接口设备的身份标识发送 所述转发数据帧至所述转发所述报文的接口设备, 使所述转发所述报文的接 述转发所述报文的接口设备的端口号对应的端口发送所述报文。 Further, the parsing module 1010 is configured to obtain a corresponding interface link layer configuration from the interface information table of the forwarding processing device according to the identity identifier of the interface device in the second data frame and the port number of the packet, and according to The interface link layer configuration parses the packet. The routing module is also used for roots And performing the route search according to the parsed packet, obtaining the identity identifier and the port number of the interface device that forwards the packet, and adding the identity identifier and the port number of the interface device that forwards the packet to the parsed report The forwarding data frame is formed in the text, and the forwarding data frame is sent to the interface concentrator, so that the interface concentrator sends the forwarding data frame according to the identity identifier of the interface device that forwards the packet in the forwarding data frame to The interface device that forwards the packet sends the packet to the port corresponding to the port number of the interface device that forwards the packet to the packet.
在本发明的一些实施例中, 收发模块 1000还用于接收接口集中器发送的 第二数据帧, 所述第二数据帧包括插入的接口设备的身份标识、 所有端口号 及端口类型, 并将插入的接口设备的身份标识、 所有端口号及端口类型发送 至控制处理设备, 以使控制处理设备根据所述端口类型获取所述插入的接口 设备的所有端口对应的接口链路层配置, 并将插入的接口设备的身份标识、 所有端口号及对应的接口链路层配置储存至转发处理设备的接口信息表中。  In some embodiments of the present invention, the transceiver module 1000 is further configured to receive a second data frame sent by the interface concentrator, where the second data frame includes an identity of the inserted interface device, all port numbers, and a port type, and The identity of the inserted interface device, the port number, and the port type are sent to the control processing device, so that the control processing device acquires the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and The identity of the inserted interface device, all port numbers, and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
可以理解的是, 本实施例的转发处理设备 100 的各功能模块的功能可根 据上述方法实施例中的方法具体实现, 其具体实现过程可参照上述方法实施 例中的相关描述, 此处不再赘述。  It can be understood that the functions of the function modules of the forwarding processing device 100 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, refer to the related description in the foregoing method embodiment, where Narration.
本实施例中转发处理设备 100连接的接口集中器可以连接多个接口设备, 而每个接口设备还包括多个端口, 使得一个转发处理设备 100可以转发来自 多个接口设备的多个端口的报文, 从而转发处理设备 100可以支持大规格的 接口需求, 并且转发处理设备 100 的性能被充分利用, 便于管理和维护, 节 省投资成本和升级成本。  In this embodiment, the interface concentrator connected to the forwarding processing device 100 can connect multiple interface devices, and each interface device further includes multiple ports, so that one forwarding processing device 100 can forward reports from multiple ports of multiple interface devices. Therefore, the forwarding processing device 100 can support large-scale interface requirements, and the performance of the forwarding processing device 100 is fully utilized, which is convenient for management and maintenance, and saves investment cost and upgrade cost.
参阅图 11 , 本发明实施例还提供一种转发处理设备 110, 包括收发装置 1101、 处理器 1102和存储器 1103 ; 转发处理设备 110中的处理器 1102的数 量可以为一个或多个, 图 11中以一个处理器为例。在本发明的一些实施例中, 收发装置 1101、 处理器 1102和存储器 1103可通过总线或其它方式连接, 其 中, 图 11中以通过总线连接为例。  Referring to FIG. 11, an embodiment of the present invention further provides a forwarding processing device 110, including a transceiver device 1101, a processor 1102, and a memory 1103. The number of processors 1102 in the forwarding processing device 110 may be one or more, in FIG. Take a processor as an example. In some embodiments of the present invention, the transceiver 1101, the processor 1102, and the memory 1103 may be connected by a bus or other means, wherein FIG. 11 is exemplified by a bus connection.
存储器 1103 , 用于存放程序。 具体地, 程序可以包括程序代码, 所述程 序代码包括计算机操作指令。 存储器 1103 可能包含高速随机存取存储器 ( random access memory, 简称 RAM )存储器, 也可能还包括非易失性存储 器 ( non-volatile memory ) , 例^口至少一个磁盘存 4诸器。 The memory 1103 is configured to store a program. In particular, the program can include program code, the program code including computer operating instructions. The memory 1103 may include a high-speed random access memory (RAM) memory, and may also include non-volatile storage. Non-volatile memory, for example, at least one disk is stored in four devices.
其中, 收发装置 1101用于接收接口集中器发送的第二数据帧, 所述第二 数据帧包括与接口集中器相连的接口设备接收的报文、 所述接口设备的身份 标识及接收所述报文的端口号。  The transceiver device 1101 is configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a packet received by the interface device connected to the interface concentrator, an identity identifier of the interface device, and receiving the report. The port number of the text.
处理器 1102执行存储器 1103所存放的程序, 用于根据第二数据帧中的 接口设备的身份标识及接收所述报文的端口号对第二数据帧进行解析。 并用 于根据解析后的第二数据帧进行路由转发。  The processor 1102 executes a program stored in the memory 1103, configured to parse the second data frame according to the identity of the interface device in the second data frame and the port number of the received message. And used for routing and forwarding according to the parsed second data frame.
进一步的, 处理器 1102还用于根据第二数据帧中的接口设备的身份标识 及接收所述报文的端口号, 从转发处理设备的接口信息表中获取对应的接口 链路层配置, 并根据所述接口链路层配置解析所述报文。 路由模块还用于根 据解析后的报文进行路由查找, 获得转发所述报文的接口设备的身份标识与 端口号, 将所述转发所述报文的接口设备的身份标识与端口号增加到所述解 析的报文中形成转发数据帧, 并发送转发数据帧至接口集中器, 以使接口集 中器根据所述转发数据帧中的所述转发所述报文的接口设备的身份标识发送 所述转发数据帧至所述转发所述报文的接口设备, 使所述转发所述报文的接 述转发所述报文的接口设备的端口号对应的端口发送所述报文。  Further, the processor 1102 is further configured to obtain, according to the identity identifier of the interface device in the second data frame, the port number of the packet, and obtain the corresponding interface link layer configuration from the interface information table of the forwarding processing device, and Parsing the packet according to the interface link layer configuration of the interface. The routing module is further configured to perform a route search according to the parsed packet, obtain an identity identifier and a port number of the interface device that forwards the packet, and add the identity identifier and the port number of the interface device that forwards the packet to Forming a forwarding data frame in the parsed packet, and sending the forwarding data frame to the interface concentrator, so that the interface concentrator sends the identity identifier of the interface device that forwards the packet according to the forwarding data frame. The forwarding data frame is sent to the interface device that forwards the packet, and the port corresponding to the port number of the interface device that forwards the packet to the packet is sent by the port that forwards the packet.
在本发明的一些实施例中, 收发装置 1101还用于接收接口集中器发送的 第二数据帧, 所述第二数据帧包括插入的接口设备的身份标识、 所有端口号 及端口类型, 并将插入的接口设备的身份标识、 所有端口号及端口类型发送 至控制处理设备, 以使控制处理设备根据所述端口类型获取所述插入的接口 设备的所有端口对应的接口链路层配置, 并将插入的接口设备的身份标识、 所有端口号及对应的接口链路层配置储存至转发处理设备的接口信息表中。  In some embodiments of the present invention, the transceiver 1101 is further configured to receive a second data frame sent by the interface concentrator, where the second data frame includes an identifier of the inserted interface device, all port numbers, and a port type, and The identity of the inserted interface device, the port number, and the port type are sent to the control processing device, so that the control processing device acquires the interface link layer configuration corresponding to all the ports of the inserted interface device according to the port type, and The identity of the inserted interface device, all port numbers, and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
可以理解的是, 本实施例的转发处理设备 110 的各功能模块的功能可根 据上述方法实施例中的方法具体实现, 其具体实现过程可参照上述方法实施 例中的相关描述, 此处不再赘述。  It can be understood that the functions of the function modules of the forwarding processing device 110 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, reference may be made to the related description in the foregoing method embodiments, where Narration.
本实施例中转发处理设备 110连接的接口集中器可以连接多个接口设备, 而每个接口设备还包括多个端口, 使得一个转发处理设备 110 可以转发来自 多个接口设备的多个端口的报文, 从而转发处理设备 110 可以支持大规格的 接口需求, 并且转发处理设备 110 的性能被充分利用, 便于管理和维护, 节 省投资成本和升级成本。 In this embodiment, the interface concentrator connected to the forwarding processing device 110 can connect multiple interface devices, and each interface device further includes multiple ports, so that one forwarding processing device 110 can forward reports from multiple ports of multiple interface devices. Thus, the forwarding processing device 110 can support large specifications. Interface requirements, and the performance of the forwarding processing device 110 is fully utilized, facilitating management and maintenance, saving investment costs and upgrading costs.
本发明实施例还提供一种路由系统, 包括至少一个接口设备 10, 如本发 明图 8或图 9所示的接口集中器 20, 和如本发明图 10或图 11所示的转发处 理设备 30;  The embodiment of the present invention further provides a routing system, including at least one interface device 10, such as the interface concentrator 20 shown in FIG. 8 or FIG. 9, and the forwarding processing device 30 shown in FIG. 10 or FIG. ;
接口设备 10包括第一端口与多个第二端口, 并通过第一端口连接接口集 中器 20; 通过第二端口接收或发送报文。 在本发明的一些实施例中, 每个接 口设备 10的多个第二端口可同时或部分接收报文。  The interface device 10 includes a first port and a plurality of second ports, and is connected to the interface concentrator 20 through the first port; and receives or transmits a message through the second port. In some embodiments of the invention, a plurality of second ports of each interface device 10 may receive messages simultaneously or in part.
接口设备 10, 用于接收报文, 将所述报文封装成第一数据帧发送至接口 集中器 20 , 所述第一数据帧包括所述接口设备接收所述报文的第二端口号; 接口集中器 20, 用于在所述第一数据帧中增加发送第一数据帧的接口设 备的身份标识形成第二数据帧, 并发送所述第二数据帧至转发处理设备 30; 转发处理设备 30, 用于根据第二数据帧中的接口设备的身份标识及接收 文的第二端口号对 ^艮文进行解析并进行路由转发;  The interface device 10 is configured to receive a packet, and the packet is encapsulated into a first data frame and sent to the interface concentrator 20, where the first data frame includes a second port number that the interface device receives the packet; The interface concentrator 20 is configured to add an identifier of the interface device that sends the first data frame to the first data frame to form a second data frame, and send the second data frame to the forwarding processing device 30; 30. The method is used to parse and perform routing and forwarding according to the identity identifier of the interface device in the second data frame and the second port number of the received text.
接口集中器 20,还用于接收转发处理设备 30发送的转发数据帧, 所述转 发数据帧包括所述报文及出接口设备的身份标识与端口号, 所述出接口设备 的身份标识与端口号为所述转发处理设备对所述第二数据帧进行解析并进行 路由查找所获得; 并根据所述转发数据帧中的所述出接口设备的身份标识发 送所述转发数据帧至所述出接口设备, 以使所述出接口设备从所述转发数据 帧中的所述出接口设备的端口号对应的端口发送所述报文。  The interface concentrator 20 is further configured to receive a forwarding data frame sent by the forwarding processing device 30, where the forwarding data frame includes an identifier and a port number of the packet and the outbound interface device, and an identity identifier and a port of the outbound interface device. The number is obtained by the forwarding processing device parsing the second data frame and performing a route search; and sending the forwarding data frame to the out according to the identity of the outbound interface device in the forwarding data frame And the interface device, so that the outbound interface device sends the packet from a port corresponding to the port number of the outbound interface device in the forwarding data frame.
在本发明的一些实施例中, 当接口设备 10接收网络侧报文或来自终端设 备的报文时, 该接口设备 10作为入接口设备, 而当接口设备 10将报文转发 至网络侧或终端设备时, 该接口设备 10作为出接口设备。 接口设备 10接收 报文, 并将报文封装成第一数据帧发送至接口集中器 20, 此时的接口设备 10 作为入接口设备。 接口设备 10接收来自接口集中器的转发数据帧, 并根据转 发数据帧中的端口号发送报文, 此时的接口设备 10作为入接口设备。  In some embodiments of the present invention, when the interface device 10 receives the network side message or the message from the terminal device, the interface device 10 functions as an inbound interface device, and when the interface device 10 forwards the message to the network side or the terminal. When the device is used, the interface device 10 functions as an outgoing interface device. The interface device 10 receives the packet, and encapsulates the packet into a first data frame and sends it to the interface concentrator 20. The interface device 10 at this time serves as the interface device. The interface device 10 receives the forwarded data frame from the interface concentrator and sends a message according to the port number in the forwarded data frame. The interface device 10 at this time acts as the inbound interface device.
进一步地, 所述路由系统还可以包括控制处理设备 40, 参见图 1所示。 接口集中器 20 , 还用于侦测到接口设备 10插入, 并接收所述接口设备 10发送的第三数据帧,所述第三数据帧包括所述接口设备 10的所有端口号及 对应的端口类型; 在所述第三数据帧中增加所述接口设备 10的身份标识形成 第四数据帧, 并发送所述第四数据帧至转发处理设备 30, 以使转发处理设备 30将所述接口设备 10的身份标识、所有端口号及端口类型发送至控制处理设 备 40; Further, the routing system may further include a control processing device 40, as shown in FIG. The interface concentrator 20 is further configured to detect that the interface device 10 is inserted, and receive a third data frame sent by the interface device 10, where the third data frame includes all port numbers of the interface device 10 and Corresponding port type; adding the identity of the interface device 10 to the third data frame to form a fourth data frame, and sending the fourth data frame to the forwarding processing device 30, so that the forwarding processing device 30 will The identity of the interface device 10, all port numbers and port types are sent to the control processing device 40;
控制处理设备 40,用于根据所述端口类型获取所述接口设备 10的所有端 口对应的接口链路层配置, 并将所述接口设备 10的身份标识、 所有端口号及 对应的接口链路层配置储存至转发处理设备 30的接口信息表中。 这样, 当插 入的接口设备 10接收到报文时, 转发处理设备 30可查找接口信息表, 来对 应解析 4艮文, 从而进行处理。  The control processing device 40 is configured to acquire an interface link layer configuration corresponding to all ports of the interface device 10 according to the port type, and identify the identity of the interface device 10, all port numbers, and corresponding interface link layers. The configuration is stored in the interface information table of the forwarding processing device 30. Thus, when the inserted interface device 10 receives the message, the forwarding processing device 30 can look up the interface information table to parse the message for processing.
在本发明的一些实施例中, 控制处理设备 40用于处理管理者控制、 控制 报文处理、 协议处理等。 控制处理设备 40无需强大的处理能力但是对界面的 友好性、 可维护性要求较高。 因此控制处理设备 40可以是专业的网络设备, 也可以是服务器上安装的能够实现管理者控制、 控制报文处理、 协议处理的 软件。 服务器上安装的软件能够对管理者的操作和维护提供非常大的灵活性, 且服务器端可以同时实现路由器的控制和网管, 极大的简化了路由器维护的 部署。  In some embodiments of the invention, control processing device 40 is used to process manager control, control message processing, protocol processing, and the like. The control processing device 40 does not require a strong processing capability but has high requirements for interface friendliness and maintainability. Therefore, the control processing device 40 can be a professional network device, or can be software installed on the server to implement administrator control, control message processing, and protocol processing. The software installed on the server provides great flexibility for the operation and maintenance of the administrator, and the server can simultaneously implement the control and network management of the router, which greatly simplifies the deployment of the router maintenance.
本发明的路由方法相关装置, 多个接口设备、 接口集中器、 转发处理设 备及控制处理设备分布式部署, 协同工作实现路由器功能, 且接口集中器可 以连接多个接口设备, 而每个接口设备还包括多个端口, 使得一个转发处理 设备可以转发来自多个接口设备的多个端口的报文, 从而转发处理设备可以 支持大规格的接口需求, 并且转发处理设备的性能被充分利用, 便于管理和 维护, 节省投资成本和升级成本。  The routing method related device of the present invention, the plurality of interface devices, the interface concentrator, the forwarding processing device, and the control processing device are distributedly deployed, work together to implement a router function, and the interface concentrator can connect multiple interface devices, and each interface device The method further includes multiple ports, so that one forwarding processing device can forward packets from multiple ports of multiple interface devices, so that the forwarding processing device can support large-scale interface requirements, and the performance of the forwarding processing device is fully utilized, which is convenient for management. And maintenance, saving investment costs and upgrade costs.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算机可 读存储介质中, 存储介质例如可以包括: 只读存储器、 随机存储器、 磁盘或 光盘等。 、 、 I σ 、 。 、 、 、 . A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, for example, the storage medium may include : Read only memory, random access memory, disk or optical disk, and so on. , , I σ , . , , , , .
说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域的一 般技术人员, 依据本发明的思想, 在具体实施方式及应用范围上均有改变之 处, 综上, 本说明书内容不应理解为对本发明的限制。 The description is only for helping to understand the method of the present invention and its core idea; at the same time, for one in the field The present invention is not limited by the scope of the present invention, and the scope of the present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 书 claims
1. 一种路由方法, 其特征在于, 包括: 1. A routing method, characterized by including:
接口集中器接收入接口设备发送的第一数据帧, 所述第一数据帧包括所 述入接口设备接收的报文及所述入接口设备接收所述报文的端口号; 及 The interface concentrator receives the first data frame sent by the incoming interface device, where the first data frame includes the message received by the incoming interface device and the port number through which the incoming interface device receives the message; and
所述接口集中器在所述第一数据帧中增加所述入接口设备的身份标识形 成第二数据帧, 并将所述第二数据帧发送至转发处理设备, 以使所述转发处 理设备根据所述第二数据帧中的所述入接口设备的身份标识及所述入接口设 备接收所述报文的端口号对所述第二数据帧进行解析并进行路由转发。 The interface concentrator adds the identity of the incoming interface device to the first data frame to form a second data frame, and sends the second data frame to the forwarding processing device, so that the forwarding processing device can The identity of the incoming interface device in the second data frame and the port number through which the incoming interface device receives the message are used to parse the second data frame and perform routing and forwarding.
2. 如权利要求 1所述的路由方法, 其特征在于, 所述接口集中器在所述 第一数据帧中增加所述入接口设备的身份标识形成第二数据帧, 并将所述第 二数据帧发送至转发处理设备之后, 还包括: 2. The routing method of claim 1, wherein the interface concentrator adds the identity of the incoming interface device to the first data frame to form a second data frame, and adds the second data frame to the first data frame. After the data frame is sent to the forwarding processing device, it also includes:
所述接口集中器接收所述转发处理设备发送的转发数据帧, 所述转发数 据帧包括所述报文及出接口设备的身份标识与端口号, 所述出接口设备的身 份标识与端口号为所述转发处理设备对所述第二数据帧进行解析并进行路由 查找所获得; 及 The interface concentrator receives the forwarding data frame sent by the forwarding processing device. The forwarding data frame includes the message and the identity identifier and port number of the outbound interface device. The identity identifier and port number of the outbound interface device are The forwarding processing device parses the second data frame and performs a route search to obtain the result; and
所述接口集中器根据所述转发数据帧中的所述出接口设备的身份标识发 送所述转发数据帧至所述出接口设备, 以使所述出接口设备从所述转发数据 帧中的所述出接口设备的端口号对应的端口发送所述报文。 The interface concentrator sends the forwarding data frame to the outgoing interface device according to the identity of the outgoing interface device in the forwarding data frame, so that the outgoing interface device obtains the information from all the outgoing interface devices in the forwarding data frame. The port corresponding to the port number of the outgoing interface device sends the message.
3. 如权利要求 2所述的路由方法, 其特征在于, 所述接口集中器接收所 述转发处理设备发送的转发数据帧之前, 还包括: 3. The routing method according to claim 2, wherein before the interface concentrator receives the forwarding data frame sent by the forwarding processing device, it further includes:
所述接口集中器侦测到所述入接口设备或所述出接口设备插入, 并接收 所述入接口设备或所述出接口设备发送的第三数据帧, 所述第三数据帧包括 所述入接口设备或所述出接口设备的所有端口号及对应的端口类型; The interface concentrator detects the insertion of the incoming interface device or the outgoing interface device, and receives a third data frame sent by the incoming interface device or the outgoing interface device, where the third data frame includes the All port numbers and corresponding port types of the ingress interface device or the egress interface device;
所述接口集中器在所述第三数据帧中增加所述入接口设备或所述出接口 设备的身份标识形成第四数据帧, 并发送所述第四数据帧至所述转发处理设 备, 以使所述转发处理设备将所述入接口设备或所述出接口设备的身份标识、 所有端口号及端口类型发送至控制处理设备, 使所述控制处理设备根据所述 端口类型获取所述入接口设备或所述出接口设备的所有端口对应的接口链路 层配置, 并将所述入接口设备或所述出接口设备的身份标识、 所有端口号及 对应的接口链路层配置储存至所述转发处理设备的接口信息表中。 The interface concentrator adds the identity of the incoming interface device or the outgoing interface device to the third data frame to form a fourth data frame, and sends the fourth data frame to the forwarding processing device. equipment, so that the forwarding processing device sends the identity of the incoming interface device or the outgoing interface device, all port numbers and port types to the control processing device, so that the control processing device obtains all the information according to the port type. Describe the interface link layer configuration corresponding to all ports of the incoming interface device or the outgoing interface device, and store the identity of the incoming interface device or the outgoing interface device, all port numbers and the corresponding interface link layer configuration to the interface information table of the forwarding processing device.
4. 一种路由方法, 其特征在于, 包括: 4. A routing method, characterized by including:
转发处理设备接收接口集中器发送的第二数据帧, 所述第二数据帧包括 与所述接口集中器相连的入接口设备接收的报文、 所述入接口设备的身份标 识及接收所述报文的端口号; 及 The forwarding processing device receives the second data frame sent by the interface concentrator. The second data frame includes the message received by the incoming interface device connected to the interface concentrator, the identity of the incoming interface device and the message received. the port number of the file; and
所述转发处理设备根据所述第二数据帧中的所述入接口设备的身份标识 及接收所述报文的端口号对所述第二数据帧进行解析并进行路由转发。 The forwarding processing device parses the second data frame and performs routing and forwarding according to the identity of the inbound interface device in the second data frame and the port number for receiving the message.
5. 如权利要求 4所述的路由方法, 其特征在于, 所述转发处理设备根据 所述第二数据帧中的所述入接口设备的身份标识及接收所述报文的端口号对 所述第二数据帧进行解析并进行路由转发, 具体包括: 5. The routing method according to claim 4, characterized in that, the forwarding processing device performs the processing of the packet according to the identity of the incoming interface device in the second data frame and the port number for receiving the message. The second data frame is parsed and routed and forwarded, including:
所述转发处理设备根据所述第二数据帧中的所述入接口设备的身份标识 及接收所述报文的端口号, 从所述转发处理设备的接口信息表中获取对应的 接口链路层配置; The forwarding processing device obtains the corresponding interface link layer from the interface information table of the forwarding processing device according to the identity of the incoming interface device in the second data frame and the port number for receiving the message. configuration;
所述转发处理设备根据所述接口链路层配置解析所述报文; 及 The forwarding processing device parses the message according to the interface link layer configuration; and
所述转发处理设备根据所述解析后的报文进行路由查找, 并路由转发所 述报文。 The forwarding processing device performs a route search based on the parsed message, and routes and forwards the message.
6. 如权利要求 5所述的路由方法, 其特征在于, 所述转发处理设备根据 所述解析后的报文进行路由查找, 并路由转发所述报文, 具体包括: 6. The routing method according to claim 5, characterized in that the forwarding processing device performs a route search according to the parsed message, and routes and forwards the message, specifically including:
所述转发处理设备根据所述解析后的报文进行路由查找, 获得转发所述 报文的出接口设备的身份标识与端口号, 将所述转发所述报文的出接口设备 的身份标识与端口号增加到所述解析后的报文中形成转发数据帧, 并发送所 述转发数据帧至所述接口集中器, 以使所述接口集中器根据所述转发数据帧 中的所述转发所述报文的出接口设备的身份标识发送所述转发数据帧至所述 转发所述报文的出接口设备, 使所述转发所述报文的出接口设备根据所述转 发数据帧中的所述转发所述报文的出接口设备的端口号从所述转发所述报文 的出接口设备的端口号对应的端口发送所述报文。 The forwarding processing device performs a route search based on the parsed message, obtains the identity identifier and port number of the outbound interface device that forwards the message, and compares the identity identifier and port number of the outbound interface device that forwards the message. The port number is added to the parsed message to form a forwarding data frame, and the forwarding data frame is sent to the interface concentrator, so that the interface concentrator can forward the data frame according to the The identity of the outbound interface device that forwards the message is used to send the forwarded data frame to the outbound interface device that forwards the message, so that the outbound interface device that forwards the message sends the forwarded data frame according to the The port number of the outbound interface device that forwards the message in the forwarded data frame is used to send the message from a port corresponding to the port number of the outbound interface device that forwards the message.
7. 一种接口集中器, 其特征在于, 包括: 7. An interface concentrator, characterized by including:
收发模块, 用于接收入接口设备发送的第一数据帧, 所述第一数据帧包 括所述入接口设备接收的报文及所述入接口设备接收所述报文的端口号; 及 插入模块, 用于在所述第一数据帧中增加所述入接口设备的身份标识形 成第二数据帧, 并通过所述收发模块将所述第二数据帧发送至转发处理设备, 以使所述转发处理设备根据所述第二数据帧中的所述入接口设备的身份标识 及所述入接口设备接收所述报文的端口号对所述第二数据帧进行解析并进行 路由转发。 A transceiver module, configured to receive the first data frame sent by the incoming interface device, where the first data frame includes the message received by the incoming interface device and the port number through which the incoming interface device receives the message; and an insertion module , used to add the identity of the incoming interface device to the first data frame to form a second data frame, and send the second data frame to the forwarding processing device through the transceiver module, so that the forwarding The processing device parses the second data frame and performs routing and forwarding according to the identity of the inbound interface device in the second data frame and the port number through which the inbound interface device receives the message.
8. 如权利要求 7所述的接口集中器, 其特征在于, 所述收发模块还用于 接收所述转发处理设备发送的转发数据帧, 所述转发数据帧包括所述报文及 出接口设备的身份标识与端口号, 所述出接口设备的身份标识与端口号为所 述转发处理设备对所述第二数据帧进行解析并进行路由查找所获得; 及 8. The interface concentrator according to claim 7, characterized in that, the transceiver module is also used to receive the forwarding data frame sent by the forwarding processing device, and the forwarding data frame includes the message and the outbound interface device. The identity identifier and port number of the outbound interface device are obtained by the forwarding processing device parsing the second data frame and performing a route search; and
根据所述转发数据帧中的所述出接口设备的身份标识发送所述转发数据 帧至所述出接口设备, 以使所述出接口设备从所述转发数据帧中的所述出接 口设备的端口号对应的端口发送所述 4艮文。 Send the forwarded data frame to the outbound interface device according to the identity of the outbound interface device in the forwarded data frame, so that the outbound interface device obtains the information from the outbound interface device in the forwarded data frame. The port corresponding to the port number sends the message.
9. 如权利要求 8所述的接口集中器, 其特征在于, 所述收发模块还用于 侦测所述入接口设备或出接口设备的插入, 接收所述入接口设备或所述出接 口设备发送的第三数据帧, 所述第三数据帧包括所述入接口设备或所述出接 口设备的所有端口号及对应的端口类型, 所述插入模块还用于在所述第三数 据帧中增加所述入接口设备或所述出接口设备的身份标识形成第四数据帧, 并通过所述收发模块发送所述第四数据帧至所述转发处理设备, 以使所述转 发处理设备将所述入接口设备或所述出接口设备的身份标识、 所有端口号及 端口类型发送至控制处理设备, 使所述控制处理设备根据所述端口类型获取 所述入接口设备或所述出接口设备的所有端口对应的接口链路层配置, 并将 所述入接口设备或所述出接口设备的身份标识、 所有端口号及对应的接口链 路层配置储存至所述转发处理设备的接口信息表中。 9. The interface concentrator according to claim 8, wherein the transceiver module is also used to detect the insertion of the incoming interface device or the outgoing interface device, and receive the incoming interface device or the outgoing interface device. The third data frame sent, the third data frame includes all port numbers and corresponding port types of the ingress interface device or the egress interface device, and the insertion module is also used to add Add the identity of the incoming interface device or the outgoing interface device to form a fourth data frame, and send the fourth data frame to the forwarding processing device through the transceiver module, so that the forwarding processing device will The identity of the incoming interface device or the outgoing interface device, all port numbers, and The port type is sent to the control processing device, so that the control processing device obtains the interface link layer configuration corresponding to all ports of the incoming interface device or the outgoing interface device according to the port type, and sends the incoming interface device or The identity of the outbound interface device, all port numbers and the corresponding interface link layer configuration are stored in the interface information table of the forwarding processing device.
10. 一种转发处理设备, 其特征在于, 包括: 10. A forwarding processing device, characterized in that it includes:
收发模块, 用于接收接口集中器发送的第二数据帧, 所述第二数据帧包 括与所述接口集中器相连的入接口设备接收的报文、 所述入接口设备的身份 标识及接收所述报文的端口号; A transceiver module, configured to receive a second data frame sent by the interface concentrator, where the second data frame includes a message received by an incoming interface device connected to the interface concentrator, the identity of the incoming interface device, and the received data frame. The port number of the above message;
解析模块, 用于根据所述第二数据帧中的所述入接口设备的身份标识及 接收所述报文的端口号对所述第二数据帧进行解析; 及 A parsing module, configured to parse the second data frame according to the identity of the incoming interface device in the second data frame and the port number for receiving the message; and
路由模块, 用于根据解析后的第一数据帧进行路由转发。 The routing module is used for routing and forwarding based on the parsed first data frame.
11. 如权利要求 10所述的转发处理设备, 其特征在于, 所述解析模块还 用于根据所述第二数据帧中的所述入接口设备的身份标识及接收所述报文的 端口号, 从所述转发处理设备的接口信息表中获取对应的接口链路层配置, 并根据所述接口链路层配置解析所述报文。 11. The forwarding processing device according to claim 10, characterized in that, the parsing module is further configured to perform the processing according to the identity of the incoming interface device in the second data frame and the port number for receiving the message. , obtain the corresponding interface link layer configuration from the interface information table of the forwarding processing device, and parse the message according to the interface link layer configuration.
12 如权利要求 11 所述的转发处理设备, 其特征在于, 所述路由模块还 用于根据所述解析后的报文进行路由查找, 获得转发所述报文的出接口设备 的身份标识与端口号, 将所述转发所述报文的出接口设备的身份标识与端口 号增加到所述解析后的报文中形成转发数据帧, 并发送所述转发数据帧至所 述接口集中器, 以使所述接口集中器根据所述转发数据帧中的所述转发所述 报文的出接口设备的身份标识发送所述转发数据帧至所述转发所述报文的出 接口设备, 使所述转发所述报文的出接口设备根据所述转发数据帧中的所述 转发所述报文的出接口设备的端口号从所述转发所述报文的出接口设备的端 口号对应的端口发送所述 4艮文。 12 The forwarding processing device according to claim 11, characterized in that, the routing module is also used to perform a route search based on the parsed message, and obtain the identity and port of the outbound interface device that forwards the message. number, add the identity identifier and port number of the outbound interface device that forwards the message to the parsed message to form a forwarding data frame, and send the forwarding data frame to the interface concentrator, to The interface concentrator is caused to send the forwarding data frame to the outgoing interface device forwarding the message according to the identity of the outgoing interface device forwarding the message in the forwarding data frame, so that the The outbound interface device that forwards the message sends the message from the port corresponding to the port number of the outbound interface device that forwards the message according to the port number of the outbound interface device that forwards the message in the forwarded data frame. The 4 Gen text.
13. 一种路由系统, 其特征在于, 包括: 13. A routing system, characterized by including:
至少一个接口设备, 用于接收报文, 将所述报文封装成第一数据帧, 所 述第一数据帧包括所述接口设备接收所述报文的端口号; 及 如权利要求 7至 9任一项所述的接口集中器; 及 如权利要求 10至 12任一项所述的转发处理设备。 At least one interface device is used to receive a message and encapsulate the message into a first data frame, so The first data frame includes the port number for the interface device to receive the message; and the interface concentrator according to any one of claims 7 to 9; and the forwarding method according to any one of claims 10 to 12 Handling equipment.
PCT/CN2013/078756 2013-01-29 2013-07-03 Routing method, system, and related device WO2014117474A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310034174.5 2013-01-29
CN201310034174.5A CN103973554A (en) 2013-01-29 2013-01-29 Routing method, routing system and related equipment

Publications (1)

Publication Number Publication Date
WO2014117474A1 true WO2014117474A1 (en) 2014-08-07

Family

ID=51242616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/078756 WO2014117474A1 (en) 2013-01-29 2013-07-03 Routing method, system, and related device

Country Status (2)

Country Link
CN (1) CN103973554A (en)
WO (1) WO2014117474A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667645B (en) * 2017-04-01 2020-07-28 华为技术有限公司 Method, device, forwarding equipment and system for configuring interface
CN109639535B (en) * 2019-01-18 2020-09-11 广州小鹏汽车科技有限公司 Routing relation detection method and device
CN113760799B (en) * 2020-06-03 2024-04-09 中车株洲电力机车研究所有限公司 Scalable communication method, device, computer equipment and storage medium of UPP interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747453A (en) * 2005-10-25 2006-03-15 杭州华为三康技术有限公司 Integrated router based on PCI Express bus
US7224668B1 (en) * 2002-11-27 2007-05-29 Cisco Technology, Inc. Control plane security and traffic flow management
CN101931587A (en) * 2009-06-19 2010-12-29 华为技术有限公司 Method and system of virtue cluster route
US8077726B1 (en) * 2008-12-10 2011-12-13 Juniper Networks, Inc. Fast reroute for multiple label switched paths sharing a single interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197781B (en) * 2007-12-18 2010-08-04 中兴通讯股份有限公司 IP packet transmission method and system
CN101325551B (en) * 2008-07-28 2010-09-22 杭州华三通信技术有限公司 Method and device for processing message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7224668B1 (en) * 2002-11-27 2007-05-29 Cisco Technology, Inc. Control plane security and traffic flow management
CN1747453A (en) * 2005-10-25 2006-03-15 杭州华为三康技术有限公司 Integrated router based on PCI Express bus
US8077726B1 (en) * 2008-12-10 2011-12-13 Juniper Networks, Inc. Fast reroute for multiple label switched paths sharing a single interface
CN101931587A (en) * 2009-06-19 2010-12-29 华为技术有限公司 Method and system of virtue cluster route

Also Published As

Publication number Publication date
CN103973554A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
US11240065B2 (en) NSH encapsulation for traffic steering
US10320664B2 (en) Cloud overlay for operations administration and management
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
US9628295B2 (en) Method, device, and routing system for data transmission of network virtualization
US10193707B2 (en) Packet transmission method and apparatus
KR102054338B1 (en) Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations
US9331936B2 (en) Switch fabric support for overlay network features
US9065766B2 (en) Medium for storing packet conversion program, packet conversion apparatus and packet conversion method
CN110999265B (en) Managing network connectivity between cloud computing service endpoints and virtual machines
CN105791214B (en) Method and equipment for converting RapidIO message and Ethernet message
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
EP3133797B1 (en) Message forwarding method, system, and relay agent device
US9565277B2 (en) Dual-homed external network access in a distributed internet protocol (IP) router
EP4016928A1 (en) Layer 2 leased line network system, configuration method, and device
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
CN107733930B (en) Method and system for forwarding Internet Protocol (IP) packets at multiple WAN network gateways
WO2014117474A1 (en) Routing method, system, and related device
US20230370899A1 (en) Packet forwarding method, packet processing method, and device
JP7298606B2 (en) Communication system and communication method
WO2017036384A1 (en) Provider edge device and data forwarding method
CN110572326A (en) Method, device, network equipment and system for establishing forwarding path
WO2016197933A2 (en) Packet forwarding
CN111447131B (en) Message de-encapsulation method and device and message encapsulation method and device
WO2023143186A1 (en) Data transmission method, system and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1