CN105554176B - Send the method, apparatus and communication system of message - Google Patents

Send the method, apparatus and communication system of message Download PDF

Info

Publication number
CN105554176B
CN105554176B CN201511015520.0A CN201511015520A CN105554176B CN 105554176 B CN105554176 B CN 105554176B CN 201511015520 A CN201511015520 A CN 201511015520A CN 105554176 B CN105554176 B CN 105554176B
Authority
CN
China
Prior art keywords
mac address
mac
address
equipment
broadcasting packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511015520.0A
Other languages
Chinese (zh)
Other versions
CN105554176A (en
Inventor
滕新东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201511015520.0A priority Critical patent/CN105554176B/en
Publication of CN105554176A publication Critical patent/CN105554176A/en
Application granted granted Critical
Publication of CN105554176B publication Critical patent/CN105554176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

A kind of method, apparatus and communication system sending message is provided, this method comprises: load balancing equipment obtains the first mapping relation information, first mapping relation information is used to indicate the mapping relations between the first MAC Address and the second MAC Address, first MAC Address is the MAC Address of communication equipment, second MAC Address is the MAC Address of first port, and first port is the port in gateway for communicating with load balancing equipment;Load balancing equipment is when the source MAC field for receiving communication equipment transmission carries the first data message of the first MAC Address, according to the first mapping relation information, the MAC Address that the target MAC (Media Access Control) address field of first data message carries is changed to the second MAC Address, to generate the second data message;Load balancing equipment sends the second data message to gateway, can be improved the reliability of communication.

Description

Send the method, apparatus and communication system of message
Technical field
The present invention relates to the communications fields, and more particularly, to the method, apparatus and communication system for sending message.
Background technique
Currently, the message of the interaction between user equipment and the network equipment (for example, server) is needed via gateway (Gateway) forwarding of equipment.Gateway can also claim gateway, protocol converter.Gateway is in network layer implementation above net Network interconnection, is most complicated network interconnection apparatus, network interconnection, is only used for two different network interconnections of upper-layer protocol.
In order to improve the performance and treatment effeciency of gateway, multiple gateways can be set by the way of cluster configuration and set Standby (for example, virtualization gateway), that is, cluster provides external equipment (for example, user equipment or network equipment) unified Address (for example, MAC Address), each gateway of cluster internal use address independent.
In order to improve the handling capacity of system entirety, it may be considered that load balancing (also referred to as load balancing) technology is used, Load balancing (Load Balance) is exactly to be balanced, share multiple operating units load (in other words, task) On executed.In this case, need to configure load balancing equipment according to pre-set strategy, it will be from communication equipment Message is distributed to a certain gateway of cluster internal.
Therefore, the message from communication equipment needs that gateway can be reached by the forwarding of load balancing equipment. With such as virtualization and the technologies such as network mapping (netmap) and application, in fact it could happen that load balancing equipment and gateway The case where cannot supporting the promiscuous mode of virtual interface, wherein interface promiscuous mode refers to that the interface can receive all reports Text, even if the target MAC (Media Access Control) address of the message is not the MAC Address of this interface.
In turn, in fact it could happen that such as gateway can not receive communication because that cannot support the promiscuous mode of virtual interface The message transmitted required for equipment, so that it cannot the case where completing message forwarding, has seriously affected the reliability of communication.
Summary of the invention
The embodiment of the present invention provides a kind of method, apparatus and communication system for sending message, can be improved the reliable of communication Property.
In a first aspect, provide a kind of method for sending message, applied to including load balancing equipment and gateway Communication system, the load balancing equipment are only used for processing broadcasting packet or purpose MAC address as the load point The message of the MAC Address of equipment is carried on a shoulder pole, which is only used for processing broadcasting packet or target MAC (Media Access Control) address is the gateway The message of MAC Address, this method comprises: the load balancing equipment obtains the first mapping relation information, first mapping relations letter Breath is used to indicate the mapping relations between the first MAC Address and the second MAC Address, which is the MAC of communication equipment Address, second MAC Address are the MAC Address of first port, which is in the gateway for dividing with the load Carry on a shoulder pole the port of equipment communication;The load balancing equipment is when receiving the first data message of communication equipment transmission, according to this First mapping relation information, by the MAC Address that the target MAC (Media Access Control) address field of first data message carries be changed to this second MAC Address, to generate the second data message, wherein the source MAC field of first data message carries the first MAC Address;The load balancing equipment sends second data message to the gateway.
With reference to first aspect, in the first implementation of first aspect, this method further include: the load balancing equipment The second mapping relation information is obtained, which is used to indicate between first MAC Address and second port Mapping relations, the second port are the ports in the load balancing equipment for communicating with the gateway;And load point It carries on a shoulder pole equipment and sends second data message to the gateway, comprising: the load balancing equipment is believed according to second mapping relations Breath, by the second port, sends second data message to the gateway.
With reference to first aspect and its above-mentioned implementation, in second of implementation of first aspect, the load balancing Equipment obtains the first mapping relation information, comprising: and the load balancing equipment generates at least one first broadcasting packet, and each first The payload segment of broadcasting packet carries the first Internet protocol IP address and first MAC Address, which is used for Request MAC Address corresponding to first IP address;The load balancing equipment sends at least one first broadcasting packet;This is negative Load shares equipment and receives the gateway the first response message that the first broadcasting packet is sent based on the received, first sound The payload segment of message is answered to carry first MAC Address and second MAC Address, which is the gateway It is determined according to first IP address;The load balancing equipment generates first mapping relations letter according to first response message Breath.
With reference to first aspect and its above-mentioned implementation, in the third implementation of first aspect, the load balancing Equipment generates at least one first broadcasting packet, comprising: the load balancing equipment receives the second broadcast of communication equipment transmission Message, the source address field of second broadcasting packet carry first MAC Address, and the payload segment of second broadcasting packet is taken With first IP address and first MAC Address, second broadcasting packet is for requesting MAC corresponding to first IP address Address;The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, and is somebody's turn to do with generating At least one first broadcasting packet.
With reference to first aspect and its above-mentioned implementation, in the 4th kind of implementation of first aspect, the load balancing Equipment obtains third mapping relation information, which is used to indicate first MAC Address and third MAC Address Between mapping relations, which is the MAC that the port of second broadcasting packet is received in the load balancing equipment Address;The load balancing equipment by the MAC Address that the target MAC (Media Access Control) address field of first response message carries be changed to this first MAC Address, and according to the third mapping relation information, the 2nd MAC that the payload segment of first response message is carried Location is changed to the third MAC Address, to generate the second response message;The load balancing equipment to the communication equipment send this second Response message.
With reference to first aspect and its above-mentioned implementation, in the 5th kind of implementation of first aspect, first mapping Relation information is used to indicate between the mark of VLAN corresponding to first MAC Address and the communication equipment and second MAC Address Mapping relations;Or first mapping relation information is used to indicate the mark of VLAN corresponding to the communication equipment and the 2nd MAC Mapping relations between address and first MAC Address.
Second aspect provides a kind of method for sending message, applied to including load balancing equipment and gateway Communication system, the load balancing equipment are only used for processing broadcasting packet or purpose MAC address as the load point The message of the MAC Address of equipment is carried on a shoulder pole, this method comprises: the load balancing equipment obtains the 4th mapping relation information, the 4th reflects The mapping relations that relation information is used to indicate between the first MAC Address and the second Internet protocol IP address are penetrated, or, the 4th mapping Relation information is used to indicate the mapping relations between the first MAC Address and the second MAC Address, which is that communication is set Standby MAC Address, second IP address be the IP address of the communication equipment, which is the MAC of first port Location, the first port are the ports in the gateway for communicating with the load balancing equipment;The load balancing equipment is connecing When receiving the third data message of gateway transmission, according to the 4th mapping relations, by the purpose MAC of the third data message The MAC Address that address field carries is changed to first MAC Address, to generate the 4th data message, wherein the third datagram The purpose IP address field of text carries second IP address, or, the source MAC field of the third data message carries this Second MAC Address;The load balancing equipment sends the 4th data message to the communication equipment.
In conjunction with second aspect, in the first implementation of second aspect, this method further include: this method further include: The load balancing equipment obtain third mapping relation information, the third mapping relation information be used to indicate first MAC Address and Mapping relations between the MAC Address of third port, the third port are used for and the communication equipment in the load balancing equipment The port of communication;And the load balancing equipment sends the 4th data message to the communication equipment, comprising: the load balancing is set For according to the third mapping relation information, by the third port, the 4th data message is sent to the communication equipment.
In conjunction with second aspect and its above-mentioned implementation, in second of implementation of second aspect, reflect when the 4th When penetrating the mapping relations that relation information is used to indicate between the first MAC Address and the second Internet protocol IP address, the load balancing Equipment obtains the 4th mapping relation information, comprising: and the load balancing equipment receives the second broadcasting packet of communication equipment transmission, The source address field of second broadcasting packet carries first MAC Address, and the payload segment of second broadcasting packet carries Second IP address and first MAC Address, second broadcasting packet is for requesting MAC corresponding to second IP address Location;The load balancing equipment generates the 4th mapping relation information according to second broadcasting packet.
In conjunction with second aspect and its above-mentioned implementation, in the third implementation of second aspect, the load balancing Equipment generates the second mapping relation information, which is used to indicate first MAC Address and third MAC Address Between mapping relations, which is the MAC that the port of second broadcasting packet is received in the load balancing equipment Address;The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, to generate simultaneously Send at least one first broadcasting packet;The load balancing equipment receives the gateway the first broadcast report based on the received The first response message that text is sent, the payload segment of first response message is with carrying first MAC Address and the 2nd MAC Location, second MAC Address are that the gateway is determined according to first IP address;The load balancing equipment first responds this The MAC Address that the target MAC (Media Access Control) address field of message carries is changed to first MAC Address, and is believed according to second mapping relations Second MAC Address that the payload segment of first response message carries is changed to the third MAC Address by breath, to generate the Two response messages;The load balancing equipment sends second response message to the communication equipment.
In conjunction with second aspect and its above-mentioned implementation, in the 4th kind of implementation of second aspect, reflect when the 4th When penetrating the mapping relations that relation information is used to indicate between the first MAC Address and the second MAC Address, which is obtained 4th mapping relation information, comprising: the load balancing equipment generates at least one first broadcasting packet, each first broadcasting packet Payload segment carry the first Internet protocol IP address and first MAC Address, first broadcasting packet for request this MAC Address corresponding to one IP address;The load balancing equipment sends at least one first broadcasting packet;The load balancing is set It is standby to receive the gateway the first response message that the first broadcasting packet is sent based on the received, first response message Payload segment carries first MAC Address and second MAC Address, second MAC Address be the gateway according to this What one IP address determined;The load balancing equipment generates the 4th mapping relation information according to first response message.
In conjunction with second aspect and its above-mentioned implementation, in the 5th kind of implementation of second aspect, the load balancing Equipment generates at least one first broadcasting packet, comprising: the load balancing equipment receives the second broadcast of communication equipment transmission Message, the source address field of second broadcasting packet carry first MAC Address, and the payload segment of second broadcasting packet is taken With first IP address and first MAC Address, second broadcasting packet is for requesting MAC corresponding to first IP address Address;The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, and is somebody's turn to do with generating At least one first broadcasting packet.
In conjunction with second aspect and its above-mentioned implementation, in the 6th kind of implementation of second aspect, this method is also wrapped Include: the load balancing equipment obtains third mapping relation information, which is used to indicate first MAC Address With the mapping relations between third MAC Address, which is that the second broadcast report is received in the load balancing equipment The MAC Address of the port of text;The MAC that the load balancing equipment carries the target MAC (Media Access Control) address field of first response message Location is changed to first MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried Second MAC Address be changed to the third MAC Address, to generate the second response message;The load balancing equipment is to the communication Equipment sends second response message.
In conjunction with second aspect and its above-mentioned implementation, in the 7th kind of implementation of second aspect, the 4th mapping Relation information is used to indicate between the mark of VLAN corresponding to first MAC Address and the communication equipment and second MAC Address Mapping relations;Or the 4th mapping relation information be used to indicate VLAN corresponding to the communication equipment mark and the 2nd MAC Mapping relations between address and first MAC Address.
The third aspect provides a kind of device for sending message, which includes for realizing first aspect and first party The module or unit of the method for the transmission message of each implementation in face.
Fourth aspect provides a kind of device for sending message, which includes for realizing second aspect and second party The module or unit of the method for the transmission message of each implementation in face.
5th aspect, provides a kind of communication system, the transmission message including communication equipment, gateway and the third aspect Device or fourth aspect transmission message device, the communication equipment be used for the device send the first data message, the net Equipment is closed for receiving the second data message that the device is sent according to first data message;Or the gateway is used for this Device sends third data message, and the communication equipment is for receiving the 4th data that the device is sent according to the third data message Message.
In certain aspects of the invention, optionally, which is user equipment or the network equipment.
In certain aspects of the invention, optionally, which is virtual equipment, which is void Quasi-ization equipment.
In certain aspects of the invention, optionally, the load balancing equipment and the gateway are configured in same entity In equipment.
In certain aspects of the invention, optionally, each port in the load balancing equipment is network mapping netmap Interface, each port in the gateway are netmap interface.
The method, apparatus and communication system according to an embodiment of the present invention for sending message, by keeping load balancing equipment pre- First obtain record have communication equipment MAC Address and gateway MAC Address mapping relations, communication equipment need via When load balancing equipment and gateway send datagram, the communication can be carried in transmitted source MAC field The MAC Address of load balancing equipment is carried in the target MAC (Media Access Control) address field of the data message of the MAC Address of equipment, so as to Ensure that load balancing equipment can receive and process the data message, also, load balancing equipment can be reflected according to acquired Relationship is penetrated, the MAC Address carried in the target MAC (Media Access Control) address field of the data message is revised as to the MAC Address of the gateway, To even if still being able to really in the case where gateway and load balancing equipment cannot support the promiscuous mode of virtual interface The data message can be received and processed by protecting gateway, and then can ensure the normal forwarding of message, improve the reliable of communication Property.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention Attached drawing is briefly described, it should be apparent that, drawings described below is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the schematic architectural diagram for being applicable in the communication system of the method and apparatus of transmission message of the embodiment of the present invention.
Fig. 2 is the schematic interaction figure of the method 100 of the transmission message of one embodiment of the invention.
Fig. 3 is an example of the concrete application scene of this method 100.
Fig. 4 is another example of the concrete application scene of this method 100.
Fig. 5 is the schematic interaction figure of the method 200 of the transmission message of another embodiment of invention.
Fig. 6 is an example of the concrete application scene of this method 200.
Fig. 7 is another example of the concrete application scene of this method 200.
Fig. 8 is the schematic block diagram of the device of the transmission message of one embodiment of the invention.
Fig. 9 is the schematic block diagram of the device of the transmission message of another embodiment of the present invention.
Figure 10 is the schematic block diagram of the equipment of the transmission message of one embodiment of the invention.
Figure 11 is the schematic block diagram of the equipment of the transmission message of one embodiment of the invention.
Figure 12 is the schematic diagram of an example of the communication system of inventive embodiments.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The method and apparatus provided in an embodiment of the present invention for sending message, can be applied on computer, the computer packet It includes hardware layer, operate in the operating system layer on hardware layer, and operate in the application layer on operating system layer.The hardware layer Including hardware such as CPU, memory management unit (MMU, Memory Management Unit) and memories (also referred to as memory). The operating system can be any one or more computer operating system that business processing is realized by process, for example, Linux System, Unix system, android system, iOS system or windows system etc..The application layer includes browser, address list, text The application such as Word, instant communication software.
Firstly, in conjunction with Fig. 1 to the framework of the communication system of the method and apparatus for the transmission message for being applicable in the embodiment of the present invention And the function and structure of each equipment is illustrated in the communication system.
The communication system that the method and apparatus that Fig. 1 shows the transmission message of the embodiment of the present invention are suitable for it is schematic Structure chart.
As shown in Figure 1, the communication system includes user equipment.
User equipment (UE, User Equipment) can be mobile terminal (Mobile Terminal), mobile subscriber Equipment etc. can be communicated through the media such as Ethernet or optical fiber, for example, user equipment can be using Wireless LAN The mobile terminal of access network based on ethernet such as (WLAN, Wireless Local Area Network), as mobile phone (or be " bee Nest " phone) and computer with mobile terminal, for example, it may be portable, pocket, hand-held, built-in computer or The vehicle-mounted mobile device of person, they and Wireless LAN or Ethernet exchanging language and/or data.Also, user equipment It can be the equipment that computer etc. accesses server by Ethernet or optical fiber etc..
In addition, the present invention is not limited to this although only showing a user equipment in Fig. 1, it can in the communication system To include multiple user equipmenies.
As shown in Figure 1, the communication system further includes one or more user side load balancing equipment (that is, load balancing is set Standby an example).
The user side load balancing equipment and one or more user equipmenies communicate to connect, also, user's lateral load point It carries on a shoulder pole equipment and multiple gateways communicates to connect, for being sent to the received message from user equipment according to default Load balancing from multiple gateways determine intended gateway equipment.In addition, the load balancing equipment be also used to by Message from gateway is sent to user equipment.To which the user side being arranged between user equipment and gateway is negative Load share equipment can will largely concurrently access or data traffic share and being handled respectively in how each gateway, reduce user The time of the wait-for-response of equipment.
It should be noted that the invention mainly relates to load balancing equipment and communication equipment (including the user equipment or after State the network equipment) and a fixed gateway between communication process, such as the above-mentioned load balancing and base Can be similar to the prior art in the other function of the load balancings equipment such as processing of the load balancing, here, in order to keep away Exempt to repeat, description is omitted.Hereinafter, omitting the explanation to same or similar situation.
Also, it in embodiments of the present invention, can be with direct communication between user equipment and user side load balancing equipment It can be communicated via one or more forwarding devices such as interchanger, the present invention is simultaneously not particularly limited.Also, multiple use Different interchangers can also can be used with a public interchanger in family equipment, and the present invention is simultaneously not particularly limited.
As shown in Figure 1, the communication system further includes one or more gateways.
Gateway (Gateway) is also known as gateway, protocol converter.Gateway in network layer implementation above network interconnection, It is most complicated network interconnection apparatus, network interconnection, is only used for two different network interconnections of upper-layer protocol.Gateway both can be used for wide area network Interconnection, can be used for local area network interconnection.Gateway is a kind of computer system or equipment for serving as conversion important task.Using in difference Communication protocol, data format or language in addition the entirely different two kinds of systems of architecture between, gateway is to the information received It repacks, with the demand of adaptation to end system.
It should be noted that the function of gateway and process flow can be with prior art phases in the embodiment of the present invention Seemingly, here, in order to avoid repeating, description is omitted.Hereinafter, omitting the explanation to same or similar situation.
Non-limiting as example, which can be wideband network gateway (BNG, Broadband Network ), or the equipment that is capable of providing BNG function Gateway.
As shown in Figure 1, the communication system further includes one or more network equipments.
In embodiments of the present invention, the network equipment can be the forwarding devices such as router, interchanger.
Alternatively, in embodiments of the present invention, the network equipment, which can be, provides the server of various businesses, example for user equipment Such as, SDN server, WWW (Web) server, File Transfer Protocol (FTP, File Transfer Protocol) service Device, enterprise's key application server and other key task servers (for example, the server of firewall services is provided), communication Service processing board (SPU, Service Process Unit) in the field (CT, Communication Technology) Deng, it should be noted that in this case, can also be through with direct communication between the network equipment and network side load balancing equipment It is communicated by one or more forwarding device such as router, the present invention is simultaneously not particularly limited.Also, multiple network equipments Different routers can also can be used with a public router, the present invention is simultaneously not particularly limited.
As shown in Figure 1, the communication system further includes one or more network side load balancing equipment (that is, load balancing is set Standby another example).
The network side load balancing equipment is connect with one or more network device communications, also, the network lateral load point It carries on a shoulder pole equipment and above-mentioned multiple gateways communicates to connect, for the received message from the network equipment to be sent to basis The intended gateway equipment that preset load balancing is determined from multiple gateways.In addition, the load balancing equipment is also used In the message from gateway is sent to the network equipment.To which the network between the network equipment and gateway be arranged in Lateral load share equipment can will largely concurrently access or data traffic share and being handled respectively in how each gateway, reduce The waiting time of user equipment.
Optionally, which is virtual equipment, which is virtual equipment.
Specifically, in embodiments of the present invention, gateway, which can be operation, to be had for providing gateway function The virtual machine (Virtual Machine) of program, the deploying virtual machine on hardware device (for example, physical server).It is empty Quasi- machine refer to by software simulate with complete hardware system function, operate in complete computation in a completely isolated environment Machine system.Wherein, a physical server has been invented multiple logical computers by virtualization technology, each logic meter Calculation machine is a virtual machine on physical server, and each virtual machine can run different operating system, therefore, Ge Gexu The application program of quasi- machine may operate in the space of mutual independent operating system.
It is non-limiting as example, realize that the virtual machine of gateway function is properly termed as virtual broadband gateway (vBNG, virtual Broadband Network Gateway), also, the related function of traditional BNG equipment may be implemented in vBNG Can, carry out online processing for example, completing to dock the user hung its in network under, for example, accessed based on user, user authentication and Authorization, the basic processes such as distributing user address from the address pool of configuration, and realize the mutual of user data message and network Forwarding etc..
It should be understood that the specific implementation of gateway listed above is merely illustrative, the present invention is not limited In this, traditional entity gateway also can be used.
Also, in embodiments of the present invention, which, which can be operation, has for providing load-balancing function Program virtual machine.
It is non-limiting as example, realize that the virtual machine of load balancing functions of the equipments is properly termed as dummy load and shares to set Standby (vLB, virtual Load Balance), in embodiments of the present invention, user side vLB is (that is, the one of load balancing equipment Example) be responsible for data traffic online to user, user side share, i.e., selected at specific vBNG by Load Sharing Algorithm The upper line process of specific user is managed, and the flow repeating process of user side is completed in the specific vBNG forwarding of selection.Network side vLB The data traffic that (that is, another example of load balancing equipment) is responsible for network side is shared, and the specific vBNG forwarding of selection Complete the flow repeating process of network side.
Optionally, the load balancing equipment and the gateway configure in same entity device.
Specifically, user side vLB and network side vLB and multiple vBNG (in other words, multiple forwarding moulds in a vBNG Block) it can be used as different functional modules and configure in same equipment (or system), in other words, user side vLB and network side VLB and multiple vBNG can be realized by same equipment (or system) by running corresponding program.
In addition, in embodiments of the present invention, it should be configured in the equipment of user side vLB and network side vLB and multiple vBNG The virtual machine (that is, control module) for realizing control function can also be further configured, which can be responsible for issuing to vLB Such as Load Sharing Algorithm etc. controls information, to control the movement of user side vLB and network side vLB and multiple vBNG.
It should be understood that load balancing equipment listed above and the gateway configuration relation are merely illustrative, this hair It is bright to be not limited to this, for example, load balancing equipment and the gateway can also be separately configured.
It should be noted that in embodiments of the present invention, load balancing equipment, which can be operation, to be had for realizing load The hardware device of the virtual machine (in other words, computer program or software) for the function that weighs, also, can only be transported in the hardware device Row has virtual machine corresponding to the load balancing equipment, can also run the virtual machine for realizing other function, the present invention And it is not particularly limited.
Also, a virtual machine for realizing load balancing functions of the equipments can be run in the same physical equipment, To provide the function of a load balancing equipment, alternatively, can also be run in the same physical equipment multiple for realizing negative The virtual machine for sharing functions of the equipments is carried, to provide the function of multiple load balancing equipment, the present invention is simultaneously not particularly limited.
Similarly, in embodiments of the present invention, gateway can be operation and have for realizing the void of gateway function The hardware device of quasi- machine, also, virtual machine corresponding to the gateway function can be only run in the hardware device, The virtual machine for realizing other function can be run, the present invention is simultaneously not particularly limited.
Also, a virtual machine for realizing gateway function can be run, in the same physical equipment to mention For the function of a gateway, alternatively, can also be run in the same physical equipment multiple for realizing gateway function The virtual machine of energy, to provide the function of multiple gateways, the present invention is simultaneously not particularly limited.
Optionally, each port in the load balancing equipment is network mapping netmap interface, each in the gateway Port is netmap interface.
Specifically, the data interaction of user equipment and the network equipment will carry out message receipts by the interface on vBNG Hair, the interface are typically all system (function that hardware vendor provides network interface card and Microsoft Loopback Adapter is placed in firmly by the network interface card of virtualization Part equipment) it is associated with corresponding virtual machine VM, and virtual interface is generated on a virtual machine.For network function as vBNG Equipment, forwarding performance is extremely important, and influence of the transmitting-receiving performance of virtual interface for forwarding performance is very big.Traditional virtually connects Mouth performance is very low, it is difficult to meet forwarding demand, it is therefore desirable to it uses high performance interfacing (for example, netmap technology), it is right Specially treated has been done in the packet sending and receiving of virtual interface, can receive and dispatch message with very high performance.
Netmap is the frame of a high-performance transmitting-receiving raw data packets, and it comprises kernel module and User space library letters Number.Its target is not modify existing operating system software and do not need special hardware support, is realized between User space and network interface card The high-performance of data packet is transmitted.Data packet is handled without operating system nucleus, when user space program sending and receiving data packet, Directly communicated with network interface card.Netmap using multiple technologies such as: memory mapping, circle queue, batch processing etc. are reduced Kernel spacing and the application of user's space memory and release avoid memory in the copy and reduction of kernel spacing and user's space System is called.
It should be understood that interfacing used in load balancing equipment listed above and gateway is merely illustrative Bright, the present invention is not limited to this, for example, it is also possible to be data surface developing instrument external member (DPDK, Intel Data Plane Development Kit) provide interfacing.
In addition, the load balancing equipment is only used for processing broadcasting packet or purpose media interviews control in the communication system MAC Address processed is the message of the MAC Address of the load balancing equipment, which is only used for processing broadcasting packet or purpose MAC Address is the message of the MAC Address of the gateway.
Specifically, for example, since netmap interface is associated with Microsoft Loopback Adapter, and Microsoft Loopback Adapter is really that hardware is set Standby, the requirement in design prevents current Microsoft Loopback Adapter from supporting that (virtual interface mixes the promiscuous mode of virtual interface Mode refers to that the interface can receive all messages, even if the target MAC (Media Access Control) address of the message is not this interface IP address), therefore, In the message received for network interface card, when only target MAC (Media Access Control) address is the interface mac address of netmap interface, which could quilt Netmap interface, therefore, when especially the communication system will realize two layers of transparent forwarding function, due to the purpose of message MAC Address is not the location MAC of local interface, therefore netmap interface cannot receive message at this time, thus also cannot after the completion of Two layers of continuous forward process.VLB needs support two layers of transfer capability, therefore goes wrong when using netmap interface, causes The function of vLB cannot be completed.
It should be understood that the load balancing equipment listed above is only used for processing broadcasting packet or purpose media access control The reason of MAC Address is the message of the MAC Address of the load balancing equipment and the gateway are only used for processing broadcasting packet Or target MAC (Media Access Control) address be the gateway MAC Address message the reason of be merely illustrative, the present invention does not limit especially It is fixed.
In the following, in conjunction with Fig. 2 to Fig. 7 to the method for the transmission message of the embodiment of the present invention executed in above-mentioned communication system Specific steps and process be described in detail.
By taking vLB as an example, the movement of load balancing equipment is carried out detailed in the following description with explanation in order to facilitate understanding It describes in detail bright;By taking vBNG as an example, the movement of gateway is described in detail.
Fig. 2 shows the specific mistakes of the method 100 when the data message transmitted from communication equipment to gateway (vBNG) The schematic interaction figure of journey.
As shown in Fig. 2, this method 100 includes:
110, which obtains the first mapping relation information, which is used to indicate first Mapping relations between MAC Address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, the 2nd MAC Address is the MAC Address of first port, which is to carry in the gateway for transmitting with the load balancing equipment There is the port of the data message of data relevant to the communication equipment;
120, which first reflects when receiving the first data message of communication equipment transmission according to this Relation information is penetrated, the MAC Address that the target MAC (Media Access Control) address field of first data message carries is changed to second MAC Address, To generate the second data message, wherein the source MAC field of first data message carries first MAC Address;
130, which sends second data message to the gateway.
In embodiments of the present invention, which can be user equipment (that is, situation 1), alternatively, the communication equipment It can be the network equipment (that is, situation 2)
In the following, the specific movement of each equipment in the case of both the above is described in detail respectively.
Situation 1
Specifically, Fig. 3 shows the schematic diagram of the communication link between user equipment, user side vLB and vBNG.
As shown in figure 3, user equipment can via interchanger (being not shown in Fig. 3) and user side vLB transmitting message, with Under, in order to facilitate understanding and illustrate, the MAC Address of the user equipment is denoted as: MAC#0a.
It should be noted that in embodiments of the present invention, the quantity of user equipment either one or more It invents and is not particularly limited.
As shown in figure 3, user side vLB may include the port #1a for being communicated with user equipment, hereinafter, in order to It is easy to understand and illustrates, the MAC Address of port #1a is denoted as: MAC#1a.
It should be noted that in embodiments of the present invention, the quantity of port #1a either one or more hair It is bright and be not particularly limited.Also, a port #1a can transmit the data of a user equipment, alternatively, a port #1a The number of multiple user equipmenies can be transmitted by multiple virtual LAN (VLAN, Virtual Local Area Network) According to the present invention is simultaneously not particularly limited.
Also, user side vLB may include the port #2a for being communicated with vBNG, hereinafter, in order to facilitate understanding and Illustrate, the MAC Address of port #2a is denoted as: MAC#2a.
It should be noted that in embodiments of the present invention, the quantity of port #2a either one or more hair It is bright and be not particularly limited.Also, a port #2a can be communicated with a vBNG, alternatively, a port #2a can also pass through Multiple VLAN are communicated with multiple vBNG, and the present invention is simultaneously not particularly limited.
In addition, the quantity of user side vLB is either one or more in the embodiment of the present invention, the present invention is not It is particularly limited to.
As shown in figure 3, vBNG may include the port #3a for being communicated with user side vLB, hereinafter, for the ease of Understand and illustrate, the MAC Address of port #3a is denoted as: MAC#3a.
It should be noted that in embodiments of the present invention, the quantity of port #3a either one or more hair It is bright and be not particularly limited.Also, a port #3a can be used for communicating with a user side vLB, alternatively, a port #1a It can be communicated by multiple VLAN with multiple user side vLB, the present invention is simultaneously not particularly limited.
In addition, the quantity of vBNG is either one or more in the embodiment of the present invention, the present invention is not limited especially It is fixed.
It should be understood that the MAC Address of different port (including the different port in same equipment) is different.
In general, the forwarding network being made of user side vLB and vBNG be for user equipment it is transparent, set in user The target MAC (Media Access Control) address field of standby transmitted data message only carries a MAC Address, also, due to user side vLB and vBNG Not supporting interface mixed mode, that is, the message that target MAC (Media Access Control) address is the device mac address can be only received and processed, therefore, Based on the prior art, it is unable to complete message forwarding.
In contrast, in embodiments of the present invention, user side vLB can be according to preset mapping relation information (that is, first An example of mapping relation information, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relation information #1a), set to from user The MAC carried in the target MAC (Media Access Control) address field of message that is standby and needing to be transmitted to vBNG is replaced, it can be ensured that message it is suitable Benefit forwarding.
In the following, the user side vLB process for obtaining the first mapping relations is described in detail.
Optionally, which obtains the first mapping relation information, comprising:
The load balancing equipment generates at least one first broadcasting packet, and the payload segment of each first broadcasting packet carries There are the first Internet protocol IP address and first MAC Address, first broadcasting packet is for requesting corresponding to first IP address MAC Address;
The load balancing equipment sends at least one first broadcasting packet;
The load balancing equipment receives the gateway the first response that the first broadcasting packet is sent based on the received Message, the payload segment of first response message carry first MAC Address and second MAC Address, second MAC Address It is that the gateway is determined according to first IP address;
The load balancing equipment generates first mapping relation information according to first response message.
Also, optionally, which generates at least one first broadcasting packet, comprising:
The load balancing equipment receives the second broadcasting packet of communication equipment transmission, the source address of second broadcasting packet Field carries first MAC Address, and the payload segment of second broadcasting packet carries first IP address and the first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to first IP address;
The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, with life At least one first broadcasting packet at this, at least one of at least one first broadcasting packet and the load balancing equipment One generic port corresponds, and the source address field of each first broadcasting packet is with carrying the MAC of the first corresponding generic port Location.
Also, optionally, this method further include:
The load balancing equipment generate third mapping relation information, the third mapping relation information be used to indicate this first Mapping relations between MAC Address and third MAC Address, the third MAC Address be received in the load balancing equipment this The MAC Address of the port of two broadcasting packets;
The MAC Address that the target MAC (Media Access Control) address field of first response message carries is changed to this by the load balancing equipment First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The load balancing equipment sends second response message to the communication equipment.
Specifically, in embodiments of the present invention, user side vLB can pass through address resolution protocol (ARP, Address Resolution Protocol) as defined in process, obtain mapping relation information #1a.
Right below, which is described in detail.
Due to forwarding network (including user side vLB) relative to user equipment be it is transparent, user equipment is needing It is communicated with the network equipment when being accessed with finishing service, vBNG can be supplied to the user equipment and (in other words, be used for transmission this User equipment sends or needs to be sent to the message of the user equipment) port (that is, above-mentioned port #3a) IP address (hereinafter, In order to facilitate understanding and illustrate, be denoted as: IP#3a) it is considered as the IP address of the network equipment.
That is, being process of the user equipment according to IP#3a acquisition MAC#3a in ARP process in embodiments of the present invention.
Non-limiting as example, user equipment can be for example, in dynamic host configuration protocol (DHCP, Dynamic Host Configuration Protocol) during, obtain IP#3a.
That is, user equipment when online, can be sent for example, DHCP request message, the DHCP request message are broadcast report Text, wherein the source MAC field in two layers of (MAC layer) ether frame head of the DHCP request message carries the user equipment MAC Address (hereinafter, in order to facilitate understanding and distinguishing, being denoted as MAC#0a), the payload segment of the DHCP request message (or Say, DHCP protocol part) in comprising MAC#0a.
User side vLB is receiving the DHCP request message by the port (for example, port #1a) of user oriented equipment Afterwards, the MAC Address (that is, MAC#0a) in the source MAC field in the ether frame head of the DHCP request message can be replaced For the MAC Address (that is, MAC#2a) of the port (for example, port #2a) towards vBNG of user side vLB, and by the report after change Text is sent to vBNG.
It, can after vBNG receives the DHCP request message in the port (for example, port #3a) by user oriented side vLB To carry out the online place of user comprising MAC#0a according in the payload segment of the DHCP request message (in other words, DHCP protocol part) Reason, that is, for the user equipment distribute IP address (hereinafter, in order to facilitate understanding and distinguish, be denoted as: IP#0a).Since the DHCP is asked Ask the MAC Address in the payload segment of message not replaced by user side vLB, it is accordingly possible to ensure the accuracy of dhcp process and Reliability.In embodiments of the present invention, vBNG can be with prior art phase according to the method and process that MAC Address distributes IP address Seemingly, here, in order to avoid repeating, description is omitted.
It should be noted that in embodiments of the present invention, vBNG can by the source MAC of the DHCP request message received The MAC Address (that is, MAC#2a) carried in the field of location is issued to user's forwarding table (for example it is possible to record the MAC#2a and MAC# The corresponding relationship of 0a) in, in being sent to ether frame head of the MAC Address for the unicast response message of the user equipment of MAC#0a Target MAC (Media Access Control) address field in addition MAC#2a corresponding with the MAC#0a.
It is (wide to send dhcp response message after the IP address (that is, IP#0a) of the user equipment is distributed in determination by vBNG Casting text), which can carry determining as described above IP#0a and IP#3a, and user side vLB is receiving this It after dhcp response message, does not make an amendment, is transmitted directly to user equipment;
User equipment can obtain distributed IP address (that is, IP#0a) as a result, and the vBNG is supplied to the user equipment Port IP address (that is, IP#3a).
Return to the explanation to ARP process.
That is, user equipment port (for example, port #3a, that is, an example of first port) MAC corresponding to request IP#3a When address (an example of the second MAC Address, that is, MAC#3a), it can send for example, ARP request message is (that is, the second broadcasting packet An example), the ARP request message be broadcasting packet, wherein the source in two layers of (MAC layer) ether frame head of the ARP request message MAC Address field carries the MAC Address (an example of the first MAC Address, that is, MAC#0a) of the user equipment, the ARP request report It include MAC# in the payload segment (in other words, ARP protocol part, for example, the source MAC field in ARP protocol part) of text 0a.Also, the payload segment (for example, purpose IP address field) of the ARP request message includes the IP#3a, in addition, the ARP is asked The payload segment (for example, source IP address field) for seeking message includes the IP#0a.
User side vLB is in the port for passing through user oriented equipment (for example, port #1a, that is, an example of aftermentioned third port) After receiving request ARP message, the MAC Address (an example of third MAC Address, that is, MAC#1a) of port #1a can recorde It (that is, an example of third mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping with the mapping relations of the MAC#0a Relation information #3a).To pass through when determining that needs send unicast message to the user equipment that MAC Address is the MAC#0a Port #1a is sent, and in other words, the source MAC of the unicast message is determined as MAC#1a.
Also, user side vLB is by the MAC Address in the source MAC field in the ether frame head of request ARP message (that is, MAC#0a) replace with user side vLB towards vBNG all of the port (e.g., including port #2a, that is, second port An example) MAC Address (e.g., including MAC#2a), and the message (that is, an example of the first broadcasting packet) after change is sent to vBNG。
It should be understood that the method that user side vLB listed above generates the first broadcasting packet is merely illustrative, the present invention Be not limited to this, user side vLB can also be not based on the second broadcasting packet generate the first broadcasting packet, as long as ensure this first Broadcasting packet meets the requirement of ARP, and carries IP#3a and MAC#0a.
VBNG, can be with after receiving the ARP request message by the port (for example, port #3a) of user oriented side vLB It obtains in the payload segment (in other words, ARP protocol part, for example, purpose IP address field) of the ARP request message and includes IP#3a, and determine MAC Address (that is, MAC#3a) corresponding to IP#3a.
It should be noted that in embodiments of the present invention, vBNG can be by the payload segment of the ARP request message received The MAC Address (that is, MAC#2a) carried in (for example, source MAC field in payload segment) is issued to user's forwarding table (example Such as, the corresponding relationship of the MAC#2a and MAC#0a be can recorde, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relations letter Cease #5a) in, to determine the MAC# needed to user side vLB after getting the unicast message for needing to be sent to user equipment Port (that is, port #2a) corresponding to 2a sends the unicast message, and the target MAC (Media Access Control) address in the ether frame head of the message MAC#2a corresponding with the MAC#0a is added in field.
VBNG after determining MAC Address corresponding to the IP#3a (that is, MAC#3a), can by port #3a, to User side vLB sends the arp response message (that is, an example of the first response message) as broadcasting packet, the arp response message (specifically, being the protocol section of arp response message) can carry MAC#3a determining as described above, and, MAC#0a.This In, the positional relationship of MAC#3a and MAC#0a meet preset condition, in order to user side vLB according to the preset condition to MAC#3a It is distinguished with MAC#0a.Also, the destination address field (DAF) in the Ether frame head of the arp response message point can carry MAC# 2a.The target MAC (Media Access Control) address field of the ether frame head of the arp response message can carry true according to above-mentioned mapping relation information #5a Fixed MAC#2a.
To which user side vLB is receiving the arp response message by port (that is, port #2a) corresponding to MAC#2a Later, the MAC#0a and MAC#3a that can be carried according to the payload segment of the arp response message determine above-mentioned mapping relations letter Cease #1a.That is, user side vLB can determine that source MAC field carries the data message of MAC#0a with needing to be sent to MAC Location is the port of the gateway of MAC#3a.
The process that user side vLB obtains above-mentioned mapping relation information #1a is completed as a result,.
In addition, user side vLB is receiving the arp response message by port (that is, port #2a) corresponding to MAC#2a Later, the MAC#0a that can be carried according to the payload segment of the arp response message, the mapping for recording the MAC#2a and MAC#0a are closed System (that is, an example of the second mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping relation information #2a), thus, When user side vLB receives the data message for the user equipment transmission that MAC is the MAC#0a (that is, the ether frame head of data message Source MAC field carry MAC#0a) when, can be determined according to mapping relation information #2a by corresponding to MAC#2a Port (that is, port #2a) forwards the data message.
Thereafter, user side vLB can take the payload segment of the arp response message according to above-mentioned mapping relation information #3a (and the MAC#0a is corresponding) MAC#3a of band replaces with (corresponding with the MAC#0a) MAC#1a, by the arp response message The MAC Address (MAC#2a) that the target MAC (Media Access Control) address field on Ether frame head point carries replaces with MAC#0a.To user side vLB The arp response message after change can be sent to user equipment by port #1a (that is, port that MAC Address is MAC#1a) (that is, an example of the second response message).
To which user equipment can receive the arp response message after change, and can be with ARP based on the received The IP#3a and MAC#1a that the payload segment of response message carries determine that MAC Address corresponding to the IP#3a is MAC#1a.That is, When needing to send datagram to the network equipment, the MAC#1a can be carried in the target MAC (Media Access Control) address field of the data message.
The method according to an embodiment of the present invention for sending message, by obtaining the first mapping relation information using ARP process, The foundation that mapping relations can be completed using existing communication protocol process, without increasing equipment room interaction in communication process, Versatility and practicability of the invention can be further increased.
It should be understood that the method and process that user side vLB listed above obtains the first mapping relations are merely illustrative, The present invention is not limited to this, for example, first mapping relations are also possible to administrator or control equipment is issued and is stored in In user side vLB.
In the following, being illustrated to user side vLB based on the data message forwarding process of first mapping relations.
User equipment is needing to send data to gateway (specifically, being via the gateway to the network equipment) When, it can be generated and send the unicast data message (that is, an example of the first data message) for carrying the data, hereinafter, in order to It is easy to understand and distinguishes, be denoted as data message #a, the target MAC (Media Access Control) address field of data message #a carries the user equipment upper State the MAC Address (that is, MAC#1a) of the port #1a of the user oriented equipment of the user side vLB obtained during ARP.Datagram The source MAC field of literary #a carries the MAC Address (that is, MAC#0a) of the user equipment.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #a is the port of user side vLB The MAC Address of (specifically, being port #1a), therefore, user side vLB can receive and process data message #a.
User side vLB can detect MAC Address entrained by the source MAC field of data message #a (that is, MAC# 0a), and according to the first mapping relations obtained as described above, the port of gateway corresponding with the MAC#0a is determined MAC Address (that is, MAC#3a), thus, the MAC Address that user side vLB can carry the target MAC (Media Access Control) address of data message #a (that is, MAC#1a) replaces with MAC#3a determining as described above.Hereinafter, in order to facilitate understanding and explanation, by change (that is, MAC Location replacement) after above-mentioned data message #a be denoted as data message #a ' (that is, an example of the second data message).
Optionally, this method further include:
The load balancing equipment obtain the second mapping relation information, second mapping relation information be used to indicate this first Mapping relations between MAC Address and second port, the second port are used for and the gateway in the load balancing equipment Transmission carries the port of the data message of data relevant to the communication equipment;And
The load balancing equipment sends second data message to the gateway, comprising:
The load balancing equipment is sent by the second port to the gateway according to second mapping relation information Second data message.
Specifically, for example, which port energy user side vLB also needs to determine when user side vLB includes multiple ports It is enough that data message #a ' is transmitted to gateway (specifically, being the port #3 of gateway).
In this regard, in embodiments of the present invention, user side vLB is available be used to indicate user side vLB can be with this The MAC Address (that is, MAC#2a) of the port (that is, port #2a) of the port #3 communication of gateway is with the MAC of the user equipment The information of mapping relations between location (that is, MAC#0a) is (that is, an example of the second mapping relation information, for example, mapping relations are believed Cease #2a).
For example, in embodiments of the present invention, user side vLB can be during above-mentioned ARP (specifically, being to pass through When port #2a receives the response message of gateway transmission) it generates and stores second mapping relations, detailed process is upper Explanation when to ARP process description is stated, here, in order to avoid repeating, description is omitted.
In addition, the method and process of the second mapping relation information of acquisition listed above are merely illustrative, the present invention It is not limited to this, for example, second mapping relation information can also be issued by administrator or control equipment and be stored in user In the vLB of side.
To which user side vLB can be according to above-mentioned mapping relation information #2a, by the source MAC field of data message #a The MAC Address (that is, MAC#0a) of middle carrying replaces with corresponding with the MAC#0a indicated by second mapping relation information MAC#2a is set with generating above-mentioned data message #a ', and the port (that is, port #2a) for being MAC#2a by MAC Address to gateway Preparation gives data message #a '.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #a ' is the port of the gateway The MAC Address of (specifically, being port #2a), therefore, gateway can receive and process data message #a '.
Complete as a result, user equipment to gateway data message repeating process.
Optionally, which is specifically used for indicating corresponding to first MAC Address, the communication equipment Mapping relations between VLAN mark and second MAC Address.
Specifically, in embodiments of the present invention, mapping relations #1a can specifically indicate that the MAC#0a, the user are set Between the mark (hereinafter, in order to facilitate understanding and distinguishing, being denoted as VLAN mark # γ a) of standby corresponding VLAN and the MAC#3a Mapping relations.
For example, mapping relations #1a can be, the MAC# can be uniquely determined by identifying # γ a by MAC#0a and VLAN 3a, or, can uniquely determine MAC#0a and VLAN by the MAC#3a identifies # γ a.
For example, mapping relations #1a can be, the MAC# can be uniquely determined by identifying # γ a by MAC#0a and VLAN 3a and VLAN mark # γ a (wherein, VLAN identifies the mark that # γ a is also used as VLAN corresponding to the #3 of the port), or, by should MAC#3a and VLAN mark # γ a can uniquely determine MAC#0a and VLAN mark # γ a.
For another example mapping relations #1a can be, this can be uniquely determined by identifying # γ a by MAC#0a and VLAN VLAN corresponding to MAC#3a and port #3 mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # β A), # γ a is identified or, identifying # β a by the MAC#3a and VLAN and can uniquely determine MAC#0a and VLAN.
To which user side vLB can be identified according to the MAC Address and VLAN carried in each data message, be reflected based on above-mentioned It penetrates relationship #1a and carries out above-mentioned MAC Address replacement and data message forwarding.
Situation 2
Specifically, Fig. 4 shows the schematic diagram of the communication link between the network equipment, network side vLB and vBNG.
As shown in figure 4, the network equipment (for example, router) can with network side vLB transmitting message, hereinafter, for the ease of Understand and illustrate, the MAC Address of the network equipment is denoted as: MAC#0b.
It should be noted that in embodiments of the present invention, the quantity of the network equipment either one or more It invents and is not particularly limited.
As shown in figure 4, network side vLB may include the port #1b for being communicated with the network equipment, hereinafter, in order to It is easy to understand and illustrates, the MAC Address of port #1b is denoted as: MAC#1b.
It should be noted that in embodiments of the present invention, the quantity of port #1b either one or more hair It is bright and be not particularly limited.Also, a port #1b can transmit the data of a network equipment, alternatively, a port #1b The number of multiple network equipments can be transmitted by multiple virtual LAN (VLAN, Virtubl Locbl Areb Network) According to the present invention is simultaneously not particularly limited.
Also, network side vLB may include the port #2b for being communicated with vBNG, hereinafter, in order to facilitate understanding and Illustrate, the MAC Address of port #2b is denoted as: MAC#2b.
It should be noted that in embodiments of the present invention, the quantity of port #2b either one or more hair It is bright and be not particularly limited.Also, a port #2b can be communicated with a vBNG, alternatively, a port #2b can also pass through Multiple VLAN are communicated with multiple vBNG, and the present invention is simultaneously not particularly limited.
In addition, the quantity of network side vLB is either one or more in the embodiment of the present invention, the present invention is not It is particularly limited to.
As shown in figure 4, vBNG may include the port #3b for being communicated with network side vLB, hereinafter, for the ease of Understand and illustrate, the MAC Address of port #3b is denoted as: MAC#3b.
It should be noted that in embodiments of the present invention, the quantity of port #3b either one or more hair It is bright and be not particularly limited.Also, a port #3b can be used for communicating with a network side vLB, alternatively, a port #1b It can be communicated by multiple VLAN with multiple network side vLB, the present invention is simultaneously not particularly limited.
In addition, the quantity of vBNG is either one or more in the embodiment of the present invention, the present invention is not limited especially It is fixed.
It should be understood that the MAC Address of different port (including the different port in same equipment) is different
In general, the forwarding network being made of network side vLB and vBNG be for the network equipment it is transparent, set in network The MAC Address field of standby transmitted data message only carries a MAC Address, also, since network side vLB and vBNG are not propped up Hold interface mixed mode, that is, can only receive and process the message that target MAC (Media Access Control) address is the device mac address and therefore be based on The prior art is unable to complete message forwarding.
In contrast, in embodiments of the present invention, network side vLB can be according to preset mapping relation information (that is, first An example of mapping relation information, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relation information #1b), set to automatic network is carried out The MAC carried in the target MAC (Media Access Control) address field of message that is standby and needing to be transmitted to vBNG is replaced, it can be ensured that message it is suitable Benefit forwarding.
In the following, the network side vLB process for obtaining the first mapping relations is described in detail.
For example, in embodiments of the present invention, network side vLB can obtain mapping relations letter by process as defined in ARP Cease #1b.
Right below, which is described in detail.
Due to forwarding network (including network side vLB and vBNG) relative to the network equipment be it is transparent, the network equipment When needs are communicated with user equipment and accessed with finishing service, need to know the port that vBNG is supplied to the network equipment The MAC Address (that is, MAC#3b) of (that is, above-mentioned port #3b).
It in embodiments of the present invention, is IP address of the network equipment according to the vBNG port #3b provided in ARP process (hereinafter, in order to facilitate understanding and explanation, being denoted as: IP#3b) obtains the process of the MAC#3b.Also, it is non-limiting as example, The process that the network equipment obtains the IP#3b may is that vBNG broadcasts the IP#3b to the network equipment by network side vLB.
That is, network equipment port (for example, port #3b, that is, an example of first port) MAC corresponding to request IP#3b When address (an example of the second MAC Address, that is, MAC#3b), it can send for example, ARP request message is (that is, the second broadcasting packet An example), the ARP request message be broadcasting packet, wherein the source in two layers of (MAC layer) ether frame head of the ARP request message MAC Address field carries the MAC Address (an example of the first MAC Address, that is, MAC#0b) of the network equipment, the ARP request report It include MAC# in the payload segment (in other words, ARP protocol part, for example, the source MAC field in ARP protocol part) of text 0b.Also, the payload segment (for example, purpose IP address field) of the ARP request message includes the IP#3b, in addition, the ARP is asked The payload segment (for example, source IP address field) for seeking message includes the IP#0b.
Network side vLB is in the port for passing through network-oriented equipment (for example, port #1b, that is, an example of aftermentioned third port) After receiving request ARP message, the MAC Address (an example of third MAC Address, that is, MAC#1b) of port #1b can recorde It (that is, an example of third mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping with the mapping relations of the MAC#0b Relation information #3b).To pass through when determining that needs send unicast message to the network equipment that MAC Address is the MAC#0b Port #1b is sent, and in other words, the source MAC of the unicast message is determined as MAC#1b.
Also, network side vLB is by the MAC Address in the source MAC field in the ether frame head of request ARP message (that is, MAC#0b) replace with network side vLB towards vBNG all of the port (e.g., including port #2b, that is, second port An example) MAC Address (e.g., including MAC#2b), and the message (that is, an example of the first broadcasting packet) after change is sent to vBNG。
It should be understood that the method that network side vLB listed above generates the first broadcasting packet is merely illustrative, the present invention Be not limited to this, network side vLB can also be not based on the second broadcasting packet generate the first broadcasting packet, as long as ensure this first Broadcasting packet meets the requirement of ARP, and carries IP#3b and MAC#0b.
VBNG, can be with after receiving the ARP request message by the port (for example, port #3b) of network-oriented side vLB It obtains in the payload segment (in other words, ARP protocol part, for example, purpose IP address field) of the ARP request message and includes IP#3b, and determine MAC Address (that is, MAC#3b) corresponding to IP#3b.
It should be noted that in embodiments of the present invention, vBNG can be by the payload segment of the ARP request message received The MAC Address (that is, MAC#2b) carried in (for example, source MAC field in payload segment) is issued to forwarded table (example Such as, the corresponding relationship of the MAC#2b and MAC#0b be can recorde, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relations letter Cease #5b) in, to determine the MAC# needed to network side vLB after getting the unicast message for needing to be sent to the network equipment Port (that is, port #2b) corresponding to 2b sends the unicast message, and the target MAC (Media Access Control) address in the ether frame head of the message MAC#2b corresponding with the MAC#0b is added in field.
VBNG after determining MAC Address corresponding to the IP#3b (that is, MAC#3b), can by port #3b, to Network side vLB sends the arp response message (that is, an example of the first response message) as broadcasting packet, the arp response message (specifically, being the protocol section of arp response message) can carry MAC#3b determining as described above, and, MAC#0b.This In, the positional relationship of MAC#3b and MAC#0b meet preset condition, in order to network side vLB according to the preset condition to MAC#3b It is distinguished with MAC#0b.Also, the destination address field (DAF) in the Ether frame head of the arp response message point can carry MAC# 2b.The target MAC (Media Access Control) address field of the ether frame head of the arp response message can carry true according to above-mentioned mapping relation information #5b Fixed MAC#2b.
To which network side vLB is receiving the arp response message by port (that is, port #2b) corresponding to MAC#2b Later, the MAC#0b and MAC#3b that can be carried according to the payload segment of the arp response message determine above-mentioned mapping relations letter Cease #1b.That is, network side vLB can determine that source MAC field carries the data message of MAC#0b with needing to be sent to MAC Location is the port of the gateway of MAC#3b.
The process that network side vLB obtains above-mentioned mapping relation information #1b is completed as a result,.
In addition, network side vLB is receiving the arp response message by port (that is, port #2b) corresponding to MAC#2b Later, the MAC#0b that can be carried according to the payload segment of the arp response message, the mapping for recording the MAC#2b and MAC#0b are closed System (that is, an example of the second mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping relation information #2b), thus, When network side vLB receives the data message for the network equipment transmission that MAC is the MAC#0b (that is, the ether frame head of data message Source MAC field carry MAC#0b) when, can be determined according to mapping relation information #2b by corresponding to MAC#2b Port (that is, port #2b) forwards the data message.
Thereafter, network side vLB can take the payload segment of the arp response message according to above-mentioned mapping relation information #3b (and the MAC#0b is corresponding) MAC#3b of band replaces with (corresponding with the MAC#0b) MAC#1b, by the arp response message The MAC Address (MAC#2b) that the target MAC (Media Access Control) address field on Ether frame head point carries replaces with MAC#0b.To network side vLB The arp response message after change can be sent to the network equipment by port #1b (that is, port that MAC Address is MAC#1b) (that is, an example of the second response message).
To which the network equipment can receive the arp response message after change, and can be with ARP based on the received The IP#3b and MAC#1b that the payload segment of response message carries determine that MAC Address corresponding to the IP#3b is MAC#1b.That is, When needing to send datagram to the network equipment, the MAC#1b can be carried in the target MAC (Media Access Control) address field of the data message.
The method according to an embodiment of the present invention for sending message, by obtaining the first mapping relation information using ARP process, The foundation that mapping relations can be completed using existing communication protocol process, without increasing equipment room interaction in communication process, Versatility and practicability of the invention can be further increased.
It should be understood that the method and process that network side vLB listed above obtains the first mapping relations are merely illustrative, The present invention is not limited to this, for example, first mapping relations are also possible to administrator or control equipment is issued and is stored in In network side vLB.
In the following, being illustrated to network side vLB based on the data message forwarding process of first mapping relations.
The network equipment is needing to send data to gateway (specifically, being via the gateway to user equipment) When, it can be generated and send the unicast data message (that is, an example of the first data message) for carrying the data, hereinafter, in order to It is easy to understand and distinguishes, be denoted as data message #b, the target MAC (Media Access Control) address field of data message #b carries the network equipment upper State the MAC Address (that is, MAC#1b) of the port #1b of the network-oriented equipment of the network side vLB obtained during ARP.Datagram The source MAC field of literary #b carries the MAC Address (that is, MAC#0b) of the network equipment.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #b is the port of network side vLB The MAC Address of (specifically, being port #1b), therefore, network side vLB can receive and process data message #b.
Network side vLB can detect MAC Address entrained by the source MAC field of data message #b (that is, MAC# 0b), and according to the first mapping relations obtained as described above, the port of gateway corresponding with the MAC#0b is determined MAC Address (that is, MAC#3b), thus, the MAC Address that network side vLB can carry the target MAC (Media Access Control) address of data message #b (that is, MAC#1b) replaces with MAC#3b determining as described above.Hereinafter, in order to facilitate understanding and explanation, by change (that is, MAC Location replacement) after above-mentioned data message #b be denoted as data message #b ' (that is, an example of the second data message).
Optionally, this method further include:
The load balancing equipment obtain the second mapping relation information, second mapping relation information be used to indicate this first Mapping relations between MAC Address and second port, the second port are used for and the gateway in the load balancing equipment Transmission carries the port of the data message of data relevant to the communication equipment;And
The load balancing equipment sends second data message to the gateway, comprising:
The load balancing equipment is sent by the second port to the gateway according to second mapping relation information Second data message.
Specifically, for example, which port energy network side vLB also needs to determine when network side vLB includes multiple ports It is enough that data message #b ' is transmitted to gateway (specifically, being the port #3 of gateway).
In this regard, in embodiments of the present invention, network side vLB is available be used to indicate network side vLB can be with this The MAC Address (that is, MAC#2b) of the port (that is, port #2b) of the port #3 communication of gateway is with the MAC of the network equipment The information of mapping relations between location (that is, MAC#0b) is (that is, an example of the second mapping relation information, for example, mapping relations are believed Cease #2b).
For example, in embodiments of the present invention, network side vLB can be during above-mentioned ARP (specifically, being to pass through When port #2b receives the response message of gateway transmission) it generates and stores second mapping relations, detailed process is upper Explanation when to ARP process description is stated, here, in order to avoid repeating, description is omitted.
In addition, the method and process of the second mapping relation information of acquisition listed above are merely illustrative, the present invention It is not limited to this, for example, second mapping relation information can also be issued by administrator or control equipment and be stored in network In the vLB of side.
To which network side vLB can be according to above-mentioned mapping relation information #2b, by the source MAC field of data message #b The MAC Address (that is, MAC#0b) of middle carrying replaces with corresponding with the MAC#0b indicated by second mapping relation information MAC#2b is set with generating above-mentioned data message #b ', and the port (that is, port #2b) for being MAC#2b by MAC Address to gateway Preparation gives data message #b '.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #b ' is the port of the gateway The MAC Address of (specifically, being port #2b), therefore, gateway can receive and process data message #b '.
Complete as a result, the network equipment to gateway data message repeating process.
In addition, in embodiments of the present invention, mapping relations #1b can specifically indicate the MAC#0b, the user equipment institute Corresponding VLAN mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # γ b) and the MAC#3b between reflect Penetrate relationship.
For example, mapping relations #1b can be, the MAC# can be uniquely determined by identifying # γ b by MAC#0b and VLAN 3b, or, can uniquely determine MAC#0b and VLAN by the MAC#3b identifies # γ b.
For example, mapping relations #1b can be, the MAC# can be uniquely determined by identifying # γ b by MAC#0b and VLAN 3b and VLAN mark # γ b (wherein, VLAN identifies the mark that # γ b is also used as VLAN corresponding to the #3 of the port), or, by should MAC#3b and VLAN mark # γ b can uniquely determine MAC#0b and VLAN mark # γ b.
For another example mapping relations #1a can be, this can be uniquely determined by identifying # γ b by MAC#0b and VLAN VLAN corresponding to MAC#3b and port #3 mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # β B), # γ b is identified or, identifying # β b by the MAC#3b and VLAN and can uniquely determine MAC#0b and VLAN.
To which network side vLB can be identified according to the MAC Address and VLAN carried in each data message, be reflected based on above-mentioned It penetrates relationship #1b and carries out above-mentioned MAC Address replacement and data message forwarding.
The detailed process of method 200 when Fig. 5 is shown from from gateway (vBNG) to communication equipment data message transmission Schematic interaction figure.
As shown in figure 5, this method 200 includes:
S210, the load balancing equipment obtain the 4th mapping relation information, and the 4th mapping relation information is used to indicate the Mapping relations between one MAC Address and the second Internet protocol IP address, or, the 4th mapping relation information is used to indicate first Mapping relations between MAC Address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, the 2nd IP Address is the IP address of the communication equipment, which is the MAC Address of first port, which is the gateway For carrying the data message of data relevant with the communication equipment to load balancing equipment transmission in equipment;
S220, the load balancing equipment are reflected when receiving the third data message of gateway transmission according to the 4th Relationship is penetrated, the MAC Address that the target MAC (Media Access Control) address field of the third data message carries is changed to first MAC Address, with life At the 4th data message, wherein the purpose IP address field of the third data message carries second IP address, or, this The source MAC field of three data messages carries second MAC Address;
S230, the load balancing equipment send the 4th data message to the communication equipment.
In embodiments of the present invention, which can be user equipment (that is, situation 3), alternatively, the communication equipment It can be the network equipment (that is, situation 4)
In the following, the specific movement of each equipment in the case of both the above is described in detail respectively.
Situation 3
Specifically, Fig. 6 shows the schematic diagram of the communication link between user equipment, user side vLB and vBNG.
As shown in fig. 6, user equipment can via interchanger (being not shown in Fig. 6) and user side vLB transmitting message, with Under, in order to facilitate understanding and illustrate, the MAC Address of the user equipment is denoted as: MAC#0c.
It should be noted that in embodiments of the present invention, the quantity of user equipment either one or more It invents and is not particularly limited.
As shown in fig. 6, user side vLB may include the port #1c for being communicated with user equipment, hereinafter, in order to It is easy to understand and illustrates, the MAC Address of port #1c is denoted as: MAC#1c.
It should be noted that in embodiments of the present invention, the quantity of port #1c either one or more hair It is bright and be not particularly limited.Also, a port #1c can transmit the data of a user equipment, alternatively, a port #1c The data of multiple user equipmenies can be transmitted by multiple VLAN, the present invention is simultaneously not particularly limited.
Also, user side vLB may include the port #2c for being communicated with vBNG, hereinafter, in order to facilitate understanding and Illustrate, the MAC Address of port #2c is denoted as: MAC#2c.
It should be noted that in embodiments of the present invention, the quantity of port #2c either one or more hair It is bright and be not particularly limited.Also, a port #2c can be communicated with a vBNG, alternatively, a port #2c can also pass through Multiple VLAN are communicated with multiple vBNG, and the present invention is simultaneously not particularly limited.
In addition, the quantity of user side vLB is either one or more in the embodiment of the present invention, the present invention is not It is particularly limited to.
As shown in fig. 6, vBNG may include the port #3c for being communicated with user side vLB, hereinafter, for the ease of Understand and illustrate, the MAC Address of port #3c is denoted as: MAC#3c.
It should be noted that in embodiments of the present invention, the quantity of port #3c either one or more hair It is bright and be not particularly limited.Also, a port #3c can be used for communicating with a user side vLB, alternatively, a port #1c It can be communicated by multiple VLAN with multiple user side vLB, the present invention is simultaneously not particularly limited.
In addition, the quantity of vBNG is either one or more in the embodiment of the present invention, the present invention is not limited especially It is fixed.
It should be understood that the MAC Address of different port (including the different port in same equipment) is different.
In general, the forwarding network being made of user side vLB and vBNG be for user equipment it is transparent, set in user The MAC Address field of standby transmitted data message only carries a MAC Address, also, since user side vLB and vBNG are not propped up Hold interface mixed mode, that is, can only receive and process the message that target MAC (Media Access Control) address is the device mac address and therefore be based on The prior art is unable to complete message forwarding.
In contrast, in embodiments of the present invention, user side vLB can be according to preset mapping relation information (that is, the 4th An example of mapping relation information, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relation information #4c), set to from user The MAC carried in the target MAC (Media Access Control) address field of message that is standby and needing to be transmitted to vBNG is replaced, it can be ensured that message it is suitable Benefit forwarding.
In the following, the user side vLB process for obtaining the 4th mapping relations is described in detail.
In embodiments of the present invention, in embodiments of the present invention, mapping relation information #4c can serve to indicate that the user The IP address (hereinafter, in order to facilitate understanding and distinguishing, being denoted as: IP#0c) of equipment is with the MAC Address of the user equipment (hereinafter, being Be easy to understand and distinguish, be denoted as: MAC#0c) between mapping relations (that is, mode 1), alternatively, mapping relation information #4c It can serve to indicate that setting for receiving the message from user equipment or needing to be sent to user for transmission for the gateway Standby message port (hereinafter, in order to facilitate understanding and distinguish, be denoted as: port #3c) MAC Address (hereinafter, for the ease of reason Solution and distinguish, be denoted as: MAC#3c) and MAC#0c between mapping relations (that is, mode 2).
In the following, the acquisition process to the mapping relation information of both the above mode and message repeating process carry out in detail respectively Explanation.
Mode 1
Optionally, when the 4th mapping relation information be used to indicate the first MAC Address and the second Internet protocol IP address it Between mapping relations when, the load balancing equipment obtain the 4th mapping relation information, comprising:
The load balancing equipment receives the second broadcasting packet of communication equipment transmission, the source address of second broadcasting packet Field carries first MAC Address, and the payload segment of second broadcasting packet carries second IP address and the first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to second IP address;
The load balancing equipment generates the 4th mapping relation information according to second broadcasting packet.
Also, this method further include:
The load balancing equipment generate the second mapping relation information, second mapping relation information be used to indicate this first Mapping relations between MAC Address and third MAC Address, the third MAC Address be received in the load balancing equipment this The MAC Address of the port of two broadcasting packets;
The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, with life At and send at least one first broadcasting packet, at least one at least one first broadcasting packet and the load balancing equipment A first generic port corresponds, and the source address field of each first broadcasting packet carries the first corresponding generic port MAC Address;
The load balancing equipment receives the gateway the first response that the first broadcasting packet is sent based on the received Message, the payload segment of first response message carry first MAC Address and the second MAC Address, which is The gateway is determined according to first IP address;
The MAC Address that the target MAC (Media Access Control) address field of first response message carries is changed to this by the load balancing equipment First MAC Address, and according to second mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The load balancing equipment sends second response message to the communication equipment.
Specifically, in embodiments of the present invention, user side vLB can lead to process as defined in ARP, the 4th mapping is obtained Relation information.
Right below, which is described in detail.
Due to forwarding network (including user side vLB and vBNG) relative to user equipment be it is transparent, user equipment When needs are communicated with the network equipment and accessed with finishing service, vBNG can be supplied to the user equipment and (in other words, be used for Transmit the user equipment and send or need to be sent to the message of the user equipment) port (that is, above-mentioned port #3c) IP address (hereinafter, in order to facilitate understanding and explanation, be denoted as: IP#3c) be considered as the IP address of the network equipment.
That is, being process of the user equipment according to IP#3c acquisition MAC#3c in ARP process in embodiments of the present invention.
Non-limiting as example, user equipment can obtain IP#3c for example, in dhcp process.
That is, user equipment when online, can be sent for example, DHCP request message, the DHCP request message are broadcast report Text, wherein the source MAC field in two layers of (MAC layer) ether frame head of the DHCP request message carries the user equipment MAC Address (hereinafter, in order to facilitate understanding and distinguishing, being denoted as MAC#0c), the payload segment of the DHCP request message (or Say, DHCP protocol part) in comprising MAC#0c.
User side vLB is receiving the DHCP request message by the port (for example, port #1c) of user oriented equipment Afterwards, the MAC Address (that is, MAC#0c) in the source MAC field in the ether frame head of the DHCP request message can be replaced For the MAC Address (that is, MAC#2c) of the port (for example, port #2c) towards vBNG of user side vLB, and by the report after change Text is sent to vBNG.
It, can after vBNG receives the DHCP request message in the port (for example, port #3c) by user oriented side vLB To carry out the online place of user comprising MAC#0c according in the payload segment of the DHCP request message (in other words, DHCP protocol part) Reason, that is, for the user equipment distribute IP address (hereinafter, in order to facilitate understanding and distinguish, be denoted as: IP#0c).Since the DHCP is asked Ask the MAC Address in the payload segment of message not replaced by user side vLB, it is accordingly possible to ensure the accuracy of dhcp process and Reliability.In embodiments of the present invention, vBNG can be with prior art phase according to the method and process that MAC Address distributes IP address Seemingly, here, in order to avoid repeating, description is omitted.
It should be noted that in embodiments of the present invention, vBNG can by the source MAC of the DHCP request message received The MAC Address (that is, MAC#2c) carried in the field of location is issued to user's forwarding table (for example it is possible to record the MAC#2c and MAC# The corresponding relationship of 0c) in, in being sent to ether frame head of the MAC Address for the unicast response message of the user equipment of MAC#0c Target MAC (Media Access Control) address field in addition MAC#2c corresponding with the MAC#0c.
It is (wide to send dhcp response message after the IP address (that is, IP#0c) of the user equipment is distributed in determination by vBNG Casting text), which can carry determining as described above IP#0c and IP#3c, and user side vLB is receiving this It after dhcp response message, does not make an amendment, directly from being sent to user equipment;
User equipment can obtain distributed IP address (that is, IP#0c) as a result, and the vBNG is supplied to the user equipment Port IP address (that is, IP#3c).
Return to the explanation to ARP process.
That is, user equipment port (for example, port #3c, that is, an example of first port) MAC corresponding to request IP#3c When address (an example of the second MAC Address, that is, MAC#3c), it can send for example, ARP request message is (that is, the second broadcasting packet An example), the ARP request message be broadcasting packet, wherein the source in two layers of (MAC layer) ether frame head of the ARP request message MAC Address field carries the MAC Address (an example of the first MAC Address, that is, MAC#0c) of the user equipment, the ARP request report It include MAC# in the payload segment (in other words, ARP protocol part, for example, the source MAC field in ARP protocol part) of text 0c.Also, the payload segment (for example, purpose IP address field) of the ARP request message includes the IP#3c, in addition, the ARP is asked The payload segment (for example, source IP address field) for seeking message includes the IP#0c.
User side vLB is in the port for passing through user oriented equipment (for example, port #1c, that is, an example of aftermentioned third port) After receiving request ARP message, it can recorde the mapping relations between the IP#0c and the MAC#0c (that is, the 4th mapping relations An example, below in order to facilitate understanding and distinguish, be denoted as: mapping relations #4c-1), that is, user side vLB can determine destination IP The data message that address field carries IP#0c needs to be sent to the user equipment that MAC Address is MAC#0c.
The acquisition process of the 4th mapping relation information is completed as a result,.
Also, user side vLB can also record MAC Address (an example of third MAC Address, that is, MAC# of port #1c 1c) (that is, an example of third mapping relations, hereinafter, in order to facilitate understanding and distinguishing, it is denoted as: reflects with the mapping relations of the MAC#0c Penetrate relation information #3c).To lead to when determining that needs send unicast message to the user equipment that MAC Address is the MAC#0c It crosses port #1c to be sent, in other words, the source MAC of the unicast message is determined as MAC#1c.
Also, user side vLB is by the MAC Address in the source MAC field in the ether frame head of request ARP message (that is, MAC#0c) replace with user side vLB towards vBNG all of the port (e.g., including port #2c, that is, second port An example) MAC Address (e.g., including MAC#2c), and the message (that is, an example of the first broadcasting packet) after change is sent to vBNG。
It should be understood that the method that user side vLB listed above generates the first broadcasting packet is merely illustrative, the present invention Be not limited to this, user side vLB can also be not based on the second broadcasting packet generate the first broadcasting packet, as long as ensure this first Broadcasting packet meets the requirement of ARP, and carries IP#3c and MAC#0c.
VBNG, can be with after receiving the ARP request message by the port (for example, port #3c) of user oriented side vLB It obtains in the payload segment (in other words, ARP protocol part, for example, purpose IP address field) of the ARP request message and includes IP#3c, and determine MAC Address (that is, MAC#3c) corresponding to IP#3c.
It should be noted that in embodiments of the present invention, vBNG can be by the payload segment of the ARP request message received The MAC Address (that is, MAC#2c) carried in (for example, source MAC field in payload segment) is issued to user's forwarding table (example Such as, the corresponding relationship of the MAC#2c and MAC#0c be can recorde, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relations letter Cease #5c) in, to determine the MAC# needed to user side vLB after getting the unicast message for needing to be sent to user equipment Port (that is, port #2c) corresponding to 2c sends the unicast message, and the target MAC (Media Access Control) address in the ether frame head of the message MAC#2c corresponding with the MAC#0c is added in field.
VBNG after determining MAC Address corresponding to the IP#3c (that is, MAC#3c), can by port #3c, to User side vLB sends the arp response message (that is, an example of the first response message) as broadcasting packet, the arp response message (specifically, being the protocol section of arp response message) can carry MAC#3c determining as described above, and, MAC#0c.This In, the positional relationship of MAC#3c and MAC#0c meet preset condition, in order to user side vLB according to the preset condition to MAC#3c It is distinguished with MAC#0c.Also, the destination address field (DAF) in the Ether frame head of the arp response message point can carry MAC# 2c.The target MAC (Media Access Control) address field of the ether frame head of the arp response message can carry true according to above-mentioned mapping relation information #5c Fixed MAC#2c.
In addition, user side vLB is receiving the arp response message by port (that is, port #2c) corresponding to MAC#2c Later, the MAC#0c that can be carried according to the payload segment of the arp response message, the mapping for recording the MAC#2c and MAC#0c are closed System (that is, an example of the second mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping relation information #2c), thus, When user side vLB receives the data message for the user equipment transmission that MAC is the MAC#0c (that is, the ether frame head of data message Source MAC field carry MAC#0c) when, can be determined according to mapping relation information #2c by corresponding to MAC#2c Port (that is, port #2c) forwards the data message.
Thereafter, user side vLB can take the payload segment of the arp response message according to above-mentioned mapping relation information #3c (and the MAC#0c is corresponding) MAC#3c of band replaces with (corresponding with the MAC#0c) MAC#1c, by the arp response message The MAC Address (MAC#2c) that the target MAC (Media Access Control) address field on Ether frame head point carries replaces with MAC#0c.To user side vLB The arp response message after change can be sent to user equipment by port #1c (that is, port that MAC Address is MAC#1c) (that is, an example of the second response message).
To which user equipment can receive the arp response message after change, and can be with ARP based on the received The IP#3c and MAC#1c that the payload segment of response message carries determine that MAC Address corresponding to the IP#3c is MAC#1c.That is, When needing to send datagram to the network equipment, the MAC#1c can be carried in the target MAC (Media Access Control) address field of the data message.
The method according to an embodiment of the present invention for sending message, by obtaining the 4th mapping relation information using ARP process, The foundation that mapping relations can be completed using existing communication protocol process, without increasing equipment room interaction in communication process, Versatility and practicability of the invention can be further increased.
It should be understood that the method and process that user side vLB listed above obtains the 4th mapping relations are merely illustrative, The present invention is not limited to this, for example, the 4th mapping relations are also possible to administrator or control equipment is issued and is stored in In user side vLB.
In the following, being illustrated to user side vLB based on the data message forwarding process of the 4th mapping relations.
Gateway when needing to send data (data are gateways to be obtained from the network equipment) to user equipment, It can be generated and send the unicast data message (that is, an example of third data message) for carrying the data, hereinafter, for the ease of Understand and distinguish, be denoted as: data message #c, wherein data message #c's for example, purpose IP address field carries (for example, net It is user equipment distribution that equipment, which is closed, in above-mentioned dhcp process) IP address (that is, IP#0c) of the user equipment.Also, number The MAC Address (that is, MAC#3c) of the gateway, the mesh of data message #c are carried according to the source MAC field of message #c MAC Address field entrained by MAC Address be user side vLB port (specifically, being port #2c) MAC Address.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #c is the port of user side vLB The MAC Address of (specifically, being port #2c), therefore, user side vLB can receive and process data message #c.
User side vLB can detect IP address entrained by the purpose IP address field of data message #c (that is, IP# 0c), and according to the mapping relations #4-1 obtained as described above, the MAC Address of user equipment corresponding with the IP#0c is determined (that is, MAC#0c), thus, user side vLB can by the target MAC (Media Access Control) address of data message #c carry MAC Address (that is, MAC#3c MAC#0c determining as described above) is replaced with.Hereinafter, in order to facilitate understanding and explanation, by change (that is, MAC Address replaces Change) after above-mentioned data message #c be denoted as data message #c ' (that is, an example of the 4th data message).
Optionally, this method further include:
The load balancing equipment obtain third mapping relation information, the third mapping relation information be used to indicate this first Mapping relations between MAC Address and third port, the third port are used for and the communication equipment in the load balancing equipment Transmission carries the port of the data message of data relevant to the communication equipment;And
The load balancing equipment sends the 4th data message to the communication equipment, comprising:
The load balancing equipment is sent by the third port to the communication equipment according to the third mapping relation information 4th data message.
Specifically, for example, which port energy user side vLB also needs to determine when user side vLB includes multiple ports It is enough that data message #c ' is transmitted to user equipment.
In this regard, in embodiments of the present invention, user side vLB is available be used to indicate user side vLB can be with this User equipment communication port (that is, port #1c) MAC Address (that is, MAC#1c) and the user equipment MAC Address (that is, MAC#0c the information (that is, an example of third mapping relation information, for example, mapping relation information #3c) of the mapping relations between).
For example, in embodiments of the present invention, user side vLB can be during above-mentioned ARP (specifically, being to pass through When port #1c receives the broadcasting packet of user equipment transmission) it generates and stores the third mapping relations, detailed process is upper Explanation when to ARP process description is stated, here, in order to avoid repeating, description is omitted.
In addition, the method and process of acquisition third mapping relation information listed above are merely illustrative, the present invention It is not limited to this, for example, the third mapping relation information can also be issued by administrator or control equipment and be stored in user In the vLB of side.
To which user side vLB can be according to above-mentioned mapping relation information #3c, by the source MAC field of data message #c The MAC Address (that is, MAC#3c) of middle carrying replaces with corresponding with the MAC#0c indicated by the third mapping relation information MAC#1c is set with generating above-mentioned data message #c ', and the port (that is, port #1c) for being MAC#1c by MAC Address to user Preparation gives data message #c '.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #c ' is the MAC of the user equipment Address, therefore, user equipment can receive and process data message #c '.
Complete as a result, gateway to user equipment data message repeating process.
Mode 2
Optionally, when the 4th mapping relation information is used to indicate the mapping between the first MAC Address and the second MAC Address When relationship, which obtains the 4th mapping relation information, comprising:
The load balancing equipment generates at least one first broadcasting packet, and the payload segment of each first broadcasting packet carries There are the first Internet protocol IP address and first MAC Address, first broadcasting packet is for requesting corresponding to first IP address MAC Address;
The load balancing equipment sends at least one first broadcasting packet;
The load balancing equipment receives the gateway the first response that the first broadcasting packet is sent based on the received Message, the payload segment of first response message carry first MAC Address and second MAC Address, second MAC Address It is that the gateway is determined according to first IP address;
The load balancing equipment generates the 4th mapping relation information according to first response message.
Also, the load balancing equipment generates at least one first broadcasting packet, comprising:
The load balancing equipment receives the second broadcasting packet of communication equipment transmission, the source address of second broadcasting packet Field carries first MAC Address, and the payload segment of second broadcasting packet carries first IP address and the first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to first IP address;
The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, with life At least one first broadcasting packet at this, at least one of at least one first broadcasting packet and the load balancing equipment One generic port corresponds, and the source address field of each first broadcasting packet is with carrying the MAC of the first corresponding generic port Location.
Also, this method further include:
The load balancing equipment generate third mapping relation information, the third mapping relation information be used to indicate this first Mapping relations between MAC Address and third MAC Address, the third MAC Address be received in the load balancing equipment this The MAC Address of the port of two broadcasting packets;
The MAC Address that the target MAC (Media Access Control) address field of first response message carries is changed to this by the load balancing equipment First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The load balancing equipment sends second response message to the communication equipment.
Specifically, in embodiments of the present invention, user side vLB can be obtained the 4th and be reflected by process as defined in ARP Penetrate relation information.
Right below, which is described in detail.
Due to forwarding network (including user side vLB and vBNG) relative to user equipment be it is transparent, user equipment When needs are communicated with the network equipment and accessed with finishing service, vBNG can be supplied to the user equipment and (in other words, be used for Transmit the user equipment and send or need to be sent to the message of the user equipment) port (that is, above-mentioned port #3c) IP address (hereinafter, in order to facilitate understanding and explanation, be denoted as: IP#3c) be considered as the IP address of the network equipment.
That is, being process of the user equipment according to IP#3c acquisition MAC#3c in ARP process in embodiments of the present invention.As Example and it is non-limiting, user equipment can obtain IP#3c for example, in dhcp process.
Specifically, user equipment port corresponding to request IP#3c is (for example, port #3c, that is, the one of first port Example) MAC Address (an example of the second MAC Address, that is, MAC#3c) when, can send for example, ARP request message (that is, second is wide Broadcast an example of text), which is broadcasting packet, wherein two layers of (MAC layer) ether frame head of the ARP request message In source MAC field carry the MAC Address (an example of the first MAC Address, that is, MAC#0c) of the user equipment, the ARP Packet in the payload segment (in other words, ARP protocol part, for example, the source MAC field in ARP protocol part) of request message Containing MAC#0c.Also, the payload segment (for example, purpose IP address field) of the ARP request message includes the IP#3c, in addition, should The payload segment (for example, source IP address field) of ARP request message includes the IP#0c.
User side vLB is in the port for passing through user oriented equipment (for example, port #1c, that is, an example of aftermentioned third port) After receiving request ARP message, the MAC Address (an example of third MAC Address, that is, MAC#1c) of port #1c can recorde It (that is, an example of third mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping with the mapping relations of the MAC#0c Relation information #3c).To pass through when determining that needs send unicast message to the user equipment that MAC Address is the MAC#0c Port #1c is sent, and in other words, the source MAC of the unicast message is determined as MAC#1c.
Also, user side vLB is by the MAC Address in the source MAC field in the ether frame head of request ARP message (that is, MAC#0c) replace with user side vLB towards vBNG all of the port (e.g., including port #2c, that is, second port An example) MAC Address (e.g., including MAC#2c), and the message (that is, an example of the first broadcasting packet) after change is sent to vBNG。
It should be understood that the method that user side vLB listed above generates the first broadcasting packet is merely illustrative, the present invention Be not limited to this, user side vLB can also be not based on the second broadcasting packet generate the first broadcasting packet, as long as ensure this first Broadcasting packet meets the requirement of ARP, and carries IP#3c and MAC#0c.
VBNG, can be with after receiving the ARP request message by the port (for example, port #3c) of user oriented side vLB It obtains in the payload segment (in other words, ARP protocol part, for example, purpose IP address field) of the ARP request message and includes IP#3c, and determine MAC Address (that is, MAC#3c) corresponding to IP#3c.
It should be noted that in embodiments of the present invention, vBNG can be by the payload segment of the ARP request message received The MAC Address (that is, MAC#2c) carried in (for example, source MAC field in payload segment) is issued to user's forwarding table (example Such as, the corresponding relationship of the MAC#2c and MAC#0c be can recorde, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relations letter Cease #5c) in, to determine the MAC# needed to user side vLB after getting the unicast message for needing to be sent to user equipment Port (that is, port #2c) corresponding to 2c sends the unicast message, and the target MAC (Media Access Control) address in the ether frame head of the message MAC#2c corresponding with the MAC#0c is added in field.
VBNG after determining MAC Address corresponding to the IP#3c (that is, MAC#3c), can by port #3c, to User side vLB sends the arp response message (that is, an example of the first response message) as broadcasting packet, the arp response message (specifically, being the protocol section of arp response message) can carry MAC#3c determining as described above, and, MAC#0c.This In, the positional relationship of MAC#3c and MAC#0c meet preset condition, in order to user side vLB according to the preset condition to MAC#3c It is distinguished with MAC#0c.Also, the destination address field (DAF) in the Ether frame head of the arp response message point can carry MAC# 2c.The target MAC (Media Access Control) address field of the ether frame head of the arp response message can carry true according to above-mentioned mapping relation information #5c Fixed MAC#2c.
To which user side vLB is receiving the arp response message by port (that is, port #2c) corresponding to MAC#2c Later, the MAC#0c and MAC#3c that can be carried according to the payload segment of the arp response message, determine the 4th mapping relation information (hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relation information #4c-2), that is, user side vLB is with can determining source MAC The data message that location field carries MAC#3c needs to be sent to the user equipment that MAC Address is MAC#0c.
The process that user side vLB obtains above-mentioned 4th mapping relations is completed as a result,.
In addition, user side vLB is receiving the arp response message by port (that is, port #2c) corresponding to MAC#2c Later, the MAC#0c that can be carried according to the payload segment of the arp response message, the mapping for recording the MAC#2c and MAC#0c are closed System (that is, an example of the second mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping relation information #2c), thus, When user side vLB receives the data message for the user equipment transmission that MAC is the MAC#0c (that is, the ether frame head of data message Source MAC field carry MAC#0c) when, can be determined according to mapping relation information #2c by corresponding to MAC#2c Port (that is, port #2c) forwards the data message.
Thereafter, user side vLB can take the payload segment of the arp response message according to above-mentioned mapping relation information #3c (and the MAC#0c is corresponding) MAC#3c of band replaces with (corresponding with the MAC#0c) MAC#1c, by the arp response message The MAC Address (MAC#2c) that the target MAC (Media Access Control) address field on Ether frame head point carries replaces with MAC#0c.To user side vLB The arp response message after change can be sent to user equipment by port #1c (that is, port that MAC Address is MAC#1c) (that is, an example of the second response message).
To which user equipment can receive the arp response message after change, and can be with ARP based on the received The IP#3c and MAC#1c that the payload segment of response message carries determine that MAC Address corresponding to the IP#3c is MAC#1c.That is, When needing to send datagram to the network equipment, the MAC#1c can be carried in the target MAC (Media Access Control) address field of the data message.
The method according to an embodiment of the present invention for sending message, by obtaining the 4th mapping relation information using ARP process, The foundation that mapping relations can be completed using existing communication protocol process, without increasing equipment room interaction in communication process, Versatility and practicability of the invention can be further increased.
It should be understood that the method and process that user side vLB listed above obtains the 4th mapping relations are merely illustrative, The present invention is not limited to this, for example, the 4th mapping relations are also possible to administrator or control equipment is issued and is stored in In user side vLB.
In the following, being illustrated to user side vLB based on the data message forwarding process of the 4th mapping relations.
Gateway when needing to send data (data are gateways to be obtained from the network equipment) to user equipment, It can be generated and send the unicast data message (that is, an example of third data message) for carrying the data, hereinafter, for the ease of Understand and distinguish, be denoted as: data message #c, the source MAC field of data message #c carry the MAC Address of the gateway (that is, MAC#3c), MAC Address entrained by the target MAC (Media Access Control) address field of data message #c are the port of user side vLB The MAC Address (that is, MAC#2c) of (specifically, being port #2c).
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #c is the port of user side vLB The MAC Address of (specifically, being port #2c), therefore, user side vLB can receive and process data message #c.
User side vLB can detect MAC Address entrained by the source MAC field of data message #c (that is, MAC# 3c), and according to the mapping relations #4-2 obtained as described above, the MAC Address of user equipment corresponding with the MAC#3c is determined (that is, MAC#0c), thus, user side vLB can by the target MAC (Media Access Control) address of data message #c carry MAC Address (that is, MAC#2c MAC#0c determining as described above) is replaced with.Hereinafter, in order to facilitate understanding and explanation, by change (that is, MAC Address replaces Change) after above-mentioned data message #c be denoted as data message #c ' (that is, an example of the 4th data message).
Optionally, this method further include:
The load balancing equipment obtain third mapping relation information, the third mapping relation information be used to indicate this first Mapping relations between MAC Address and third port, the third port are used for and the communication equipment in the load balancing equipment Transmission carries the port of the data message of data relevant to the communication equipment;And
The load balancing equipment sends the 4th data message to the communication equipment, comprising:
The load balancing equipment is sent by the third port to the communication equipment according to the third mapping relation information 4th data message.
Specifically, for example, which port energy user side vLB also needs to determine when user side vLB includes multiple ports It is enough that data message #c ' is transmitted to user equipment.
In this regard, in embodiments of the present invention, user side vLB is available be used to indicate user side vLB can be with this User equipment communication port (that is, port #1c) MAC Address (that is, MAC#1c) and the user equipment MAC Address (that is, MAC#0c the information (that is, an example of third mapping relation information, for example, mapping relation information #3c) of the mapping relations between).
For example, in embodiments of the present invention, user side vLB can be during above-mentioned ARP (specifically, being to pass through When port #1c receives the broadcasting packet of user equipment transmission) it generates and stores the third mapping relations, detailed process is upper Explanation when to ARP process description is stated, here, in order to avoid repeating, description is omitted.
In addition, the method and process of acquisition third mapping relation information listed above are merely illustrative, the present invention It is not limited to this, for example, the third mapping relation information can also be issued by administrator or control equipment and be stored in user In the vLB of side.
To which user side vLB can be according to above-mentioned mapping relation information #3c, by the source MAC field of data message #c The MAC Address (that is, MAC#3c) of middle carrying replaces with corresponding with the MAC#0c indicated by the third mapping relation information MAC#1c is set with generating above-mentioned data message #c ', and the port (that is, port #1c) for being MAC#1c by MAC Address to user Preparation gives data message #c '.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #c ' is the MAC of the user equipment Address, therefore, user equipment can receive and process data message #c '.
Complete as a result, gateway to user equipment data message repeating process.
Optionally, the 4th mapping relation information is specifically used for indicating corresponding to second MAC Address, the communication equipment Mapping relations between VLAN mark and first MAC Address.
Specifically, in embodiments of the present invention, mapping relations #4c-2 can specifically indicate the MAC#0c, the user VLAN corresponding to equipment mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # γ c) with the MAC#3c it Between mapping relations.
For example, mapping relations #4c-2 can be, this can be uniquely determined by identifying # γ c by MAC#0c and VLAN MAC#3c, or, can uniquely determine MAC#0c and VLAN by the MAC#3c identifies # γ c.
For example, mapping relations #4c-2 can be, this can be uniquely determined by identifying # γ c by MAC#0c and VLAN MAC#3c and VLAN mark # γ c (wherein, VLAN identifies the mark that # γ c is also used as VLAN corresponding to the #3 of the port), or, logical MAC#0c and VLAN mark # γ c can be uniquely determined by crossing the MAC#3c and VLAN mark # γ c.
For another example mapping relations #4c-2 can be, this can be uniquely determined by identifying # γ c by MAC#0c and VLAN VLAN corresponding to MAC#3c and port #3 mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # β C), # γ c is identified or, identifying # β c by the MAC#3c and VLAN and can uniquely determine MAC#0c and VLAN.
To which user side vLB can be identified according to the MAC Address and VLAN carried in each data message, be reflected based on above-mentioned It penetrates relationship #1c and carries out above-mentioned MAC Address replacement and data message forwarding.
It is according to an embodiment of the present invention send message method, by make the 4th mapping relation information instruction instruction this second Mapping relations between the mark of VLAN corresponding to MAC Address, the communication equipment and first MAC Address, make in gateway When issuing data message to multiple communication equipments with same port, load balancing equipment can be by corresponding to each communication equipment VLAN mark, distinguishes each data message communication equipment to be sent to, and can further increase transmission message of the invention The practicability of method.
Situation 4
Specifically, Fig. 7 shows the schematic diagram of the communication link between the network equipment, network side vLB and vBNG.
As shown in fig. 7, the network equipment (for example, router) and network side vLB transmitting message, hereinafter, in order to facilitate understanding And explanation, the MAC Address of the network equipment is denoted as: MAC#0d.
It should be noted that in embodiments of the present invention, the quantity of the network equipment either one or more It invents and is not particularly limited.
As shown in fig. 7, network side vLB may include the port #1d for being communicated with the network equipment, hereinafter, in order to It is easy to understand and illustrates, the MAC Address of port #1d is denoted as: MAC#1d.
It should be noted that in embodiments of the present invention, the quantity of port #1d either one or more hair It is bright and be not particularly limited.Also, a port #1d can transmit the data of a network equipment, alternatively, a port #1d The data of multiple network equipments can be transmitted by multiple VLAN, the present invention is simultaneously not particularly limited.
Also, network side vLB may include the port #2d for being communicated with vBNG, hereinafter, in order to facilitate understanding and Illustrate, the MAC Address of port #2d is denoted as: MAC#2d.
It should be noted that in embodiments of the present invention, the quantity of port #2d either one or more hair It is bright and be not particularly limited.Also, a port #2d can be communicated with a vBNG, alternatively, a port #2d can also pass through Multiple VLAN are communicated with multiple vBNG, and the present invention is simultaneously not particularly limited.
In addition, the quantity of network side vLB is either one or more in the embodiment of the present invention, the present invention is not It is particularly limited to.
As shown in fig. 7, vBNG may include the port #3d for being communicated with network side vLB, hereinafter, for the ease of Understand and illustrate, the MAC Address of port #3d is denoted as: MAC#3d.
It should be noted that in embodiments of the present invention, the quantity of port #3d either one or more hair It is bright and be not particularly limited.Also, a port #3d can be used for communicating with a network side vLB, alternatively, a port #1d It can be communicated by multiple VLAN with multiple network side vLB, the present invention is simultaneously not particularly limited.
In addition, the quantity of vBNG is either one or more in the embodiment of the present invention, the present invention is not limited especially It is fixed.
It should be understood that the MAC Address of different port (including the different port in same equipment) is different.
In general, the forwarding network being made of network side vLB and vBNG be for the network equipment it is transparent, set in network The MAC Address field of standby transmitted data message only carries a MAC Address, also, since network side vLB and vBNG are not propped up Hold interface mixed mode, that is, can only receive and process the message that target MAC (Media Access Control) address is the device mac address and therefore be based on The prior art is unable to complete message forwarding.
In contrast, in embodiments of the present invention, network side vLB can be according to preset mapping relation information (that is, the 4th An example of mapping relation information, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relation information #4d), set to automatic network is carried out The MAC carried in the target MAC (Media Access Control) address field of message that is standby and needing to be transmitted to vBNG is replaced, it can be ensured that message it is suitable Benefit forwarding.
In the following, the network side vLB process for obtaining the 4th mapping relations is described in detail.
In embodiments of the present invention, in embodiments of the present invention, mapping relation information #4d can serve to indicate that the network The IP address (hereinafter, in order to facilitate understanding and distinguishing, being denoted as: IP#0d) of equipment is with the MAC Address of the network equipment (hereinafter, being Be easy to understand and distinguish, be denoted as: MAC#0d) between mapping relations (that is, mode 3), alternatively, mapping relation information #4d It can serve to indicate that setting for receiving the message from the network equipment or needing to be sent to network for transmission for the gateway Standby message port (hereinafter, in order to facilitate understanding and distinguish, be denoted as: port #3d) MAC Address (hereinafter, for the ease of reason Solution and distinguish, be denoted as: MAC#3d) and MAC#0d between mapping relations (that is, mode 4).
In the following, the acquisition process to the mapping relation information of both the above mode and message repeating process carry out in detail respectively Explanation.
Mode 3
Specifically, in embodiments of the present invention, network side vLB can lead to process as defined in ARP, the 4th mapping is obtained Relation information.
Right below, which is described in detail.
Due to forwarding network (including network side vLB and vBNG) relative to the network equipment be it is transparent, the network equipment When needs are communicated with user equipment and accessed with finishing service, need to know the port that vBNG is supplied to the network equipment The MAC Address (that is, MAC#3d) of (that is, above-mentioned port #3d).
It in embodiments of the present invention, is IP address of the network equipment according to the vBNG port #3d provided in ARP process (hereinafter, in order to facilitate understanding and explanation, being denoted as: IP#3d) obtains the process of the MAC#3d.Also, it is non-limiting as example, The process that the network equipment obtains the IP#3d may is that vBNG broadcasts the IP#3d to the network equipment by network side vLB.
That is, network equipment port (for example, port #3b, that is, an example of first port) MAC corresponding to request IP#3b When address (an example of the second MAC Address, that is, MAC#3b),
In embodiments of the present invention, network equipment port corresponding to request IP#3d is (for example, port #3d, that is, first An example of port) MAC Address (an example of the second MAC Address, that is, MAC#3d) when, can send for example, ARP request message (that is, an example of the second broadcasting packet), the ARP request message are broadcasting packet, wherein two layers of (MAC of the ARP request message Layer) the source MAC field in ether frame head carry the network equipment MAC Address (an example of the first MAC Address, that is, MAC#0d), payload segment (in other words, the ARP protocol part, for example, the source MAC in ARP protocol part of the ARP request message Address field) in include MAC#0d.Also, the payload segment (for example, purpose IP address field) of the ARP request message includes should IP#3d, in addition, the payload segment (for example, source IP address field) of the ARP request message includes the IP#0d.
Network side vLB is in the port for passing through network-oriented equipment (for example, port #1d, that is, an example of aftermentioned third port) After receiving request ARP message, it can recorde the mapping relations between the IP#0d and the MAC#0d (that is, the 4th mapping relations An example, below in order to facilitate understanding and distinguish, be denoted as: mapping relations #4d-1), that is, network side vLB can determine destination IP The data message that address field carries IP#0d needs to be sent to the network equipment that MAC Address is MAC#0d.
The acquisition process of the 4th mapping relation information is completed as a result,.
Also, network side vLB can also record MAC Address (an example of third MAC Address, that is, MAC# of port #1d 1d) (that is, an example of third mapping relations, hereinafter, in order to facilitate understanding and distinguishing, it is denoted as: reflects with the mapping relations of the MAC#0d Penetrate relation information #3d).To lead to when determining that needs send unicast message to the network equipment that MAC Address is the MAC#0d It crosses port #1d to be sent, in other words, the source MAC of the unicast message is determined as MAC#1d.
Also, network side vLB is by the MAC Address in the source MAC field in the ether frame head of request ARP message (that is, MAC#0d) replace with network side vLB towards vBNG all of the port (e.g., including port #2d, that is, second port An example) MAC Address (e.g., including MAC#2d), and the message (that is, an example of the first broadcasting packet) after change is sent to vBNG。
It should be understood that the method that network side vLB listed above generates the first broadcasting packet is merely illustrative, the present invention Be not limited to this, network side vLB can also be not based on the second broadcasting packet generate the first broadcasting packet, as long as ensure this first Broadcasting packet meets the requirement of ARP, and carries IP#3d and MAC#0d.
VBNG, can be with after receiving the ARP request message by the port (for example, port #3d) of network-oriented side vLB It obtains in the payload segment (in other words, ARP protocol part, for example, purpose IP address field) of the ARP request message and includes IP#3d, and determine MAC Address (that is, MAC#3d) corresponding to IP#3d.
It should be noted that in embodiments of the present invention, vBNG can be by the payload segment of the ARP request message received The MAC Address (that is, MAC#2d) carried in (for example, source MAC field in payload segment) is issued to user's forwarding table (example Such as, the corresponding relationship of the MAC#2d and MAC#0d be can recorde, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relations letter Cease #5d) in, to determine the MAC# needed to network side vLB after getting the unicast message for needing to be sent to the network equipment Port (that is, port #2d) corresponding to 2d sends the unicast message, and the target MAC (Media Access Control) address in the ether frame head of the message MAC#2d corresponding with the MAC#0d is added in field.
VBNG after determining MAC Address corresponding to the IP#3d (that is, MAC#3d), can by port #3d, to Network side vLB sends the arp response message (that is, an example of the first response message) as broadcasting packet, the arp response message (specifically, being the protocol section of arp response message) can carry MAC#3d determining as described above, and, MAC#0d.This In, the positional relationship of MAC#3d and MAC#0d meet preset condition, in order to network side vLB according to the preset condition to MAC#3d It is distinguished with MAC#0d.Also, the destination address field (DAF) in the Ether frame head of the arp response message point can carry MAC# 2d.The target MAC (Media Access Control) address field of the ether frame head of the arp response message can carry true according to above-mentioned mapping relation information #5d Fixed MAC#2d.
In addition, network side vLB is receiving the arp response message by port (that is, port #2d) corresponding to MAC#2d Later, the MAC#0d that can be carried according to the payload segment of the arp response message, the mapping for recording the MAC#2d and MAC#0d are closed System (that is, an example of the second mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping relation information #2d), thus, When network side vLB receives the data message for the network equipment transmission that MAC is the MAC#0d (that is, the ether frame head of data message Source MAC field carry MAC#0d) when, can be determined according to mapping relation information #2d by corresponding to MAC#2d Port (that is, port #2d) forwards the data message.
Thereafter, network side vLB can take the payload segment of the arp response message according to above-mentioned mapping relation information #3d (and the MAC#0d is corresponding) MAC#3d of band replaces with (corresponding with the MAC#0d) MAC#1d, by the arp response message The MAC Address (MAC#2d) that the target MAC (Media Access Control) address field on Ether frame head point carries replaces with MAC#0d.To network side vLB The arp response message after change can be sent to the network equipment by port #1d (that is, port that MAC Address is MAC#1d) (that is, an example of the second response message).
To which the network equipment can receive the arp response message after change, and can be with ARP based on the received The IP#3d and MAC#1d that the payload segment of response message carries determine that MAC Address corresponding to the IP#3d is MAC#1d.That is, When needing to send datagram to user equipment, the MAC#1d can be carried in the target MAC (Media Access Control) address field of the data message.
The method according to an embodiment of the present invention for sending message, by obtaining the 4th mapping relation information using ARP process, The foundation that mapping relations can be completed using existing communication protocol process, without increasing equipment room interaction in communication process, Versatility and practicability of the invention can be further increased.
It should be understood that the method and process that network side vLB listed above obtains the 4th mapping relations are merely illustrative, The present invention is not limited to this, for example, the 4th mapping relations are also possible to administrator or control equipment is issued and is stored in In network side vLB.
In the following, being illustrated to network side vLB based on the data message forwarding process of the 4th mapping relations.
Gateway when needing to send data (data are gateways to be obtained from user equipment) to the network equipment, It can be generated and send the unicast data message (that is, an example of third data message) for carrying the data, hereinafter, for the ease of Understand and distinguish, be denoted as: data message #d, wherein data message #d's for example, purpose IP address field carries the network sets Standby IP address (that is, IP#0d).Also, the source MAC field of data message #d carries the MAC Address of the gateway (that is, MAC#3d), MAC Address entrained by the target MAC (Media Access Control) address field of data message #d are the port of network side vLB The MAC Address of (specifically, being port #2d).
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #d is the port of network side vLB The MAC Address of (specifically, being port #2d), therefore, network side vLB can receive and process data message #d.
Network side vLB can detect IP address entrained by the purpose IP address field of data message #d (that is, IP# 0d), and according to the mapping relations #4-1 obtained as described above, the MAC Address of the network equipment corresponding with the IP#0d is determined (that is, MAC#0d), thus, network side vLB can by the target MAC (Media Access Control) address of data message #d carry MAC Address (that is, MAC#3d MAC#0d determining as described above) is replaced with.Hereinafter, in order to facilitate understanding and explanation, by change (that is, MAC Address replaces Change) after above-mentioned data message #d be denoted as data message #d ' (that is, an example of the 4th data message).
Optionally, this method further include:
The load balancing equipment obtain third mapping relation information, the third mapping relation information be used to indicate this first Mapping relations between MAC Address and third port, the third port are used for and the communication equipment in the load balancing equipment Transmission carries the port of the data message of data relevant to the communication equipment;And
The load balancing equipment sends the 4th data message to the communication equipment, comprising:
The load balancing equipment is sent by the third port to the communication equipment according to the third mapping relation information 4th data message.
Specifically, for example, which port energy network side vLB also needs to determine when network side vLB includes multiple ports It is enough that data message #d ' is transmitted to the network equipment.
In this regard, in embodiments of the present invention, network side vLB is available be used to indicate network side vLB can be with this The MAC Address (that is, MAC#1d) of the port (that is, port #1d) of network device communications and the network equipment MAC Address (that is, MAC#0d the information (that is, an example of third mapping relation information, for example, mapping relation information #3d) of the mapping relations between).
For example, in embodiments of the present invention, network side vLB can be during above-mentioned ARP (specifically, being to pass through When port #1d receives the broadcasting packet of network equipment transmission) it generates and stores the third mapping relations, detailed process is upper Explanation when to ARP process description is stated, here, in order to avoid repeating, description is omitted.
In addition, the method and process of acquisition third mapping relation information listed above are merely illustrative, the present invention It is not limited to this, for example, the third mapping relation information can also be issued by administrator or control equipment and be stored in network In the vLB of side.
To which network side vLB can be according to above-mentioned mapping relation information #3d, by the source MAC field of data message #d The MAC Address (that is, MAC#3d) of middle carrying replaces with corresponding with the MAC#0d indicated by the third mapping relation information MAC#1d is set with generating above-mentioned data message #d ', and the port (that is, port #1d) for being MAC#1d by MAC Address to network Preparation gives data message #d '.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #d ' is the MAC of the network equipment Address, therefore, the network equipment can receive and process data message #d '.
Complete as a result, gateway to the network equipment data message repeating process.
Mode 4
Specifically, in embodiments of the present invention, network side vLB can be obtained the 4th and be reflected by process as defined in ARP Penetrate relation information.
Right below, which is described in detail.
It in embodiments of the present invention, is process of the network equipment according to IP#3d acquisition MAC#3d in ARP process.
Specifically, network equipment port corresponding to request IP#3d is (for example, port #3d, that is, the one of first port Example) MAC Address (an example of the second MAC Address, that is, MAC#3d) when, can send for example, ARP request message (that is, second is wide Broadcast an example of text), which is broadcasting packet, wherein two layers of (MAC layer) ether frame head of the ARP request message In source MAC field carry the MAC Address (an example of the first MAC Address, that is, MAC#0d) of the network equipment, the ARP Packet in the payload segment (in other words, ARP protocol part, for example, the source MAC field in ARP protocol part) of request message Containing MAC#0d.Also, the payload segment (for example, purpose IP address field) of the ARP request message includes the IP#3d, in addition, should The payload segment (for example, source IP address field) of ARP request message includes the IP#0d.
Network side vLB is in the port for passing through network-oriented equipment (for example, port #1d, that is, an example of aftermentioned third port) After receiving request ARP message, the MAC Address (an example of third MAC Address, that is, MAC#1d) of port #1d can recorde It (that is, an example of third mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping with the mapping relations of the MAC#0d Relation information #3d).To pass through when determining that needs send unicast message to the network equipment that MAC Address is the MAC#0d Port #1d is sent, and in other words, the source MAC of the unicast message is determined as MAC#1d.
Also, network side vLB is by the MAC Address in the source MAC field in the ether frame head of request ARP message (that is, MAC#0d) replace with network side vLB towards vBNG all of the port (e.g., including port #2d, that is, second port An example) MAC Address (e.g., including MAC#2d), and the message (that is, an example of the first broadcasting packet) after change is sent to vBNG。
It should be understood that the method that network side vLB listed above generates the first broadcasting packet is merely illustrative, the present invention Be not limited to this, network side vLB can also be not based on the second broadcasting packet generate the first broadcasting packet, as long as ensure this first Broadcasting packet meets the requirement of ARP, and carries IP#3d and MAC#0d.
VBNG, can be with after receiving the ARP request message by the port (for example, port #3d) of network-oriented side vLB It obtains in the payload segment (in other words, ARP protocol part, for example, purpose IP address field) of the ARP request message and includes IP#3d, and determine MAC Address (that is, MAC#3d) corresponding to IP#3d.
It should be noted that in embodiments of the present invention, vBNG can be by the payload segment of the ARP request message received The MAC Address (that is, MAC#2d) carried in (for example, source MAC field in payload segment) is issued to user's forwarding table (example Such as, the corresponding relationship of the MAC#2d and MAC#0d be can recorde, hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relations letter Cease #5d) in, to determine the MAC# needed to network side vLB after getting the unicast message for needing to be sent to the network equipment Port (that is, port #2d) corresponding to 2d sends the unicast message, and the target MAC (Media Access Control) address in the ether frame head of the message MAC#2d corresponding with the MAC#0d is added in field.
VBNG after determining MAC Address corresponding to the IP#3d (that is, MAC#3d), can by port #3d, to Network side vLB sends the arp response message (that is, an example of the first response message) as broadcasting packet, the arp response message (specifically, being the protocol section of arp response message) can carry MAC#3d determining as described above, and, MAC#0d.This In, the positional relationship of MAC#3d and MAC#0d meet preset condition, in order to network side vLB according to the preset condition to MAC#3d It is distinguished with MAC#0d.Also, the destination address field (DAF) in the Ether frame head of the arp response message point can carry MAC# 2d.The target MAC (Media Access Control) address field of the ether frame head of the arp response message can carry true according to above-mentioned mapping relation information #5d Fixed MAC#2d.
To which network side vLB is receiving the arp response message by port (that is, port #2d) corresponding to MAC#2d Later, the MAC#0d and MAC#3d that can be carried according to the payload segment of the arp response message, determine the 4th mapping relation information (hereinafter, in order to facilitate understanding and distinguish, be denoted as: mapping relation information #4d-2), that is, network side vLB is with can determining source MAC The data message that location field carries MAC#3d needs to be sent to the network equipment that MAC Address is MAC#0d.
The process that network side vLB obtains above-mentioned 4th mapping relations is completed as a result,.
In addition, network side vLB is receiving the arp response message by port (that is, port #2d) corresponding to MAC#2d Later, the MAC#0d that can be carried according to the payload segment of the arp response message, the mapping for recording the MAC#2d and MAC#0d are closed System (that is, an example of the second mapping relations, hereinafter, in order to facilitate understanding and distinguishing, is denoted as: mapping relation information #2d), thus, When network side vLB receives the data message for the network equipment transmission that MAC is the MAC#0d (that is, the ether frame head of data message Source MAC field carry MAC#0d) when, can be determined according to mapping relation information #2d by corresponding to MAC#2d Port (that is, port #2d) forwards the data message.
Thereafter, network side vLB can take the payload segment of the arp response message according to above-mentioned mapping relation information #3d (and the MAC#0d is corresponding) MAC#3d of band replaces with (corresponding with the MAC#0d) MAC#1d, by the arp response message The MAC Address (MAC#2d) that the target MAC (Media Access Control) address field on Ether frame head point carries replaces with MAC#0d.To network side vLB The arp response message after change can be sent to the network equipment by port #1d (that is, port that MAC Address is MAC#1d) (that is, an example of the second response message).
To which the network equipment can receive the arp response message after change, and can be with ARP based on the received The IP#3d and MAC#1d that the payload segment of response message carries determine that MAC Address corresponding to the IP#3d is MAC#1d.That is, When needing to send datagram to user equipment, the MAC#1d can be carried in the target MAC (Media Access Control) address field of the data message.
The method according to an embodiment of the present invention for sending message, by obtaining the 4th mapping relation information using ARP process, The foundation that mapping relations can be completed using existing communication protocol process, without increasing equipment room interaction in communication process, Versatility and practicability of the invention can be further increased.
It should be understood that the method and process that network side vLB listed above obtains the 4th mapping relations are merely illustrative, The present invention is not limited to this, for example, the 4th mapping relations are also possible to administrator or control equipment is issued and is stored in In network side vLB.
In the following, being illustrated to network side vLB based on the data message forwarding process of the 4th mapping relations.
Gateway when needing to send data (data are gateways to be obtained from user equipment) to the network equipment, It can be generated and send the unicast data message (that is, an example of third data message) for carrying the data, hereinafter, for the ease of Understand and distinguish, be denoted as: data message #d, the source MAC field of data message #d carry the MAC Address of the gateway (that is, MAC#3d), MAC Address entrained by the target MAC (Media Access Control) address field of data message #d are the port of network side vLB The MAC Address (that is, MAC#2d) of (specifically, being port #2d).
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #d is the port of network side vLB The MAC Address of (specifically, being port #2d), therefore, network side vLB can receive and process data message #d.
Network side vLB can detect MAC Address entrained by the source MAC field of data message #d (that is, MAC# 3d), and according to the mapping relations #4-2 obtained as described above, the MAC Address of the network equipment corresponding with the MAC#3d is determined (that is, MAC#0d), thus, network side vLB can by the target MAC (Media Access Control) address of data message #d carry MAC Address (that is, MAC#2d MAC#0d determining as described above) is replaced with.Hereinafter, in order to facilitate understanding and explanation, by change (that is, MAC Address replaces Change) after above-mentioned data message #d be denoted as data message #d ' (that is, an example of the 4th data message).
In addition, for example, network side vLB also needs to determine which port can incite somebody to action when network side vLB includes multiple ports Data message #d ' is transmitted to the network equipment.
In this regard, in embodiments of the present invention, network side vLB is available be used to indicate network side vLB can be with this The MAC Address (that is, MAC#1d) of the port (that is, port #1d) of network device communications and the network equipment MAC Address (that is, MAC#0d the information (that is, an example of third mapping relation information, for example, mapping relation information #3d) of the mapping relations between).
For example, in embodiments of the present invention, network side vLB can be during above-mentioned ARP (specifically, being to pass through When port #1d receives the broadcasting packet of network equipment transmission) it generates and stores the third mapping relations, detailed process is upper Explanation when to ARP process description is stated, here, in order to avoid repeating, description is omitted.
In addition, the method and process of acquisition third mapping relation information listed above are merely illustrative, the present invention It is not limited to this, for example, the third mapping relation information can also be issued by administrator or control equipment and be stored in network In the vLB of side.
To which network side vLB can be according to above-mentioned mapping relation information #3d, by the source MAC field of data message #d The MAC Address (that is, MAC#3d) of middle carrying replaces with corresponding with the MAC#0d indicated by the third mapping relation information MAC#1d is set with generating above-mentioned data message #d ', and the port (that is, port #1d) for being MAC#1d by MAC Address to network Preparation gives data message #d '.
The MAC Address as entrained by the target MAC (Media Access Control) address field of data message #d ' is the MAC of the network equipment Address, therefore, the network equipment can receive and process data message #d '.
Complete as a result, gateway to the network equipment data message repeating process.
Also, in embodiments of the present invention, mapping relations #4d-2 can specifically indicate the MAC#0d, the network equipment Corresponding VLAN mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # γ d) and the MAC#3d between Mapping relations.
For example, mapping relations #4d-2 can be, this can be uniquely determined by identifying # γ d by MAC#0d and VLAN MAC#3d, or, can uniquely determine MAC#0d and VLAN by the MAC#3d identifies # γ d.
For example, mapping relations #4d-2 can be, this can be uniquely determined by identifying # γ d by MAC#0d and VLAN MAC#3d and VLAN mark # γ d (wherein, VLAN identifies the mark that # γ d is also used as VLAN corresponding to the #3 of the port), or, logical MAC#0d and VLAN mark # γ d can be uniquely determined by crossing the MAC#3d and VLAN mark # γ d.
For another example mapping relations #4d-2 can be, this can be uniquely determined by identifying # γ d by MAC#0d and VLAN VLAN corresponding to MAC#3d and port #3 mark (hereinafter, in order to facilitate understanding and distinguish, be denoted as VLAN mark # β D), # γ d is identified or, identifying # β d by the MAC#3d and VLAN and can uniquely determine MAC#0d and VLAN.
To which network side vLB can be identified according to the MAC Address and VLAN carried in each data message, be reflected based on above-mentioned It penetrates relationship #1d and carries out above-mentioned MAC Address replacement and data message forwarding.
It is according to an embodiment of the present invention send message method, by make the 4th mapping relation information instruction instruction this second Mapping relations between the mark of VLAN corresponding to MAC Address, the communication equipment and first MAC Address, make in gateway When issuing data message to multiple communication equipments with same port, load balancing equipment can be by corresponding to each communication equipment VLAN mark, distinguishes each data message communication equipment to be sent to, and can further increase transmission message of the invention The practicability of method.
The method according to an embodiment of the present invention for sending message has communication by making load balancing equipment obtain record in advance The mapping relations of the MAC Address of the MAC Address and gateway of equipment are needed in communication equipment via load balancing equipment and net Equipment is closed when sending datagram, can transmitted source MAC field carry the communication equipment MAC Address number According to the MAC Address for carrying load balancing equipment in the target MAC (Media Access Control) address field of message, so as to ensure load balancing equipment energy The data message is enough received and processed, also, load balancing equipment can be according to acquired mapping relations, by the data message Target MAC (Media Access Control) address field in the MAC Address that carries be revised as the MAC Address of the gateway, thus, even if in gateway In the case where the promiscuous mode that cannot support virtual interface with load balancing equipment, it still is able to ensure that gateway can receive simultaneously The data message is handled, and then can ensure the normal forwarding of message, improves the reliability of communication.
Fig. 8 is the schematic block diagram of the device 300 of the transmission message of one embodiment of the invention.The device 300 is applied to packet The communication system of the device and gateway is included, the device is with being only used for processing broadcasting packet or purpose media access control MAC Location is the message of the MAC Address of the device, which is only used for processing broadcasting packet or target MAC (Media Access Control) address is that the gateway is set The message of standby MAC Address, as shown in figure 8, the device 300 includes:
Acquiring unit 310, for obtaining the first mapping relation information, which is used to indicate first Mapping relations between MAC Address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, the 2nd MAC Address is the MAC Address of first port, which is logical with this for carrying with device transmission in the gateway Believe the port of the data message of the relevant data of equipment;
Receiving unit 320, for receiving the first data message of communication equipment transmission;
Processing unit 330, for the MAC Address of the target MAC (Media Access Control) address field carrying of first data message to be changed to Second MAC Address, to generate the second data message, wherein the source MAC field of first data message carry this One MAC Address;
Transmission unit 340, for sending second data message to the gateway.
Optionally, which is also used to obtain the second mapping relation information, and second mapping relation information is for referring to Show that the mapping relations between first MAC Address and second port, the second port are used for and the gateway in the device Transmission carries the port of the data message of data relevant to the communication equipment;
The processing unit is also used to the device according to second mapping relation information, control the transmission unit by this second Port sends second data message to the gateway.
Optionally, which is also used to generate at least one first broadcasting packet, the load of each first broadcasting packet Lotus part carries the first Internet protocol IP address and first MAC Address, and first broadcasting packet is for requesting the first IP MAC Address corresponding to address;
The transmission unit is also used to send at least one first broadcasting packet;
The receiving unit is also used to receive the gateway the first sound that the first broadcasting packet is sent based on the received Message is answered, the payload segment of first response message carries first MAC Address and second MAC Address, the 2nd MAC Location is that the gateway is determined according to first IP address;
The acquiring unit is specifically used for generating first mapping relation information according to first response message.
Optionally, which is specifically used for receiving the second broadcasting packet that the communication equipment is sent, second broadcast The source address field of message carries first MAC Address, and the payload segment of second broadcasting packet is with carrying the first IP Location and first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to first IP address;
The processing unit is specifically used for changing the MAC Address that the source address field of second broadcasting packet carries, At least one first kind to generate at least one first broadcasting packet, at least one first broadcasting packet and the device Port corresponds, and the source address field of each first broadcasting packet carries the MAC Address of the first corresponding generic port.
Optionally, which is also used to obtain third mapping relation information, and the third mapping relation information is for referring to Show the mapping relations between first MAC Address and third MAC Address, the third MAC Address be received in the device this The MAC Address of the port of two broadcasting packets;
The processing unit is also used to for the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The transmission unit is also used to send second response message to the communication equipment.
Optionally, which is specifically used for indicating corresponding to first MAC Address, the communication equipment Mapping relations between VLAN mark and second MAC Address.
Each unit or module in the device 300 be respectively used to execute the above method 100 in load balancing equipment (for example, User side load balancing equipment or network side load balancing equipment) performed by movement and function, the movement of gateway and function Can in the above method 100 gateway (movement and function are similar, also, the communication equipment movement and function with it is upper The movement for stating the communication equipment (for example, user equipment or network equipment) in method 100 is similar with function, here in order to avoid superfluous It states, description is omitted.
The device according to an embodiment of the present invention for sending message has communication by making load balancing equipment obtain record in advance The mapping relations of the MAC Address of the MAC Address and gateway of equipment are needed in communication equipment via load balancing equipment and net Equipment is closed when sending datagram, can transmitted source MAC field carry the communication equipment MAC Address number According to the MAC Address for carrying load balancing equipment in the target MAC (Media Access Control) address field of message, so as to ensure load balancing equipment energy The data message is enough received and processed, also, load balancing equipment can be according to acquired mapping relations, by the data message Target MAC (Media Access Control) address field in the MAC Address that carries be revised as the MAC Address of the gateway, thus, even if in gateway In the case where the promiscuous mode that cannot support virtual interface with load balancing equipment, it still is able to ensure that gateway can receive simultaneously The data message is handled, and then can ensure the normal forwarding of message, improves the reliability of communication.
Fig. 9 is the schematic block diagram of the device 400 of the transmission message of another embodiment of the present invention.The device 400 is applied to Communication system including device and gateway, the device is with being only used for processing broadcasting packet or purpose media access control MAC Location is the message of the MAC Address of the device, as shown in figure 3, the device 400 includes:
Acquiring unit 410, for obtaining the 4th mapping relation information, the 4th mapping relation information is used to indicate first Mapping relations between MAC Address and the second Internet protocol IP address, or, the 4th mapping relation information is used to indicate first Mapping relations between MAC Address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, the 2nd IP Address is the IP address of the communication equipment, which is the MAC Address of first port, which is the gateway For carrying the data message of data relevant with the communication equipment to device transmission in equipment;
Receiving unit 420, for receiving the third data message of gateway transmission;
Processing unit 430 is used for according to the 4th mapping relations, by the target MAC (Media Access Control) address field of the third data message The MAC Address of carrying is changed to first MAC Address, to generate the 4th data message, wherein the purpose of the third data message IP address field carries second IP address, or, the source MAC field of the third data message carries the 2nd MAC Address;
Transmission unit 440, for sending the 4th data message to the communication equipment.
Optionally, which is also used to obtain third mapping relation information, and the third mapping relation information is for referring to Show that the mapping relations between first MAC Address and the MAC Address of third port, the third port are used for and this in the device Communication equipment transmission carries the port of the data message of data relevant to the communication equipment;
The processing unit is specifically used for controlling the transmission unit according to the third mapping relation information and passing through the third end Mouthful, the 4th data message is sent to the communication equipment.
Optionally, when the 4th mapping relation information be used to indicate the first MAC Address and the second Internet protocol IP address it Between mapping relations when,
The receiving unit is also used to receive the second broadcasting packet of communication equipment transmission, the source of second broadcasting packet Location field carries first MAC Address, the payload segment of second broadcasting packet carry second IP address and this first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to second IP address;
The acquiring unit is specifically used for generating the 4th mapping relation information according to second broadcasting packet.
Optionally, which is also used to obtain the second mapping relation information, and second mapping relation information is for referring to Show the mapping relations between first MAC Address and third MAC Address, the third MAC Address be received in the device this The MAC Address of the port of two broadcasting packets;
The processing unit is also used to change the MAC Address that the source address field of second broadcasting packet carries, with At least one first broadcasting packet is generated, the first generic port of at least one of at least one first broadcasting packet and the device It corresponds, the source address field of each first broadcasting packet carries the MAC Address of the first corresponding generic port;
The transmission unit is also used to send at least one first broadcasting packet
The receiving unit is also used to receive the gateway the first sound that the first broadcasting packet is sent based on the received Message is answered, the payload segment of first response message carries first MAC Address and the second MAC Address, second MAC Address It is that the gateway is determined according to first IP address;
The processing unit is also used to for the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to First MAC Address, and according to second mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The transmission unit is also used to send second response message to the communication equipment.
Optionally, when the 4th mapping relation information is used to indicate the mapping between the first MAC Address and the second MAC Address When relationship,
The processing unit is also used to generate at least one first broadcasting packet, and the payload segment of each first broadcasting packet is taken With the first Internet protocol IP address and first MAC Address, first broadcasting packet is right for requesting first IP address The MAC Address answered;
The transmission unit is also used to send at least one first broadcasting packet;
The receiving unit is also used to receive the gateway the first sound that the first broadcasting packet is sent based on the received Message is answered, the payload segment of first response message carries first MAC Address and second MAC Address, the 2nd MAC Location is that the gateway is determined according to first IP address;
The acquiring unit is specifically used for generating the 4th mapping relation information according to first response message.
Optionally, which is also used to receive the second broadcasting packet of communication equipment transmission, the second broadcast report The source address field of text carries first MAC Address, and the payload segment of second broadcasting packet carries first IP address With first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to first IP address;
The processing unit is specifically used for changing the MAC Address that the source address field of second broadcasting packet carries, At least one first kind to generate at least one first broadcasting packet, at least one first broadcasting packet and the device Port corresponds, and the source address field of each first broadcasting packet carries the MAC Address of the first corresponding generic port.
Optionally, which is also used to obtain third mapping relation information, and the third mapping relation information is for referring to Show the mapping relations between first MAC Address and third MAC Address, the third MAC Address be received in the device this The MAC Address of the port of two broadcasting packets;
The processing unit is also used to for the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The transmission unit is also used to send second response message to the communication equipment.
Optionally, the 4th mapping relation information is specifically used for indicating corresponding to second MAC Address, the communication equipment Mapping relations between VLAN mark and first MAC Address.
Each unit or module in the device 400 be respectively used to execute the above method 200 in load balancing equipment (for example, User side load balancing equipment or network side load balancing equipment) performed by movement and function, the movement of gateway and function Can in the above method 200 gateway (movement and function are similar, also, the communication equipment movement and function with it is upper The movement for stating the communication equipment (for example, user equipment or network equipment) in method 200 is similar with function, here in order to avoid superfluous It states, description is omitted.
The device according to an embodiment of the present invention for sending message has communication by making load balancing equipment obtain record in advance The mapping relations of the MAC Address of the MAC Address and gateway of equipment are needed in communication equipment via load balancing equipment and net Equipment is closed when sending datagram, can transmitted source MAC field carry the communication equipment MAC Address number According to the MAC Address for carrying load balancing equipment in the target MAC (Media Access Control) address field of message, so as to ensure load balancing equipment energy The data message is enough received and processed, also, load balancing equipment can be according to acquired mapping relations, by the data message Target MAC (Media Access Control) address field in the MAC Address that carries be revised as the MAC Address of the gateway, thus, even if in gateway In the case where the promiscuous mode that cannot support virtual interface with load balancing equipment, it still is able to ensure that gateway can receive simultaneously The data message is handled, and then can ensure the normal forwarding of message, improves the reliability of communication.
Figure 10 is the schematic block diagram of the equipment 500 of the transmission message of one embodiment of the invention.The equipment 500 is applied to packet The communication system of the device and gateway is included, the equipment is with being only used for processing broadcasting packet or purpose media access control MAC Location is the message of the MAC Address of the equipment, which is only used for processing broadcasting packet or target MAC (Media Access Control) address is that the gateway is set The message of standby MAC Address processor 510 and is received as shown in figure 4, the equipment 500 includes: processor 510 and transceiver 520 It sends out device 520 to be connected, optionally, which further includes memory 530, and memory 530 is connected with processor 510, further may be used Selection of land, the equipment 500 include bus system 540.Wherein, processor 510, memory 530 and transceiver 520 can pass through bus System 540 is connected, which can be used for store instruction, which is used to execute the memory 530 storage Instruction receives information or signal to control transceiver 520;
The processor 510 is used to indicate the first MAC for obtaining the first mapping relation information, first mapping relation information Mapping relations between address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, the 2nd MAC Location is the MAC Address of first port, which is in the gateway for carrying and the communication with device transmission The port of the data message of the relevant data of equipment;
The processor 510 is used to control transceiver 520 and receives the first data message that the communication equipment is sent;
The processor 510 is used to the MAC Address that the target MAC (Media Access Control) address field of first data message carries being changed to this Second MAC Address, to generate the second data message, wherein the source MAC field of first data message carry this first MAC Address;
The processor 510 sends second data message to the gateway for controlling transceiver 520.
Optionally, which is used to indicate for obtaining the second mapping relation information, second mapping relation information Mapping relations between first MAC Address and second port, the second port are in the device for passing with the gateway The port of the defeated data message for carrying data relevant to the communication equipment;
The processor 510 is used to control the transceiver by the second port, to this according to second mapping relation information Gateway sends second data message.
Optionally, the processor 510 is for generating at least one first broadcasting packet, the load of each first broadcasting packet Part carries the first Internet protocol IP address and first MAC Address, and first broadcasting packet is for requesting the first IP MAC Address corresponding to location;
The processor 510 sends at least one first broadcasting packet for controlling transceiver 520;
The processor 510 receives the gateway the first broadcasting packet based on the received for controlling transceiver 520 The first response message sent, the payload segment of first response message is with carrying first MAC Address and the 2nd MAC Location, second MAC Address are that the gateway is determined according to first IP address;
The processor 510 is used to generate first mapping relation information according to first response message.
Optionally, which is used to control transceiver 520 and receives the second broadcasting packet that the communication equipment is sent, The source address field of second broadcasting packet carries first MAC Address, and the payload segment of second broadcasting packet carries First IP address and first MAC Address, second broadcasting packet is for requesting MAC corresponding to first IP address Location;
The processor 510 is used to change the MAC Address that the source address field of second broadcasting packet carries, with life At least one first broadcasting packet at this, the first generic port of at least one of at least one first broadcasting packet and the device It corresponds, the source address field of each first broadcasting packet carries the MAC Address of the first corresponding generic port.
Optionally, for obtaining third mapping relation information, which is used to indicate the processor 510 Mapping relations between first MAC Address and third MAC Address, the third MAC Address be received in the device this second The MAC Address of the port of broadcasting packet;
The processor 510 is used to the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to this First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The processor 510 sends second response message to the communication equipment for controlling transceiver 520.
Optionally, which is specifically used for indicating corresponding to first MAC Address, the communication equipment Mapping relations between VLAN mark and second MAC Address.
It should be understood that in embodiments of the present invention, which can be central processing unit (Central Processing Unit, referred to as " CPU "), which can also be other general processors, digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device, discrete gate Or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also be with It is any conventional processor etc..
The memory 530 may include read-only memory and random access memory, and to processor 510 provide instruction and Data.The a part of of memory 530 can also include nonvolatile RAM.For example, memory 530 can also be deposited Store up the information of device type.
The bus system 540 can also include power bus, control bus and status signal in addition to including data/address bus Bus etc..But for the sake of clear explanation, various buses are all designated as bus system 540 in figure.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor 510 Or the instruction of software form is completed.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware Reason device executes completion, or in processor hardware and software module combine and execute completion.Software module can be located at random Memory, flash memory, read-only memory, the abilities such as programmable read only memory or electrically erasable programmable memory, register In the storage medium of domain maturation.The storage medium is located at memory 530, and processor 510 reads the information in memory 530, knot Close the step of its hardware completes the above method.To avoid repeating, it is not detailed herein.
Each unit or module in the equipment 500 be respectively used to execute the above method 100 in load balancing equipment (for example, User side load balancing equipment or network side load balancing equipment) performed by movement and function, the movement of gateway and function Can in the above method 100 gateway (movement and function are similar, also, the communication equipment movement and function with it is upper The movement for stating the communication equipment (for example, user equipment or network equipment) in method 100 is similar with function, here in order to avoid superfluous It states, description is omitted.
The equipment according to an embodiment of the present invention for sending message has communication by making load balancing equipment obtain record in advance The mapping relations of the MAC Address of the MAC Address and gateway of equipment are needed in communication equipment via load balancing equipment and net Equipment is closed when sending datagram, can transmitted source MAC field carry the communication equipment MAC Address number According to the MAC Address for carrying load balancing equipment in the target MAC (Media Access Control) address field of message, so as to ensure load balancing equipment energy The data message is enough received and processed, also, load balancing equipment can be according to acquired mapping relations, by the data message Target MAC (Media Access Control) address field in the MAC Address that carries be revised as the MAC Address of the gateway, thus, even if in gateway In the case where the promiscuous mode that cannot support virtual interface with load balancing equipment, it still is able to ensure that gateway can receive simultaneously The data message is handled, and then can ensure the normal forwarding of message, improves the reliability of communication.
Figure 11 is the schematic block diagram of the equipment 600 of the transmission message of one embodiment of the invention.The equipment 600 is applied to packet The communication system of the equipment 600 and gateway is included, which is only used for processing broadcasting packet or purpose media interviews control MAC Address processed is the message of the MAC Address of the device, which includes: processor 610 and transceiver 620, processor 610 It is connected with transceiver 620, optionally, which further includes memory 630, and memory 630 is connected with processor 610, into one Optionally, which includes bus system 640 to step.Wherein, processor 610, memory 630 and transceiver 620 can pass through Bus system 640 is connected, which can be used for store instruction, which deposits for executing the memory 630 The instruction of storage receives information or signal to control transceiver 620;
The processor 610 is used to indicate the first MAC for obtaining the 4th mapping relation information, the 4th mapping relation information Mapping relations between address and the second Internet protocol IP address, or, the 4th mapping relation information is with being used to indicate the first MAC Mapping relations between location and the second MAC Address, first MAC Address are the MAC Address of communication equipment, which is The IP address of the communication equipment, second MAC Address are the MAC Address of first port, which is in the gateway For carrying the data message of data relevant with the communication equipment to device transmission;
The processor 610 is used to control the transceiver 620 and receives the third data message that gateway is sent;
The processor 610 is used to be taken the target MAC (Media Access Control) address field of the third data message according to the 4th mapping relations The MAC Address of band is changed to first MAC Address, to generate the 4th data message, wherein the destination IP of the third data message Address field carries second IP address, or, the source MAC field of the third data message is with carrying the 2nd MAC Location;
The processor 610 sends the 4th data message to the communication equipment for controlling the transceiver 620.
Optionally, for obtaining third mapping relation information, which is used to indicate the processor 610 Mapping relations between first MAC Address and the MAC Address of third port, the third port are in the device for logical with this Letter equipment transmission carries the port of the data message of data relevant to the communication equipment;
The processor 610 is used to control the transceiver 620 according to the third mapping relation information and pass through the third port, The 4th data message is sent to the communication equipment.
Optionally, when the 4th mapping relation information be used to indicate the first MAC Address and the second Internet protocol IP address it Between mapping relations when,
The processor 610 is used to control the transceiver 620 and receives the second broadcasting packet that the communication equipment is sent, this second The source address field of broadcasting packet carries first MAC Address, the payload segment of second broadcasting packet carry this second IP address and first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to second IP address;
The processor 610 is used to generate the 4th mapping relation information according to second broadcasting packet.
Optionally, which is used to indicate for obtaining the second mapping relation information, second mapping relation information Mapping relations between first MAC Address and third MAC Address, the third MAC Address be received in the device this second The MAC Address of the port of broadcasting packet;
The processor 610 is used to change the MAC Address that the source address field of second broadcasting packet carries, with life At at least one the first broadcasting packet, the first generic port one of at least one of at least one first broadcasting packet and the device One is corresponding, and the source address field of each first broadcasting packet carries the MAC Address of the first corresponding generic port;
The processor 610 sends at least one first broadcasting packet for controlling the transceiver 620
The processor 610 receives the gateway the first broadcast report based on the received for controlling the transceiver 620 The first response message that text is sent, the payload segment of first response message is with carrying first MAC Address and the 2nd MAC Location, second MAC Address are that the gateway is determined according to first IP address;
The processor 610 is used to the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to this First MAC Address, and according to second mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The processor 610 sends second response message to the communication equipment for controlling the transceiver 620.
Optionally, when the 4th mapping relation information is used to indicate the mapping between the first MAC Address and the second MAC Address When relationship,
The processor 610 for generating at least one first broadcasting packet, take by the payload segment of each first broadcasting packet With the first Internet protocol IP address and first MAC Address, first broadcasting packet is right for requesting first IP address The MAC Address answered;
The processor 610 sends at least one first broadcasting packet for controlling the transceiver 620;
The processor 610 receives the gateway the first broadcast report based on the received for controlling the transceiver 620 The first response message that text is sent, the payload segment of first response message is with carrying first MAC Address and the 2nd MAC Location, second MAC Address are that the gateway is determined according to first IP address;
The processor 610 is used to generate the 4th mapping relation information according to first response message.
Optionally, which is used to control the transceiver 620 and receives the second broadcast report that the communication equipment is sent Text, the source address field of second broadcasting packet carry first MAC Address, and the payload segment of second broadcasting packet carries There are first IP address and first MAC Address, second broadcasting packet is for requesting MAC corresponding to first IP address Location;
The processor 610 is used to change the MAC Address that the source address field of second broadcasting packet carries, with life At least one first broadcasting packet at this, the first generic port of at least one of at least one first broadcasting packet and the device It corresponds, the source address field of each first broadcasting packet carries the MAC Address of the first corresponding generic port.
Optionally, for obtaining third mapping relation information, which is used to indicate the processor 610 Mapping relations between first MAC Address and third MAC Address, the third MAC Address be received in the device this second The MAC Address of the port of broadcasting packet;
The processor 610 is used to the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to this First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried this second MAC Address is changed to the third MAC Address, to generate the second response message;
The processor 610 sends second response message to the communication equipment for controlling the transceiver 620.
Optionally, the 4th mapping relation information is specifically used for indicating corresponding to second MAC Address, the communication equipment Mapping relations between VLAN mark and first MAC Address.
It should be understood that in embodiments of the present invention, which can be central processing unit (Central Processing Unit, referred to as " CPU "), which can also be other general processors, digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device, discrete gate Or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also be with It is any conventional processor etc..
The memory 630 may include read-only memory and random access memory, and to processor 610 provide instruction and Data.The a part of of memory 630 can also include nonvolatile RAM.For example, memory 630 can also be deposited Store up the information of device type.
The bus system 640 can also include power bus, control bus and status signal in addition to including data/address bus Bus etc..But for the sake of clear explanation, various buses are all designated as bus system 640 in figure.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor 610 Or the instruction of software form is completed.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware Reason device executes completion, or in processor hardware and software module combine and execute completion.Software module can be located at random Memory, flash memory, read-only memory, the abilities such as programmable read only memory or electrically erasable programmable memory, register In the storage medium of domain maturation.The storage medium is located at memory 630, and processor 610 reads the information in memory 630, knot Close the step of its hardware completes the above method.To avoid repeating, it is not detailed herein.
Each unit or module in the equipment 600 be respectively used to execute the above method 200 in load balancing equipment (for example, User side load balancing equipment or network side load balancing equipment) performed by movement and function, the movement of gateway and function Can in the above method 200 gateway (movement and function are similar, also, the communication equipment movement and function with it is upper The movement for stating the communication equipment (for example, user equipment or network equipment) in method 200 is similar with function, here in order to avoid superfluous It states, description is omitted.
The equipment according to an embodiment of the present invention for sending message has communication by making load balancing equipment obtain record in advance The mapping relations of the MAC Address of the MAC Address and gateway of equipment are needed in communication equipment via load balancing equipment and net Equipment is closed when sending datagram, can transmitted source MAC field carry the communication equipment MAC Address number According to the MAC Address for carrying load balancing equipment in the target MAC (Media Access Control) address field of message, so as to ensure load balancing equipment energy The data message is enough received and processed, also, load balancing equipment can be according to acquired mapping relations, by the data message Target MAC (Media Access Control) address field in the MAC Address that carries be revised as the MAC Address of the gateway, thus, even if in gateway In the case where the promiscuous mode that cannot support virtual interface with load balancing equipment, it still is able to ensure that gateway can receive simultaneously The data message is handled, and then can ensure the normal forwarding of message, improves the reliability of communication.
Figure 12 is the schematic diagram of the communication system 700 of another embodiment of the present invention, which includes:
Communication equipment 710;
Load balancing equipment 720;
Gateway 730;
The communication equipment 710 is used to send the first data message to the load balancing equipment 720, which uses In receiving the second data message for sending according to first data message of the load balancing equipment 720;Or
The gateway 30 is used to send third data message to the load balancing equipment 720, which is used for Receive the 4th data message that the load balancing equipment 720 is sent according to the third data message.
Wherein, load balancing equipment 720 is for executing load balancing equipment in the above method 200 (for example, user's lateral load Share equipment or network side load balancing equipment) performed by movement and function, the movement of gateway 730 and function with it is above-mentioned (movement is similar with function, also, movement and function and the above method of the communication equipment 710 for gateway in method 200 The movement of communication equipment (for example, user equipment or network equipment) in 200 is similar with function, here in order to avoid repeating, saves Slightly its detailed description.
Communication system according to an embodiment of the present invention has communication equipment by making load balancing equipment obtain record in advance The mapping relations of MAC Address and the MAC Address of gateway are needed in communication equipment via load balancing equipment and gateway When sending datagram, can transmitted source MAC field carry the communication equipment MAC Address data message Target MAC (Media Access Control) address field in carry load balancing equipment MAC Address, so as to ensure that load balancing equipment can receive And the data message is handled, also, load balancing equipment can be according to acquired mapping relations, by the purpose of the data message The MAC Address carried in MAC Address field is revised as the MAC Address of the gateway, thus, even if in gateway and load In the case where sharing the promiscuous mode that equipment cannot support virtual interface, it still is able to ensure that gateway can receive and process this Data message, and then can ensure the normal forwarding of message, improve the reliability of communication.
It should be understood that in embodiments of the present invention, being only used for closing each mapping to the specific restriction of the title of each mapping relations System distinguishes, and does not constitute limit to the appearance sequence (in other words, dependence) between each mapping relations in practical applications It is fixed, for example, can also be appeared in front of " the 4th mapping relations " can appear in " the second mapping relations " in practical applications After " the second mapping relations ";For another example " the second mapping relations " can appear in " the first mapping relations " in practical applications Before, after can also appearing in " the first mapping relations ", the present invention is simultaneously not particularly limited.
It is closed in addition, being used to indicate the mapping between the first MAC Address and the second MAC Address in the 4th mapping relation information In the case where system, the 4th mapping relation information can be identical with the first mapping relation information.
It should be understood that the terms "and/or", only a kind of incidence relation for describing affiliated partner, expression can deposit In three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B. In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (29)

1. a kind of method for sending message, which is characterized in that applied to the communication system including load balancing equipment and gateway System, the load balancing equipment is only used for processing broadcasting packet or purpose MAC address is the load balancing The message of the MAC Address of equipment, the gateway is only used for processing broadcasting packet or target MAC (Media Access Control) address is the gateway MAC Address message, which comprises
The load balancing equipment obtains the first mapping relation information, and first mapping relation information is used to indicate the first MAC Mapping relations between address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, described second MAC Address is the MAC Address of first port, and the first port is used for and the load balancing equipment in the gateway The port of communication;
The load balancing equipment is when receiving the first data message that the communication equipment is sent, according to first mapping Relation information, the MAC Address that the target MAC (Media Access Control) address field of first data message is carried is with being changed to the 2nd MAC Location, to generate the second data message, wherein the source MAC field of first data message is with carrying the first MAC Location;
The load balancing equipment sends second data message to the gateway.
2. the method according to claim 1, wherein the method also includes:
The load balancing equipment obtains the second mapping relation information, and second mapping relation information is used to indicate described first Mapping relations between MAC Address and second port, the second port are used for and the net in the load balancing equipment Close the port of equipment communication;And
The load balancing equipment sends second data message to the gateway, comprising:
The load balancing equipment is according to second mapping relation information, by the second port, to the gateway Send second data message.
3. method according to claim 1 or 2, which is characterized in that the load balancing equipment obtains the first mapping relations Information, comprising:
The load balancing equipment generates at least one first broadcasting packet, and the payload segment of each first broadcasting packet carries First Internet protocol IP address and first MAC Address, first broadcasting packet is for requesting the first IP address institute Corresponding MAC Address;
The load balancing equipment sends at least one described first broadcasting packet;
The load balancing equipment receives the gateway the first response that the first broadcasting packet is sent based on the received Message, the payload segment of first response message carry first MAC Address and second MAC Address, and described Two MAC Address are that the gateway is determined according to first IP address;
The load balancing equipment generates first mapping relation information according to first response message.
4. according to the method described in claim 3, it is characterized in that, the load balancing equipment generates at least one first broadcast Message, comprising:
The load balancing equipment receives the second broadcasting packet that the communication equipment is sent, the source of second broadcasting packet Location field carries first MAC Address, the payload segment of second broadcasting packet carry first IP address and First MAC Address, second broadcasting packet is for requesting MAC Address corresponding to first IP address;
The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, with life At at least one described first broadcasting packet.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The load balancing equipment obtains third mapping relation information, and the third mapping relation information is used to indicate described first Mapping relations between MAC Address and third MAC Address, the third MAC Address are received in the load balancing equipment The MAC Address of the port of second broadcasting packet;
The MAC Address that the target MAC (Media Access Control) address field of first response message carries is changed to institute by the load balancing equipment The first MAC Address is stated, and according to the third mapping relation information, the institute that the payload segment of first response message is carried It states the second MAC Address and is changed to the third MAC Address, to generate the second response message;
The load balancing equipment sends second response message to the communication equipment.
6. method according to claim 1 or 2, which is characterized in that first mapping relation information is used to indicate following Corresponding relationship between two group informations: the mark of VLAN corresponding to first MAC Address and the communication equipment, described second MAC Address;Or
First mapping relation information is used to indicate the corresponding relationship between following two group information: corresponding to the communication equipment VLAN mark and second MAC Address, first MAC Address.
7. a kind of method for sending message, which is characterized in that applied to the communication system including load balancing equipment and gateway System, the load balancing equipment is only used for processing broadcasting packet or purpose MAC address is the load balancing The message of the MAC Address of equipment, which comprises
The load balancing equipment obtains the 4th mapping relation information, and the 4th mapping relation information is used to indicate the first MAC Mapping relations between address and the second Internet protocol IP address, or, the 4th mapping relation information is used to indicate the first MAC Mapping relations between address and the second MAC Address, first MAC Address are the MAC Address of communication equipment, the 2nd IP Address is the IP address of the communication equipment, and second MAC Address is the MAC Address of first port, and the first port is Port in the gateway for being communicated with the load balancing equipment;
The load balancing equipment is closed when receiving the third data message of gateway transmission according to the 4th mapping The MAC Address that the target MAC (Media Access Control) address field of the third data message carries is changed to first MAC Address, with life by system At the 4th data message, wherein the purpose IP address field of the third data message carries second IP address, or, The source MAC field of the third data message carries second MAC Address;
The load balancing equipment sends the 4th data message to the communication equipment.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The load balancing equipment obtains third mapping relation information, and the third mapping relation information is used to indicate described first Mapping relations between MAC Address and the MAC Address of third port, the third port are used in the load balancing equipment With the port of the communication apparatus communication;And
The load balancing equipment sends the 4th data message to the communication equipment, comprising:
The load balancing equipment is according to the third mapping relation information, by the third port, to the communication equipment Send the 4th data message.
9. method according to claim 7 or 8, which is characterized in that when the 4th mapping relation information is used to indicate When mapping relations between one MAC Address and the second Internet protocol IP address, the load balancing equipment obtains the 4th mapping and closes It is information, comprising:
The load balancing equipment receives the second broadcasting packet that the communication equipment is sent, the source of second broadcasting packet Location field carries first MAC Address, the payload segment of second broadcasting packet carry second IP address and First MAC Address, second broadcasting packet is for requesting MAC Address corresponding to second IP address;
The load balancing equipment generates the 4th mapping relation information according to second broadcasting packet.
10. according to the method described in claim 9, it is characterized in that, the method also includes:
The load balancing equipment generates the second mapping relation information, and second mapping relation information is used to indicate described first Mapping relations between MAC Address and third MAC Address, the third MAC Address are received in the load balancing equipment The MAC Address of the port of second broadcasting packet;
The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, with life At and send at least one first broadcasting packet, the payload segment of each first broadcasting packet is with carrying the first Internet protocol IP Location and first MAC Address, first broadcasting packet is for requesting MAC Address corresponding to first IP address;
The load balancing equipment receives the gateway the first response that the first broadcasting packet is sent based on the received Message, the payload segment of first response message carry first MAC Address and the second MAC Address, the 2nd MAC Address is that the gateway is determined according to first IP address;
The MAC Address that the target MAC (Media Access Control) address field of first response message carries is changed to institute by the load balancing equipment The first MAC Address is stated, and according to second mapping relation information, the institute that the payload segment of first response message is carried It states the second MAC Address and is changed to the third MAC Address, to generate the second response message;
The load balancing equipment sends second response message to the communication equipment.
11. method according to claim 7 or 8, which is characterized in that when the 4th mapping relation information is used to indicate When mapping relations between one MAC Address and the second MAC Address, the load balancing equipment obtains the 4th mapping relation information, Include:
The load balancing equipment generates at least one first broadcasting packet, and the payload segment of each first broadcasting packet carries First Internet protocol IP address and first MAC Address, first broadcasting packet is for requesting the first IP address institute Corresponding MAC Address;
The load balancing equipment sends at least one described first broadcasting packet;
The load balancing equipment receives the gateway the first response that the first broadcasting packet is sent based on the received Message, the payload segment of first response message carry first MAC Address and second MAC Address, and described Two MAC Address are that the gateway is determined according to first IP address;
The load balancing equipment generates the 4th mapping relation information according to first response message.
12. according to the method for claim 11, which is characterized in that it is first wide that the load balancing equipment generates at least one Casting text, comprising:
The load balancing equipment receives the second broadcasting packet that the communication equipment is sent, the source of second broadcasting packet Location field carries first MAC Address, the payload segment of second broadcasting packet carry first IP address and First MAC Address, second broadcasting packet is for requesting MAC Address corresponding to first IP address;
The MAC Address that the load balancing equipment carries the source address field of second broadcasting packet changes, with life At at least one described first broadcasting packet.
13. according to the method for claim 12, which is characterized in that the method also includes:
The load balancing equipment obtains third mapping relation information, and the third mapping relation information is used to indicate described first Mapping relations between MAC Address and third MAC Address, the third MAC Address are received in the load balancing equipment The MAC Address of the port of second broadcasting packet;
The MAC Address that the target MAC (Media Access Control) address field of first response message carries is changed to institute by the load balancing equipment The first MAC Address is stated, and according to the third mapping relation information, the institute that the payload segment of first response message is carried It states the second MAC Address and is changed to the third MAC Address, to generate the second response message;
The load balancing equipment sends second response message to the communication equipment.
14. according to the method for claim 11, which is characterized in that the 4th mapping relation information is used to indicate following two Corresponding relationship between group information: the mark of VLAN corresponding to first MAC Address and the communication equipment, described second MAC Address;Or
4th mapping relation information is used to indicate the corresponding relationship between following two group information: corresponding to the communication equipment VLAN mark and second MAC Address, first MAC Address.
15. a kind of device for sending message, which is characterized in that applied to the communication system including described device and gateway, Described device be only used for processing broadcasting packet or purpose MAC address be described device MAC Address message, The gateway be only used for processing broadcasting packet or target MAC (Media Access Control) address be the gateway MAC Address message, it is described Device includes:
Acquiring unit, for obtaining the first mapping relation information, first mapping relation information is used to indicate the first MAC Address And the second mapping relations between MAC Address, first MAC Address is the MAC Address of communication equipment, the 2nd MAC Location is the MAC Address of first port, and the first port is the port in the gateway for communicating with described device;
Receiving unit, the first data message sent for receiving the communication equipment;
Processing unit, for the MAC Address of the target MAC (Media Access Control) address field of first data message carrying to be changed to described the Two MAC Address, to generate the second data message, wherein the source MAC field of first data message carries described One MAC Address;
Transmission unit, for sending second data message to the gateway.
16. device according to claim 15, which is characterized in that the acquiring unit is also used to obtain the second mapping relations Information, second mapping relation information is used to indicate the mapping relations between first MAC Address and second port, described Second port is the port in described device for communicating with the gateway;
The processing unit is also used to control the transmission unit according to second mapping relation information and pass through the second end Mouthful, second data message is sent to the gateway.
17. device according to claim 15 or 16, which is characterized in that the processing unit is also used to generate at least one First broadcasting packet, the payload segment of each first broadcasting packet carry the first Internet protocol IP address and the first MAC Address, first broadcasting packet is for requesting MAC Address corresponding to first IP address;
The transmission unit is also used to send at least one described first broadcasting packet;
The receiving unit is also used to receive the gateway the first sound that the first broadcasting packet is sent based on the received Message is answered, the payload segment of first response message carries first MAC Address and second MAC Address, described Second MAC Address is that the gateway is determined according to first IP address;
The acquiring unit is used to generate first mapping relation information according to first response message.
18. device according to claim 17, which is characterized in that the receiving unit is for receiving the communication equipment hair The second broadcasting packet sent, the source address field of second broadcasting packet carry first MAC Address, and described second is wide The payload segment of casting text carries first IP address and first MAC Address, and second broadcasting packet is for asking Seek MAC Address corresponding to first IP address;
The processing unit is used to change the MAC Address that the source address field of second broadcasting packet carries, with life At at least one described first broadcasting packet.
19. device according to claim 18, which is characterized in that the acquiring unit is also used to obtain third mapping relations Information, the third mapping relation information are used to indicate the mapping relations between first MAC Address and third MAC Address, The third MAC Address is the MAC Address that the port of second broadcasting packet is received in described device;
The processing unit is also used to for the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried Second MAC Address is changed to the third MAC Address, to generate the second response message;
The transmission unit is also used to send second response message to the communication equipment.
20. device according to claim 15 or 16, which is characterized in that first mapping relation information is used to indicate down Corresponding relationship between two group information of column: the mark of VLAN corresponding to first MAC Address and the communication equipment, described the Between two MAC Address;Or
First mapping relation information is used to indicate the corresponding relationship between following two group information: corresponding to the communication equipment VLAN mark and second MAC Address, first MAC Address.
21. a kind of device for sending message, which is characterized in that described applied to the communication system including device and gateway Device be only used for processing broadcasting packet or purpose MAC address be described device MAC Address message, it is described Device includes:
Acquiring unit, for obtaining the 4th mapping relation information, the 4th mapping relation information is used to indicate the first MAC Address With the mapping relations between the second Internet protocol IP address, or, the 4th mapping relation information is used to indicate the first MAC Address And the second mapping relations between MAC Address, first MAC Address is the MAC Address of communication equipment, second IP address It is the IP address of the communication equipment, second MAC Address is the MAC Address of first port, and the first port is described Port in gateway for being communicated with described device;
Receiving unit, for receiving the third data message of gateway transmission;
Processing unit, for according to the 4th mapping relations, the target MAC (Media Access Control) address field of the third data message to be carried MAC Address be changed to first MAC Address, to generate the 4th data message, wherein the purpose of the third data message IP address field carries second IP address, or, the source MAC field of the third data message carries described Two MAC Address;
Transmission unit, for sending the 4th data message to the communication equipment.
22. device according to claim 21, which is characterized in that the acquiring unit is also used to obtain third mapping relations Information, the third mapping relation information are used to indicate the mapping between first MAC Address and the MAC Address of third port Relationship, the third port are in described device for the port with the communication apparatus communication;
The processing unit is used to control the transmission unit according to the third mapping relation information and pass through the third end Mouthful, the 4th data message is sent to the communication equipment.
23. the device according to claim 21 or 22, which is characterized in that when the 4th mapping relation information is used to indicate When mapping relations between the first MAC Address and the second Internet protocol IP address,
The receiving unit is also used to receive the second broadcasting packet that the communication equipment is sent, the source of second broadcasting packet Address field carries first MAC Address, and the payload segment of second broadcasting packet carries second IP address With first MAC Address, second broadcasting packet is for requesting MAC Address corresponding to second IP address;
The acquiring unit is used to generate the 4th mapping relation information according to second broadcasting packet.
24. device according to claim 23, which is characterized in that the acquiring unit is also used to obtain the second mapping relations Information, second mapping relation information are used to indicate the mapping relations between first MAC Address and third MAC Address, The third MAC Address is the MAC Address that the port of second broadcasting packet is received in described device;
The processing unit is also used to change the MAC Address that the source address field of second broadcasting packet carries, with Generate at least one first broadcasting packet, the payload segment of each first broadcasting packet carry the first Internet protocol IP address and First MAC Address, first broadcasting packet is for requesting MAC Address corresponding to first IP address;
The transmission unit is also used to send at least one described first broadcasting packet
The receiving unit is also used to receive the gateway the first sound that the first broadcasting packet is sent based on the received Answer message, the payload segment of first response message carries first MAC Address and the second MAC Address, and described second MAC Address is that the gateway is determined according to first IP address;
The processing unit is also used to for the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to First MAC Address, and according to second mapping relation information, the payload segment of first response message is carried Second MAC Address is changed to the third MAC Address, to generate the second response message;
The transmission unit is also used to send second response message to the communication equipment.
25. the device according to claim 21 or 22, which is characterized in that when the 4th mapping relation information is used to indicate When mapping relations between the first MAC Address and the second MAC Address,
The processing unit is also used to generate at least one first broadcasting packet, and the payload segment of each first broadcasting packet carries There are the first Internet protocol IP address and first MAC Address, first broadcasting packet is for requesting first IP address Corresponding MAC Address;
The transmission unit is also used to send at least one described first broadcasting packet;
The receiving unit is also used to receive the gateway the first sound that the first broadcasting packet is sent based on the received Message is answered, the payload segment of first response message carries first MAC Address and second MAC Address, described Second MAC Address is that the gateway is determined according to first IP address;
The acquiring unit is used to generate the 4th mapping relation information according to first response message.
26. device according to claim 25, which is characterized in that the receiving unit is also used to receive the communication equipment The second broadcasting packet sent, the source address field of second broadcasting packet carry first MAC Address, and described second The payload segment of broadcasting packet carries first IP address and first MAC Address, and second broadcasting packet is used for Request MAC Address corresponding to first IP address;
The processing unit is used to change the MAC Address that the source address field of second broadcasting packet carries, with life At at least one described first broadcasting packet.
27. device according to claim 26, which is characterized in that the acquiring unit is also used to obtain third mapping relations Information, the third mapping relation information are used to indicate the mapping relations between first MAC Address and third MAC Address, The third MAC Address is the MAC Address that the port of second broadcasting packet is received in described device;
The processing unit is also used to for the MAC Address that the target MAC (Media Access Control) address field of first response message carries being changed to First MAC Address, and according to the third mapping relation information, the payload segment of first response message is carried Second MAC Address is changed to the third MAC Address, to generate the second response message;
The transmission unit is also used to send second response message to the communication equipment.
28. device according to claim 25, which is characterized in that
4th mapping relation information is used to indicate the corresponding relationship between following two group information: first MAC Address and The mark of VLAN corresponding to the communication equipment, second MAC Address;Or
4th mapping relation information is used to indicate the corresponding relationship between following two group information: corresponding to the communication equipment VLAN mark and second MAC Address, first MAC Address.
29. a kind of communication system characterized by comprising any in communication equipment, gateway and such as claim 15 to 28 A device, wherein
The communication equipment is used to send the first data message to described device, and the gateway is for receiving described device root The second data message sent according to first data message;Or
The gateway is used to send third data message to described device, and the communication equipment is for receiving described device root The 4th data message sent according to the third data message.
CN201511015520.0A 2015-12-29 2015-12-29 Send the method, apparatus and communication system of message Active CN105554176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511015520.0A CN105554176B (en) 2015-12-29 2015-12-29 Send the method, apparatus and communication system of message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511015520.0A CN105554176B (en) 2015-12-29 2015-12-29 Send the method, apparatus and communication system of message

Publications (2)

Publication Number Publication Date
CN105554176A CN105554176A (en) 2016-05-04
CN105554176B true CN105554176B (en) 2019-01-18

Family

ID=55833108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511015520.0A Active CN105554176B (en) 2015-12-29 2015-12-29 Send the method, apparatus and communication system of message

Country Status (1)

Country Link
CN (1) CN105554176B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107453998B (en) * 2016-05-31 2020-02-14 华为技术有限公司 Method and device for transmitting message
CN106487788B (en) * 2016-09-30 2019-10-29 中国联合网络通信集团有限公司 A kind of user access method, SDN controller, forwarding device and subscriber access system
WO2018137252A1 (en) * 2017-01-26 2018-08-02 华为技术有限公司 Route issuing method and device
CN110099010B (en) * 2018-01-31 2021-08-03 华为技术有限公司 Service distribution method and device
CN111367844B (en) * 2019-03-13 2020-12-15 苏州库瀚信息科技有限公司 System, method and apparatus for a storage controller having multiple heterogeneous network interface ports
CN113438162B (en) * 2021-05-21 2022-11-04 翱捷科技股份有限公司 Method and device for realizing two-layer forwarding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859313A (en) * 2006-04-30 2006-11-08 西安交通大学 Method for realizing two-way load equalizing mechanism in multiple machine servicer system
CN102932270A (en) * 2012-11-27 2013-02-13 无锡城市云计算中心有限公司 Load balancing method and device supporting network security service
CN104780115A (en) * 2014-01-14 2015-07-15 上海盛大网络发展有限公司 Load balancing method and load balancing system in cloud computing environment
CN104917687A (en) * 2014-03-12 2015-09-16 华为技术有限公司 Message shunting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859313A (en) * 2006-04-30 2006-11-08 西安交通大学 Method for realizing two-way load equalizing mechanism in multiple machine servicer system
CN102932270A (en) * 2012-11-27 2013-02-13 无锡城市云计算中心有限公司 Load balancing method and device supporting network security service
CN104780115A (en) * 2014-01-14 2015-07-15 上海盛大网络发展有限公司 Load balancing method and load balancing system in cloud computing environment
CN104917687A (en) * 2014-03-12 2015-09-16 华为技术有限公司 Message shunting method and device

Also Published As

Publication number Publication date
CN105554176A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105554176B (en) Send the method, apparatus and communication system of message
CN104335532B (en) The method and apparatus for routing the packet to the far-end address of Virtual Switch Instance
US20220210035A1 (en) Systems and methods for performing end-to-end link-layer and ip-layer health checks between a host machine and a network virtualization device
CN103346981B (en) Virtual switch method, relevant apparatus and computer system
CN103748558B (en) System and method for covering virtual network on physical network
CN108475251A (en) It is put for the virtual network of container, heat exchange, pyrocondensation and disaster recovery
CN107332750A (en) A kind of service deployment method, device and network element
CN106131233B (en) Realize the method, apparatus and system of the access of database multipath
CN109245984A (en) A kind of message transmitting method, a kind of information processing method and its relevant device
JP2014509474A5 (en)
CN111756791A (en) Techniques for accelerated function as service network device load balancer
US20100020818A1 (en) Sharing buffer space in link aggregation configurations
CN108768692A (en) A kind of network creation method, relevant device and system
CN109525684A (en) Message forwarding method and device
CN110383792A (en) The load balance that wireless subscriber packet is handled by more packet processing cores
CN109600818A (en) Wifi sharing method, electronic device and storage medium
CN109474713A (en) Message forwarding method and device
CN114731329A (en) Group-based policy for inter-domain traffic
CN109450768B (en) Method for interconnecting containers and system for interconnecting containers
CN109413224A (en) Message forwarding method and device
CN107995124A (en) Traffic scheduling method and device
CN110636149B (en) Remote access method, device, router and storage medium
WO2021114874A1 (en) Data processing method and computer-readable storage medium
CN106209750B (en) A kind of network distribution method, server, network access equipment and system
US20230032441A1 (en) Efficient flow management utilizing unified logging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant