WO2018045949A1 - 一种报文传输的方法、设备及网络系统 - Google Patents

一种报文传输的方法、设备及网络系统 Download PDF

Info

Publication number
WO2018045949A1
WO2018045949A1 PCT/CN2017/100555 CN2017100555W WO2018045949A1 WO 2018045949 A1 WO2018045949 A1 WO 2018045949A1 CN 2017100555 W CN2017100555 W CN 2017100555W WO 2018045949 A1 WO2018045949 A1 WO 2018045949A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
switch
terminal
packet
distributor
Prior art date
Application number
PCT/CN2017/100555
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP17848122.2A priority Critical patent/EP3503484B1/en
Publication of WO2018045949A1 publication Critical patent/WO2018045949A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/08Learning-based routing, e.g. using neural networks or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a packet transmission method, device, and network system.
  • the computer network system is a system that uses a communication device and a line to interconnect a plurality of terminals with different geographic locations and functions, and realizes resource sharing and information transmission in the network by a fully functional network software, and realizes interconnection between terminals through terminal interconnection. Communication, so as to realize the sharing of information, software and equipment resources between terminals, and the function of collaborative work.
  • the existing typical enterprise network system architecture is shown in Figure 1. Since the switch is deployed in a distributed manner, in order to access more terminals, the number of switches is usually increased, and the number of switches increases to manage the network system. As shown in FIG. 1, the access switch 1 is connected to the terminal 1 and the terminal 2. When the terminal connected to the access switch 1 changes, the access switch 1 needs to be reconfigured.
  • the present invention provides a method, a device, and a network system for transmitting a message, which are used to solve the complicated problem of management and maintenance of a network system existing in the prior art.
  • a method for transmitting a message including:
  • the distributor receives the packet sent by the source terminal, determines the path information of the packet from the source terminal to the distributor, and searches for the first mapping relationship between the path information and the switch identifier that are learned in advance according to the determined path information.
  • a switch identifier the first switch identifier is a switch identifier corresponding to the determined path information; the first switch corresponding to the first switch identifier sends a packet; after receiving the packet fed back by the first switch, determining the first switch feedback
  • the packet includes the first switch identifier and the destination terminal identifier. Then, according to the first switch identifier and the destination terminal identifier, the second mapping relationship between the identifier pair and the path information formed by the switch identifier and the terminal identifier is learned in advance. And searching for the path information corresponding to the identifier pair formed by the first switch identifier and the destination terminal identifier. Finally, forwarding the packet sent by the source terminal to the destination terminal according to the found path information.
  • the distributor can learn the first mapping relationship and the second mapping relationship in advance, and when receiving the packet sent by the source terminal to the destination terminal, the terminal identifier of the destination terminal and the first switch identifier can be obtained.
  • the second mapping relationship finds the path information of the distributor to the destination terminal.
  • the method for transmitting the packet reduces the complexity of the packet transmission, and the distributor can collect and transmit the packet in a centralized manner, thereby reducing the number of switch ports. Management, which reduces the management and maintenance of the network system, greatly reducing the cost of operation and maintenance.
  • the packet that is determined by the distributor includes the second switch identifier and does not include the destination terminal identifier, and sends the fed back packet to the second switch corresponding to the second switch identifier. Then, receiving the message fed back by the second switch, the message fed back by the second switch includes the second switch identifier and the destination terminal identifier; and according to the second switch identifier and the destination terminal identifier, the switch identifier is learned from the pre-learned, The second mapping relationship between the identifier pair and the path information formed by the terminal identifier, and the second switch identifier and the destination terminal identifier are configured. The corresponding path information is identified, and then the packet sent by the source terminal is forwarded to the destination terminal.
  • the distributor can send the packet to the second switch, and receive the packet including the second switch identifier and the destination terminal identifier fed back by the second switch, and then find the packet.
  • the path information of the distributor to the destination terminal enables the network system to exchange packets when the source terminal and the destination terminal are respectively managed by different switches.
  • the distributor sends a terminal authentication request to the authentication server.
  • the terminal authentication request includes the attribute information of the source terminal, and the authentication server pre-stores the correspondence between the attribute information of the terminal and the switch identifier; and receives the first switch identifier that is found by the authentication server and corresponds to the attribute information of the source terminal, and then A switch sends a message.
  • the first switch identifier can be found through the foregoing steps, so that the distributor can learn the first mapping relationship in advance.
  • the distributor allocates a terminal identifier to the terminal, and then saves the identifier pair formed by the first switch identifier and the assigned terminal identifier and the path information of the packet from the source terminal to the distributor.
  • the second mapping relationship formed.
  • the first address information of the source terminal and the source terminal identifier and the first switch identifier are not saved in the first switch. Mapping the relationship, so after the distributor receives the first switch identifier found by the authentication server and the source terminal identifier assigned by the distributor to the source terminal, the first switch can learn to generate the first address information and identify by the source terminal in advance. The mapping between the first switch identifier and the source terminal identifier is encapsulated into the packet, and the packet is encapsulated with the first switch identifier and the source terminal identifier, and the first switch is sent to the first switch.
  • the first address information, the first switch identifier, and the source terminal identifier can be directly parsed from the packet, and then the first address information and the first address information are obtained.
  • a specific method for the distributor to determine the path information of the packet from the source terminal to the distributor :
  • the distributor parses the packet to obtain the first path information encapsulated in the packet.
  • the first path information is that the source terminal does not include the source terminal between the downstream device connected to the distributor, and includes the downstream device connected to the distributor.
  • the internal device is used to connect the port number of the downstream device; then, the port number for connecting the downstream device in the first path information is determined, and the packet is determined from the source terminal according to the first path information and the determined port number.
  • Path information to the distributor In the above manner, the distributor determines the path information of the message from the source terminal to the distributor.
  • a method for transmitting a message including:
  • the first switch parses the packet from the distributor, and determines the first address information and the second address information of the destination terminal that needs to receive the packet; and then determines the second address information of the destination terminal in the first switch management.
  • the destination terminal identifier is searched from the mapping relationship between the first address information and the identifier pair formed by the first switch identifier and the terminal identifier according to the first address information of the destination terminal.
  • the identity pair is located; finally, the found identity pair is encapsulated into the message, and the message is sent to the distributor.
  • the first switch only parses and judges the first address information and the second address information in the packet, which simplifies the packet processing flow of the switch, thereby improving the rate of packet transmission.
  • the packet is an IP (Internet Protocol) packet
  • the first address information is a MAC (Media Access Control) address
  • the second address information is an IP address
  • the identifier of the destination switch is found to be found when the first switch determines that the second address information of the destination terminal is not in the subnet segment of the second address information managed by the first switch.
  • the first switch determines the subnet segment where the second address information is located according to the second address information of the destination terminal, and searches for the mapping relationship between the pre-stored subnet segment and the switch identifier according to the determined subnet segment.
  • the second switch identifier corresponds to the determined subnet segment. Then, the second switch identifier is encapsulated into the packet, and the packet is sent to the distributor.
  • the first switch determines that the second address information of the destination terminal is in the subnet segment of the second address information managed by the first switch, the identifier pair of the destination terminal identifier is not found.
  • the first switch broadcasts the request for obtaining the destination terminal identifier, and the request for obtaining the destination terminal identifier includes the second address information of the destination terminal; and then receives the packet including the destination terminal identifier, and saves the first address of the destination terminal.
  • the found identifier pair is encapsulated into the packet.
  • the first switch learns a method for specifically storing the mapping relationship between the first address information of the source terminal and the identifier pair formed by the source terminal identifier and the first switch identifier:
  • the first switch parses the packet from the distributor to determine the first address information of the source terminal that sends the packet. If the mapping between the first address information and the identifier pair formed by the first switch identifier and the terminal identifier is determined, When the relationship between the first address information of the source terminal that sends the packet is not included in the relationship, the source terminal identifier and the first switch identifier included in the packet are obtained, and the first address information of the source terminal that sends the packet is saved. The mapping relationship between the source terminal identifier and the identifier pair formed by the first switch identifier.
  • a method for transmitting a message including:
  • the first upstream device sends the encapsulated packet.
  • the router can encapsulate the port number used by the relay device to connect to the first downstream device into the packet before the packet is sent to the first upstream device, so that the distributor can determine the port number in the packet according to the The port number of the obtained distributor is obtained, and the path information of the packet from the source terminal to the distributor is obtained, thereby finding the first switch identifier.
  • the relay device receives the packet of the second upstream device connected to the relay device, and determines, according to the path information included in the packet, the relay device to connect to the second downstream device.
  • the port number of the device is the port number from the relay device to the destination terminal that does not include the destination terminal, and each device including the relay device is used to connect to the downstream device. Then, the path information is deleted from the relay device.
  • the port number of the second downstream device is connected, and the packet is sent to the second downstream device by using the port number of the relay device for connecting the second downstream device.
  • the port of the relay device is the same for the terminal, so when the terminal is from a relay device
  • the port does not need to be configured correspondingly, and the port is plug and play, which greatly facilitates the use of the user, and further increases the relay in the network system.
  • the number of devices can expand the number of terminals that the network system accesses.
  • a fourth aspect provides a distributor for transmitting a message, comprising: a transceiver unit and a processing unit, wherein the transceiver unit is configured to receive a message sent by the source terminal; and the processing unit is configured to determine the message from the source terminal to the distributor.
  • Path information And searching, according to the determined path information, the first switch identifier from the pre-learned path information and the first mapping relationship of the switch identifier, where the first switch identifier is a switch identifier corresponding to the determined path information, and the transceiver unit is further configured to: Sending a packet to the first switch corresponding to the first switch identifier; and receiving the packet fed back by the first switch; the processing unit is further configured to: determine that the packet fed back by the first switch includes the first switch identifier and the destination terminal identifier; According to the first switch identifier and the destination terminal identifier, the second mapping relationship between the identifier pair and the path information formed by the switch identifier and the terminal identifier that is learned in advance is matched with the identifier pair formed by the first switch identifier and the destination terminal identifier. The path information is further used to forward the packet sent by the source terminal to the destination terminal according to the found path information.
  • the processing unit is further configured to: before the sending and receiving unit forwards the packet sent by the source terminal to the destination terminal, determining that the feedback packet includes the second switch identifier, and does not include The destination terminal identifier; the transceiver unit is further configured to: send the feedback packet to the second switch corresponding to the second switch identifier; and receive the packet fed back by the second switch, where the packet fed by the second switch includes the second switch The identifier and the destination terminal identifier; the processing unit is further configured to: according to the second switch identifier and the destination terminal identifier, the second mapping relationship between the identifier pair and the path information formed by the switch identifier and the terminal identifier that are learned in advance, The identifier information formed by the identifier of the second switch and the identifier of the destination terminal is corresponding to the path information.
  • the transceiver unit is further configured to: before the sending of the packet to the first switch, if the processing unit searches for the packet from the source terminal to the distributor according to the first mapping relationship
  • the switch identifier corresponding to the path information sends a terminal authentication request to the authentication server, where the terminal authentication request includes the attribute information of the source terminal, and the authentication server stores in advance the correspondence between the attribute information of the terminal and the switch identifier; and the receiving the authentication server finds the The first switch identifier corresponding to the attribute information of the source terminal.
  • the processing unit is further configured to allocate a terminal identifier to the terminal, and save the identifier pair and the packet formed by the first switch identifier and the assigned terminal identifier from the source terminal to the distributor.
  • the processing unit is further configured to: before the sending and receiving unit sends the packet to the first switch, according to the path information of the packet from the source terminal to the distributor, from the second mapping relationship, Searching for the source terminal identifier and the first switch identifier, where the identifier pair formed by the source terminal identifier and the first switch identifier corresponds to the path information of the packet from the source terminal to the distributor; and the source terminal identifier and the first switch identifier are Encapsulated into a message.
  • the processing unit is configured to parse the packet and obtain the first path information encapsulated in the packet when determining the path information of the packet from the source terminal to the distributor.
  • a path information is a port number between the source terminal and the downstream device connected to the distributor that does not include the source terminal, and the downstream device including the downstream device that is connected to the distributor is used to connect the downstream device; and the distributor is used to connect The port number of the downstream device in the first path information, and determining path information of the packet from the source terminal to the distributor according to the first path information and the determined port number.
  • a fifth aspect provides a switch for transmitting a message, including: a processing unit and a transceiver unit, wherein the processing unit is configured to parse the packet from the distributor to determine a first address of the destination terminal that needs to receive the packet. The information and the second address information; and after determining that the second address information of the destination terminal is in the subnet segment of the second address information managed by the first switch, according to the first address information of the destination terminal, the first address stored in advance In the mapping relationship between the information and the identifier pair formed by the first switch identifier and the terminal identifier, the identifier pair of the destination terminal identifier is searched, and the found identifier pair is encapsulated into the packet; the transceiver unit is configured to send the report to the distributor. Text.
  • the processing unit is further configured to: if it is determined that the second address information of the destination terminal is not in the subnet segment of the second address information managed by the first switch, according to the second address of the destination terminal Information, determine the second The subnet segment where the address information is located; and according to the determined subnet segment, the mapping between the pre-stored subnet segment and the switch identifier is searched for the switch identifier corresponding to the determined subnet segment, and the determined subnet The switch identifier corresponding to the segment is encapsulated into the packet; the transceiver unit is further configured to send the packet to the distributor.
  • the transceiver unit is further configured to: before the processing unit encapsulates the found identifier pair into the packet, if the processing unit does not find the identifier pair where the destination terminal identifier is located, the broadcast obtains The request for the destination terminal identifier, the request for obtaining the destination terminal identifier includes the second address information of the destination terminal, and receives the packet including the destination terminal identifier; the processing unit is further configured to save the first address information of the destination terminal and the identifier of the switch, The mapping relationship between the identity pairs formed by the destination terminal identifier.
  • the processing unit is further configured to parse the packet from the distributor, determine the first address information of the source terminal that sends the packet, and determine the first address information that is pre-stored.
  • the mapping relationship between the identifiers of the switch identifiers and the terminal identifiers does not include the mapping relationship between the source address and the source address of the source terminal, the source terminal identifier and the switch identifier included in the packet are obtained.
  • the sixth aspect provides a relay device for transmitting a message, comprising: a transceiver unit and a processing unit, wherein the transceiver unit is configured to receive a message of the first downstream device connected to the relay device; and the processing unit is configured to determine Port number used to connect to the first downstream device, and the determined access port number is encapsulated into the packet;
  • the transceiver unit is further configured to send a message to the first upstream device connected to the relay device.
  • the transceiver unit is further configured to receive a packet of the second upstream device that is connected to the relay device, and the processing unit is further configured to determine, according to the path information included in the packet, a port number used by the device to connect to the second downstream device, where the path information is a port number for connecting the downstream device from the relay device to the destination terminal, not including the destination terminal, and each device including the relay device; Deleting the port number of the path information used by the relay device to connect to the second downstream device; the transceiver unit is further configured to send the packet to the second downstream device by using the port number of the relay device for connecting the second downstream device.
  • an enterprise network system comprising: any optional distributor as provided in the fourth aspect, and at least one optional switch as provided in the fifth aspect, wherein the distributor and the at least one The switches are connected separately.
  • the method further includes: at least one optional relay device as provided in the sixth aspect, the relay device is connected in a tree, and the relay device is in the most upstream relay.
  • the devices are respectively connected to the distributor, and the relay device at the most downstream is used to connect at least one terminal.
  • FIG. 1 is a schematic structural diagram of an enterprise network system in the prior art
  • FIG. 2 is a schematic structural diagram of an enterprise network system according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for transmitting a packet according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for transmitting a message according to an embodiment of the present invention.
  • 5a-5c are schematic structural diagrams of an enterprise network system according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for transmitting a packet according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of a method for transmitting a message according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a distributor according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of hardware of a distributor according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a switch according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of hardware of a switch according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a relay device according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of hardware of a relay device according to an embodiment of the present invention.
  • the enterprise network system is distributed, and the terminal is connected to the enterprise network system through the switch.
  • an enterprise includes multiple different departments, such as a research and development department and a finance department. Terminals in different departments access the enterprise network system through different ports of the same switch or different ports of different switches. Different network policies need to be configured for different ports.
  • the terminal changes location and connects to one port of another switch, It is also necessary to reconfigure the port accordingly. Therefore, the enterprise network system shown in FIG. 1 has more switches for accessing the enterprise network system, and the maintenance and management of the switch is more complicated. The binding of the switch port and the terminal increases the complexity of the operation of the terminal accessing the network.
  • the switch identifier is used to uniquely identify the switch.
  • the specific identifier can be a number or other identifier.
  • the terminal with the same configuration policy is configured to the same switch.
  • the switch belongs to the same department in an enterprise.
  • the configuration policy of the terminal accessing the enterprise network system is the same. Therefore, the terminal of one department can be managed by one switch.
  • the configuration policy is the same. If the terminal is configured to be in the same switch, or if the configuration policies of the terminals in multiple departments are the same, the terminals belonging to multiple departments are configured on the same switch.
  • the terminal identifier is used to identify the terminal, and the terminal identifier may be a digital or other identifier.
  • the terminal identifiers of the terminals managed by the same switch are different, and the terminal identifiers of the terminals that belong to different switches may be The same may be different.
  • the terminal managed by the switch 1 includes two terminals, the terminal 1 and the terminal 2.
  • the terminal identifiers of the terminal 1 and the terminal 2 are respectively 1 and 2.
  • the terminal managed by the switch 2 includes three terminals. 1.
  • the terminal 2 and the terminal 3, wherein the terminal identifiers of the terminal 1, the terminal 2, and the terminal 3 may be 1, 2, and 3, respectively, or the terminal identifiers of the terminal 1, the terminal 2, and the terminal 3 may be 3, 4, and 5.
  • the attribute information of the terminal is unique information that can be used to indicate the terminal, such as a MAC address, a certificate of the terminal, and the like.
  • Path information which is the path information between the terminal and the distributor.
  • first mapping relationship and the second mapping relationship may be different mapping relationships, and the first mapping relationship may also be a second mapping relationship.
  • the packet header includes the first address information and the second address information of the source terminal, and the first address information and the second address information of the destination terminal, where the packet is supported by the IP address.
  • the first address information is a MAC address
  • the second address information is an IP address
  • the first address information and the second address information are other address information pre-encapsulated in the packet header.
  • the correspondence between the attribute information of the terminal pre-stored in the authentication server and the switch identifier needs to be pre-configured by a person.
  • the distributor in the embodiment of the present invention can also be used to connect to an egress router and connect to the Internet.
  • the distributor can also connect with various servers such as an ftp server, a mail server, and the like to share resources.
  • the following describes the first address information as the MAC address and the second address information as the IP address.
  • the steps are the same as the first address information being the MAC address, and the second address information is the IP address transmission packet, and details are not described herein.
  • the enterprise network system includes a distributor and at least one switch, where the distributor and the switch are respectively configured to solve the problem that the management and maintenance of the network system is complicated.
  • the distributor is connected to the authentication server.
  • the user wants to connect the terminal to the enterprise network system, it is only necessary to connect the terminal to the distributor.
  • the enterprise network system shown in FIG. 2 is suitable for terminals with fewer accesses.
  • the terminal 1 and the terminal 2 are managed by the switch 1.
  • the method for transmitting the message includes:
  • step 300 the terminal 1 sends a message to the distributor.
  • Step 301 After receiving the packet, the distributor uses the port number 10 of the terminal 1 to connect to the terminal 1, and searches for the switch identifier of the switch 1 from the first mapping relationship between the path information learned in advance and the switch identifier.
  • the path information is path information between the terminal and the distributor.
  • the path information refers to the port number X of the distributor connection terminal.
  • the first mapping relationship is ⁇ X: switch identifier ⁇ .
  • Step 302 The distributor sends the packet to the switch 1 according to the switch identifier of the switch 1.
  • Step 303 After receiving the packet, the switch 1 parses the packet to obtain the MAC address and IP address of the terminal 2.
  • Step 304 The switch 1 determines that the IP address of the terminal 2 is in the subnet segment where the IP address managed by the switch 1 is located. According to the MAC address of the terminal 2, the MAC address learned from the pre-learned MAC address is composed of the exchange identifier and the terminal identifier of the switch 1. In the mapping relationship of the identifier pair, the identifier pair corresponding to the MAC address of the terminal 2 is searched, and the identifier pair corresponding to the MAC address of the terminal 2 is encapsulated into the packet.
  • step 305 the switch 1 sends a packet encapsulating the identifier pair corresponding to the MAC address of the terminal 2 to the distributor.
  • Step 306 After receiving the packet that encapsulates the identifier pair corresponding to the MAC address of the terminal 2, the distributor parses the packet, and determines that the packet includes the identifier pair corresponding to the MAC address of the terminal 2, that is, the switch of the switch 1. Identification and terminal identification of terminal 2.
  • the inter-group exchange identifier is set to 0, and is used to indicate that the distributor terminal 1 and the terminal 2 belong to the same switch management.
  • the inter-group exchange identifier 0 is encapsulated into the packet header of the packet and sent to the distributor.
  • the distributor obtains the inter-group exchange identifier as 0, determines that the packet transmission is intra-group exchange, and then determines that the packet includes the identifier pair corresponding to the MAC address of the terminal 2.
  • Step 307 The distributor searches for the port number of the distributor connection terminal 2 from the second mapping relationship between the path information learned in advance and the identifier pair formed by the switch identifier and the terminal identifier.
  • the terminal 308, the distributor sends a message to the terminal 2 by connecting the port number of the terminal 2.
  • step 301 the port number 10 for connecting the terminal 1 and the switch of the management terminal 1 recorded by the distributor are not saved in the first mapping relationship learned in advance in the distributor.
  • the specific process for the distributor to learn the mapping relationship between the port number 10 for connecting the terminal 1 and the switch identifier of the switch managing the terminal 1 is as follows:
  • the distributor sends a terminal authentication request to the authentication server, and the terminal authentication request includes the attribute information of the terminal 1; after receiving the terminal authentication request, the authentication server receives the correspondence between the attribute information of the terminal and the switch identifier according to the attribute information of the terminal 1 In the relationship, the switch identifier corresponding to the attribute information of the terminal 1 is searched, wherein the found switch identifier is the switch identifier of the switch 1; the authentication server sends the found switch identifier to the distributor. After receiving the identifier of the switch, the distributor allocates a terminal identifier to the terminal 1, where the assigned terminal identifier and the second mapping relationship do not overlap with the terminal identifier that forms the identifier pair with the received switch identifier, and the record is saved for connection. The port number 10 of the terminal 1 and the mapping relationship between the received switch identifier and the assigned terminal identifier.
  • the switch identifier and the terminal identifier are numbers
  • the terminal identifiers forming the identifier pair are 1, 2, and 3, and the terminal 1 is allocated.
  • the terminal identifiers may not be 1, 2, and 3, and the terminal identifiers that may be assigned to the terminal 1 are 4, or other numbers that are not 1, 2, and 3.
  • the mapping relationship between the MAC address of the terminal 1 and the identifier pair formed by the exchange identifier of the switch 1 and the terminal identifier of the terminal 1 is not saved in the switch 1;
  • the specific process of the switch 1 learning the mapping relationship between the saved MAC address of the terminal 1 and the identifier pair formed by the switch identifier of the switch 1 and the terminal identifier of the terminal 1 is as follows:
  • the distributor encapsulates the switch identifier of the switch 1 and the terminal identifier of the terminal 1 into the packet, and the switch identifier of the switch 1 and the terminal identifier of the terminal 1 are encapsulated into the packet of the packet. In the header, it is sent to the switch 1.
  • the switch 1 parses the packet, the MAC address and IP address of the terminal 2 can be obtained, and the MAC address of the terminal 1 and the exchange identifier of the switch 1 and the terminal 1 can be obtained.
  • the terminal identifier, and then the switch 1 stores the correspondence between the MAC address of the terminal 1 and the identifier pair formed by the exchange identifier of the switch 1 and the terminal identifier of the terminal 1.
  • the switch 1 resolves the exchange identifier of the switch 1 and the terminal identifier of the terminal 1, and then deletes the exchange identifier of the switch 1 and the terminal identifier of the terminal 1 encapsulated in the packet.
  • the distributor can no longer encapsulate the identifier of the switch 1 and the terminal identifier of the terminal 1.
  • the distributor sends a message directly to the switch 1 when it determines that the message needs to be sent to the switch 1.
  • step 304 when the terminal 2 has not sent the packet in the enterprise network system, the mapping relationship between the MAC address of the terminal 2 and the identifier pair formed by the switch identifier and the terminal identifier of the switch 1 is not saved on the switch 1, then the switch In the mapping relationship between the pre-learned MAC address and the identifier pair formed by the switch identifier and the terminal identifier of the switch 1, when the identifier pair corresponding to the MAC address of the terminal 2 is not found, the request for the terminal identifier of the terminal 2 is broadcasted, The request for obtaining the terminal identifier of the terminal 2 includes the IP address of the terminal 2.
  • the switch 1 sends a request for obtaining the terminal identifier of the terminal 2 to each terminal connected to the distributor through the distributor. After receiving the request for obtaining the terminal identifier of the terminal 2, each terminal determines whether the IP address of the terminal is obtained. The IP address in the request of the terminal identifier of the terminal 2, if not, does not respond to the request, that is, the terminal other than the terminal 2 does not respond to the request, and the terminal 2 sends a response message to the distributor in response to the request, The terminal 2 sends the message to the distributor for the first time. Therefore, the steps performed by the distributor are the same as those performed by the terminal 1 to the distributor, and details are not described herein again.
  • the switch 1 specifically saves the mapping between the MAC address of the terminal 2 and the exchange identifier and the terminal identifier of the switch 1 and the mapping between the MAC address of the storage terminal 1 and the exchange identifier and the terminal identifier of the switch 1, and is no longer Narration.
  • the terminal when the attribute information in the correspondence between the attribute information stored in the authentication server and the switch identifier is the MAC address of the terminal, the terminal does not send the message in the enterprise network system, and the terminal 1 does not save the terminal 2 on the switch 1.
  • MAC The mapping relationship between the address and the identifier pair formed by the switch identifier and the terminal identifier of the switch 1 is not found in the mapping relationship between the pre-learned MAC address and the identifier pair formed by the switch identifier and the terminal identifier of the switch 1.
  • the switch 1 sends the MAC address of the terminal 2 to the distributor to obtain the terminal identifier of the terminal 2, and the distributor obtains the request for acquiring the terminal identifier of the terminal 2, and the distributor obtains the request.
  • the MAC address of the terminal 2 included in the request for the terminal identifier of the terminal 2 is encapsulated in the terminal authentication request of the terminal 2, and sent to the authentication server. After receiving the terminal authentication request, the authentication server obtains the terminal 2 included in the terminal authentication request.
  • the MAC address from the pre-stored correspondence between the MAC address of the terminal 2 and the switch identifier, obtains the identifier of the switch 1 of the management terminal 2, and then sends the identifier of the switch 1 to the distributor, and the distributor receives the identifier of the switch 1.
  • the method for allocating a terminal identifier to the terminal 2 is similar to the method for assigning the terminal identifier to the terminal 1 as described above. To repeat, the distributor then transmits the terminal identifier of the terminal 2 to the switch 1.
  • the terminal 1 is attributed to the switch 1 and the terminal 2 is managed by the switch 2.
  • the method for transmitting the message includes:
  • Step 400 the terminal 1 sends a message to the distributor
  • Step 401 After receiving the packet, the distributor uses the port number 10 of the terminal 1 to connect to the terminal 1, and searches for the switch identifier of the switch 1 from the first mapping relationship between the path information learned in advance and the switch identifier.
  • the path information refers to the port number X of the distributor connection terminal.
  • the first mapping relationship is ⁇ X: switch identifier ⁇ .
  • Step 402 The distributor sends the packet to the switch 1 according to the switch identifier of the switch 1.
  • Step 403 After receiving the packet, the switch 1 parses the packet to obtain the IP address of the terminal 2.
  • Step 404 The switch 1 determines, according to the IP address of the terminal 2, that the IP address of the terminal 2 is not in the subnet segment where the IP address managed by the switch 1 is located, and determines the subnet segment where the IP address of the terminal 2 is located according to the IP address of the terminal 2.
  • the switch identifier of the switch 2 of the management terminal 2 is searched for from the mapping relationship between the pre-stored subnet segment and the switch identifier.
  • step 405 the switch 1 encapsulates the found switch identifier into the packet, and sends the packet encapsulated with the switch identifier to the distributor.
  • Step 406 After receiving the packet, the distributor parses the packet, and determines that the received packet includes the switch identifier of the switch 2, and does not include the terminal identifier of the terminal 2, and then forwards the received packet to the switch 2.
  • the inter-group exchange identifier is set to 1 to indicate that the distributor terminal 1 and the terminal 2 belong to different ones respectively.
  • the switch manages the switch ID 1 into the packet header of the packet and sends it to the distributor.
  • the distributor obtains the inter-group exchange identifier of 1, and determines that the packet transmission is inter-group exchange, and then determines that the packet includes the switch identifier of the switch 2.
  • the distributor can delete the inter-group exchange identifier 1 encapsulated in the packet header.
  • step 407 after receiving the packet, the switch 2 parses the packet to obtain the MAC address and IP address of the terminal 2.
  • Step 408 the switch 2 determines that the IP address of the terminal 2 is in the subnet segment where the IP address managed by the switch 2 is located, and the MAC address from the pre-learned MAC address and the exchange identifier and the terminal identifier of the switch 2 are formed according to the MAC address of the terminal 2.
  • the identifier pair corresponding to the MAC address of the terminal 2 is searched, and the identifier pair corresponding to the MAC address of the terminal 2 is encapsulated into the packet.
  • step 409 the switch 2 sends the packet encapsulating the identifier pair corresponding to the MAC address of the terminal 2 to the distributor.
  • Step 410 After receiving the packet that encapsulates the identifier pair corresponding to the MAC address of the terminal 2, the distributor enters the packet.
  • the line parsing determines that the packet includes the identifier pair corresponding to the MAC address of the terminal 2, that is, the switch identifier of the switch 2 and the terminal identifier of the terminal 2.
  • Step 411 The distributor searches for the port number of the distributor connection terminal 2 from the second mapping relationship between the path information learned in advance and the identifier pair formed by the switch identifier and the terminal identifier.
  • the terminal 412 the distributor transmits a message to the terminal 2 by connecting the port number of the terminal 2.
  • the port number 10 for connecting the terminal 1 and the management terminal 1 recorded by the distributor are not saved in the first mapping relationship learned in advance in the distributor.
  • the specific process of the mapping relationship between the port number 10 for connecting the terminal 1 and the switch identifier of the switch managing the terminal 1 is the same as that of the specific record, and is not described here.
  • the switch 1 learns the specific process of the mapping relationship between the saved MAC address of the terminal 1 and the identifier pair formed by the exchange identifier of the switch 1 and the terminal identifier of the terminal 1.
  • the specific process of the mapping relationship between the MAC address of the terminal 1 and the identifier of the switch 1 and the terminal identifier of the terminal 1 is the same as that of the present disclosure.
  • the terminals can exchange messages through the distributor, and one switch can manage multiple terminals belonging to the same subnet segment, thereby reducing the switches in the enterprise network system.
  • the number is convenient for management and operation and maintenance of the switch, which reduces the complexity of message transmission and improves the efficiency of message transmission.
  • a relay device is added to the enterprise network system, wherein the relay device is connected in a tree, and the most upstream relay device and the distributor respectively Connected, the most downstream relay device is used to connect at least one terminal.
  • one of the distributors and relay devices can only be connected to one device.
  • the most upstream relay device and the most downstream relay device are the same relay device, and each relay device passes through a port and one of the distributors respectively.
  • the port is connected, and each port of the other port of each relay device is used to connect one terminal.
  • each of the most upstream relay devices is respectively connected to one port of the distributor through one port, and each of the most upstream relay devices
  • the other ports of the relay device are respectively connected to one port of one of the most downstream relay devices, and the other ports of the most downstream device are respectively connected to one terminal.
  • the relay device includes five ports, assuming that one port of the most upstream relay device is connected to one port of the distributor, and the other four ports can be respectively connected to one of the most downstream relay devices.
  • each of the most upstream relay devices is respectively connected to one port of the distributor through one port, and each of the most upstream relay devices
  • the other ports of the relay device are respectively connected to one port of a downstream relay device, and the other ports of the downstream device are respectively connected to one port of one of the most downstream relay devices, and the other ports of the most downstream device are respectively connected to one terminal. .
  • the number of layers of the relay device such as four layers and five layers, may be extended.
  • the specific connection manner is similar to the connection manner of FIG. 5a to FIG. 5c, and is not introduced here. .
  • the method for transmitting the packet includes:
  • Step 600 The terminal 1 sends a message to the relay device 1;
  • step 601 the relay device 1 receives the packet sent by the terminal 1, and encapsulates the port number X used by the relay device 1 to connect the terminal 1 into the packet, and sends the packet encapsulated with the port number X to the relay device 2.
  • the port number X can be encapsulated into the packet header of the packet.
  • the terminal 1 is a downstream device of the relay device 1, and the relay device 1 is a downstream device of the relay device 2.
  • Step 602 After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number X and the package to the distributor.
  • the port number Y message After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number X and the package to the distributor.
  • the port number Y message After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number X and the package to the distributor.
  • the port number Y message After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number
  • Step 603 after the distributor receives the message, the record distributor uses the port number Z for connecting to the relay device 2, and parses the received message to obtain the port number X and the port number Y, and determines the message from the terminal 1 to the distribution.
  • the path information of the switch is XYZ, and the switch identifier of the switch 1 is searched from the first mapping relationship between the path information learned in advance and the switch identifier.
  • the distributor parses the port number X and the port number Y, and deletes the port number X and the port number Y encapsulated in the packet.
  • step 604 the distributor sends the packet to the switch 1 according to the switch identifier of the switch 1.
  • Step 605 After receiving the packet, the switch 1 parses the packet to obtain the MAC address and IP address of the terminal 2.
  • Step 606 the switch 1 determines that the IP address of the terminal 2 is in the subnet segment where the IP address managed by the switch 1 is located, and the MAC address from the pre-learned MAC address and the exchange identifier and the terminal identifier of the switch 1 are formed according to the MAC address of the terminal 2.
  • the identifier pair corresponding to the MAC address of the terminal 2 is searched, and the identifier pair corresponding to the MAC address of the terminal 2 is encapsulated into the packet.
  • step 607 the switch 1 sends the packet encapsulating the identifier pair corresponding to the MAC address of the terminal 2 to the distributor.
  • Step 608 After receiving the packet that encapsulates the identifier pair corresponding to the MAC address of the terminal 2, the distributor parses the packet, and determines that the packet includes the identifier pair corresponding to the MAC address of the terminal 2, that is, the switch of the switch 1. Identification and terminal identification of terminal 2.
  • the inter-group exchange identifier is set to 0, and is used to indicate that the distributor terminal 1 and the terminal 2 belong to the same switch management.
  • the inter-group exchange identifier 0 is encapsulated into the packet header of the packet and sent to the distributor.
  • the distributor obtains the inter-group exchange identifier as 0, determines that the packet transmission is intra-group exchange, and then determines that the packet includes the identifier pair corresponding to the MAC address of the terminal 2.
  • Step 609 The distributor searches the path information A-B-C of the packet from the terminal 2 to the distributor from the second mapping relationship between the path information that is learned in advance and the identifier pair formed by the switch identifier and the terminal identifier.
  • the terminal 610 the distributor encapsulates the port number A and the port number B into the packet, and sends the port number A and the port number B packet to the sending relay device 3 by connecting the port number C of the relay device 3.
  • step 611 after receiving the packet with the port number A and the port number B, the relay device 3 determines that the port number used to connect the relay device 4 is the port number B, and the port number B encapsulated in the packet is deleted. No. B transmits a packet encapsulated with port number A to the relay device 4.
  • Step 612 after receiving the packet with the port number A, the relay device 4 determines that the port number for connecting the terminal 2 is the port number A, deletes the port number A encapsulated in the packet, and passes the port number A to Terminal 2 sends a message.
  • the path information between the terminal 1 and the distributor is not saved in the first mapping relationship learned in advance in the distributor, and the management terminal 1 is
  • the mapping process of the switch identifier of the switch, the specific process of the distributor specifically learning the mapping relationship between the path information of the saved message from the terminal 1 to the distributor and the switch identifier of the switch of the management terminal 1 is as follows:
  • the specific The specific process of the mapping between the port number 10 of the terminal 1 and the switch identifier of the switch of the management terminal 1 is the same as that of the above.
  • the switch 1 learns the specific process of the mapping relationship between the saved MAC address of the terminal 1 and the identifier pair formed by the exchange identifier of the switch 1 and the terminal identifier of the terminal 1.
  • the specific process of the mapping relationship between the MAC address of the terminal 1 and the identifier of the switch 1 and the terminal identifier of the terminal 1 is the same as that of the present disclosure.
  • the method for transmitting the message includes:
  • step 700 the terminal 1 sends a message to the relay device 1.
  • step 701 the relay device 1 receives the packet sent by the terminal 1, and encapsulates the port number X used by the relay device 1 to connect the terminal 1 into the packet, and sends the packet encapsulated with the port number X to the relay device 2.
  • the port number X can be encapsulated into the packet header of the packet.
  • the terminal 1 is a downstream device of the relay device 1, and the relay device 1 is a downstream device of the relay device 2.
  • Step 702 After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number X and the package to the distributor.
  • the port number Y message After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number X and the package to the distributor.
  • the port number Y message After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number X and the package to the distributor.
  • the port number Y message After receiving the packet encapsulated with the port number X, the relay device 2 encapsulates the port number Y used by the relay device 2 to connect the relay device 1 into the packet, and sends the port number
  • Step 703 After receiving the message, the distributor uses the port number Z of the relay device 2 to connect to the relay device 2, and parses the received message to obtain the port number X and the port number Y, and determines the message from the terminal 1 to the distribution.
  • the path information of the switch is XYZ, and the switch identifier of the switch 1 is searched from the first mapping relationship between the path information learned in advance and the switch identifier.
  • the distributor parses the port number X and the port number Y, and deletes the port number X and the port number Y encapsulated in the packet.
  • step 704 the distributor sends the packet to the switch 1 according to the switch identifier of the switch 1.
  • Step 705 After receiving the packet, the switch 1 parses the packet to obtain the IP address of the terminal 2.
  • Step 706 The switch 1 determines, according to the IP address of the terminal 2, that the IP address of the terminal 2 is not in the subnet segment where the IP address managed by the switch 1 is located, and determines the subnet segment where the IP address of the terminal 2 is located according to the IP address of the terminal 2.
  • the switch identifier of the switch 2 of the management terminal 2 is searched for from the mapping relationship between the pre-stored subnet segment and the switch identifier.
  • step 707 the switch 1 encapsulates the found switch identifier into the packet, and sends a packet encapsulating the switch identifier of the switch 2 to the distributor.
  • Step 708 After receiving the packet, the distributor parses the packet, and determines that the received packet includes the switch identifier of the switch 2, and does not include the terminal identifier of the terminal 2, and then forwards the received packet to the switch 2.
  • the inter-group exchange identifier is set to 1 to indicate that the distributor terminal 1 and the terminal 2 belong to different ones respectively.
  • the switch manages to encapsulate the inter-group exchange identifier 1 into the packet header of the packet and send it to the distributor.
  • the distributor obtains an inter-group exchange identifier of 1, and determines that the packet transmission is an inter-group exchange, and then determines that the packet includes the switch identifier of the switch 2.
  • the distributor can delete the inter-group exchange identifier of the switch 2 encapsulated in the message.
  • step 709 after receiving the packet, the switch 2 parses the packet to obtain the MAC address and IP address of the terminal 2.
  • the switch 2 determines that the IP address of the terminal 2 is in the subnet segment where the IP address managed by the switch 2 is located, and the MAC address from the pre-learned MAC address and the exchange identifier and the terminal identifier of the switch 2 are formed according to the MAC address of the terminal 2. Identification In the mapping relationship of the pair, the identifier pair corresponding to the MAC address of the terminal 2 is searched, and the identifier pair corresponding to the MAC address of the terminal 2 is encapsulated into the packet.
  • step 711 the switch 2 sends the packet encapsulating the identifier pair corresponding to the MAC address of the terminal 2 to the distributor.
  • Step 712 After receiving the packet that encapsulates the identifier pair corresponding to the MAC address of the terminal 2, the distributor parses the packet, and determines that the packet includes the identifier pair corresponding to the MAC address of the terminal 2, that is, the switch of the switch 2. Identification and terminal identification of terminal 2.
  • Step 713 The distributor searches the path information A-B-C between the terminal 2 and the distributor from the pre-learned path information and the second mapping relationship between the identifier pair formed by the switch identifier and the terminal identifier.
  • the terminal 714 the distributor encapsulates the port number A and the port number B into the packet, and sends the port number A and the port number B packet to the sending relay device 3 by connecting the port number C of the relay device 3.
  • Step 715 After receiving the packet with the port number A and the port number B, the relay device 3 determines that the port number used to connect the relay device 4 is the port number B, and the port number B encapsulated in the packet is deleted. No. B transmits a packet encapsulated with port number A to the relay device 4.
  • Step 716 After receiving the packet with the port number A, the relay device 4 determines that the port number for connecting the terminal 2 is the port number A, deletes the port number A encapsulated in the packet, and passes the port number A to Terminal 2 sends a message.
  • the path information between the terminal 1 and the distributor is not saved in the first mapping relationship learned in advance in the distributor, and the management terminal 1 is
  • the mapping process of the switch identifier of the switch, the specific process of the distributor specifically learning the mapping relationship between the path information of the saved message from the terminal 1 to the distributor and the switch identifier of the switch of the management terminal 1 is as follows:
  • the specific process of the mapping relationship between the port number 10 for connecting the terminal 1 and the switch identifier of the switch of the management terminal 1 is the same as that of the specific record, and is not described here.
  • the switch 1 learns the specific process of the mapping relationship between the saved MAC address of the terminal 1 and the identifier pair formed by the exchange identifier of the switch 1 and the terminal identifier of the terminal 1.
  • the specific process of the mapping relationship between the MAC address of the terminal 1 and the identifier of the switch 1 and the terminal identifier of the terminal 1 is the same as that of the present disclosure.
  • relay device 1 and the relay device 4 mentioned in FIG. 6 and FIG. 7 may be the same relay device, or may be different relay devices, and the relay device 2 and the relay device 3 may be the same one.
  • Relay devices can also be different relay devices.
  • the embodiment of the present invention further provides a distributor for transmitting a message.
  • the method for transmitting a message is a method for transmitting a message according to an embodiment of the present invention.
  • the implementation of the method refer to the implementation of the method, and the repeated description will not be repeated.
  • the distributor for transmitting a message includes: a transceiver unit 800 and a processing unit 810, wherein the transceiver unit 800 is configured to receive a message sent by the source terminal, and the processing unit 810 is configured to determine the message.
  • the transceiver unit 800 is further configured to send a packet to the first switch corresponding to the first switch identifier, and receive the packet that is fed back by the first switch.
  • the processing unit 810 is further configured to determine the packet that is fed back by the first switch.
  • the first switch identifier and the destination terminal identifier are included; and according to the first switch identifier and the destination terminal identifier, the second mapping relationship between the identifier pair and the path information formed by the switch identifier and the terminal identifier learned in advance is searched and a switch identification and destination The identifier of the terminal identifier is configured to correspond to the path information.
  • the transceiver unit 800 is further configured to forward the packet sent by the source terminal to the destination terminal according to the found path information.
  • the processing unit 810 is further configured to: after the transceiver unit forwards the packet sent by the source terminal to the destination terminal, determining that the feedback packet includes the second switch identifier, and does not include the destination terminal identifier; And sending the feedback packet to the second switch corresponding to the second switch identifier; and receiving the packet fed back by the second switch, where the packet fed back by the second switch includes the second switch identifier and the destination terminal identifier;
  • the processing unit 810 is further configured to: according to the second switch identifier and the destination terminal identifier, look up the second switch identifier and the destination from the second mapping relationship between the identifier pair and the path information that is formed by the switch identifier and the terminal identifier that are learned in advance.
  • the identifier formed by the terminal identifier corresponds to the corresponding path information.
  • the transceiver unit 800 is further configured to: before the sending the packet to the first switch, if the processing unit 810 does not find the switch identifier corresponding to the path information of the packet from the source terminal to the distributor according to the first mapping relationship.
  • the processing unit 810 is further configured to allocate a terminal identifier to the terminal; and save the identifier formed by the first switch identifier and the allocated terminal identifier to form a second pair with the path information of the packet from the source terminal to the distributor. Mapping relations.
  • the processing unit 810 is further configured to: after the transceiver unit 800 sends the packet to the first switch, search for the source terminal identifier and the second mapping relationship according to the path information of the packet from the source terminal to the distributor.
  • a switch identifier wherein the identifier formed by the source terminal identifier and the first switch identifier corresponds to the path information of the packet from the source terminal to the distributor; and the source terminal identifier and the first switch identifier are encapsulated into the packet.
  • the processing unit 810 when determining the path information of the packet from the source terminal to the distributor, is specifically configured to parse the packet to obtain the first path information encapsulated in the packet, where the first path information is the source terminal to The port number of the downstream device is not included between the downstream device connected to the distributor, and the downstream device including the downstream device connected to the distributor is used to connect the downstream device; and the distributor is configured to connect the downstream in the first path information The port number of the device, and determining the path information of the packet from the source terminal to the distributor according to the first path information and the determined port number.
  • the transceiver unit 800 may be implemented by a transceiver
  • the processing unit 810 may be implemented by a processor.
  • the distributor 900 can include a processor 910, a transceiver 920, and a memory 930.
  • the memory 930 can be used to store the program/code pre-installed by the distributor 900 at the factory, and can also store code and the like for the execution of the processor 910.
  • the various components in the distributor 900 are coupled together by a bus system 940, which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • the processor 910 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for performing related operations.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the distributor 900 shown in FIG. 9 only shows the processor 910, the transceiver 920, and the memory 930, in a specific implementation process, those skilled in the art will appreciate that the distributor also includes implementation for normal operation. Other devices necessary. At the same time, those skilled in the art will appreciate that the dispenser may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, it will be understood by those skilled in the art that the distributor may also only include the devices or modules necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the embodiment of the present invention further provides a switch for transmitting a message.
  • the method for transmitting a packet is a method for transmitting a packet according to an embodiment of the present invention. Implementation can refer to the implementation of the method, and the repeated description will not be repeated.
  • a switch for transmitting a message includes: a transceiver unit 1000 and a processing unit 1010, wherein the processing unit 1010 is configured to parse a packet from a distributor to determine a destination for receiving a packet.
  • the first address information and the second address information of the terminal and after determining that the second address information of the destination terminal is in the subnet segment of the second address information managed by the first switch, according to the first address information of the destination terminal,
  • the mapping between the stored first address information and the identifier pair formed by the first switch identifier and the terminal identifier, the identifier pair in which the destination terminal identifier is located, and the identified identifier pair are encapsulated into the packet; Send a message to the distributor.
  • the processing unit 1010 is further configured to: if it is determined that the second address information of the destination terminal is not in the subnet segment of the second address information managed by the first switch, determine the second address information according to the second address information of the destination terminal.
  • the subnet segment is located; and according to the determined subnet segment, the switch identifier corresponding to the determined subnet segment is searched from the mapping relationship between the pre-stored subnet segment and the switch identifier, and corresponding to the determined subnet segment
  • the switch identifier is encapsulated into the packet, and the transceiver unit 1000 is further configured to send the packet to the distributor.
  • the transceiver unit 1000 is further configured to: before the processing unit 1010 encapsulates the found identifier pair into the packet, if the processing unit 1010 does not find the identifier pair where the destination terminal identifier is located, broadcast the request for acquiring the destination terminal identifier.
  • the request for obtaining the destination terminal identifier includes the second address information of the destination terminal, and receives the packet including the destination terminal identifier.
  • the processing unit 1010 is further configured to save the first address information of the destination terminal, and is composed of the switch identifier and the destination terminal identifier. The mapping relationship of the identity pairs.
  • the processing unit 1010 is further configured to: parse the packet from the distributor, and determine first address information of the source terminal that sends the packet; if it is determined that the first address information stored in advance is composed of the switch identifier and the terminal identifier When the mapping relationship of the identifier pair does not include the mapping relationship between the first address information of the source terminal that sends the packet, the source terminal identifier and the switch identifier included in the packet are obtained, and the first address of the source terminal that sends the packet is saved. The mapping relationship between the information and the identity pair formed by the source terminal identifier and the switch identifier.
  • the transceiver unit 1000 may be implemented by a transceiver
  • the processing unit 1010 may be implemented by a processor.
  • the switch 1100 can include a processor 1110, a transceiver 1120, and a memory 1130.
  • the memory 1130 can be used to store the program/code pre-installed when the switch 1100 is shipped from the factory, and can also store the code and the like used when the processor 1110 is executed.
  • bus system 1140 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • the processor 1110 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for performing related operations.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • switch 1100 shown in FIG. 11 only shows the processor 1110, the transceiver 1120, and the memory 1130, in a specific implementation process, those skilled in the art should understand that the switch also includes implementing normal operation. Other devices necessary for the line. At the same time, those skilled in the art will appreciate that the switch may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, those skilled in the art will appreciate that the switch may also include only the devices or modules necessary to implement the embodiments of the present invention, and do not necessarily include all of the devices shown in FIG.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the embodiment of the present invention further provides a relay device for transmitting a message
  • the method for transmitting a message is a method for transmitting a message according to an embodiment of the present invention, so the present invention
  • the relay device of the embodiment reference may be made to the implementation of the method, and the repeated description is omitted.
  • the relay device for transmitting a message includes: a transceiver unit 1200 and a processing unit 1210, wherein the transceiver unit 1200 is configured to receive a packet of a first downstream device connected to the relay device;
  • the processing unit 1210 is configured to determine a port number for connecting the first downstream device, and encapsulate the determined access port number into the packet.
  • the transceiver unit 1200 is further configured to send a report to the first upstream device connected to the relay device. Text.
  • the transceiver unit 1200 is further configured to receive a packet of the second upstream device that is connected to the relay device, and the processing unit 1210 is further configured to determine, according to the path information included in the packet, the relay device, used to connect The port number of the downstream device, the path information is a port number from the relay device to the destination terminal that does not include the destination terminal, and each device including the relay device is used to connect the downstream device; and the relay path information is relayed.
  • the device is configured to connect the port number of the second downstream device.
  • the transceiver unit 1200 is further configured to send a packet to the second downstream device by using a port number of the relay device for connecting the second downstream device.
  • the transceiver unit 1200 may be implemented by a transceiver, and the processing unit 1210 may be implemented by a processor.
  • the relay device 1300 can include a processor 1310, a transceiver 1320, and a memory 1330.
  • the memory 1330 may be used to store a program/code pre-installed by the relay device 1300 at the time of shipment, or may store a code or the like for execution of the processor 1310.
  • the various components in the relay device 1300 are coupled together by a bus system 1340 that includes, in addition to the data bus, a power bus, a control bus, and a status signal bus.
  • a bus system 1340 that includes, in addition to the data bus, a power bus, a control bus, and a status signal bus.
  • the processor 1310 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for performing related operations.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • relay device 1300 shown in FIG. 13 only shows the processor 1310, the transceiver 1320, and the memory 1330, in a specific implementation process, those skilled in the art should understand that the relay device also includes an implementation. Other devices necessary for normal operation. At the same time, those skilled in the art will appreciate that the relay device may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, those skilled in the art will appreciate that the relay device may also only include the devices or modules necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM: Read-Only Memory) or a random storage memory (RAM: Random Access). Memory) and so on.
  • the network system includes a distributor and at least one switch, wherein the distributor is respectively connected to at least one switch, and since the switch can centrally forward the message through the distributor, the number of ports of the switch in the network system is greatly reduced. , thereby reducing the complexity of the management and maintenance of the network system.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

一种报文传输的方法、设备及网络系统,涉及无线通信技术领域,用以解决现有技术中存在的网络系统的管理和维护变的复杂问题。其中,该网络系统包括,分发器和至少一个交换机,其中分发器分别与至少一个交换机连接,由于交换机能够通过分发器集中转发报文,因此大大减少了网络系统中交换机的端口数量,进而降低了对网络系统的管理和维护的复杂程度。

Description

一种报文传输的方法、设备及网络系统 技术领域
本发明涉及无线通信技术领域,特别涉及一种报文传输的方法、设备及网络系统。
背景技术
计算机网络系统是利用通信设备和线路将地理位置不同、功能独立的多个终端互联起来,以功能完善的网络软件实现网络中资源共享和信息传递的系统,通过终端的互联,实现终端之间的通信,从而实现终端之间的信息、软件和设备资源的共享以及协同工作等功能,随着信息社会的不断发展,企业的整体运作离不开数据良性管理及高度共享,企业网络系统的地位越来越重要;其直接影响着企业各终端之间的资源高度共享和信息交流的快捷性。
现有的典型的企业网络系统架构如图1所示,由于交换机成分布式部署,而为了接入更多的终端,通常会增加交换机的个数,而交换机个数的增多使得网络系统的管理和维护变的复杂,如图1所示,接入交换机1与终端1和终端2连接,当与接入交换机1连接的终端发生变化时,则需要重新对接入交换机1进行重新配置。
综上所述,现有技术中网络系统的管理和维护变的复杂。
发明内容
本发明提供一种传输报文的方法、设备及网络系统,用以解决现有技术中存在的网络系统的管理和维护变的复杂问题。
第一方面,提供了一种传输报文的方法,包括:
分发器接收源终端发送的报文,并确定报文从源终端到分发器的路径信息,以及根据确定的路径信息,从预先学习到的路径信息与交换机标识的第一映射关系中,查找第一交换机标识,第一交换机标识为与确定的路径信息对应的交换机标识;向与第一交换机标识对应的第一交换机发送报文;在接收第一交换机反馈的报文后,确定第一交换机反馈的报文中包括第一交换机标识和目的终端标识;然后,根据第一交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与第一交换机标识和目的终端标识构成的标识对对应的路径信息;最后,根据查找到的路径信息,将源终端发送的报文转发到目的终端。
由于本发明实施例中分发器能够预先学习第一映射关系和第二映射关系,因此当接收到源终端向目的终端发送的报文时,能够得到目的终端的终端标识以及第一交换机标识,通过第二映射关系找到分发器到目的终端的路径信息,基于这种传输报文的方法降低了报文传输的复杂度的同时,由于分发器能够集中接收和传输报文,减少了对交换机端口数量的管理,从而降低了对网络系统的管理和维护,大大降低了运维的成本。
在第一方面的基础上,可选的,分发器确定反馈的报文中包括第二交换机标识、且不包括目的终端标识;将反馈的报文发送到与第二交换机标识对应的第二交换机;然后,接收第二交换机反馈的报文,第二交换机反馈的报文中包括第二交换机标识和目的终端标识;并根据第二交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与第二交换机标识和目的终端标识构成的 标识对对应的路径信息,然后,将源终端发送的报文转发到目的终端。
由于当目的终端标识对应的标识对存储在第二交换机时,分发器能够将报文发送到第二交换机,接收第二交换机反馈的包括第二交换机标识和目的终端标识的报文,然后查找到分发器到目的终端的路径信息,使得网络系统能够在源终端和目的终端分别归属不同交换机管理时,实现报文的交换。
在第一方面的基础上,可选的,分发器若根据第一映射关系,未查找到与报文从源终端到分发器的路径信息对应的交换机标识,则向认证服务器发送终端认证请求,终端认证请求中包括源终端的属性信息,认证服务器预先存储有终端的属性信息与交换机标识的对应关系;接收认证服务器查找到的与源终端的属性信息对应的第一交换机标识,然后,向第一交换机发送报文。
由于分发器预先学习的第一映射关系中查找不到第一交换机的标识时,能够通过上述步骤查找到第一交换机标识,便于分发器预先学习得到第一映射关系。
在第一方面的基础上,可选的,分发器为终端分配一个终端标识,然后,保存由第一交换机标识和分配的终端标识构成的标识对与报文从源终端到分发器的路径信息构成的第二映射关系。
在第一方面的基础上,可选的,当源终端首次向目的终端发送报文时,第一交换机中由于未保存源终端的第一地址信息与由源终端标识和第一交换机标识构成的映射关系,因此分发器在接收到从认证服务器查找到的第一交换机标识和分发器为源终端分配的源终端标识后,为使得第一交换机能够预先学习生成第一地址信息和由源终端标识与第一交换机标识构成的映射关系,分发器将第一交换机标识和源终端标识封装到报文中,并向第一交换机发送封装了第一交换机标识和源终端标识的报文,第一交换机在接收到封装了第一交换机标识和源终端标识的报文后,就能直接从报文中解析得到第一地址信息、第一交换机标识和源终端标识,然后得到第一地址信息与由第一交换机标识和源终端标识构成的标识对的映射关系。
在第一方面的基础上,可选的,一种分发器确定报文从源终端到分发器的路径信息的具体方法:
分发器对报文进行解析,得到报文中封装的第一路径信息,第一路径信息为源终端到与分发器连接的下游设备之间不包括源终端、且包括与分发器连接的下游设备在内的各个设备用于连接下游设备的端口号;然后,确定用于连接第一路径信息中的下游设备的端口号,并根据第一路径信息和确定的端口号,确定报文从源终端到分发器的路径信息。通过上述方式,简化了分发器确定报文从源终端到分发器的路径信息。
第二方面,提供了一种传输报文的方法,包括:
第一交换机对来自分发器的报文进行解析,确定需要接收报文的目的终端的第一地址信息和第二地址信息;然后,在确定目的终端的第二地址信息在第一交换机管理的第二地址信息的子网段内后,则根据目的终端的第一地址信息,从预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中,查找目的终端标识所在的标识对;最后,将查找到的标识对封装到报文中,并向分发器发送报文。
由于第一交换机仅对报文中的第一地址信息和第二地址信息进行解析和判断,简化了交换机的报文处理流程,从而提高了报文传输的速率。
在第二方面的基础上,可选的,当报文为IP(Internet Protocol,网络协议)报文 时,第一地址信息为MAC(Media Access Control,媒体访问控制)地址,第二地址信息为IP地址。
在第二方面的基础上,可选的,为解决当第一交换机若确定目的终端的第二地址信息不在第一交换机管理的第二地址信息的子网段内时,找到目的交换机所在的标识对,第一交换机根据目的终端的第二地址信息,确定第二地址信息所在的子网段;并根据确定的子网段,从预先存储的子网段与交换机标识的映射关系中,查找第二交换机标识,第二交换机标识与确定的子网段相对应;然后,将第二交换机标识封装到报文中,向分发器发送报文。
在第二方面的基础上,为解决当第一交换机若确定目的终端的第二地址信息在第一交换机管理的第二地址信息的子网段内时,未查找到目的终端标识所在的标识对,可选的,第一交换机广播获取目的终端标识的请求,获取目的终端标识的请求中包括目的终端的第二地址信息;然后接收包括目的终端标识的报文,并保存目的终端的第一地址信息与由第一交换机标识、目的终端标识构成的标识对的映射关系,最后,将查找到的标识对封装到报文中。
在第二方面的基础上,可选的,第一交换机学习具体保存源终端的第一地址信息与由源终端标识和第一交换机标识构成的标识对的映射关系的方法:
第一交换机对来自分发器的报文进行解析,确定发送报文的源终端的第一地址信息;若确定预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中不包括发送报文的源终端的第一地址信息的映射关系时,获取报文中包括的源终端标识和第一交换机标识;并保存发送报文的源终端的第一地址信息与由源终端标识和第一交换机标识构成的标识对的映射关系。
第三方面,提供了一种传输报文的方法,包括:
中继设备接收与中继设备连接的第一下游设备的报文;确定用于连接第一下游设备的端口号,并将确定的端口号封装到报文中,并向与中继设备连接的第一上游设备发送封装后的报文。
由于中继设备在向第一上游设备发送报文前,能够将中继设备用于连接第一下游设备的端口号封装到报文中,从而使得分发器能够根据解析报文中的端口号以及记录得到的分发器的端口号得到报文从源终端到分发器的路径信息,进而查找到第一交换机标识。
在第三方面的基础上,可选的,中继设备接收与中继设备连接的第二上游设备的报文;并根据报文中包括的路径信息,确定中继设备用于连接第二下游设备的端口号,路径信息为从中继设备到目的终端之间不包括目的终端、且包括中继设备在内的各个设备用于连接下游设备的端口号;然后,删除路径信息中中继设备用于连接第二下游设备的端口号,并通过中继设备用于连接第二下游设备的端口号,向第二下游设备发送报文。
由于中继设备仅用于封装端口号、删除端口号或者转发报文,而不对报文进行其它处理,因此中继设备的端口对于终端来说是相同的,因此当终端从一个中继设备的端口转移到另一个中继设备的端口时,无需对端口进行相应的配置,实现了端口的即插即用,为用户的使用提供了极大的便利,此外,通过在网络系统中增加中继设备的个数,能够扩展网络系统接入的终端的个数。
第四方面,提供了一种传输报文的分发器,包括:收发单元和处理单元,其中,收发单元用于接收源终端发送的报文;处理单元用于确定报文从源终端到分发器的路径信息, 以及根据确定的路径信息,从预先学习到的路径信息与交换机标识的第一映射关系中,查找第一交换机标识,第一交换机标识为与确定的路径信息对应的交换机标识;收发单元还用于向与第一交换机标识对应的第一交换机发送报文;以及接收第一交换机反馈的报文;处理单元还用于确定第一交换机反馈的报文中包括第一交换机标识和目的终端标识;并根据第一交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与第一交换机标识和目的终端标识构成的标识对对应的路径信息;收发单元还用于根据查找到的路径信息,将源终端发送的报文转发到目的终端。
在第四方面的基础上,可选的,处理单元,还用于在收发单元在将源终端发送的报文转发到目的终端之前,确定反馈的报文中包括第二交换机标识、且不包括目的终端标识;收发单元,还用于将反馈的报文发送到与第二交换机标识对应的第二交换机;以及接收第二交换机反馈的报文,第二交换机反馈的报文中包括第二交换机标识和目的终端标识;处理单元,还用于根据第二交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与第二交换机标识和目的终端标识构成的标识对对应的路径信息。
在第四方面的基础上,可选的,收发单元,还用于在向第一交换机发送报文之前,若处理单元根据第一映射关系,未查找到与报文从源终端到分发器的路径信息对应的交换机标识,则向认证服务器发送终端认证请求,终端认证请求中包括源终端的属性信息,认证服务器预先存储有终端的属性信息与交换机标识的对应关系;以及接收认证服务器查找到的与源终端的属性信息对应的第一交换机标识。
在第四方面的基础上,可选的,处理单元,还用于为终端分配一个终端标识;并保存由第一交换机标识和分配的终端标识构成的标识对与报文从源终端到分发器的路径信息构成的第二映射关系。
在第四方面的基础上,可选的,处理单元,还用于在收发单元向第一交换机发送报文之前,根据报文从源终端到分发器的路径信息,从第二映射关系中,查找源终端标识与第一交换机标识,其中,由源终端标识与第一交换机标识构成的标识对与报文从源终端到分发器的路径信息相对应;并将源终端标识与第一交换机标识封装到报文中。
在第四方面的基础上,可选的,处理单元在确定报文从源终端到分发器的路径信息时,具体用于对报文进行解析,得到报文中封装的第一路径信息,第一路径信息为源终端到与分发器连接的下游设备之间不包括源终端、且包括与分发器连接的下游设备在内的各个设备用于连接下游设备的端口号;并确定分发器用于连接第一路径信息中的下游设备的端口号,并根据第一路径信息和确定的端口号,确定报文从源终端到分发器的路径信息。
第五方面,提供了一种传输报文的交换机,包括:处理单元和收发单元,其中,处理单元用于对来自分发器的报文进行解析,确定需要接收报文的目的终端的第一地址信息和第二地址信息;并在确定目的终端的第二地址信息在第一交换机管理的第二地址信息的子网段内后,根据目的终端的第一地址信息,从预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中,查找目的终端标识所在的标识对,以及将查找到的标识对封装到报文中;收发单元用于向分发器发送报文。
在第五方面的基础上,可选的,处理单元还用于若确定目的终端的第二地址信息不在第一交换机管理的第二地址信息的子网段内,则根据目的终端的第二地址信息,确定第二 地址信息所在的子网段;并根据确定的子网段,从预先存储的子网段与交换机标识的映射关系中,查找与确定的子网段对应的交换机标识,以及将与确定的子网段对应的交换机标识封装到报文中;收发单元,还用于向分发器发送报文。
在第五方面的基础上,可选的,收发单元还用于在处理单元将查找到的标识对封装到报文中之前,若处理单元未查找到目的终端标识所在的标识对,则广播获取目的终端标识的请求,获取目的终端标识的请求中包括目的终端的第二地址信息;并接收包括目的终端标识的报文;处理单元还用于保存目的终端的第一地址信息与由交换机标识、目的终端标识构成的标识对的映射关系。
在第五方面的基础上,可选的,处理单元还用于对来自分发器的报文进行解析,确定发送报文的源终端的第一地址信息;若确定预先存储的第一地址信息与由交换机标识、终端标识构成的标识对的映射关系中不包括发送报文的源终端的第一地址信息的映射关系时,获取报文中包括的源终端标识和交换机标识;并保存发送报文的源终端的第一地址信息与由源终端标识和交换机标识构成的标识对的映射关系。
第六方面,提供了一种传输报文的中继设备,包括:收发单元和处理单元,其中,收发单元用于接收与中继设备连接的第一下游设备的报文;处理单元用于确定用于连接第一下游设备的端口号,并将确定的接入端口号封装到报文中;
收发单元还用于向与中继设备连接的第一上游设备发送报文。
在第六方面的基础上,可选的,收发单元,还用于接收与中继设备连接的第二上游设备的报文;处理单元,还用于根据报文中包括的路径信息,确定中继设备用于连接第二下游设备的端口号,路径信息为从中继设备到目的终端之间不包括目的终端、且包括中继设备在内的各个设备的用于连接下游设备的端口号;以及删除路径信息中中继设备用于连接第二下游设备的端口号;收发单元,还用于通过中继设备用于连接第二下游设备的端口号向第二下游设备发送报文。
第七方面,提供了一种企业网络系统,包括:如第四方面提供的任一可选的分发器,和至少一个如第五方面提供的任一可选的交换机,其中分发器与至少一个交换机分别连接。
在第七方面的基础上,可选的,还包括:至少一个如第六方面提供的任一可选的中继设备,中继设备成树状连接,中继设备中处于最上游的中继设备分别与分发器连接,处于最下游的中继设备用于连接至少一个终端。
附图说明
图1为现有技术中企业网络系统的架构示意图;
图2为本发明实施例企业网络系统的架构示意图;
图3为本发明实施例传输报文的方法的流程示意图;
图4为本发明实施例传输报文的方法的流程示意图;
图5a-图5c分别为本发明实施例企业网络系统的架构示意图;
图6为本发明实施例传输报文的方法的流程示意图;
图7为本发明实施例传输报文的方法的流程示意图;
图8为本发明实施例分发器的结构示意图;
图9为本发明实施例分发器的硬件结构示意图;
图10为本发明实施例交换机的结构示意图;
图11为本发明实施例交换机的硬件结构示意图;
图12为本发明实施例中继设备的结构示意图;
图13为本发明实施例中继设备的硬件结构示意图。
具体实施方式
为了使本发明实施例的目的、技术方案和优点更加清楚,下面结合说明书附图对本发明实施例作进一步详细描述。
现有技术中,企业网络系统如图1所示,交换机成分布式部署,终端通过交换机接入企业网络系统,通常情况下,一个企业中包括多个不同的部门,例如研发部、财务部,不同部门的终端通过同一个交换机的不同端口、或者不同交换机的不同端口接入企业网络系统,针对不同的端口需要配置不同的网络策略,当终端变换位置,连接到另一个交换机的一个端口时,还需重新对这个端口进行相应的配置,因此,如图1所示的企业网络系统一方面为了增加接入企业网络系统中终端的个数交换机较多,对于交换机的维护和管理较为复杂,一方面交换机端口和终端的绑定,增加了终端接入网络的操作的复杂性。
下面本发明实施例中出现的一些术语进行相应的介绍。
交换机标识,用于唯一标识交换机,具体的该标识可以为数字或者其它标识,具体的,将配置策略相同的终端配置到同一个交换机中,由于通常情况下,在一个企业中属于同一个部门的终端接入企业网络系统的配置策略相同,因此,可以通过一个交换机管理一个部门的终端,特别的,当属于一个部门中的终端的接入企业网络系统的配置策略不同时,则将配置策略相同的终端配置到同一个交换机中,或者,多个部门的终端的配置策略相同,则将属于多个部门的终端配置到同一个交换机上。
终端标识,用于标识终端,终端标识可以为数字或者其它标识,在本发明实施例中,属于同一个交换机管理的终端的终端标识是不相同的,属于不同交换机管理的终端的终端标识可以是相同的,也可以是不同的,例如交换机1管理的终端包括两个,终端1和终端2,其中终端1和终端2的终端标识分别为1和2,交换机2管理的终端包括三个,终端1、终端2和终端3,其中,终端1、终端2和终端3的终端标识可以分别为1、2和3,或者,终端1、终端2和终端3的终端标识可以分别为3、4和5。
终端的属性信息,为能够用于指示终端的唯一信息,如MAC地址、终端的证书等。
路径信息,为终端到分发器之间的路径信息。
应理解,在本发明实施例中,第一映射关系和第二映射关系可以分别为不同的映射关系;第一映射关系还可以为第二映射关系。
应理解,在本发明实施例中,报文的报文头中包括源终端的第一地址信息和第二地址信息以及目的终端的第一地址信息和第二地址信息,当报文为支持IP协议的报文时,第一地址信息为MAC地址,第二地址信息为IP地址;或者,第一地址信息和第二地址信息为预先封装在报文头中的其他地址信息。
应理解,在本发明实施例中,认证服务器中预先存储的终端的属性信息与交换机标识的对应关系是需要人为预先配置的。
此外,应理解,本发明实施例中的分发器还可以用于连接出口路由器,连接到Internet中,分发器还可以与各种服务器如ftp服务器、邮件服务器等服务器连接,共享资源。
下面以第一地址信息为MAC地址,第二地址信息为IP地址,进行相应的介绍。当报文中的第一地址信息和第二地址信息为其他地址信息时,与第一地址信息为MAC地址,第二地址信息为IP地址传输报文的步骤类似,在此不再赘述。
为解决交换机分布式部署带来的网络系统的管理和维护较为复杂的问题,如图2所示,为本发明实施例的企业网络系统,包括分发器和至少一个交换机,其中分发器与交换机分别相连,分发器与认证服务器相连。当用户想把终端接入企业网络系统时,只需将终端与分发器相连接。
其中,图2所示的企业网络系统适用于接入较少的终端。
如图3所示,以图2为例,假设终端1和终端2归属于交换机1管理,当终端1需要向终端2发送报文时,传输报文的方法,包括:
步骤300,终端1向分发器发送报文。
步骤301,分发器接收到报文后,记录分发器用于连接终端1的端口号10,从预先学习到的路径信息与交换机标识的第一映射关系中,查找交换机1的交换机标识。
需要说明的是,路径信息为终端到分发器之间的路径信息,如图2所示的企业网络系统中,路径信息指的是分发器连接终端的端口号X。具体的,第一映射关系为{X:交换机标识}。
步骤302,分发器根据交换机1的交换机标识,将报文发送到交换机1上。
步骤303,交换机1接收到报文后,对报文进行解析,得到终端2的MAC地址和IP地址。
步骤304,交换机1确定终端2的IP地址在交换机1管理的IP地址所在的子网段内,根据终端2的MAC地址,从预先学习到的MAC地址与由交换机1的交换标识和终端标识构成的标识对的映射关系中,查找终端2的MAC地址对应的标识对,并将终端2的MAC地址对应的标识对封装到报文中。
步骤305,交换机1将封装了终端2的MAC地址对应的标识对的报文发送到分发器。
步骤306,分发器在接收到封装了终端2的MAC地址对应的标识对的报文后,对报文进行解析,确定报文中包括终端2的MAC地址对应的标识对,即交换机1的交换机标识和终端2的终端标识。
此外,在交换机1确定终端2的IP地址在交换机1管理的IP地址所在的子网段内后,将组间交换标识设置为0,用于指示分发器终端1和终端2归属于同一交换机管理,将组间交换标识0封装到报文的报文头中,发送到分发器。分发器对报文进行解析后得到组间交换标识为0,确定此次报文传输为组内交换,然后确定报文中包括终端2的MAC地址对应的标识对。
步骤307,分发器从预先学习到的路径信息与由交换机标识和终端标识构成的标识对的第二映射关系中,查找分发器连接终端2的端口号。
终端308,分发器通过连接终端2的端口号,向终端2发送报文。
其中,当终端1首次发送报文时,在步骤301中,分发器中预先学习到的第一映射关系中未保存分发器记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系,则分发器具体学习保存记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系的具体过程如下:
分发器向认证服务器发送终端认证请求,终端认证请求中包括终端1的属性信息;认证服务器接收到终端认证请求后,根据终端1的属性信息,从预先存储的终端的属性信息与交换机标识的对应关系中,查找与终端1的属性信息对应的交换机标识,其中查找到的交换机标识即为交换机1的交换机标识;认证服务器向分发器发送查找到的交换机标识。分发器在接收到交换机标识后,为终端1分配一个终端标识,其中分配的终端标识与第二映射关系中与接收到的交换机标识构成标识对的终端标识不能重合,并保存记录的用于连接终端1的端口号10与由接收到的交换机标识与分配的终端标识构成的标识对的映射关系。
例如,若交换机标识和终端标识为数字,若接收到的交换机标识为5,在第二映射关系中与交换机标识为5构成标识对的终端标识有1、2和3,则为终端1分配的中终端标识不可以为1、2和3,可以为终端1分配的终端标识为4、或其它不为1、2和3的数字。
具体的,当终端1首次通过企业网络系统发送报文时,交换机1中也未保存终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系,因此在分发器将报文发送到交换机1上之前,交换机1学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程如下:
分发器将交换机1的交换机标识和终端1的终端标识封装到报文中,为不占用报文中携带数据的空间,可以将交换机1的交换标识和终端1的终端标识封装到报文的报文头中,然后发送到交换机1上,交换机1对报文解析时,不但可以得到终端2的MAC地址和IP地址,还可以得到终端1的MAC地址、以及交换机1的交换标识和终端1的终端标识,然后交换机1保存终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的对应关系。
为避免报文中封装过多没用的信息,交换机1解析得到交换机1的交换标识和终端1的终端标识后,删除封装在报文中的交换机1的交换标识和终端1的终端标识。
可选的,交换机1在保存了终端1的MAC地址与有交换机1的交换机标识和终端标识构成的标识对的映射关系后,分发器可以不再将交换机1标识和终端1的终端标识封装到报文中,分发器在确定了需要将报文发送到交换机1时,直接向交换机1发送报文。
在步骤304中,当终端2还未在企业网络系统中发送过报文,交换机1上未保存终端2的MAC地址与由交换机1的交换标识和终端标识构成的标识对的映射关系,则交换机1在预先学习到的MAC地址与由交换机1的交换标识和终端标识构成的标识对的映射关系中,未查找终端2的MAC地址对应的标识对时,广播获取终端2的终端标识的请求,获取终端2的终端标识的请求中包括终端2的IP地址。具体的,交换机1通过分发器向与分发器连接的各个终端下发获取终端2的终端标识的请求,各个终端在接收到获取终端2的终端标识的请求后,确定自身的IP地址是否为获取终端2的终端标识的请求中的IP地址,若不是,则不响应该请求,即除终端2之外的其它终端不响应该请求,终端2响应该请求,向分发器发送响应报文,由于终端2首次向分发器发送报文,因此分发器执行的步骤与终端1向分发器执行的步骤相同,在此不再赘述。分发器得到终端2的终端标识以及管理终端2的交换机1的交换机1标识后,封装到响应报文中,发送给交换机1。交换机1具体保存终端2的MAC地址与由交换机1的交换标识和终端标识的映射关系与保存终端1的MAC地址与由交换机1的交换标识和终端标识的映射关系的方法相同,在此不再赘述。
此外,认证服务器中存储的属性信息与交换机标识的对应关系中的属性信息为终端的MAC地址时,终端当终端2还未在企业网络系统中发送过报文,交换机1上未保存终端2的MAC 地址与由交换机1的交换标识和终端标识构成的标识对的映射关系,则交换机1在预先学习到的MAC地址与由交换机1的交换标识和终端标识构成的标识对的映射关系中,未查找终端2的MAC地址对应的标识对时,交换机1向分发器发送获取终端2的终端标识的请求中包括终端2的MAC地址,分发器在接收到获取终端2的终端标识的请求后,将获取终端2的终端标识的请求中包括的终端2的MAC地址封装到终端2的终端认证请求中,发送给认证服务器,认证服务器在接收到终端认证请求后,根据终端认证请求中包括的终端2的MAC地址,从预先存储的终端2的MAC地址与交换机标识的对应关系中,得到管理终端2的交换机1的标识,然后将交换机1的标识发送到分发器,分发器在接收到交换机1的标识后,为终端2分配一个终端标识的方法与上述为终端1分配终端标识的方法类似,在此不再赘述,然后分发器将终端2的终端标识发送给交换机1。
如图4所示,以图2为例,假设终端1归属于交换机1管理,终端2归属于交换机2管理,当终端1需要向终端2发送报文时,传输报文的方法,包括:
步骤400,终端1向分发器发送报文;
步骤401,分发器接收到报文后,记录分发器用于连接终端1的端口号10,从预先学习到的路径信息与交换机标识的第一映射关系中,查找交换机1的交换机标识。
需要说明的是,如图2所示的企业网络系统中,路径信息指的是分发器连接终端的端口号X。具体的,第一映射关系为{X:交换机标识}。
步骤402,分发器根据交换机1的交换机标识,将报文发送到交换机1上。
步骤403,交换机1接收到报文后,对报文进行解析,得到终端2的IP地址。
步骤404,交换机1根据终端2的IP地址,确定终端2的IP地址不在交换机1管理的IP地址所在的子网段内,根据终端2的IP地址,确定终端2的IP地址所在的子网段,从预先存储的子网段与交换机标识的映射关系中,查找管理终端2的交换机2的交换机标识。
步骤405,交换机1将查找到的交换机标识封装到报文中,向分发器发送封装了交换机标识的报文。
步骤406,分发器接收到报文后,对报文进行解析,确定接收到的报文中包括交换机2的交换机标识,不包括终端2的终端标识,则向交换机2转发接收到的报文。
此外,在交换机1确定终端2的IP地址不在交换机1管理的IP地址所在的子网段内后,将组间交换标识设置为1,用于指示分发器终端1和终端2分别归属于不同的交换机管理,将交换标识1封装到报文的报文头中,发送到分发器。分发器对报文进行解析后得到组间交换标识为1后,确定此次报文传输为组间交换,然后确定报文中包括交换机2的交换机标识。
由于交换机2无需在分析组间交换标识,因此,分发器可将封装在报文头中的组间交换标识1删除。
步骤407,交换机2接收到报文后,对报文进行解析得到终端2的MAC地址和IP地址。
步骤408,交换机2确定终端2的IP地址在交换机2管理的IP地址所在的子网段内,根据终端2的MAC地址,从预先学习到的MAC地址与由交换机2的交换标识和终端标识构成的标识对的映射关系中,查找终端2的MAC地址对应的标识对,并将终端2的MAC地址对应的标识对封装到报文中。
步骤409,交换机2将封装了终端2的MAC地址对应的标识对的报文发送到分发器。
步骤410,分发器在接收到封装了终端2的MAC地址对应的标识对的报文后,对报文进 行解析,确定报文中包括终端2的MAC地址对应的标识对,即交换机2的交换机标识和终端2的终端标识。
步骤411,分发器从预先学习到的路径信息与由交换机标识和终端标识构成的标识对的第二映射关系中,查找分发器连接终端2的端口号。
终端412,分发器通过连接终端2的端口号,向终端2发送报文。
其中,当终端1首次向分发器发送报文时,在步骤401中,分发器中预先学习到的第一映射关系中未保存分发器记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系,则分发器具体学习保存记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系的具体过程与在如图3所示的传输报文时,具体学习保存记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系的具体过程相同,在此不再赘述。
具体的,当终端1首次通过企业网络系统发送报文时,交换机1中也未保存终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系,因此在分发器将报文发送到交换机1上之前,交换机1学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程与在如图3所示的传输报文时,学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程相同,在此不再赘述。
由于在本发明实施例中的企业网络系统中,终端之间能够通过分发器集中进行报文的交换,而且一个交换机能够管理属于同一个子网段的多个终端,减少了企业网络系统中交换机的个数,便于交换机的管理和运维的同时,降低了报文传输的复杂度,提高了报文传输的效率。
为增加本发明实施例中企业网络系统的能够接入更多的终端,在该企业网络系统中增加中继设备,其中,中继设备成树状连接,最上游的中继设备分别与分发器连接,最下游的中继设备用于连接至少一个终端。
应理解,其中分发器、中继设备中的一个端口仅能够连接一个设备。
当仅包括一层中继设备时,如图5a所示,最上游的中继设备与最下游的中继设备为同一个中继设备,每个中继设备通过一个端口分别与分发器的一个端口连接,每个中继设备的其它端口的每个端口用于连接一个终端。
当包括两层中继设备时,如图5b所示,最上游的中继设备中的每个中继设备通过一个端口分别与分发器的一个端口连接,最上游的中继设备中的每个中继设备的其它端口分别连接一个最下游的中继设备的一个端口,最下游设备的其它端口用于分别连接一个终端。
例如,中继设备包括5个端口,假设最上游的中继设备的一个端口连接分发器的一个端口,其它的4个端口可分别连接一个最下游的中继设备。
当包括三层中继设备时,如图5c所示,最上游的中继设备中的每个中继设备通过一个端口分别与分发器的一个端口连接,最上游的中继设备中的每个中继设备的其它端口分别连接一个下游的中继设备的一个端口,下游设备的其它端口用于分别连接一个最下游的中继设备的一个端口,最下游设备的其它端口用于分别连接一个终端。
当需要接入更多的终端时,还可扩展中继设备的层数,如四层、五层等,具体的连接方式与图5a-图5c的连接方式类似,在此不再一一介绍。
如图6所示,以图5b为例,假设终端1和终端2归属于交换机1管理,当终端1需要向终 端2发送报文时,传输报文的方法,包括:
步骤600,终端1向中继设备1发送报文;
步骤601,中继设备1接收终端1发送的报文,将中继设备1用于连接终端1的端口号X封装到报文中,向中继设备2发送封装有端口号X的报文。
在具体实现时,可以端口号X封装到报文的报文头中。在本发明实施例中,终端1即为中继设备1的一个下游设备,中继设备1为中继设备2的一个下游设备。
步骤602,中继设备2接收封装有端口号X的报文后,将中继设备2用于连接中继设备1的端口号Y封装到报文中,向分发器发送封装有端口号X和端口号Y的报文。
步骤603,分发器接收到报文后,记录分发器用于连接中继设备2的端口号Z,以及解析接收到的报文,得到端口号X和端口号Y,确定报文从终端1到分发器的路径信息为X-Y-Z,从预先学习到的路径信息与交换机标识的第一映射关系中,查找交换机1的交换机标识。
可选的,分发器在解析到端口号X和端口号Y,删除封装在报文中的端口号X和端口号Y。
步骤604,分发器根据交换机1的交换机标识,将报文发送到交换机1上。
步骤605,交换机1接收到报文后,对报文进行解析,得到终端2的MAC地址和IP地址。
步骤606,交换机1确定终端2的IP地址在交换机1管理的IP地址所在的子网段内,根据终端2的MAC地址,从预先学习到的MAC地址与由交换机1的交换标识和终端标识构成的标识对的映射关系中,查找终端2的MAC地址对应的标识对,并将终端2的MAC地址对应的标识对封装到报文中。
步骤607,交换机1将封装了终端2的MAC地址对应的标识对的报文发送到分发器。
步骤608,分发器在接收到封装了终端2的MAC地址对应的标识对的报文后,对报文进行解析,确定报文中包括终端2的MAC地址对应的标识对,即交换机1的交换机标识和终端2的终端标识。
此外,在交换机1确定终端2的IP地址在交换机1管理的IP地址所在的子网段内后,将组间交换标识设置为0,用于指示分发器终端1和终端2归属于同一交换机管理,将组间交换标识0封装到报文的报文头中,发送到分发器。分发器对报文进行解析后得到组间交换标识为0,确定此次报文传输为组内交换,然后确定报文中包括终端2的MAC地址对应的标识对。
步骤609,分发器从预先学习到的路径信息与由交换机标识和终端标识构成的标识对的第二映射关系中,查找报文从终端2到分发器的路径信息A-B-C。
终端610,分发器将端口号A和端口号B封装到报文中,通过连接中继设备3的端口号C,向发送中继设备3发送封装了端口号A和端口号B报文。
步骤611,中继设备3接收到封装了端口号A和端口号B报文后,确定用于连接中继设备4的端口号为端口号B,删除报文中封装的端口号B,通过端口号B,向中继设备4发送封装有端口号A的报文。
步骤612,中继设备4接收到封装有端口号A的报文后,确定用于连接终端2的端口号为端口号A,删除报文中封装的端口号A,并通过端口号A,向终端2发送报文。
其中,当终端1首次向分发器发送报文时,在步骤603中,分发器中预先学习到的第一映射关系中未保存报文从终端1到分发器之间的路径信息与管理终端1的交换机的交换机标识的映射关系,则分发器具体学习保存报文从终端1到分发器之间的路径信息与管理终端1的交换机的交换机标识的映射关系的具体过程如下与在如图3所示的传输报文时,具体 学习保存记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系的具体过程相同,在此不再赘述。
具体的,当终端1首次通过企业网络系统发送报文时,交换机1中也未保存终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系,因此在分发器将报文发送到交换机1上之前,交换机1学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程与在如图3所示的传输报文时,学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程相同,在此不再赘述。
如图7所示,以图5b为例,假设终端1归属于交换机1管理,终端2归属于交换机2管理,当终端1需要向终端2发送报文时,传输报文的方法,包括:
步骤700,终端1向中继设备1发送报文。
步骤701,中继设备1接收终端1发送的报文,将中继设备1用于连接终端1的端口号X封装到报文中,向中继设备2发送封装有端口号X的报文。
在具体实现时,可以端口号X封装到报文的报文头中。在本发明实施例中,终端1即为中继设备1的一个下游设备,中继设备1为中继设备2的一个下游设备。
步骤702,中继设备2接收封装有端口号X的报文后,将中继设备2用于连接中继设备1的端口号Y封装到报文中,向分发器发送封装有端口号X和端口号Y的报文。
步骤703,分发器接收到报文后,记录分发器用于连接中继设备2的端口号Z,以及解析接收到的报文,得到端口号X和端口号Y,确定报文从终端1到分发器的路径信息为X-Y-Z,从预先学习到的路径信息与交换机标识的第一映射关系中,查找交换机1的交换机标识。
可选的,分发器在解析到端口号X和端口号Y,删除封装在报文中的端口号X和端口号Y。
步骤704,分发器根据交换机1的交换机标识,将报文发送到交换机1上。
步骤705,交换机1接收到报文后,对报文进行解析,得到终端2的IP地址。
步骤706,交换机1根据终端2的IP地址,确定终端2的IP地址不在交换机1管理的IP地址所在的子网段内,根据终端2的IP地址,确定终端2的IP地址所在的子网段,从预先存储的子网段与交换机标识的映射关系中,查找管理终端2的交换机2的交换机标识。
步骤707,交换机1将查找到的交换机标识封装到报文中,向分发器发送封装了交换机2的交换机标识的报文。
步骤708,分发器接收到报文后,对报文进行解析,确定接收到的报文中包括交换机2的交换机标识,不包括终端2的终端标识,则向交换机2转发接收到的报文。
此外,在交换机1确定终端2的IP地址不在交换机1管理的IP地址所在的子网段内后,将组间交换标识设置为1,用于指示分发器终端1和终端2分别归属于不同的交换机管理,将组间交换标识1封装到报文的报文头中,发送到分发器。分发器对报文进行解析后得到组间交换标识为1,确定此次报文传输为组间交换,然后确定报文中包括交换机2的交换机标识。
由于交换机2无需在分析交换机2的组间交换标识,因此,分发器可将封装在报文中的交换机2的组间交换标识删除。
步骤709,交换机2接收到报文后,对报文进行解析得到终端2的MAC地址和IP地址。
步骤710,交换机2确定终端2的IP地址在交换机2管理的IP地址所在的子网段内,根据终端2的MAC地址,从预先学习到的MAC地址与由交换机2的交换标识和终端标识构成的标识 对的映射关系中,查找终端2的MAC地址对应的标识对,并将终端2的MAC地址对应的标识对封装到报文中。
步711,交换机2将封装了终端2的MAC地址对应的标识对的报文发送到分发器。
步骤712,分发器在接收到封装了终端2的MAC地址对应的标识对的报文后,对报文进行解析,确定报文中包括终端2的MAC地址对应的标识对,即交换机2的交换机标识和终端2的终端标识。
步骤713,分发器从预先学习到的路径信息与由交换机标识和终端标识构成的标识对的第二映射关系中,查找报文从终端2到分发器之间的路径信息A-B-C。
终端714,分发器将端口号A和端口号B封装到报文中,通过连接中继设备3的端口号C,向发送中继设备3发送封装了端口号A和端口号B报文。
步骤715,中继设备3接收到封装了端口号A和端口号B报文后,确定用于连接中继设备4的端口号为端口号B,删除报文中封装的端口号B,通过端口号B,向中继设备4发送封装有端口号A的报文。
步骤716,中继设备4接收到封装有端口号A的报文后,确定用于连接终端2的端口号为端口号A,删除报文中封装的端口号A,并通过端口号A,向终端2发送报文。
其中,当终端1首次向分发器发送报文时,在步骤603中,分发器中预先学习到的第一映射关系中未保存报文从终端1到分发器之间的路径信息与管理终端1的交换机的交换机标识的映射关系,则分发器具体学习保存报文从终端1到分发器之间的路径信息与管理终端1的交换机的交换机标识的映射关系的具体过程如下与在如图3所示的传输报文时,具体学习保存记录的用于连接终端1的端口号10与管理终端1的交换机的交换机标识的映射关系的具体过程相同,在此不再赘述。
具体的,当终端1首次通过企业网络系统发送报文时,交换机1中也未保存终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系,因此在分发器将报文发送到交换机1上之前,交换机1学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程与在如图3所示的传输报文时,学习保存的终端1的MAC地址与由交换机1的交换标识和终端1的终端标识构成的标识对的映射关系的具体过程相同,在此不再赘述。
此外,图6与图7中提到的中继设备1和中继设备4可以为同一个中继设备,也可以为不同的中继设备,中继设备2和中继设备3可以为同一个中继设备,也可以为不同的中继设备。
基于同一发明构思,本发明实施例中还提供了一种传输报文的分发器,由于传输报文的分发器对应的方法为本发明实施例传输报文的方法,因此本发明实施例分发器的实施可以参见该方法的实施,重复之处不再赘述。
如图8所示,本发明实施例传输报文的分发器,包括:收发单元800和处理单元810,其中,收发单元800用于接收源终端发送的报文;处理单元810用于确定报文从源终端到分发器的路径信息,以及根据确定的路径信息,从预先学习到的路径信息与交换机标识的第一映射关系中,查找第一交换机标识,第一交换机标识为与确定的路径信息对应的交换机标识;收发单元800还用于向与第一交换机标识对应的第一交换机发送报文;以及接收第一交换机反馈的报文;处理单元810还用于确定第一交换机反馈的报文中包括第一交换机标识和目的终端标识;并根据第一交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与第一交换机标识和目 的终端标识构成的标识对对应的路径信息;收发单元800还用于根据查找到的路径信息,将源终端发送的报文转发到目的终端。
可选的,处理单元810,还用于在收发单元在将源终端发送的报文转发到目的终端之前,确定反馈的报文中包括第二交换机标识、且不包括目的终端标识;收发单元800,还用于将反馈的报文发送到与第二交换机标识对应的第二交换机;以及接收第二交换机反馈的报文,第二交换机反馈的报文中包括第二交换机标识和目的终端标识;处理单元810,还用于根据第二交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与第二交换机标识和目的终端标识构成的标识对对应的路径信息。
可选的,收发单元800,还用于在向第一交换机发送报文之前,若处理单元810根据第一映射关系,未查找到与报文从源终端到分发器的路径信息对应的交换机标识,则向认证服务器发送终端认证请求,终端认证请求中包括源终端的属性信息,认证服务器预先存储有终端的属性信息与交换机标识的对应关系;以及接收认证服务器查找到的与源终端的属性信息对应的第一交换机标识。
可选的,处理单元810,还用于为终端分配一个终端标识;并保存由第一交换机标识和分配的终端标识构成的标识对与报文从源终端到分发器的路径信息构成的第二映射关系。
可选的,处理单元810,还用于在收发单元800向第一交换机发送报文之前,根据报文从源终端到分发器的路径信息,从第二映射关系中,查找源终端标识与第一交换机标识,其中,由源终端标识与第一交换机标识构成的标识对与报文从源终端到分发器的路径信息相对应;并将源终端标识与第一交换机标识封装到报文中。
可选的,处理单元810在确定报文从源终端到分发器的路径信息时,具体用于对报文进行解析,得到报文中封装的第一路径信息,第一路径信息为源终端到与分发器连接的下游设备之间不包括源终端、且包括与分发器连接的下游设备在内的各个设备用于连接下游设备的端口号;并确定分发器用于连接第一路径信息中的下游设备的端口号,并根据第一路径信息和确定的端口号,确定报文从源终端到分发器的路径信息。
应注意,本发明实施例中,收发单元800可以由收发器实现,处理单元810可以由处理器实现。如图9所示,分发器900可以包括处理器910、收发器920和存储器930。其中,存储器930可以用于存储分发器900出厂时预装的程序/代码,也可以存储用于处理器910执行时的代码等。
分发器900中的各个组件通过总线系统940耦合在一起,其中总线系统940除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。
其中,处理器910可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关操作,以实现本发明实施例所提供的技术方案。
应注意,尽管图9所示的分发器900仅仅示出了处理器910、收发器920和存储器930,但是在具体实现过程中,本领域的技术人员应当明白,该分发器还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,该分发器还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,该分发器也可仅仅包含实现本发明实施例所必须的器件或模块,而不必包含图9中所示的全部器件。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁盘、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。
基于同一发明构思,本发明实施例中还提供了一种传输报文的交换机,由于一种传输报文的交换机对应的方法为本发明实施例传输报文的方法,因此本发明实施例交换机的实施可以参见该方法的实施,重复之处不再赘述。
如图10所示,本发明实施例传输报文的交换机,包括:收发单元1000和处理单元1010,其中,处理单元1010用于对来自分发器的报文进行解析,确定需要接收报文的目的终端的第一地址信息和第二地址信息;并在确定目的终端的第二地址信息在第一交换机管理的第二地址信息的子网段内后,根据目的终端的第一地址信息,从预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中,查找目的终端标识所在的标识对,以及将查找到的标识对封装到报文中;收发单元1000用于向分发器发送报文。
可选的,处理单元1010还用于若确定目的终端的第二地址信息不在第一交换机管理的第二地址信息的子网段内,则根据目的终端的第二地址信息,确定第二地址信息所在的子网段;并根据确定的子网段,从预先存储的子网段与交换机标识的映射关系中,查找与确定的子网段对应的交换机标识,以及将与确定的子网段对应的交换机标识封装到报文中;收发单元1000,还用于向分发器发送报文。
可选的,收发单元1000还用于在处理单元1010将查找到的标识对封装到报文中之前,若处理单元1010未查找到目的终端标识所在的标识对,则广播获取目的终端标识的请求,获取目的终端标识的请求中包括目的终端的第二地址信息;并接收包括目的终端标识的报文;处理单元1010还用于保存目的终端的第一地址信息与由交换机标识、目的终端标识构成的标识对的映射关系。
可选的,处理单元1010还用于对来自分发器的报文进行解析,确定发送报文的源终端的第一地址信息;若确定预先存储的第一地址信息与由交换机标识、终端标识构成的标识对的映射关系中不包括发送报文的源终端的第一地址信息的映射关系时,获取报文中包括的源终端标识和交换机标识;并保存发送报文的源终端的第一地址信息与由源终端标识和交换机标识构成的标识对的映射关系。
应注意,本发明实施例中,收发单元1000可以由收发器实现,处理单元1010可以由处理器实现。如图11所示,交换机1100可以包括处理器1110、收发器1120和存储器1130。其中,存储器1130可以用于存储交换机1100出厂时预装的程序/代码,也可以存储用于处理器1110执行时的代码等。
交换机1100中的各个组件通过总线系统1140耦合在一起,其中总线系统1140除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。
其中,处理器1110可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关操作,以实现本发明实施例所提供的技术方案。
应注意,尽管图11所示的交换机1100仅仅示出了处理器1110、收发器1120和存储器1130,但是在具体实现过程中,本领域的技术人员应当明白,该交换机还包含实现正常运 行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,该交换机还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,该交换机也可仅仅包含实现本发明实施例所必须的器件或模块,而不必包含图11中所示的全部器件。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁盘、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。
基于同一发明构思,本发明实施例中还提供了一种传输报文的中继设备,由于一种传输报文的中继设备对应的方法为本发明实施例传输报文的方法,因此本发明实施例中继设备的实施可以参见该方法的实施,重复之处不再赘述。
如图12所示,本发明实施例传输报文的中继设备,包括:收发单元1200和处理单元1210,其中,收发单元1200用于接收与中继设备连接的第一下游设备的报文;处理单元1210用于确定用于连接第一下游设备的端口号,并将确定的接入端口号封装到报文中;收发单元1200还用于向与中继设备连接的第一上游设备发送报文。
可选的,收发单元1200,还用于接收与中继设备连接的第二上游设备的报文;处理单元1210,还用于根据报文中包括的路径信息,确定中继设备用于连接第二下游设备的端口号,路径信息为从中继设备到目的终端之间不包括目的终端、且包括中继设备在内的各个设备的用于连接下游设备的端口号;以及删除路径信息中中继设备用于连接第二下游设备的端口号;收发单元1200,还用于通过中继设备用于连接第二下游设备的端口号向第二下游设备发送报文。
应注意,本发明实施例中,收发单元1200可以由收发器实现,处理单元1210可以由处理器实现。如图13所示,中继设备1300可以包括处理器1310、收发器1320和存储器1330。其中,存储器1330可以用于存储中继设备1300出厂时预装的程序/代码,也可以存储用于处理器1310执行时的代码等。
中继设备1300中的各个组件通过总线系统1340耦合在一起,其中总线系统1340除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。
其中,处理器1310可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关操作,以实现本发明实施例所提供的技术方案。
应注意,尽管图13所示的中继设备1300仅仅示出了处理器1310、收发器1320和存储器1330,但是在具体实现过程中,本领域的技术人员应当明白,该中继设备还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,该中继设备还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,该中继设备也可仅仅包含实现本发明实施例所必须的器件或模块,而不必包含图13中所示的全部器件。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁盘、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access  Memory)等。
从上述内容看出:该网络系统包括,分发器和至少一个交换机,其中分发器分别与至少一个交换机连接,由于交换机能够通过分发器集中转发报文,因此大大减少了网络系统中交换机的端口数量,进而降低了对网络系统的管理和维护的复杂程度。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (26)

  1. 一种传输报文的方法,其特征在于,包括:
    分发器接收源终端发送的报文,并
    确定所述报文从所述源终端到所述分发器的路径信息,以及根据确定的路径信息,从预先学习到的路径信息与交换机标识的第一映射关系中,查找第一交换机标识,所述第一交换机标识为与确定的路径信息对应的交换机标识;
    所述分发器向与所述第一交换机标识对应的第一交换机发送所述报文;
    所述分发器接收所述第一交换机反馈的报文,确定所述第一交换机反馈的报文中包括所述第一交换机标识和目的终端标识;
    所述分发器根据所述第一交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与所述第一交换机标识和目的终端标识构成的标识对对应的路径信息;
    所述分发器根据查找到的路径信息,将源终端发送的报文转发到所述目的终端。
  2. 如权利要求1所述的方法,其特征在于,所述分发器将所述源终端发送的报文转发到所述目的终端之前,还包括:
    所述分发器确定所述反馈的报文中包括第二交换机标识、且不包括目的终端标识;
    所述分发器将所述反馈的报文发送到与所述第二交换机标识对应的第二交换机;
    所述分发器接收所述第二交换机反馈的报文,所述第二交换机反馈的报文中包括所述第二交换机标识和目的终端标识;
    所述分发器根据所述第二交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与所述第二交换机标识和目的终端标识构成的标识对对应的路径信息。
  3. 如权利要求1或2所述的方法,其特征在于,所述分发器向所述第一交换机发送所述报文之前,还包括:
    所述分发器若根据所述第一映射关系,未查找到与所述报文从所述源终端到所述分发器的路径信息对应的交换机标识,则向认证服务器发送终端认证请求,所述终端认证请求中包括所述源终端的属性信息,所述认证服务器预先存储有终端的属性信息与交换机标识的对应关系;
    所述分发器接收所述认证服务器查找到的与所述源终端的属性信息对应的第一交换机标识。
  4. 如权利要求3所述的方法,其特征在于,还包括:
    所述分发器为所述终端分配一个终端标识;
    所述分发器保存由所述第一交换机标识和分配的终端标识构成的标识对与所述报文从源终端到所述分发器的路径信息构成的第二映射关系。
  5. 如权利要求1至4任一所述的方法,其特征在于,所述分发器向所述第一交换机发送所述报文之前,还包括:
    所述分发器根据所述报文从所述源终端到所述分发器的路径信息,从所述第二映射关系中,查找所述源终端标识与所述第一交换机标识,其中,由所述源终端标识与所述第一 交换机标识构成的标识对与所述报文从所述源终端到所述分发器的路径信息相对应;
    所述分发器将所述源终端标识与所述第一交换机标识封装到所述报文中。
  6. 如权利要求1至5任一所述的方法,其特征在于,所述分发器确定所述报文从所述源终端到所述分发器的路径信息,包括:
    所述分发器对所述报文进行解析,得到所述报文中封装的第一路径信息,所述第一路径信息为所述源终端到与所述分发器连接的下游设备之间不包括所述源终端、且包括与所述分发器连接的下游设备在内的各个设备用于连接下游设备的端口号;
    所述分发器确定用于连接所述第一路径信息中的下游设备的端口号,并根据所述第一路径信息和确定的端口号,确定所述报文从所述源终端到所述分发器的路径信息。
  7. 一种传输报文的方法,其特征在于,包括:
    第一交换机对来自所述分发器的报文进行解析,确定需要接收所述报文的目的终端的第一地址信息和第二地址信息;
    所述第一交换机在确定所述目的终端的第二地址信息在所述第一交换机管理的第二地址信息的子网段内后,则根据所述目的终端的第一地址信息,从预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中,查找所述目的终端标识所在的标识对;
    所述第一交换机将查找到的标识对封装到所述报文中,并向所述分发器发送所述报文。
  8. 如权利要求7所述的方法,其特征在于,还包括:
    所述第一交换机若确定所述目的终端的第二地址信息不在所述第一交换机管理的第二地址信息的子网段内,则根据所述目的终端的第二地址信息,确定所述第二地址信息所在的子网段;
    所述第一交换机根据确定的子网段,从预先存储的子网段与交换机标识的映射关系中,查找所述第二交换机标识,所述第二交换机标识与所述确定的子网段相对应;
    所述第一交换机将所述第二交换机标识封装到所述报文中,向所述分发器发送所述报文。
  9. 如权利要求7所述的方法,其特征在于,所述第一交换机将查找到的标识对封装到所述报文中之前,还包括:
    所述第一交换机若未查找到所述目的终端标识所在的标识对,则广播获取所述目的终端标识的请求,所述获取所述目的终端标识的请求中包括所述目的终端的第二地址信息;
    所述第一交换机接收包括所述目的终端标识的报文,并保存目的终端的第一地址信息与由所述第一交换机标识、所述目的终端标识构成的标识对的映射关系。
  10. 如权利要求7至9任一所述的方法,其特征在于,还包括:
    所述第一交换机对来自所述分发器的报文进行解析,确定发送所述报文的源终端的第一地址信息;
    所述第一交换机若确定所述预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中不包括发送所述报文的源终端的第一地址信息的映射关系时,获取所述报文中包括的源终端标识和第一交换机标识;
    所述第一交换机保存发送所述报文的源终端的第一地址信息与由源终端标识和第一交换机标识构成的标识对的映射关系。
  11. 一种传输报文的方法,其特征在于,包括:
    中继设备接收与所述中继设备连接的第一下游设备的报文;
    所述中继设备确定用于连接所述第一下游设备的端口号,并将所述确定的端口号封装到所述报文中;
    所述中继设备向与所述中继设备连接的第一上游设备发送封装后的所述报文。
  12. 如权利要求11所述的方法,其特征在于,还包括:
    所述中继设备接收与所述中继设备连接的第二上游设备的报文;
    所述中继设备根据所述报文中包括的路径信息,确定所述中继设备用于连接第二下游设备的端口号,所述路径信息为从所述中继设备到所述目的终端之间不包括所述目的终端、且包括所述中继设备在内的各个设备用于连接下游设备的端口号;
    所述中继设备删除所述路径信息中所述中继设备用于连接所述第二下游设备的端口号,并通过所述中继设备用于连接所述第二下游设备的端口号,向所述第二下游设备发送所述报文。
  13. 一种传输报文的分发器,其特征在于,包括:
    收发单元,用于接收源终端发送的报文;
    处理单元,用于确定所述报文从所述源终端到所述分发器的路径信息,以及根据确定的路径信息,从预先学习到的路径信息与交换机标识的第一映射关系中,查找第一交换机标识,所述第一交换机标识为与确定的路径信息对应的交换机标识;
    所述收发单元,还用于向与所述第一交换机标识对应的第一交换机发送所述报文;以及接收所述第一交换机反馈的报文;
    所述处理单元,还用于确定所述第一交换机反馈的报文中包括所述第一交换机标识和目的终端标识;并根据所述第一交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与所述第一交换机标识和目的终端标识构成的标识对对应的路径信息;
    所述收发单元,还用于根据查找到的路径信息,将源终端发送的报文转发到所述目的终端。
  14. 如权利要求13所述的分发器,其特征在于,所述处理单元,还用于:
    在所述收发单元在将所述源终端发送的报文转发到所述目的终端之前,确定所述反馈的报文中包括第二交换机标识、且不包括目的终端标识;
    所述收发单元,还用于将所述反馈的报文发送到与所述第二交换机标识对应的第二交换机;以及接收所述第二交换机反馈的报文,所述第二交换机反馈的报文中包括所述第二交换机标识和目的终端标识;
    所述处理单元,还用于根据所述第二交换机标识和目的终端标识,从预先学习到的由交换机标识、终端标识构成的标识对与路径信息的第二映射关系中,查找与所述第二交换机标识和目的终端标识构成的标识对对应的路径信息。
  15. 如权利要求13或14所述的分发器,其特征在于,所述收发单元,还用于:
    在向所述第一交换机发送所述报文之前,若所述处理单元根据所述第一映射关系,未查找到与所述报文从所述源终端到所述分发器的路径信息对应的交换机标识,则向认证服务器发送终端认证请求,所述终端认证请求中包括所述源终端的属性信息,所述认证服务器预先存储有终端的属性信息与交换机标识的对应关系;以及接收所述认证服务器查找到 的与所述源终端的属性信息对应的第一交换机标识。
  16. 如权利要求13所述的分发器,其特征在于,所述处理单元,还用于:
    为所述终端分配一个终端标识;并保存由所述第一交换机标识和分配的终端标识构成的标识对与所述报文从源终端到所述分发器的路径信息构成的第二映射关系。
  17. 如权利要求13至16任一所述的分发器,其特征在于,所述处理单元,还用于:
    在所述收发单元向所述第一交换机发送所述报文之前,根据所述报文从所述源终端到所述分发器的路径信息,从所述第二映射关系中,查找所述源终端标识与所述第一交换机标识,其中,由所述源终端标识与所述第一交换机标识构成的标识对与所述报文从所述源终端到所述分发器的路径信息相对应;并将所述源终端标识与所述第一交换机标识封装到所述报文中。
  18. 如权利要求13至17任一所述的分发器,其特征在于,所述处理单元确定所述报文从所述源终端到所述分发器的路径信息,具体用于:
    对所述报文进行解析,得到所述报文中封装的第一路径信息,所述第一路径信息为所述源终端到与所述分发器连接的下游设备之间不包括所述源终端、且包括与所述分发器连接的下游设备在内的各个设备用于连接下游设备的端口号;并确定所述分发器用于连接所述第一路径信息中的下游设备的端口号,并根据所述第一路径信息和确定的端口号,确定所述报文从所述源终端到所述分发器的路径信息。
  19. 一种传输报文的交换机,其特征在于,包括:
    处理单元,用于对来自所述分发器的报文进行解析,确定需要接收所述报文的目的终端的第一地址信息和第二地址信息;并在确定所述目的终端的第二地址信息在所述第一交换机管理的第二地址信息的子网段内后,根据所述目的终端的第一地址信息,从预先存储的第一地址信息与由第一交换机标识、终端标识构成的标识对的映射关系中,查找所述目的终端标识所在的标识对,以及将查找到的标识对封装到所述报文中;
    所述收发单元,用于向所述分发器发送所述报文。
  20. 如权利要求19所述的交换机,其特征在于,所述处理单元,还用于:
    若确定所述目的终端的第二地址信息不在所述第一交换机管理的第二地址信息的子网段内,则根据所述目的终端的第二地址信息,确定所述第二地址信息所在的子网段;并根据确定的子网段,从预先存储的子网段与交换机标识的映射关系中,查找与确定的子网段对应的交换机标识,以及将与确定的子网段对应的交换机标识封装到所述报文中;
    所述收发单元,还用于向所述分发器发送所述报文。
  21. 如权利要求19所述的交换机,其特征在于,所述收发单元,还用于:
    在所述处理单元将查找到的标识对封装到所述报文中之前,若所述处理单元未查找到所述目的终端标识所在的标识对,则广播获取所述目的终端标识的请求,所述获取所述目的终端标识的请求中包括所述目的终端的第二地址信息;并接收包括目的终端标识的报文;
    所述处理单元,还用于保存所述目的终端的第一地址信息与由所述交换机标识、所述目的终端标识构成的标识对的映射关系。
  22. 如权利要求19至21任一所述的交换机,其特征在于,所述处理单元,还用于:
    对来自所述分发器的报文进行解析,确定发送所述报文的源终端的第一地址信息;若确定所述预先存储的第一地址信息与由所述交换机标识、终端标识构成的标识对的映射关 系中不包括发送所述报文的源终端的第一地址信息的映射关系时,获取所述报文中包括的源终端标识和所述交换机标识;并保存发送所述报文的源终端的第一地址信息与由所述源终端标识和所述交换机标识构成的标识对的映射关系。
  23. 一种传输报文的中继设备,其特征在于,包括:
    收发单元,用于接收与所述中继设备连接的第一下游设备的报文;
    处理单元,用于确定用于连接所述第一下游设备的端口号,并将所述确定的接入端口号封装到所述报文中;
    所述收发单元,还用于向与所述中继设备连接的第一上游设备发送所述报文。
  24. 如权利要求23所述的中继设备,其特征在于,所述收发单元,还用于:
    接收与所述中继设备连接的第二上游设备的报文;
    所述处理单元,还用于根据所述报文中包括的路径信息,确定所述中继设备用于连接第二下游设备的端口号,所述路径信息为从所述中继设备到所述目的终端之间不包括所述目的终端、且包括所述中继设备在内的各个设备的用于连接下游设备的端口号;以及删除所述路径信息中所述中继设备用于连接所述第二下游设备的端口号;
    所述收发单元,还用于通过所述中继设备用于连接所述第二下游设备的端口号向所述第二下游设备发送所述报文。
  25. 一种企业网络系统,其特征在于,包括:如权利要求13至18任一所述的分发器,和至少一个如权利要求19或20所述的交换机,其中所述分发器与所述至少一个交换机分别连接。
  26. 如权利要求25所述的企业网络系统,其特征在于,还包括:至少一个如权利要求23或24所述的中继设备,所述中继设备成树状连接,所述中继设备中处于最上游的中继设备分别与所述分发器连接,处于最下游的中继设备用于连接至少一个终端。
PCT/CN2017/100555 2016-09-08 2017-09-05 一种报文传输的方法、设备及网络系统 WO2018045949A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP17848122.2A EP3503484B1 (en) 2016-09-08 2017-09-05 Message transmission methods and devices

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610812506.1 2016-09-08
CN201610812506.1A CN107809387B (zh) 2016-09-08 2016-09-08 一种报文传输的方法、设备及网络系统

Publications (1)

Publication Number Publication Date
WO2018045949A1 true WO2018045949A1 (zh) 2018-03-15

Family

ID=61561654

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100555 WO2018045949A1 (zh) 2016-09-08 2017-09-05 一种报文传输的方法、设备及网络系统

Country Status (3)

Country Link
EP (1) EP3503484B1 (zh)
CN (1) CN107809387B (zh)
WO (1) WO2018045949A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153048A (zh) * 2020-09-24 2020-12-29 珠海格力电器股份有限公司 信息的解析方法及装置、系统、存储介质、电子装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108684024A (zh) * 2018-04-28 2018-10-19 上海与德通讯技术有限公司 蓝牙网络系统
CN113765801B (zh) * 2020-07-16 2024-02-09 北京京东尚科信息技术有限公司 应用于数据中心的报文处理方法和装置、电子设备和介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039369A1 (en) * 2003-10-14 2006-02-23 Raptor Networks Technology, Inc. Multiplexing system having an automatically configured topology
CN1985472A (zh) * 2004-01-23 2007-06-20 城域信息包系统公司 通过节点发送分组的方法
CN105227453A (zh) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 报文转发方法及装置
CN105282058A (zh) * 2015-09-14 2016-01-27 中国联合网络通信集团有限公司 路径配置方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025598B (zh) * 2009-09-17 2014-10-22 中兴通讯股份有限公司 接入路由器本地映射表更新方法及本地接入路由器
EP2659632A4 (en) * 2010-12-27 2017-01-11 Nec Corporation Mapping server, network system, packet forwarding method and program
CN107071087B (zh) * 2011-08-17 2021-01-26 Nicira股份有限公司 逻辑l3路由

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039369A1 (en) * 2003-10-14 2006-02-23 Raptor Networks Technology, Inc. Multiplexing system having an automatically configured topology
CN1985472A (zh) * 2004-01-23 2007-06-20 城域信息包系统公司 通过节点发送分组的方法
CN105227453A (zh) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 报文转发方法及装置
CN105282058A (zh) * 2015-09-14 2016-01-27 中国联合网络通信集团有限公司 路径配置方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3503484A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153048A (zh) * 2020-09-24 2020-12-29 珠海格力电器股份有限公司 信息的解析方法及装置、系统、存储介质、电子装置
CN112153048B (zh) * 2020-09-24 2021-11-30 珠海格力电器股份有限公司 信息的解析方法及装置、系统、存储介质、电子装置

