CN106487690A - Data transmission method for uplink and device - Google Patents

Data transmission method for uplink and device Download PDF

Info

Publication number
CN106487690A
CN106487690A CN201610848317.XA CN201610848317A CN106487690A CN 106487690 A CN106487690 A CN 106487690A CN 201610848317 A CN201610848317 A CN 201610848317A CN 106487690 A CN106487690 A CN 106487690A
Authority
CN
China
Prior art keywords
multicast
packet
address
multicast group
group
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.)
Pending
Application number
CN201610848317.XA
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610848317.XA priority Critical patent/CN106487690A/en
Publication of CN106487690A publication Critical patent/CN106487690A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management

Abstract

The present invention provides a kind of data transmission method for uplink and device, it is related to Internet technical field, in order to solve in prior art because wireless router can send multicast packet to all multicast members in multicast group, waste wireless router substantial amounts of Wi Fi flow, lead in multicast group, really need the multicast member of multicast packet, get the slow problem of multicast packet.The main technical schemes of the present invention include:Obtain multicast packet;Wherein, multicast group purpose IP address and multicast group target MAC (Media Access Control) address are comprised in described multicast packet;Obtain the corresponding MAC Address of multicast member in multicast group according to multicast group purpose IP address;Multicast group target MAC (Media Access Control) address in described multicast packet is replaced with the corresponding MAC Address of described multicast member, generates unicast packet;Described unicast packet is respectively sent to the multicast member in described multicast group.

Description

Data transmission method for uplink and device
Technical field
The present invention relates to Internet technical field, more particularly, to a kind of data transmission method for uplink and device.
Background technology
With the development of Internet telephony, the user of application network also gets more and more, particularly widely used nothing The application of line fidelity (Wireless-Fidelity, Wi-Fi).Today's society, the use of Wi-Fi network has been seen everywhere, example As:General domestic consumer, or little trade company (as restaurant, coffee-house, Internet bar etc.), and major company, airport, music hall etc. are public Place, life, work and study that the use of Wi-Fi network gives people bring larger convenience.
At present, as the transponder of Wi-Fi network signal, for website, (terminal unit, such as notebook are electric for wireless router Brain, support smart mobile phone etc. of Wi-Fi function) connect and use Wi-Fi network.At each station connecting same Wi-Fi network When point obtains data, sometimes using the flux of multicast to Wi-Fi network, the multiple websites being attached in Wi-Fi network are same When receive wireless router send same multicast packet.Wherein, the sender of data is referred to as multicast source, and Data receiver is referred to as The multicast group of this data, adds the recipient of same multicast group to be referred to as multicast member.For example:The people of certain company's difference meeting room Member watches same video conference etc..
Inventor, in realizing process of the present invention, finds that in prior art, wireless router is being sent based on Wi-Fi network During multicast packet, send a multicast packet to each website being connected to wireless router, no matter being connected to no circuit By device each website the need of this multicast packet not however, it is determined that not needing this multicast packet then directly to abandon it.By All multicast packet can be sent to each website connected in wireless router, waste the substantial amounts of Wi-Fi of wireless router Flow, and then make the multicast member leading to really need multicast packet in those websites in multicast group, get multicast number According to speed slower.Particularly, when being connected to same wireless router, and be not multicast member website multicast group in group Broadcast that more group membership is more, but so that multicast member receives multicast when needing the multicast member of receiving multicast data less The speed that the multicast member of data obtains multicast packet is slower, less efficient.
Content of the invention
The embodiment of the present invention provides a kind of data transmission method for uplink and device, in order to solve in prior art due to wireless routing Device all can send multicast packet to each website connected, waste wireless router substantial amounts of Wi-Fi flow, and then make Obtain the multicast member really needing multicast packet in those websites in multicast group, get the slow of multicast packet and ask Topic.
On the one hand, the embodiment of the present invention provides a kind of data transmission method for uplink, including:
Obtain multicast packet;Wherein, multicast group purpose IP address and multicast group purpose are comprised in described multicast packet MAC Address;
Obtain the corresponding MAC Address of multicast member in multicast group according to multicast group purpose IP address;
Multicast group target MAC (Media Access Control) address in described multicast packet is replaced with described multicast member corresponding MAC ground Location, generates unicast packet;
Described unicast packet is respectively sent to the multicast member in described multicast group.
On the other hand, the embodiment of the present invention provides a kind of data sending device, including:
First acquisition unit, for obtaining multicast packet;Wherein, comprise multicast group purpose IP in described multicast packet Address and multicast group target MAC (Media Access Control) address;
Second acquisition unit, for obtaining multicast according to the described multicast group purpose IP address from first acquisition unit acquisition The corresponding MAC Address of multicast member in group;
Replacement unit, for multicast group purpose MAC in the described multicast packet that obtains described first acquisition unit Address replaces with the corresponding MAC Address of described multicast member that described second acquisition unit obtains;
Signal generating unit, for replacing the multicast group target MAC (Media Access Control) address in described multicast packet according to described replacement unit After being changed to the corresponding MAC Address of described multicast member that described second acquisition unit obtains, generate unicast packet;
Transmitting element, for the multicast member being respectively sent to described unicast packet in described multicast group.
Data transmission method for uplink provided in an embodiment of the present invention and device, first, wireless router obtains multicast packet, root Comprise, according in this multicast packet, the multicast member that multicast group IP address determines data to be received in multicast group, obtain this waiting Receive the corresponding MAC Address of multicast member of data;Secondly, wireless router obtains multicast group according to multicast group purpose IP address The corresponding MAC Address of interior multicast member, the multicast group target MAC (Media Access Control) address in described multicast packet is replaced with described multicast The corresponding MAC Address of group membership, generates unicast packet;Finally, described unicast packet is respectively sent to described multicast group Interior multicast member;Compared with prior art, in the embodiment of the present invention, wireless router only forms to the multicast in multicast group Member, the unicast packet that directive sending is changed by multicast packet, rather than be to set to the all-network connecting with wireless router Preparation send multicast packet, can save substantial amounts of Internet resources, thus improving multicast member in multicast group to obtain data The speed of bag and efficiency.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are these Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also root Obtain other accompanying drawings according to these accompanying drawings.
The flow chart that Fig. 1 shows a kind of data transmission method for uplink provided in an embodiment of the present invention;
Fig. 2 shows a kind of schematic diagram of multicast packet packet head provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition frame chart of data sending device provided in an embodiment of the present invention;
Fig. 4 shows the composition frame chart of another kind data sending device provided in an embodiment of the present invention;
Fig. 5 shows a kind of structural representation of wireless router provided in an embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of data transmission method for uplink, and the method is applied in wireless router, as shown in figure 1, The method includes:
101st, obtain multicast packet.
Wireless router described in the embodiment of the present invention, has multicast forwarding function, for receiving multicast source (i.e. multicast number According to bag sender) multicast packet that sends, and the multicast packet receiving is forwarded to multicast group.In wireless router Before execution multicast, receive and obtain the multicast packet that multicast source (i.e. multicast packet sender) sends, wherein, described group Multicast group purpose IP address and multicast group target MAC (Media Access Control) address is included at least in the header of unicast packets;Multicast number can also be included According to contents such as the version of bag, type, port, time-to-live.Exemplary, as shown in Fig. 2 Fig. 2 shows the embodiment of the present invention A kind of schematic diagram of the multicast packet packet head providing, it should be noted that the exemplary only citing of Fig. 2, present invention enforcement Example is to the particular content comprising in the header of multicast packet, to the byte number shared by the content of packet header and to have multicast functionality wireless The concrete species of router is not construed as limiting.
In actual applications, may there are multiple multicast group IP address, those multicast group IP by record in a wireless router The corresponding multicast group in address is probably permanent it is also possible to interim;Possibly a main frame in multicast group is only added to It is also possible to a main frame is added simultaneously in multiple multicast group in one multicast group.Multicast group purpose IP address are used for identifying One IP multicast group, wireless router parses to the multicast packet obtaining, and can obtain multicast group purpose IP address, its mesh Be, by this multicast group purpose IP address, purpose IP address can be confirmed from the corresponding IP address of multiple multicast group, And the packet of acquisition is sent the multicast member to multicast group purpose IP address.
102nd, obtain the corresponding MAC Address of multicast member in multicast group according to multicast group purpose IP address.
Terminal unit (main frame) sends, to multicast source, the solicited message adding certain multicast group, when multicast source allows this terminal When equipment (main frame) adds certain multicast group, by there is the wireless router of multicast functionality by the IP address of this terminal unit (main frame) And/or MAC Address etc. is capable of the information of unique mark terminal unit (main frame) and recorded, subsequently to carry out multicast packet Transmission.It is added to the terminal unit (main frame) of multicast group, the continuation of multicast member identity can be selected or exit.
After terminal unit (main frame) asks to add multicast group, (report reports to send report message to wireless router Literary composition), inform that this terminal unit of wireless router (main frame) has added multicast group.In terminal unit (main frame) to wireless router When sending report message, carry the information of the unique mark terminal unit (main frame) of its own, such as MAC Address etc.. The MAC Address of terminal unit (main frame) is stored by wireless router, when wireless router need to be to the multicast group in multicast group When member sends multicast packet, from the preset store path of wireless router, directly obtain multicast member pair in multicast group The MAC Address answered.
It should be noted that when wireless router carries out the forwarding of multicast packet, depending on MAC Address, Er Feishi The IP address of multicast member.IP address is that wireless router provides, the IP ground that different terminal units (main frame) is distributed Location is different;And MAC Address is the physical address of network interface card, it is unrelated with network, that is, no matter by the hardware with MAC Address (as net Card, hub, wireless router etc.) it is linked into the where of network, it has identical MAC Address, and MAC Address typically can not change Become it is impossible to be set by the user.
103rd, the multicast group target MAC (Media Access Control) address in described multicast packet is replaced with described multicast member corresponding MAC Address, generates unicast packet.
In the prior art, wireless router receive multicast source transmission multicast packet after, according to multicast group mesh IP address determine multicast group after, multicast packet is forwarded, is set by all terminals being connected on this wireless router Standby (main frame) receives this multicast packet successively;When all terminal units (main frame) being connected on this wireless router, and not Exist however, it is determined that this multicast packet is its needs after the terminal unit in multicast group (main frame) receives multicast packet, Then this multicast packet stored, use;If it is determined that multicast packet is not that it is required, then by the multicast packet receiving Bag abandons;Both waste the bandwidth resources of wireless router, reduce the speed of the acquisition packet needing acquisition group packet.
In order to solve the above problems, wireless router parses to multicast packet, obtains the multicast group mesh that it comprises MAC Address, and this multicast group target MAC (Media Access Control) address is replaced with the corresponding MAC Address of multicast member that step 102 obtains, Multicast packet is converted to unicast packet.It is intended that only to the multicast member directive sending data in multicast group Bag, rather than be all to send multicast packet to all terminal units (main frame) being connected on wireless router, can save no The consumption of the unnecessary bandwidth resources of line router, can also improve the speed needing to obtain multicast packet simultaneously.
It should be noted that described multicast packet is identical with the data included in unicast packet, difference It is, the hop count when forwarding to it for the wireless router has differences.For the forwarding of unicast packet, no circuit Transmit identical unicast packet to multiple recipients's (multicast member) it is also necessary to replicate many parts accordingly by device simultaneously Identical unicast packet;For the forwarding of multicast packet, wireless router gives multiple recipients simultaneously, and (multicast forms Member) transmission identical multicast packet, forward a identical data packet.
104th, described unicast packet is respectively sent to the multicast member in described multicast group.
In actual applications, the multicast packet described in the embodiment of the present invention is multicasting video data bag.Exemplary, family When in front yard, multiple stage TV uses Set Top Box to watch same TV programme, multicast source can be to the wireless routing being connected with this Set Top Box Device sends multicasting video data bag;Or, when the personnel of certain company's difference meeting room watch same video conference, different meeting rooms Main frame as multicast member, receive the multicasting video data bag obtaining from multicast source that wireless router sends.In order to just In understanding, the embodiment of the present invention so that multicast packet is for multicasting video data bag as a example illustrates, however, it should be clear that should Kind explanation mode is not intended to restriction multicast packet and is only capable of as multicasting video data bag;Described multicast packet can also be literary composition Part multicast packet, application program (Application, APP) multicast packet etc., embodiment of the present invention here is no longer carried out Repeat one by one.
Data transmission method for uplink provided in an embodiment of the present invention, first, wireless router obtains multicast packet, according to this group Comprise the multicast member that multicast group IP address determines data to be received in multicast group in unicast packets, obtain this data to be received The corresponding MAC Address of multicast member;Secondly, wireless router obtains multicast in multicast group according to multicast group purpose IP address The corresponding MAC Address of group membership, the multicast group target MAC (Media Access Control) address in described multicast packet is replaced with described multicast member Corresponding MAC Address, generates unicast packet;Finally, described unicast packet is respectively sent to the group in described multicast group Broadcast group membership;Compared with prior art, in the embodiment of the present invention, wireless router, only to the multicast member in multicast group, orients Send the unicast packet changed by multicast packet, rather than be to the all-network equipment transmission group connecting with wireless router Unicast packets, can save substantial amounts of Internet resources, thus improving the speed that multicast member in multicast group obtains packet And efficiency.
Further, as to the refinement of above-described embodiment and extension, obtained according to multicast group purpose IP address in step 102 When taking the corresponding MAC Address of multicast member in multicast group, first, determine the quantity of described multicast member, and according to described The quantity of multicast member replicates the described multicast packet of same number;Secondly, described multicast packet is parsed, and Obtain the target MAC (Media Access Control) address in multicast packet packet head;Finally, the target MAC (Media Access Control) address in described multicast packet packet head is replaced It is changed to the corresponding MAC Address of described multicast member.
Exemplary, if the terminal unit (main frame) being connected to same wireless router has 50, wherein there are 10 ends End equipment (main frame) belongs to same multicast group, and the IP address of multicast group is XX.XX.XX.1, when router forwards to this multicast group During multicast packet, obtain the MAC Address of 10 terminal units (main frame) in multicast group respectively, by the multicast in multicast packet Group target MAC (Media Access Control) address replaces with the corresponding MAC Address of described multicast member, replicates, generates 10 unicast packet, and respectively 10 multicast group target MAC (Media Access Control) address being sent in multicast group replace with the corresponding MAC Address of described multicast member;Rather than All send packet to 50 terminal units (main frame) being connected to same wireless router.Particularly, when being connected to same road By on device, and belong to the terminal unit (main frame) of non-multicast group membership more when, by way of described in the embodiment of the present invention, energy Enough substantial amounts of acquisitions reducing the unnecessary bandwidth resources of wireless router, improve multicast member acquisition multicast packet again Speed.
Further, in actual applications, may there is following situation:Although the multicast member in multicast group is at this In multicast group, but, this multicast member is not intended to continue to the multicast packet of wireless router transmission;Or, no Line router sends before multicast packet to this multicast group, and this multicast member does not actively exit this multicast group;In the case of those, The unnecessary network resource consumption of wireless router still can be wasted.
In order to solve the above problems, wireless router multicast group purpose IP address to multicast group send multicast packet it Before, send inquiry message to the corresponding multicast group of described multicast group IP address, described inquiry message is used for determining described multicast group Interior multicast member whether receiving multicast data;According to described multicast member, the response message of described inquiry message is determined The multicast member of data to be received in described multicast group.After determining the multicast member of data to be received in multicast group, Only obtain the corresponding MAC Address of multicast member of data to be received in described multicast group, and to data to be received in multicast group Multicast member send multicast packet conversion unicast packet.Therefore, in wireless router, multicast packet is carried out During forwarding, the multicast member inquiry message not responded need not be transmitted, further reduce wireless router Unnecessary bandwidth consumption, the multicast member improving data to be received obtains the speed of multicast packet
Optionally, after wireless router gets multicast packet, wireless router passes through to the group in multicast group The mode broadcasting group membership's transmission inquiry message determines the multicast member of the data to be received in multicast group, if multicast member pair The inquiry message that wireless router sends is responded, then confirm the multicast member that this multicast member is data to be received. In actual applications, in order to allow the multicast member in multicast group get the content of this multicast packet, in wireless router To in multicast group multicast member send inquiry message when, wireless router multicast packet is carried out parsing obtain this multicast The content brief description of packet, and the content brief description of this multicast packet is carried in inquiry message, so that multicast Group membership determines whether receiving multicast data bag.
It should be noted that a pair of the quantity one of the multicast member of quantity and data to be received that sends of unicast packet Should;If the quantity of the multicast member of the unnecessary data to be received of quantity that unicast packet sends, waste wireless router Unnecessary bandwidth consumption;If the quantity that unicast packet sends is less than the quantity of the multicast member of data to be received, lead The multicast member causing the data partly to be received in multicast group does not receive unicast packet.
Start multicast in wireless router and turn unicast feature, and multicast packet is converted into after unicast packet, significantly Improve the transmission speed of data, that is, the speed of the multicast member receiving data of data to be received also significantly improves.Exemplary , with as a example UDP (User Datagram Protocol, UDP) it is assumed that multicast member has three, by group Broadcast after video data bag is converted to unicast packet, the transmission rate of video data bag can be by averagely every original 3-5Mbps Bring up to averagely every more than 20Mbps that is to say, that smooth playing can be brought up to by original smooth playing 480p video 1080P video.Wireless router receiving multicast data bag, and forwarded, send on the rate theory of multicast packet, Under noisy environment, wireless router send multicast packet speed can reach 130Mbps;Noiseless In the environment of, the speed that wireless router sends multicast packet can reach 300Mbps.
Further, before starting wireless router multicast forwarding function, need to detect and whether determine wireless router Open multicast and turn unicast feature, this multicast turns unicast feature and controlled by a control button, if control button is opening, Then explanation wireless router starts multicast functionality;If control button is closed mode, the not actuated multicast of wireless router is described Function.In actual applications, no matter whether wireless router starts multicast functionality, and the user of this wireless router has no way of looking into Feel, multicast turn unicast feature be turned on or off start when wireless router has multicast requirement;But it is present to ensure that The promptness of transmitting multicast data, it is normally open that wireless router is defaulted as multicast functionality.
Further, as the realization to method shown in above-mentioned Fig. 1, another embodiment of the present invention additionally provides a kind of data Dispensing device.This device embodiment is corresponding with preceding method embodiment, and for ease of reading, this device embodiment is no longer to aforementioned side Detail content in method embodiment is repeated one by one, it should be understood that the device in the present embodiment can correspond to realize aforementioned Full content in embodiment of the method.
The embodiment of the present invention also provides a kind of data sending device, and this device is applied in the dispensing device of data, such as Fig. 3 Shown, described device also includes:
First acquisition unit 31, for obtaining multicast packet;Wherein, comprise multicast group purpose in described multicast packet IP address and multicast group target MAC (Media Access Control) address;The dispensing device of the data described in the embodiment of the present invention, has multicast forwarding function, For receiving the multicast packet that multicast source (i.e. multicast packet sender) sends, and the multicast packet receiving is turned It is sent to multicast group.Before the dispensing device execution multicast of data, receive and obtain multicast source (i.e. multicast packet sender) The multicast packet sending, wherein, includes at least multicast group purpose IP address and multicast group in the header of described multicast packet Target MAC (Media Access Control) address;The contents such as the version of multicast packet, type, port, time-to-live can also be included;
Second acquisition unit 32, for obtaining according to the described multicast group purpose IP address obtaining from first acquisition unit 31 The corresponding MAC Address of multicast member in multicast group;After terminal unit (main frame) asks to add multicast group, to the transmission of data Device sends report message (report message), has informed that this terminal unit of the dispensing device (main frame) of data has added multicast Group.When terminal unit (main frame) sends report message to the dispensing device being exactly data, carry the unique mark of its own Know the information of terminal unit (main frame), such as MAC Address etc..The dispensing device of data is by the MAC of terminal unit (main frame) ground Location is stored, when the dispensing device of data need to send multicast packet to the multicast member in multicast group, directly from number According to dispensing device preset store path under obtain multicast member corresponding MAC Address in multicast group;
It should be noted that when the dispensing device of data carries out the forwarding of multicast packet, depending on MAC Address, and Non- be multicast member IP address.IP address is that the dispensing device of data provides, and different terminal units (main frame) is divided The IP address joined is different;And MAC Address is the physical address of network interface card, it is unrelated with network, that is, no matter will be hard with MAC Address Part (as network interface card, hub, dispensing device of data etc.) is linked into the where of network, and it has identical MAC Address, MAC ground Location typically immutable it is impossible to be set by the user.
Replacement unit 33, for the multicast group purpose in the described multicast packet that obtains described first acquisition unit 31 MAC Address replaces with the corresponding MAC Address of described multicast member that described second acquisition unit 32 obtains;It is intended that Only to the multicast member directive sending packet in multicast group, rather than it is to all ends on the dispensing device being connected to data End equipment (main frame) all sends multicast packet, can save the consumption of the unnecessary bandwidth resources of dispensing device of data, simultaneously The speed needing to obtain multicast packet can also be improved;
Signal generating unit 34, for according to described replacement unit 33 by described multicast packet multicast group purpose MAC ground After location replaces with the corresponding MAC Address of described multicast member that described second acquisition unit obtains, generate unicast packet;Need It is noted that described multicast packet is identical with the data included in unicast packet, difference is, data The hop count when forwarding to it for the dispensing device has differences.For the forwarding of unicast packet, the transmission dress of data Put and transmit identical unicast packet to multiple recipient'ss (multicast member) it is also necessary to replicate many parts of phase accordingly simultaneously Same unicast packet;For the forwarding of multicast packet, multiple recipients' (multicast compositions given by the dispensing device of data simultaneously Member) transmission identical multicast packet, forward a identical data packet;
Transmitting element 35, the described unicast packet for generating described signal generating unit 34 is respectively sent to described multicast Multicast member in group.
Further, as shown in figure 4, described replacement unit 33 includes:
Determining module 331, for determining the quantity of described multicast member;
Replication module 332, for described in the quantity duplication of the described multicast member being determined according to described determining module 331 Multicast packet;
Parsing module 333, for parsing to described multicast packet;
Acquisition module 334, for carrying out in resolving to described multicast packet in described parsing module 333, obtains Multicast group target MAC (Media Access Control) address in multicast packet packet head;
Replacement module 335, for the multicast group mesh in the described multicast packet packet head that obtains described acquisition module 334 MAC Address replace with the corresponding MAC Address of described multicast member.
Further, as shown in figure 4, second acquisition unit 32 includes:
Determining module 321, for determining the multicast of data to be received in multicast group according to described multicast group purpose IP address Group membership;
Acquisition module 322, for obtaining the multicast of data to be received in the described multicast group that described determining module 321 determines The corresponding MAC Address of group membership.
Further, as shown in figure 4, described determining module 321 includes:
Sending submodule 3211, for sending inquiry message, described inquiry to the corresponding multicast group of described multicast group IP address The information of asking is used for determining multicast member in described multicast group whether receiving multicast data;
Determination sub-module 3212, for according to described multicast member to be sending submodule 3211 send described inquiry The response message of information determines the multicast member of data to be received in described multicast group.
Further, as shown in figure 4, described device also includes:
Determining unit 36, before generating unicast packet in described signal generating unit, it is determined whether starts multicast and turns single Multicast function;
Start unit 37, for when described determining unit 36 determines that not actuated multicast turns unicast feature, starting described group Broadcast and turn unicast feature;
Described signal generating unit 34, is additionally operable to, when described determining unit 36 determines that having been turned on multicast turns unicast feature, generate Described unicast packet.
Further, described multicast packet is multicasting video data bag.
The dispensing device of data provided in an embodiment of the present invention, first, wireless router obtains multicast packet, according to this Comprise the multicast member that multicast group IP address determines data to be received in multicast group in multicast packet, obtain this number to be received According to the corresponding MAC Address of multicast member;Secondly, wireless router obtains group in multicast group according to multicast group purpose IP address Broadcast the corresponding MAC Address of group membership, the multicast group target MAC (Media Access Control) address in described multicast packet is replaced with described multicast composition The corresponding MAC Address of member, generates unicast packet;Finally, described unicast packet is respectively sent in described multicast group Multicast member;Compared with prior art, in the embodiment of the present invention, wireless router is only to the multicast member in multicast group, fixed The unicast packet changed by multicast packet to transmission, rather than be to send to the all-network equipment connecting with wireless router Multicast packet, can save substantial amounts of Internet resources, thus improving the speed that multicast member in multicast group obtains packet Degree and efficiency.
It should be noted that for the dispensing device of above-mentioned data, using each list arriving in every embodiment of the present invention The function of element module can be realized by hardware processor (hardware processor).
Exemplary, as shown in figure 5, Fig. 5 shows that a kind of structure of wireless router provided in an embodiment of the present invention is shown It is intended to, this server can include:Processor (processor) 51, communication interface (Communications Interface) 52nd, memorizer (memory) 53 and bus 54, wherein, processor 51, communication interface 52, memorizer 53 complete phase by bus 54 Communication between mutually.Communication interface 52 can be used for the information transfer between server and client.Processor 51 can call and deposit Logical order in reservoir 53, to execute following method:Obtain multicast packet;Wherein, comprise group in described multicast packet Broadcast group purpose IP address and multicast group target MAC (Media Access Control) address;Obtain multicast packet;Wherein, comprise group in described multicast packet Broadcast group purpose IP address and multicast group target MAC (Media Access Control) address;Obtain multicast member in multicast group according to multicast group purpose IP address Corresponding MAC Address;Multicast group target MAC (Media Access Control) address in described multicast packet is replaced with described multicast member corresponding MAC Address, generates unicast packet;Described unicast packet is respectively sent to the multicast member in described multicast group.
Additionally, the logical order in above-mentioned memorizer 53 can be realized by the form of SFU software functional unit and be used as solely When vertical production marketing or use, can be stored in a computer read/write memory medium.Based on such understanding, this Part that bright technical scheme substantially contributes to prior art in other words or this technical scheme partly can be with soft The form of part product embodies, and this computer software product is stored in a storage medium, including some instructions in order to make Obtain a computer equipment (can be personal computer, server, or network equipment etc.) and execute each embodiment of the present invention The all or part of step of methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various Can be with the medium of store program codes.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component can To be or to may not be physically separate, as the part that unit shows can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needs In the purpose to realize this embodiment scheme for some or all of module.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers Order is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcement Example or some partly described methods of embodiment.
Finally it should be noted that:Above example only in order to technical scheme to be described, is not intended to limit;Although With reference to the foregoing embodiments the present invention is described in detail, it will be understood by those within the art that:It still may be used To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to wherein some technical characteristics; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (12)