Also Published As

Publication number Publication date
EP3503484B1 (en) 2021-11-10
CN107809387B (zh) 2020-11-06
EP3503484A1 (en) 2019-06-26
EP3503484A4 (en) 2019-08-28
CN107809387A (zh) 2018-03-16

Similar Documents

Publication Publication Date Title
CN107733670B (zh) 一种转发策略配置方法和装置
US11005752B2 (en) Packet transmission
CN107872542B (zh) 一种数据传输的方法及网络设备
WO2017054576A1 (zh) 单播隧道建立方法、装置和系统
CN103944826B (zh) Spbm网络中的表项聚合方法及设备
CN104104747A (zh) 报文传输方法及装置
CN110326345B (zh) 一种配置网络切片的方法、装置和系统
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
CN106101617B (zh) 一种报文传输方法、装置及系统
EP4239973A1 (en) Packet sending method, device, and system
WO2018045949A1 (zh) 一种报文传输的方法、设备及网络系统
WO2017015839A1 (zh) 一种基于sdn的arp实现方法及装置
CN109474713B (zh) 报文转发方法和装置
US11522754B2 (en) Systems and methods for Zero-Touch Provisioning of a switch in intermediate distribution frames and main distribution frames
CN103561122B (zh) IPv6地址配置方法、IPv6客户端及服务器
CN105187311A (zh) 一种报文转发方法及装置
CN103442328B (zh) 一种物联网终端的服务质量控制方法和系统
CN107733765B (zh) 映射方法、系统和相关设备
US11523443B2 (en) Extraction, conversion, and transmission of user packet from encapsulated packet
WO2017036384A1 (zh) 运营商边缘设备及数据转发方法
US8855015B2 (en) Techniques for generic pruning in a trill network
CN108111414B (zh) 一种基于段路由的标签部署方法和装置
TW201517654A (zh) 傳輸路徑控制系統
CN112953858A (zh) 虚拟网络中报文的传输方法、电子设备及存储介质
WO2017198088A1 (zh) 资源订阅方法、资源订阅装置和资源订阅系统

Legal Events

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

Ref document number: 17848122

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017848122

Country of ref document: EP

Effective date: 20190318