1. a kind of data transmission method for uplink is it is characterised in that include:
Obtain multicast packet;Wherein, multicast group purpose IP address and multicast group purpose MAC ground are comprised in described multicast packet Location;
Obtain the corresponding MAC Address of multicast member in multicast group according to multicast group purpose IP address;
Multicast group target MAC (Media Access Control) address in described multicast packet is replaced with the corresponding MAC Address of described multicast member, raw Become unicast packet;
Described unicast packet is respectively sent to the multicast member in described multicast group.
2. method according to claim 1 it is characterised in that by described multicast packet multicast group purpose MAC ground Location replaces with the corresponding MAC Address of described multicast member and includes:
Determine the quantity of described multicast member, and described multicast packet is replicated according to the quantity of described multicast member;
Described multicast packet is parsed, and obtains the multicast group target MAC (Media Access Control) address in multicast packet packet head;
Multicast group target MAC (Media Access Control) address in described multicast packet packet head is replaced with described multicast member corresponding MAC ground Location.
3. method according to claim 2 is it is characterised in that obtain multicast in multicast group according to multicast group purpose IP address The corresponding MAC Address of group membership includes:
Determine the multicast member of data to be received in multicast group according to described multicast group purpose IP address;
Obtain the corresponding MAC Address of multicast member of data to be received in described multicast group.
4. method according to claim 3 is it is characterised in that determine in multicast group according to described multicast group purpose IP address The multicast member of data to be received includes:
Send inquiry message to the corresponding multicast group of described multicast group IP address, described inquiry message is used for determining described multicast group Interior multicast member whether receiving multicast data;
According to described multicast member, the response message of described inquiry message is determined with the group of data to be received in described multicast group Broadcast group membership.
5. the method according to any one of claim 1-4 it is characterised in that generate unicast packet before, described Method also includes:
Determine whether that starting multicast turns unicast feature;
If it is determined that not actuated multicast turns unicast feature, then start described multicast and turn unicast feature;
Described generation unicast packet includes:
If it is determined that having been turned on multicast to turn unicast feature, then generate described unicast packet.
6. method according to claim 5 is it is characterised in that described multicast packet includes multicasting video data bag.
7. a kind of data transmission device is it is characterised in that include:
First acquisition unit, for obtaining multicast packet;Wherein, multicast group purpose IP address are comprised in described multicast packet And multicast group target MAC (Media Access Control) address;
Second acquisition unit, for obtaining in multicast group according to the described multicast group purpose IP address from first acquisition unit acquisition The corresponding MAC Address of multicast member;
Replacement unit, for the multicast group target MAC (Media Access Control) address in the described multicast packet that obtains described first acquisition unit Replace with the corresponding MAC Address of described multicast member that described second acquisition unit obtains;
Signal generating unit, for replacing with the multicast group target MAC (Media Access Control) address in described multicast packet according to described replacement unit After the corresponding MAC Address of described multicast member that described second acquisition unit obtains, generate unicast packet;
Transmitting element, the described unicast packet for generating described signal generating unit is respectively sent to the group in described multicast group Broadcast group membership.
8. device according to claim 7 is it is characterised in that described replacement unit includes:
Determining module, for determining the quantity of described multicast member;
Replication module, the quantity of the described multicast member for being determined according to described determining module replicates described multicast packet Bag;
Parsing module, for parsing to described multicast packet;
Acquisition module, for carrying out in resolving to described multicast packet in described parsing module, obtains multicast packet Multicast group target MAC (Media Access Control) address in header;
Replacement module, for the multicast group target MAC (Media Access Control) address in the described multicast packet packet head that obtains described acquisition module Replace with the corresponding MAC Address of described multicast member.
9. device according to claim 8 is it is characterised in that second acquisition unit includes:
Determining module, for determining the multicast member of data to be received in multicast group according to described multicast group purpose IP address;
Acquisition module, the multicast member for obtaining data to be received in the described multicast group that described determining module determines corresponds to MAC Address.
10. device according to claim 9 is it is characterised in that described determining module includes:
Sending submodule, for sending inquiry message to the corresponding multicast group of described multicast group IP address, described inquiry message is used In determining the whether receiving multicast data of the multicast member in described multicast group;
Determination sub-module, for believing to the response being the described inquiry message that sending submodule sends according to described multicast member Breath determines the multicast member of data to be received in described multicast group.
11. devices according to any one of claim 7-10 are it is characterised in that described device also includes:
Determining unit, before generating unicast packet in described signal generating unit, it is determined whether starts multicast and turns unicast feature;
Start unit, turns unicast for when described determining unit determines that not actuated multicast turns unicast feature, starting described multicast Function;
Described signal generating unit, is additionally operable to, when described determining unit determines that having been turned on multicast turns unicast feature, generate described unicast Packet.
12. devices according to claim 11 are it is characterised in that described multicast packet includes multicasting video data bag.
CN201610848317.XA 2016-09-23 2016-09-23 Data transmission method for uplink and device Pending CN106487690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610848317.XA CN106487690A (en) 2016-09-23 2016-09-23 Data transmission method for uplink and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610848317.XA CN106487690A (en) 2016-09-23 2016-09-23 Data transmission method for uplink and device

Publications (1)

Publication Number Publication Date
CN106487690A true CN106487690A (en) 2017-03-08

Family

ID=58268836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610848317.XA Pending CN106487690A (en) 2016-09-23 2016-09-23 Data transmission method for uplink and device

Country Status (1)

Country Link
CN (1) CN106487690A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018068727A1 (en) * 2016-10-13 2018-04-19 华为技术有限公司 Method, apparatus and system for transmitting live video
CN108667735A (en) * 2017-03-29 2018-10-16 中兴通讯股份有限公司 A kind of retransmission method and device of multicast packet
WO2019223639A1 (en) * 2018-05-21 2019-11-28 华为技术有限公司 Wireless communication method and device
CN113709272A (en) * 2021-08-26 2021-11-26 无锡思朗电子科技有限公司 Method for improving image switching speed

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933385A (en) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 Method for realizing wireless local network IP group broadcasting frame thansmitting rate dynamic automatic regulation
CN101232391A (en) * 2007-01-25 2008-07-30 Lg电子株式会社 Method of transmitting and receiving multicast data
US20080186896A1 (en) * 2007-02-07 2008-08-07 Robert Fanfelle Wireless multicast proxy
CN101917670A (en) * 2010-05-20 2010-12-15 中兴通讯股份有限公司 Method and system for transmitting wireless multicast data
CN102387140A (en) * 2011-10-18 2012-03-21 华为技术有限公司 Method, device and system for developing multimedia services in WLAN (wireless local area network)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933385A (en) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 Method for realizing wireless local network IP group broadcasting frame thansmitting rate dynamic automatic regulation
CN101232391A (en) * 2007-01-25 2008-07-30 Lg电子株式会社 Method of transmitting and receiving multicast data
US20080186896A1 (en) * 2007-02-07 2008-08-07 Robert Fanfelle Wireless multicast proxy
CN101917670A (en) * 2010-05-20 2010-12-15 中兴通讯股份有限公司 Method and system for transmitting wireless multicast data
CN102387140A (en) * 2011-10-18 2012-03-21 华为技术有限公司 Method, device and system for developing multimedia services in WLAN (wireless local area network)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018068727A1 (en) * 2016-10-13 2018-04-19 华为技术有限公司 Method, apparatus and system for transmitting live video
US11019367B2 (en) 2016-10-13 2021-05-25 Huawei Technologies Co., Ltd. Live video transmission method and system, and apparatus
CN108667735A (en) * 2017-03-29 2018-10-16 中兴通讯股份有限公司 A kind of retransmission method and device of multicast packet
WO2019223639A1 (en) * 2018-05-21 2019-11-28 华为技术有限公司 Wireless communication method and device
CN110519172A (en) * 2018-05-21 2019-11-29 华为技术有限公司 Wireless communication method and apparatus
EP3817309A4 (en) * 2018-05-21 2021-07-14 Huawei Technologies Co., Ltd. Wireless communication method and device
CN110519172B (en) * 2018-05-21 2022-05-13 华为技术有限公司 Wireless communication method and apparatus
CN113709272A (en) * 2021-08-26 2021-11-26 无锡思朗电子科技有限公司 Method for improving image switching speed
CN113709272B (en) * 2021-08-26 2024-01-19 无锡思朗电子科技有限公司 Method for improving image switching speed

Similar Documents

Publication Publication Date Title
US7646739B2 (en) Multicast routing over unidirectional links
EP1564930B1 (en) Method of transporting a multipoint stream in a local area network and device for connection implementing the method
CN106487690A (en) Data transmission method for uplink and device
EP3949468A1 (en) Apparatus, method and computer program for group communication
CN100417141C (en) Group broadcasting business realizing method
CN101272520A (en) Method and device for supporting multimedia broadcast multicast service in system structure evolution
CN104509073A (en) Discovering ip multicast group memberships in software defined networks
CN104221326A (en) Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities.
CN102057623B (en) Method for obtaining terminal status
CN101651609A (en) Method and device for realizing multicast load sharing
CN108768866A (en) Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
EP2991294A1 (en) Data transmission method, apparatus, and computer storage medium
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
CN109067578A (en) A kind of method and apparatus of rapidly channel switching
Ciubotaru et al. Advanced Network Programming–Principles and Techniques: Network Application Programming with Java
WO2015139390A1 (en) Multicast data processing method, apparatus, and system, sending device, and receiving client
EP2457348B1 (en) Efficient host management protocol on multicast capable router
CN103716169A (en) Point-to-multipoint multicast realization method, network nodes and system
CN104754521A (en) Message transmitting method, wireless access point, wireless controller and system
WO2006044922A2 (en) Broadcasting data over multiple dissimilar wireless networks
CN110391919A (en) Flux of multicast retransmission method, device, electronic equipment
JP2015537454A (en) Queue scheduling method, apparatus and system
CN104811827A (en) Message transmitting method, and code stream processing method and device
WO2015131380A1 (en) Data processing method and device
CN109039675A (en) Member based on IGMPv2 agreement leaves management method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170308