[go: up one dir, main page]

CN101174970A - Implementation method of anycast service, method of sending anycast request, anycast router - Google Patents

Implementation method of anycast service, method of sending anycast request, anycast router Download PDF

Info

Publication number
CN101174970A
CN101174970A CNA2007101954981A CN200710195498A CN101174970A CN 101174970 A CN101174970 A CN 101174970A CN A2007101954981 A CNA2007101954981 A CN A2007101954981A CN 200710195498 A CN200710195498 A CN 200710195498A CN 101174970 A CN101174970 A CN 101174970A
Authority
CN
China
Prior art keywords
packet
anycast
address
server
router
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
CNA2007101954981A
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.)
South China University of Technology SCUT
Huawei Technologies Co Ltd
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT, Huawei Technologies Co Ltd filed Critical South China University of Technology SCUT
Priority to CNA2007101954981A priority Critical patent/CN101174970A/en
Publication of CN101174970A publication Critical patent/CN101174970A/en
Priority to PCT/CN2008/073242 priority patent/WO2009074077A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Landscapes

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

Abstract

本发明实施例公开了任播服务实现方法,该方法包括:接收分组P,所述分组P为任播请求数据包;根据所述分组P的目的地址查找任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;将所述第二分组P发送至所述任播服务器。本发明实施例还公开了发送任播请求的方法、处理任播请求的方法、处理响应任播请求的方法、任播路由器、任播服务器、以及任播服务实现的系统。由于本发明实施例采用了通过执行封装、地址变换、解封装等技术,使得anycast分组P具备了unicast的优点,同时实现了在所有AS中高效率的实现最优组成员选择。

Figure 200710195498

The embodiment of the present invention discloses a method for implementing an anycast service. The method includes: receiving a packet P, and the packet P is an anycast request packet; searching for a unicast address of an anycast server according to the destination address of the packet P; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; and sending the second packet P to the anycast server. The embodiment of the invention also discloses a method for sending an anycast request, a method for processing an anycast request, a method for processing and responding to an anycast request, an anycast router, an anycast server, and a system for realizing anycast service. Since the embodiment of the present invention adopts technologies such as encapsulation, address conversion, and decapsulation, the anycast packet P has the advantages of unicast, and at the same time realizes efficient selection of optimal group members in all ASs.

Figure 200710195498

Description

任播服务的实现方法、发送任播请求的方法、任播路由器 Implementation method of anycast service, method of sending anycast request, anycast router

技术领域technical field

本发明涉及通信领域,尤其涉及任播服务的实现方法、发送任播请求的方法、任播路由器。The invention relates to the communication field, in particular to a method for realizing anycast service, a method for sending anycast request, and an anycast router.

背景技术Background technique

目前Internet上应用最广泛的IP服务模式是单播(unicast)和多播(multicast)服务。单播通信中发送者和接收者是确定的一对一关系;多播通信中一个发送者对应多个接收者。随着网络通信的发展,人们提出任播(anycast)服务模式,它允许一个发送者和一组具有相同anycast地址的接收者中的任一成员进行通信。并且IPv6正式将anycast服务作为IP服务的模式之一,将其定义为:用一个anycast地址标识一组提供某种服务的主机,发送到该anycast地址的分组将被传送给这组主机中的任意一台。参见图1,该图表示了anycast服务的基本概念,Member1和Member2构成一个anycast组,假设该组为Group A。Member1和Member2提供相同的服务,具有相同的anycast地址,称之为anycast服务器。服务请求者Sender1和Sender2发送目的地址为该anycast组地址的IP分组来获得服务,也就是说从,Member1或Member2处获得服务。通过anycast机制,Sender1从距离自己较近的Member1处获得服务,Sender2从Member2处获得服务。Currently, the most widely used IP service modes on the Internet are unicast and multicast services. In unicast communication, the sender and receiver have a definite one-to-one relationship; in multicast communication, one sender corresponds to multiple receivers. With the development of network communication, people propose an anycast (anycast) service mode, which allows a sender to communicate with any member of a group of receivers with the same anycast address. And IPv6 officially regards anycast service as one of the modes of IP services, which is defined as: use an anycast address to identify a group of hosts that provide a certain service, and packets sent to the anycast address will be transmitted to any host in this group one. See Figure 1, which shows the basic concept of anycast service. Member1 and Member2 form an anycast group, assuming that the group is Group A. Member1 and Member2 provide the same service, have the same anycast address, and call it anycast server. Service requesters Sender1 and Sender2 send IP packets whose destination address is the address of the anycast group to obtain services, that is to say, obtain services from Member1 or Member2. Through the anycast mechanism, Sender1 obtains services from Member1, which is closer to itself, and Sender2 obtains services from Member2.

在许多实际应用中,通过使用anycast服务模式可以提高网络的使用效率和服务质量。anycast的具体实现目标简单地说可以是:In many practical applications, the use efficiency and service quality of the network can be improved by using the anycast service mode. The specific realization goals of anycast can be simply stated as:

1)anycast组数量可扩展。1) The number of anycast groups can be expanded.

人们希望anycast可以处理分布在全球范围的anycast服务器而不是局限于自治域内部。自治域是指在单一实体管理控制下的一个或多个网络的集合,每个自治域对应一个自治域编号由因特网地址授权委员会(IANA,InternetAssigned Numbers Authority)统一分配。将anycast限制在自治域内部可以获得很多优势:例如有统一的管理政策、使用内部网关协议进行路由、网络的规模相对较小,网络拓扑已知等等。目前很多方法可以用来实现自治域内的anycast。It is hoped that anycast can handle anycast servers distributed around the world rather than being limited to autonomous domains. An autonomous domain refers to a collection of one or more networks under the management and control of a single entity. Each autonomous domain corresponds to an autonomous domain number that is uniformly assigned by the Internet Assigned Numbers Authority (IANA). Restricting anycast within the autonomous domain can gain many advantages: for example, there is a unified management policy, the use of the interior gateway protocol for routing, the scale of the network is relatively small, the network topology is known, and so on. At present, many methods can be used to implement anycast in an autonomous domain.

2)组成员数量可扩展。应当能通过增加组成员的数量来提高服务质量,例如全球DNS服务器的数量巨大,anycast服务机制应该可以支持成员数目不受限制的anycast组。2) The number of group members can be expanded. It should be possible to improve the quality of service by increasing the number of group members. For example, the number of global DNS servers is huge, and the anycast service mechanism should be able to support anycast groups with unlimited members.

3)最优组成员高效选择。任何情况下,anycast服务都应选择到最优或者是近似最优的通信节点。这就要求路由器了解更多的anycast组及其成员的信息。显然这是与可扩展性相矛盾的目标。3) Efficient selection of optimal group members. In any case, the anycast service should select the optimal or nearly optimal communication node. This requires routers to learn more about anycast groups and their members. Clearly this is a conflicting goal with scalability.

4)对网络的其它协议透明、对应用层软件透明。4) Transparent to other protocols of the network and transparent to application layer software.

目标4)的重要性在于:至今已经对互联网发展投入了巨大的成本,任何对现有协议的改变都需要花费巨大代价。同样,如果需要应用层软件进行修改来使用anycast服务也会大大降低anycast的生命力。The importance of goal 4) lies in the fact that huge costs have been invested in the development of the Internet so far, and any changes to existing protocols will require huge costs. Similarly, if the application layer software needs to be modified to use the anycast service, the vitality of anycast will be greatly reduced.

最早的anycast服务通过在IPv4地址空间中直接划分anycast地址在网络层中实现,但这样做会使路由表会无限制膨胀;从而导致网络性能急剧下降。当每台路由器都需要为每一个anycast组和组成员维护单独的路由信息时,全球anycast服务将会很难实现。The earliest anycast service was implemented in the network layer by directly dividing anycast addresses in the IPv4 address space, but doing so would expand the routing table without limit; thus causing a sharp drop in network performance. Global anycast service will be difficult to implement when each router needs to maintain separate routing information for each anycast group and group members.

目前较为流行的实现IP-anycast服务的方法是GIA(Globle IP Anycast,全球IP任播)。GIA要求每个路由器能够区分anycast地址与unicast地址。发送者通过在unicast地址中加入anycast前缀来标识anycast分组,路由器在收到分组时通过对anycast前缀的变换可以快速的找到位于家乡域(GIA中假设在每一中anycast服务都会有一个最初的服务提供者,它一定有一个确切的位置,这个位置所在的域就该是anycast服务的家乡域)的anycast服务器。At present, the more popular method of implementing IP-anycast service is GIA (Globle IP Anycast, Global IP Anycast). GIA requires that each router be able to distinguish anycast addresses from unicast addresses. The sender identifies the anycast packet by adding anycast prefix to the unicast address. When the router receives the packet, it can quickly find the home domain by changing the anycast prefix (GIA assumes that each anycast service will have an initial service provider, it must have an exact location, and the domain where this location is located should be the anycast server of the home domain of the anycast service.

参见图2,该图描述了GIA对地址的映射过程:See Figure 2, which depicts GIA's mapping of addresses:

当服务器收到一个目的地址带有anycast前缀的分组时首先去掉该前缀,然后在地址的末尾补0,最后通过事先划分好的anycast组的被访问频率来利用映射后的地址。When the server receives a packet whose destination address has an anycast prefix, it first removes the prefix, then adds 0 at the end of the address, and finally utilizes the mapped address through the access frequency of the pre-divided anycast group.

GIA将anycast地址区分为内部的(对路由器而言,如果该anycast地址的家乡域与其所在自治域相同,这个地址就称为内部地址)、常用的和不常用的。对内部地址的路由很简单,直接到家乡域的服务器。对内部的anycast地址由于其最优服务器位于家乡域的单播地址前缀所标识的网络内,且与unicast路由完全相同,因此可以直接通过组ID找到最优服务器。对经常访问的anycast地址,路由器在一定范围内进行扩散式的查找,并对查找到的结果进行有选择的缓存,这样可以对后续的该类anycast分组进行快速的转发。而对于不经常访问的anycast地址直接将分组路由到位于家乡域的anycast服务器。由于不需要维护不常用的anycast地址信息,因此在一定程度上解决了路由表的膨胀问题。GIA distinguishes anycast addresses into internal ones (for routers, if the home domain of the anycast address is the same as the autonomous domain in which it is located, this address is called an internal address), commonly used and uncommonly used. Routing to internal addresses is simple, going directly to servers in the home domain. For the internal anycast address, since the optimal server is located in the network identified by the unicast address prefix of the home domain, and is exactly the same as the unicast route, the optimal server can be found directly through the group ID. For frequently accessed anycast addresses, the router conducts a diffuse search within a certain range, and selectively caches the found results, so that subsequent anycast packets of this type can be quickly forwarded. And for the anycast address that is visited infrequently, the packet is routed directly to the anycast server located in the home domain. Since there is no need to maintain infrequently used anycast address information, the problem of swelling the routing table is solved to a certain extent.

GIA潜在的问题是,将不经常访问的anycast请求全部路由到主anycast域而不论请求者周围是否存在更优的服务器,对这些anycast请求很难找到最优服务器,因此不能高效率的实现最优组成员高效选择;同时由于区分了anycast地址和unicast地址无法在现有的网络地址结构中应用,不利于全球范围的使用,降低了IP-anycast服务的生命力。The potential problem of GIA is that all infrequently accessed anycast requests are routed to the main anycast domain regardless of whether there are better servers around the requester. It is difficult to find the optimal server for these anycast requests, so the optimal server cannot be efficiently implemented Efficient selection of group members; at the same time, due to the distinction between anycast address and unicast address, it cannot be applied in the existing network address structure, which is not conducive to global use and reduces the vitality of IP-anycast service.

发明内容Contents of the invention

本发明实施例要解决的技术问题是提供一种全球可扩展IP-anycast服务可扩展方法,为解决上述技术问题,本发明实施例提供了一种任播服务实现方法,该方法包括:The technical problem to be solved by the embodiment of the present invention is to provide a globally scalable IP-anycast service scalable method. In order to solve the above technical problem, the embodiment of the present invention provides a method for implementing anycast service. The method includes:

接收分组P,所述分组P为任播请求数据包;Receiving a packet P, the packet P is an anycast request packet;

根据所述分组P的目的地址查找任播服务器的单播地址;Find the unicast address of anycast server according to the destination address of the packet P;

将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P;

将所述第二分组P发送至所述任播服务器。Sending the second packet P to the anycast server.

本发明还提供了一种任播路由器,该任播服务器包括:The present invention also provides an anycast router, and the anycast server includes:

第一接收单元,用于接收分组P,所述分组P为任播请求数据包;The first receiving unit is configured to receive a packet P, and the packet P is an anycast request packet;

第一处理单元,用于根据所述分组P的地址查找所述任播服务器的单播地址;A first processing unit, configured to search for the unicast address of the anycast server according to the address of the packet P;

将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P;

第一发送单元,用于将所述第二分组P发送至所述任播服务器。A first sending unit, configured to send the second packet P to the anycast server.

本发明还提供了一种发送任播请求的方法,该方法包括:The present invention also provides a method for sending an anycast request, the method comprising:

接收分组P,所述分组P为任播请求数据包;Receiving a packet P, the packet P is an anycast request packet;

根据所述分组P的目的地址查找任播路由表选择任播服务器;Search anycast routing table according to the destination address of the packet P to select anycast server;

将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;Encapsulating the packet P into a first packet P, the destination address of the first packet P is the address of anycast router corresponding to the anycast server, and the payload of the first packet P is the packet P;

发送所述第一分组P。The first packet P is sent.

本发明还提供了一种任播路由器,该任播路由器包括:The present invention also provides an anycast router, which includes:

第二接收单元,用于接收分组P,所述分组P为任播请求数据包;The second receiving unit is configured to receive a packet P, and the packet P is an anycast request packet;

第二处理单元,用于根据所述分组P的目的地址查找任播路由表选择任播服务器;将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;The second processing unit is configured to search an anycast routing table according to the destination address of the packet P to select an anycast server; encapsulate the packet P into a first packet P, and the destination address of the first packet P is the anycast server. The address of the anycast router corresponding to the broadcast server, the payload of the first packet P is the packet P;

第二发送单元,用于发送所述第一分组P。The second sending unit is configured to send the first packet P.

本发明还提供了一种处理任播请求的方法,该方法包括:The present invention also provides a method for processing anycast requests, the method comprising:

接收第一分组P,将所述第一分组P解封装为分组P,所述的分组P为所述的第一分组P的有效载荷;receiving a first packet P, decapsulating the first packet P into a packet P, the packet P being the payload of the first packet P;

根据所述分组P的目的地址查找所述任播服务器的单播地址;Find the unicast address of the anycast server according to the destination address of the packet P;

将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P;

将所述第二分组P发送至所述任播服务器。Sending the second packet P to the anycast server.

本发明还提供了一种任播路由器,该任播路由器包括:The present invention also provides an anycast router, which includes:

第三接收单元,用于接收第一分组P;a third receiving unit, configured to receive the first packet P;

第三处理单元,用于将所述第一分组P解封装为分组P,所述的分组P为所述的第一分组P的有效载荷;根据所述分组P的目的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;The third processing unit is configured to decapsulate the first packet P into a packet P, and the packet P is the payload of the first packet P; search for the anycast according to the destination address of the packet P The unicast address of the server; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P;

第三发送单元,用于将所述第二分组P发送至所述任播服务器。A third sending unit, configured to send the second packet P to the anycast server.

本发明还提供了一种处理任播请求的方法,该方法包括:The present invention also provides a method for processing anycast requests, the method comprising:

接收第一分组P;receiving a first packet P;

判断出所述第一分组P的目的地址不为自身的任播地址,通过查找本地路由表将所述第一分组P按照单播路由进行转发。It is determined that the destination address of the first packet P is not its own anycast address, and the first packet P is forwarded according to a unicast route by searching a local routing table.

本发明还提供了一种任播路由器,该任播路由器包括:The present invention also provides an anycast router, which includes:

第四接收单元,用于接收第一分组P;a fourth receiving unit, configured to receive the first packet P;

第四处理单元,用于判断出所述第一分组P的目的地址不为自身的任播地址;A fourth processing unit, configured to determine that the destination address of the first packet P is not its own anycast address;

第四发送单元,用于通过查找本地路由表将所述第一分组P按照单播路由进行转发。The fourth sending unit is configured to forward the first packet P according to a unicast route by searching a local routing table.

本发明还提供了一种处理响应任播请求的方法,该方法包括:The present invention also provides a method for processing and responding to anycast requests, the method comprising:

接收第二分组P的响应分组;receiving a response packet of the second packet P;

将所述第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;Transforming the source address of the response packet of the second packet P into the anycast address of the anycast server sending the second packet P to form a third packet P;

发送所述第三分组P。Said third packet P is sent.

本发明还提供了一种任播路由器,该任播服务器包括:The present invention also provides an anycast router, and the anycast server includes:

第五接收单元,用于接收第二分组P的响应分组;A fifth receiving unit, configured to receive a response packet of the second packet P;

第五处理单元,用于将所述第二分组P的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;A fifth processing unit, configured to transform the source address of the second packet P into the anycast address of the anycast server sending the second packet P, to form a third packet P;

第五发送单元,用于发送所述第三分组P。The fifth sending unit is configured to send the third packet P.

本发明还提供了一种处理响应任播请求的方法,该方法包括:The present invention also provides a method for processing and responding to anycast requests, the method comprising:

接收第二分组P;receiving a second packet P;

处理第二分组P后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;After processing the second packet P, a response packet of the second packet P is formed, the source address of the response packet is the unicast address of the anycast server, and the destination address is the anycast address of the anycast router sending the packet P;

发送第二分组P的响应分组。A response packet of the second packet P is sent.

本发明还提供了一种任播服务器,该任播服务器包括:The present invention also provides an anycast server, which includes:

第六接收单元,用于接收第二分组P;a sixth receiving unit, configured to receive the second packet P;

第六处理单元,用于处理第二分组P后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;The sixth processing unit is configured to form a response packet of the second packet P after processing the second packet P, the source address of the response packet is the unicast address of the anycast server, and the destination address is the address of the anycast router sending the packet P anycast address;

第六发送单元,用于发送第二分组P的响应分组。A sixth sending unit, configured to send a response packet of the second packet P.

本发明还提供了一种任播服务实现的系统,该系统包括:The present invention also provides a system for realizing anycast service, the system includes:

第一任播路由器,用于接收分组P,所述分组P为任播请求数据包;根据所述分组P的目的地址查找任播路由表选择任播服务器;将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;发送所述第一分组P;The first anycast router is used to receive a packet P, and the packet P is an anycast request packet; according to the destination address of the packet P, the anycast routing table is searched to select an anycast server; and the packet P is encapsulated into a first Packet P, the destination address of the first packet P is the address of the anycast router corresponding to the anycast server, and the payload of the first packet P is the packet P; sending the first packet P;

第二任播路由器,用于接收第一分组P;将所述第一分组P解封装为分组P,也就是说将有效载荷恢复成分组P;根据所述分组P的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;将所述第二分组P发送至所述任播服务器。The second anycast router is configured to receive the first packet P; decapsulate the first packet P into a packet P, that is to say restore the payload into a packet P; search for the anycast according to the address of the packet P The unicast address of the server; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; sending the second packet P to the anycast server.

任播服务器,用于接收所述的第二分组P,按照所述的第二分组P的内容提供相应的任播服务。The anycast server is configured to receive the second packet P, and provide corresponding anycast service according to the content of the second packet P.

以上技术方案可以看出,由于本发明实施例采用了通过执行封装、地址变换、解封装等技术,使得anycast分组P具备了unicast的优点,同时实现了在所有AS中高效率的实现最优组成员选择。It can be seen from the above technical solutions that, because the embodiment of the present invention adopts technologies such as encapsulation, address conversion, and decapsulation, the anycast packet P has the advantages of unicast, and at the same time realizes the efficient realization of optimal group members in all ASs choose.

附图说明Description of drawings

图1为anycast服务示意图;Figure 1 is a schematic diagram of anycast service;

图2为GIA的地址映射过程示意图;Fig. 2 is a schematic diagram of the address mapping process of GIA;

图3为本发明实施例1方法流程图;Fig. 3 is the flow chart of the method of Embodiment 1 of the present invention;

图4为anycast转发示例;Figure 4 is an example of anycast forwarding;

图5为本发明实施例2结构图;Fig. 5 is a structural diagram of Embodiment 2 of the present invention;

图6为本发明实施例3结构图;Fig. 6 is a structural diagram of Embodiment 3 of the present invention;

图7为本发明实施例4结构图;Fig. 7 is a structural diagram of Embodiment 4 of the present invention;

图8为本发明实施例5结构图;Fig. 8 is a structural diagram of Embodiment 5 of the present invention;

图9为本发明实施例6结构图;Fig. 9 is a structural diagram of Embodiment 6 of the present invention;

图10为本发明实施例7结构图;Fig. 10 is a structural diagram of Embodiment 7 of the present invention;

图11为本发明实施例最优路径选择效率图。FIG. 11 is a diagram of optimal path selection efficiency according to an embodiment of the present invention.

具体实施方式Detailed ways

本发明无需改变网络的现有地址结构,在全球范围内部署anycast服务器,并按根据anycast组地址的不同提供相应的anycast服务是实现全球可扩展IP-anycast服务的基础条件。本发明要求当部署一个新的anycast服务时,首先需要部署该anycast服务的HAS(Home Anycast Server,本地anycast服务器,ASAid=ASUid的AS),并在HAS前端部署一个FAR(First hop Anycast Router,第一跳路由器,距离AS最近的AR)使HAS通过FAR接入网络。初始运行时,HAS会主动向其FAR注册。在部署好新的anycast服务、HAS和FAR时,为该anycast服务增加新的AS(Anycast Server,anycast服务器)时,在每个AS前端部署一个FAR,AS通过其FAR接入网络。The present invention does not need to change the existing address structure of the network, deploying anycast servers on a global scale, and providing corresponding anycast services according to different anycast group addresses is the basic condition for realizing globally scalable IP-anycast services. The present invention requires that when deploying a new anycast service, it is first necessary to deploy the HAS (Home Anycast Server, local anycast server, AS Aid =AS Uid AS) of the anycast service, and deploy a FAR (First hop Anycast Router) at the HAS front end , the first hop router, and the AR closest to the AS) enables the HAS to access the network through the FAR. During initial operation, HAS will actively register with its FAR. When the new anycast service, HAS and FAR are deployed, and when a new AS (Anycast Server, anycast server) is added for the anycast service, a FAR is deployed at the front end of each AS, and the AS accesses the network through its FAR.

对于一个anycast服务,可以根据实际需求在全球互联网上的不同位置适当部署AS。可以按照如下规则部署AR(Anycast Router,Anycast路由器,支持基于隧道的IP-anycast的IR):For an anycast service, AS can be properly deployed in different locations on the global Internet according to actual needs. AR (Anycast Router, Anycast router, IR that supports tunnel-based IP-anycast) can be deployed according to the following rules:

(1)尽量在连接数比较多的自治域边界部署AR;(1) Try to deploy AR at the border of the autonomous domain with a large number of connections;

(2)当某个自治域内没有相应anycast服务的AS,并且自治域内对该anycast服务的请求频繁发生时,应该在该自治域的边界部署AR;(2) When there is no AS corresponding to the anycast service in an autonomous domain, and requests for the anycast service in the autonomous domain occur frequently, AR should be deployed on the border of the autonomous domain;

应该从全球的角度部署AR,尽量使AR均匀的分布在全球互联网中。这样部署的目的都是为了能够使更多的anycast请求在AMP上能获得比HAS更优的anycast服务器信息。AR should be deployed from a global perspective, and AR should be evenly distributed in the global Internet as far as possible. The purpose of this deployment is to enable more anycast requests to obtain better anycast server information than HAS on AMP.

为了实现全球anycast服务,每个AR的ART(Anycast Routing Table,Anycast路由表,AR中记录AS信息的路由表)中都会记录一定的信息,例如AS的anycast地址ASAid(ASAid,anycast address,任播地址),  unicast地址ASUid(ASUid,unicast address,单播地址),该AS对应的FARUid,FAR距离当前AR的跳数L(L取正整数),AS的选择评价值V(V取正整数)等。V可以是AR到AS的实际距离,AS的繁忙程度或AS的处理能力等信息;在本发明假设取V为AR到AS的跳数。并且由于不同的AS具有不通的ASAid,因此在ART中,每一条记录都代表一个AS。In order to realize the global anycast service, certain information will be recorded in each AR’s ART (Anycast Routing Table, Anycast routing table, the routing table that records AS information in the AR), such as the anycast address ASAid of the AS (ASAid, anycast address, anycast address), unicast address ASUid (ASUid, unicast address, unicast address), the FARUid corresponding to the AS, the hop count L from the FAR to the current AR (L takes a positive integer), and the selection evaluation value of the AS V (V takes a positive integer) wait. V may be the actual distance from the AR to the AS, the busyness of the AS or the processing capability of the AS; in the present invention, it is assumed that V is the number of hops from the AR to the AS. And because different ASs have different ASAids, in ART, each record represents an AS.

在本发明中,可以控制FAR距离当前AR的跳数L(L取正整数)及取V为AR到AS的跳数,本发明一般要每个AR掌握其V跳自治域内的AS信息;可以将V控制在4或5内,这样每个AR都知道一定的信息,那么所有的AR连接起来就能够提供全球anycast服务。并且通过控制这种记录信息,同时就从一定程度上降低了ART路由表信息的存储容量,从而提高的anycast组数量的可扩展性。In the present invention, the number of hops L from the FAR to the current AR can be controlled (L takes a positive integer) and V is taken as the number of hops from the AR to the AS. The present invention generally requires each AR to master the AS information in its V-hop autonomous domain; Control V within 4 or 5, so that each AR knows certain information, then all ARs can be connected to provide global anycast service. And by controlling this record information, the storage capacity of the ART routing table information is reduced to a certain extent at the same time, thereby improving the scalability of the number of anycast groups.

下面通过一个实施例来具体介绍在具备了全球anycast服务网络结构以后实现anycast服务的方法。The method for implementing anycast service after the global anycast service network structure is provided will be specifically introduced below through an embodiment.

实施例1,IP网络上每个分组发出时必然会携带源地址和目的地址,设网络层分组P(Internet protocol packet网络协议包)的源地址和目的地址分别为src和dest。如果分组P为anycast分组,则dest是该anycast服务的Aid(Aid,anycast address,任播地址)。参见图3,该实施例具体过程如下:Embodiment 1, each packet on the IP network will inevitably carry a source address and a destination address when it is sent out, and the source address and the destination address of the network layer packet P (Internet protocol packet) are respectively src and dest. If the packet P is an anycast packet, then dest is the Aid (Aid, anycast address, anycast address) of the anycast service. Referring to Fig. 3, the specific process of this embodiment is as follows:

框图101:AR接收分组P;该分组P的源地址和目的地址分别为src和dest;Block diagram 101: AR receives a packet P; the source address and destination address of the packet P are src and dest respectively;

框图102:判断分组P是否为TP(Tunnel Packet anycast隧道分组);若分组P为TP,则执行框图103,若分组P不是TP则执行框图107;Block diagram 102: judge whether grouping P is TP (Tunnel Packet anycast tunnel grouping); If grouping P is TP, then execution block diagram 103, if grouping P is not TP then execution block diagram 107;

隧道分组指的是经过封装以后的IP分组,也可以称为第一分组P。所谓封装指的是将分组P作为新IP分组的有效载荷的IP隧道技术。AR对分组P进行封装的过程为:(1)根据AR的ART记录的V值选择最优的AS;(2)将分组P作为封装以后分组的有效载荷,也就是作为封装后IP数据包的数据部分;经过封装后分组P的源地址和目的地址分别是src和最优AS的FARAid。(3)标记该分组P为anycast隧道分组,以便FAR识别;在IPV6中可以通过定义新的Next Header来标记隧道分组,IPV4中可以将某个保留位位置用来标记anycast隧道分组。The tunnel packet refers to an encapsulated IP packet, which may also be referred to as a first packet P. The so-called encapsulation refers to the IP tunnel technology that uses the packet P as the payload of a new IP packet. The process of AR encapsulating packet P is as follows: (1) select the optimal AS according to the V value recorded by AR in ART; (2) use packet P as the payload of the encapsulated packet, that is, as the IP data packet after encapsulation Data part; after encapsulation, the source address and destination address of the packet P are src and the FARAid of the optimal AS respectively. (3) mark this grouping P as anycast tunnel grouping, so that FAR recognizes; Can mark tunnel grouping by defining new Next Header in IPV6, can use certain reserved bit position to mark anycast tunnel grouping in IPV4.

由于通过上述的方法将分组P进行了标记,因此在该框图102中可以通过Next Header或者是某个保留位来判断是否TP。Since the packet P is marked by the above method, in the block diagram 102, whether it is TP can be judged by Next Header or a certain reserved bit.

当某个AR对分组P执行了封装过程以后,实际上也就知道了anycast服务的目的地址,也就是说封装过程改变分组P在原来IR环境中的转发路径。这也是本发明新定义的anycast隧道技术,更加确切的说anycast隧道技术是指:通信的双方用一条逻辑隧道进行连接,通过anycast技术找到一条最优的路径,而将应该在原有IR传输的路线程隐藏起来。After an AR performs the encapsulation process on the packet P, it actually knows the destination address of the anycast service, that is to say, the encapsulation process changes the forwarding path of the packet P in the original IR environment. This is also the anycast tunneling technology newly defined in the present invention. More precisely, the anycast tunneling technology refers to: the two sides of the communication are connected with a logical tunnel, and an optimal path is found through the anycast technology, and the path that should be transmitted in the original IR Threads are hidden.

框图103:若分组P为TP,则说明该分组P是经过封装的,其携带的dest为AS对应的AR,该对应的AR可以为其目的AS的FAR,因此该AR通过其存储的ART信息判断分组P的dest是否就是为其自身的ARuid;若是因为分组P的目的地址是最优AS的FARAid,则说明该AR是分组P的目的AS的FAR,那么执行框图104;若否则执行框图106;Block Diagram 103: If the packet P is TP, it means that the packet P is encapsulated, and the dest it carries is the AR corresponding to the AS, and the corresponding AR can be the FAR of the destination AS, so the AR uses the ART information stored in it Determine whether the dest of the packet P is its own ARuid; if it is because the destination address of the packet P is the FARAid of the optimal AS, it means that the AR is the FAR of the destination AS of the packet P, then execute block 104; otherwise execute block 106 ;

框图104:由于框图103中涉及的分组P是经过封装的,也就是该分组P为TP,经过了地址变换等过程,因此将该分组P解封装,执行地址变换过程,形成第二分组P。Block Diagram 104: Since the packet P involved in Block Diagram 103 is encapsulated, that is, the packet P is TP, and has undergone address translation and other processes, the packet P is decapsulated, and the address translation process is performed to form a second packet P.

该框图104中提到的解封装过程是从封装后的分组中恢复出原分组P的过程,也就是说去掉头部信息将有效载荷恢复成原分组P;然后进行地址变换,将分组P封装后的地址dest变换为查询其ART得到的ASUid。The decapsulation process mentioned in this block diagram 104 is the process of recovering the original packet P from the encapsulated packet, that is to say, the header information is removed and the payload is restored to the original packet P; then address conversion is performed to encapsulate the packet P The subsequent address dest is transformed into the ASUid obtained by querying its ART.

框图105:发送第二分组P至AR的网络层,由网络层按照unicast服务规则将该分组P发送至目的地。Block Diagram 105: Send the second packet P to the network layer of the AR, and the network layer sends the packet P to the destination according to the unicast service rule.

框图106:说明该AR只是anycast分组传送过程中一个途经的AR,应继续通过AR沿其unicast服务规则进行转发。Block Diagram 106: It shows that the AR is only a passing AR during the anycast packet transmission process, and should continue to be forwarded through the AR along its unicast service rules.

框图107:由于AR判断出该分组P不是TP,也就是说该分组P还不知道其最优的目的AS地址;那么AR通过ART中存储的信息继续查询是否存在与该分组P的dest相同的ASAid;若查找到则执行框图108,没有查找到则执行框图111或框图111A;Block Diagram 107: Since AR judges that the packet P is not a TP, that is to say, the packet P does not yet know its optimal destination AS address; then AR continues to inquire whether there is an IP address identical to the dest of the packet P through the information stored in ART. ASAid; if found, execute block diagram 108, if not find, then execute block diagram 111 or block diagram 111A;

框图108:若该AR找到与分组P的dest相同的ASAid则说明分组P的最优AS的对应的AR在AR的K跳范围以内,该对应的AR可以为其目的AS的FAR;那么继续判断是否该AR的ARuid等于选出的最优AS的FARuid;若是则执行框图109,若否则执行框图110;该框图中提到的最优的AS可以为距离发出分组P的AR最近的AS。Block Diagram 108: If the AR finds the same ASAid as the dest of the packet P, it means that the corresponding AR of the optimal AS of the packet P is within the K hop range of the AR, and the corresponding AR can be the FAR of the destination AS; then continue to judge Whether the ARuid of the AR is equal to the FARuid of the selected optimal AS; if so, execute block 109; otherwise, execute block 110; the optimal AS mentioned in this block may be the closest AS to the AR sending the packet P.

框图109:执行地址变换过程,将分组P的目的地址dest变换为通过查询AR的ART得到的ASuid,形成第二分组P;执行框图105;Block Diagram 109: Execute the address conversion process, transform the destination address dest of the packet P into the ASuid obtained by querying the ART of the AR, and form the second packet P; execute the block diagram 105;

同时若该AR的ARuid等于选出的最优AS的FARuid,则说明选出的最优AS为该anycast服务分组的HAS;At the same time, if the ARuid of the AR is equal to the FARuid of the selected optimal AS, it means that the selected optimal AS is the HAS of the anycast service group;

框图110:因为AR收到的分组P不是TP,但在AR的K跳范围内存在最优的AS,那么对该分组P执行封装过程形成第二分组P,执行框图105;Block diagram 110: because the packet P received by the AR is not a TP, but there is an optimal AS within the K-hop range of the AR, then the encapsulation process is performed on the packet P to form a second packet P, and block diagram 105 is executed;

执行封装过程也就是上文提到过的对于该分组P:(1)根据AR的ART记录的V值选择最优的AS;(2)将分组P作为封装以后分组的有效载荷,也就是指作为封装以后IP数据包的数据部分;经过封装以后分组P的源地址和目的地址分别是src和最优AS的FARAid。(3)标记该分组P为anycast隧道分组,以便FAR和AR识别;在IPV6中可以通过定义新的头部信息来标记隧道分组,IPV4中可以将分组P的某个保留位位置用来标记anycast隧道分组。Performing the encapsulation process is the above mentioned for the packet P: (1) select the optimal AS according to the V value of the ART record of the AR; (2) use the packet P as the payload of the packet after encapsulation, that is, refer to As the data part of the IP data packet after encapsulation; the source address and destination address of the packet P after encapsulation are src and the FARAid of the optimal AS respectively. (3) Mark the packet P as an anycast tunnel packet for identification by FAR and AR; in IPV6, a tunnel packet can be marked by defining new header information, and in IPV4, a reserved bit position of packet P can be used to mark anycast Tunnel grouping.

框图111:当AR接收到的分组P既不是TP,也查询不到与分组P中dest相同的ASAid时可能收到的组P为unicast分组或者是分组P请求的anycast组的AS是该AR不了解的,说明该AR只是anycas分组传送过程中一个途经的AR,应继续通过AR沿其unicast服务规则将分组P进行转发。Block Diagram 111: When the packet P received by the AR is neither a TP nor the same ASAid as dest in the packet P can not be found, the group P that may be received is a unicast packet or the AS of the anycast group requested by the packet P is not the AR. Yes, it means that the AR is just a passing AR during the anycas packet transmission process, and the packet P should continue to be forwarded through the AR along its unicast service rules.

当anycast通信的发起方成功将第一个IP包发送到最优anycast服务器后,后续的数据包也都按此路径进行传输。当anycast服务器需要向通信发起方发送数据包时,设为AS的响应过程,是指AS发送响应分组至最先发出分组P的AR。由于anycast分组P转发到最优AS的FAR时执行了地址变换过程,因此最优AS收到分组P的目的地址为ASuid,它响应的分组的原地址必然是ASuid,而开始响应过程是使用ASAid进行通信,因此FAR必须将ASUid变为ASAid,这个过程只需要进行一次。当出现响应分组时,为了区分出这种情况,anycast服务器响应分组的转发会出现在AR收到的分组P不是TP也查询不到于分组P中dest相同的ASAid时进一步进行判断;那么框图111可以用下述框图代替;When the initiator of anycast communication successfully sends the first IP packet to the optimal anycast server, subsequent data packets are also transmitted along this path. When the anycast server needs to send a data packet to the communication initiator, it is set as the response process of the AS, which means that the AS sends a response packet to the AR that first sent the packet P. Since the anycast packet P is forwarded to the FAR of the optimal AS, the address translation process is performed, so the destination address of the packet P received by the optimal AS is ASuid, and the original address of the packet it responds to must be ASuid, and the beginning of the response process is to use ASAid Communication, so FAR must change ASUid to ASAid, this process only needs to be done once. When there is a response packet, in order to distinguish this situation, the forwarding of the response packet by the anycast server will be further judged when the packet P received by the AR is not a TP and the ASAid that is the same as dest in the packet P cannot be found; then the block diagram 111 It can be replaced by the following block diagram;

框图111A:判断AR的ART中是否能查询到与分组P的src相应的ASAid;若查询不到说明该AR是anycast分组传输中途经的AR或者根本不是anycast请求分组,无需进行处理执行框图106;查询到则执行框图112;Block Diagram 111A: Determine whether the ASAid corresponding to the src of the packet P can be found in the ART of the AR; if it cannot be found, it means that the AR is an AR passing through anycast packet transmission or is not an anycast request packet at all, and no processing is required to execute block diagram 106; If the query is found, block diagram 112 is executed;

框图112:进一步判断该AR是否为分组P中src代表的AS的FAR;若否则执行框图113,若是则执行框图114;Block diagram 112: further judge whether the AR is the FAR of the AS represented by src in the packet P; if not, execute block diagram 113, and if so, execute block diagram 114;

框图113:说明该分组P虽然是来自某个AS的响应分组但这个AS没有将当前AR注册为FAR,分组的地址逆变换过程应由FAR来进行,因此只需将分组P按照unicast机制进行转发;Block Diagram 113: It shows that although the packet P is a response packet from an AS, but the AS has not registered the current AR as a FAR, the address inversion process of the packet should be performed by the FAR, so it is only necessary to forward the packet P according to the unicast mechanism ;

框图114:此时是AS响应anycast请求的过程,由于anycast分组P转发到最优AS的FAR时执行了地址变换过程,因此最优AS收到分组的目的地址为ASuid,它响应的分组的原地址必然是ASuid,而开始响应过程是使用ASAid进行通信,因此FAR必须将ASUid变为ASAid,也就是执行地址逆变换过程,形成第三分组P。此处提到的地址逆变换过程指的是AR将分组P的源地址src变为发出响应的ASAid,而目的地址不变。Block Diagram 114: At this time, it is the process of AS responding to anycast request. Since anycast packet P is forwarded to the FAR of the optimal AS, the address conversion process is performed, so the destination address of the packet received by the optimal AS is ASuid, and the original address of the packet it responds to is ASuid. The address must be ASuid, and the initial response process uses ASAid for communication, so FAR must change ASUid into ASAid, that is, perform an address inverse conversion process to form the third packet P. The address inverse conversion process mentioned here means that the AR changes the source address src of the packet P into the ASAid that sends the response, while the destination address remains unchanged.

为了使本发明实施例1的方法更加清楚,下面列举一个例子进行辅助说明:参见图4,该图为anycast转发示例的一个网络拓扑图。HAS和AS2组成一个anycast组,地址为ASAid。。部署AR1-AR5以处理anycast请求,其他IR按照Internet的标准转发分组。AR1和AR4分别是AS2和HAS的FAR。AC1-AC3是anycast服务请求者,每个请求者对应的最优服务器取决于V的值。假设HAS是AC2和AC3的最优AS,AS2是AC1的最优AS,并假设k=3。In order to make the method of Embodiment 1 of the present invention clearer, an example is given below for auxiliary explanation: Refer to FIG. 4 , which is a network topology diagram of an example of anycast forwarding. HAS and AS2 form an anycast group whose address is ASAid. . AR1-AR5 are deployed to process anycast requests, and other IRs forward packets according to Internet standards. AR1 and AR4 are FAR of AS2 and HAS respectively. AC1-AC3 are anycast service requesters, and the optimal server corresponding to each requester depends on the value of V. Assume that HAS is the optimal AS of AC2 and AC3, AS2 is the optimal AS of AC1, and assume k=3.

首先介绍AC1的请求过程:AC1发出anycast请求分组P,其目的地址为ASAid。P首先经过IR3,由于IR3没有经过改造,不能识别出分组P为一个anycast分组,因此将P视为普通unicast分组进行转发。P到达AR3,根据转发机制,AR3对P执行封装过程生成源地址和目的地址分别是AC1Uid和AR1Uid的anycast隧道分组TP并转发,最后TP到达AR1。由于AR1的ART中记录了AS2对应的FARUid是其自身,因此根据AR1的ART判断,AR1就是AS2的FAR。因此执行解封装过程,从TP中恢复出分组P。然后执行地址变换过程,以AS2Uid替换P的目的地址并发送到AS2。AS2返回源地址为AS2Uid,目的地址为AC1Uid的响应分组RP(Response packet)。由于AR1是AS2的FAR,因此AR1执行逆地址变换过程,将RP的源地址替换成ASAid并发送出去,经过的所有IR和AR都直接转发该分组,不作特殊处理。最后RP到达AC1,完成整个anycast通信过程。上述转发过程中对P和RP的处理对AS和AC都是透明的。First introduce the request process of AC1: AC1 sends anycast request packet P, whose destination address is ASAid. P first passes through IR3. Since IR3 has not been modified, it cannot recognize that packet P is an anycast packet, so P is forwarded as a normal unicast packet. When P arrives at AR3, according to the forwarding mechanism, AR3 performs an encapsulation process on P to generate an anycast tunnel packet TP whose source address and destination address are AC1Uid and AR1Uid respectively, and forwards it, and finally the TP reaches AR1. Since AR1's ART records that the FARUid corresponding to AS2 is itself, AR1 is the FAR of AS2 according to AR1's ART. The decapsulation process is therefore performed to recover the packet P from the TP. Then execute the address conversion process, replace P's destination address with AS2Uid and send it to AS2. AS2 returns a response packet RP (Response packet) whose source address is AS2Uid and destination address is AC1Uid. Since AR1 is the FAR of AS2, AR1 performs the inverse address translation process, replaces the source address of RP with ASAid and sends it out. All the IRs and ARs passing through will directly forward the packet without special processing. Finally, the RP reaches AC1 and completes the entire anycast communication process. The processing of P and RP in the above forwarding process is transparent to AS and AC.

在本发明实施例中,对anycast分组P的封装在传送过程中只进行一次。这是因为封装后分组的目的地址变成某个FAR的unicast地址,这样它就不是任何ASAid,因此不可能被再次封装。In the embodiment of the present invention, the encapsulation of anycast packet P is performed only once during the transmission process. This is because the destination address of the packet after encapsulation becomes a FAR unicast address, so it is not any ASAid, so it cannot be encapsulated again.

通过图4可以给出下面的表一:anycast转发实例表Through Figure 4, the following table 1 can be given: anycast forwarding instance table

请求节点request node 分组主路径AMP(指的是将图4中的AR当作一般的IR看作时的分组路径)Packet main path AMP (referring to the packet path when the AR in Figure 4 is regarded as a general IR) Anycast分组路径AP(指的是经过AR和IR传送后额路径)Anycast packet path AP (referring to the frontal path after AR and IR transmission) 隧道路径ATP(也就是将分组P执行封装至解封装的路径)Tunnel path ATP (that is, the path from encapsulation to decapsulation of packet P)  ASAS AC1 AC 1 IR3-AR3-IR5-IR4-AR4-HASIR 3 -AR 3 -IR 5 -IR 4 -AR 4 -HAS IR3-AR3-IR2-AR1-AS2 IR 3 -AR 3 -IR 2 -AR 1 -AS 2 AR3-IR2-AR1 AR 3 -IR 2 -AR 1  AS2 AS 2 AC2 AC 2 IR6-IR5-IR4-AR4-HASIR 6 -IR 5 -IR 4 -AR 4 -HAS IR6-IR5-IR4-AR4-HASIR 6 -IR 5 -IR 4 -AR 4 -HAS --  HASHAS AC3 AC 3 IR1-AR5-AR2-IR4-AR4-HASIR 1 -AR 5 -AR 2 -IR 4 -AR 4 -HAS IR1-AR5-AR2-IR4-AR4-HASIR 1 -AR 5 -AR 2 -IR 4 -AR 4 -HAS AR5-AR2-IR4-AR4 AR 5 -AR 2 -IR 4 -AR 4  HASHAS

由表一中的隧道路径与分组主路径的比较,也可以进一步的了解隧道技术的概念:通信的双方用一条逻辑隧道进行连接,通过anycast技术找到一条最优的路径,而将应该在原有IR传输的路线程隐藏起来。From the comparison of the tunnel path in Table 1 with the main path of the packet, we can further understand the concept of tunnel technology: the two sides of the communication are connected by a logical tunnel, and an optimal path is found through anycast technology, and the original IR The transmission route thread is hidden.

实施例2,本发明实施例还提供了一种anycast路由器;参见图5,该anycast路由器包括:Embodiment 2, the embodiment of the present invention also provides an anycast router; referring to FIG. 5, the anycast router includes:

第一接收单元201,用于接收分组P,所述分组P为任播请求数据包;The first receiving unit 201 is configured to receive a packet P, where the packet P is an anycast request packet;

第一处理单元202,用于根据所述分组P的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;The first processing unit 202 is configured to search for the unicast address of the anycast server according to the address of the packet P; transform the destination address of the packet P into the unicast address of the anycast server to form a second packet P;

第一发送单元203,用于将所述第二分组P发送至所述任播服务器。The first sending unit 203 is configured to send the second packet P to the anycast server.

所述任播服务器还可以进一步包括第一判断单元204,用于根据所述分组P的地址查找所述任播服务器的单播地址之前,先判断所述分组P不是隧道分组TP。The anycast server may further include a first judging unit 204, configured to judge that the packet P is not a tunnel packet TP before searching for the unicast address of the anycast server according to the address of the packet P.

所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP,相应地,判断所述分组P不是隧道分组具体包括:当所述分组P中不含有所述标识时,则判断所述分组P不是隧道分组。The representation method of the tunnel group is as follows: defining new header information for the group P or using a certain reserved bit position of the group P as an identifier to represent the tunnel group TP, and correspondingly judging that the group P is not a tunnel The grouping specifically includes: when the packet P does not contain the identifier, judging that the packet P is not a tunnel packet.

实施例3,本发明还提供了一种任播该任播路由器,参见图6,该任播路由器包括:Embodiment 3, the present invention also provides an anycast router, see Figure 6, the anycast router includes:

第二接收单元301,用于接收分组P,所述分组P为任播请求数据包;The second receiving unit 301 is configured to receive a packet P, where the packet P is an anycast request packet;

第二处理单元302,用于根据所述分组P的目的地址查找任播路由表选择任播服务器;将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;The second processing unit 302 is configured to search an anycast routing table according to the destination address of the packet P to select an anycast server; encapsulate the packet P into a first packet P, and the destination address of the first packet P is the an address of an anycast router corresponding to the anycast server, and the payload of the first packet P is the packet P;

第二发送单元303,用于发送所述第一分组P。The second sending unit 303 is configured to send the first packet P.

接收所述分组P后,所述的第二处理单元302进一步判断所述分组P不是隧道分组;所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP,相应地,判断所述分组P不是隧道分组具体包括:当所述分组P中不含有所述标识时,则判断所述分组P不是隧道分组。After receiving the packet P, the second processing unit 302 further judges that the packet P is not a tunnel packet; the representation method of the tunnel packet is: define new header information for the packet P or convert the packet A certain reserved bit position of P is used as an identifier to represent the tunnel packet TP, and correspondingly, judging that the packet P is not a tunnel packet specifically includes: when the packet P does not contain the identifier, then judging that the packet P is not a tunnel grouping.

所述的第二处理单元302根据所述分组P的目的地址查找任播路由表选择任播服务器具体为根据所述分组P的目的地址查找任播路由表选择离自己最近的任播服务器。The second processing unit 302 searches the anycast routing table according to the destination address of the packet P to select an anycast server, specifically, searches the anycast routing table according to the destination address of the packet P and selects an anycast server closest to itself.

所述的第二处理单元302选择的任播路由器可以为任播服务器的第一跳路由器。The anycast router selected by the second processing unit 302 may be the first-hop router of the anycast server.

实施例4,本发明还提供了一种任播该任播路由器,参见图7,该任播路由器包括:Embodiment 4, the present invention also provides an anycast anycast router, see Figure 7, the anycast router includes:

第三接收单元401,用于接收第一分组P;A third receiving unit 401, configured to receive the first packet P;

第三处理单元402,用于将所述第一分组P解封装为分组P,所述的分组P为所述的第一分组P的有效载荷;根据所述分组P的目的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;The third processing unit 402 is configured to decapsulate the first packet P into a packet P, and the packet P is the payload of the first packet P; search for the any packet according to the destination address of the packet P the unicast address of the anycast server; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P;

第三发送单元403,用于将所述第二分组P发送至所述任播服务器。实施例5,本发明还提供了一种任播该任播路由器,参见图8,该任播路由器包括:The third sending unit 403 is configured to send the second packet P to the anycast server. Embodiment 5, the present invention also provides an anycast anycast router, see Figure 8, the anycast router includes:

第四接收单元501,用于接收第一分组P;a fourth receiving unit 501, configured to receive the first packet P;

第四处理单元502,用于判断出所述第一分组P的目的地址不为自身的任播地址;The fourth processing unit 502 is configured to determine that the destination address of the first packet P is not its own anycast address;

第四发送单元503,用于通过查找本地路由表将所述第一分组P按照单播路由进行转发。The fourth sending unit 503 is configured to forward the first packet P according to a unicast route by searching a local routing table.

该任播路由器还可以进一步包括第二判断单元504,用于所述查找本地路由表将所述第一分组P进行转发之前,先判断所述第一分组P的源地址对应的任播服务器的任播地址不在本地任播路由表。The anycast router may further include a second judging unit 504, configured to judge the anycast server corresponding to the source address of the first packet P before searching the local routing table and forwarding the first packet P. The anycast address is not in the local anycast routing table.

实施例6,本发明还提供了一种任播该任播路由器,参见图9,该任播路由器包括:Embodiment 6, the present invention also provides an anycast anycast router, see Figure 9, the anycast router includes:

第五接收单元601,用于接收第二分组P的响应分组;A fifth receiving unit 601, configured to receive a response packet of the second packet P;

第五处理单元602,用于将所述第二分组P的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;The fifth processing unit 602 is configured to transform the source address of the second packet P into the anycast address of the anycast server sending the second packet P, to form a third packet P;

第五发送单元603,用于发送所述第三分组P。The fifth sending unit 603 is configured to send the third packet P.

所述的第五处理单元602将第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P之前,可以进一步先判断出所述第一分组P的目的地址不为自身的任播地址,判断所述第一分组P的源地址对应的任播服务器的任播地址在本地任播路由表。The fifth processing unit 602 transforms the source address of the response packet of the second packet P into the anycast address of the anycast server sending the second packet P, and before forming the third packet P, it may be further determined that the The destination address of the first packet P is not its own anycast address, and it is determined that the anycast address of the anycast server corresponding to the source address of the first packet P is in the local anycast routing table.

实施例7,本发明还提供了一种任播该任播服务器,参见图10,该任播服务器包括:Embodiment 7. The present invention also provides an anycast anycast server. Referring to FIG. 10, the anycast server includes:

第六接收单元701,用于接收第二分组P;A sixth receiving unit 701, configured to receive the second packet P;

第六处理单元702,用于处理第二分组P后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;The sixth processing unit 702 is configured to form a response packet of the second packet P after processing the second packet P, the source address of the response packet is the unicast address of the anycast server, and the destination address is the anycast router sending the packet P the anycast address of

第六发送单元703,用于发送第二分组P的响应分组。The sixth sending unit 703 is configured to send a response packet of the second packet P.

实施例8,本发明还提供了一种任播服务实现的系统,该系统包括:Embodiment 8, the present invention also provides a system for realizing anycast service, the system includes:

第一任播路由器,用于接收分组P,所述分组P为任播请求数据包;根据所述分组P的目的地址查找任播路由表选择任播服务器;将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;发送所述第一分组P;The first anycast router is used to receive a packet P, and the packet P is an anycast request packet; according to the destination address of the packet P, the anycast routing table is searched to select an anycast server; and the packet P is encapsulated into a first Packet P, the destination address of the first packet P is the address of the anycast router corresponding to the anycast server, and the payload of the first packet P is the packet P; sending the first packet P;

第二任播路由器,用于接收第一分组P;将所述第一分组P解封装为分组P,也就是说将有效载荷恢复成分组P;根据所述分组P的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;将所述第二分组P发送至所述任播服务器。The second anycast router is used to receive the first packet P; decapsulate the first packet P into a packet P, that is to say restore the payload into a packet P; search for the anycast according to the address of the packet P The unicast address of the server; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; sending the second packet P to the anycast server.

任播服务器,用于接收所述的分组P,按照分组P的内容提供相应的任播服务。The anycast server is configured to receive the packet P, and provide corresponding anycast service according to the contents of the packet P.

所述的第一任播路由器将所述第一分组P的有效载荷为所述分组P后,将所述分组P标记为隧道分组;所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP。After the first anycast router sets the payload of the first packet P as the packet P, it marks the packet P as a tunnel packet; the representation method of the tunnel packet is: define The new header information may use a certain reserved bit position of the packet P as an identifier to represent the tunnel packet TP.

所述的第一任播路由器执行封装时所述的任播服务器对应的任播路由器为任播服务器的第一跳路由器。When the first anycast router performs encapsulation, the anycast router corresponding to the anycast server is the first-hop router of the anycast server.

该系统可以进一步包括第三任播路由器,用于接收第一分组P;判断出所述第一分组P的目的地址不为自身的任播地址,通过查找本地路由表将所述第一分组P按照单播路由进行转发。The system may further include a third anycast router, configured to receive the first packet P; if it is determined that the destination address of the first packet P is not its own anycast address, the first packet P is sent by searching the local routing table Forward according to unicast routing.

该系统可以进一步包括第四任播服务器,用于接收分组P,所述分组P为任播请求数据包;根据所述分组P的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;将所述第二分组P发送至所述任播服务器。The system may further include a fourth anycast server, configured to receive a packet P, and the packet P is an anycast request packet; search for the unicast address of the anycast server according to the address of the packet P; The destination address of P is transformed into the unicast address of the anycast server to form a second packet P; and the second packet P is sent to the anycast server.

所述的任播服务器还可以进一步用于按照第二分组P的内容提供相应的任播服务后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;发送第二分组P的响应分组;相应的所述的系统可以进一步包括第五任播路由器,用于接收第二分组P的响应分组;将所述第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;发送所述第三分组P。The anycast server can be further used to form a response packet of the second packet P after providing the corresponding anycast service according to the content of the second packet P, and the source address of the response packet is the unicast address of the anycast server , the destination address is the anycast address of the anycast router sending the packet P; sending the response packet of the second packet P; the corresponding system may further include a fifth anycast router for receiving the response packet of the second packet P Transforming the source address of the response packet of the second packet P into the anycast address of the anycast server sending the second packet P to form a third packet P; sending the third packet P.

以上技术方案可以看出,由于本发明采用了通过执行封装、地址变换、解封装等技术,使得anycast分组P具备了unicast的优点,同时实现了在所有AS中高效率的实现最优组成员选择。并且通过封装过程一般只要每个AR掌握其V跳自治域内的AS信息;可以将V控制在4或5内,这样每个AR都知道一定的信息,那么所有的AR连接起来就能够提供全球anycast服务。并且通过控制这种记录信息,同时就从一定程度上降低了ART路由表信息的存储容量,从而提高的anycast组数量的可扩展性;It can be seen from the above technical solutions that because the present invention adopts technologies such as encapsulation, address translation, and decapsulation, the anycast group P has the advantages of unicast, and at the same time realizes efficient selection of optimal group members in all ASs. And through the encapsulation process, as long as each AR masters the AS information in its V-hop autonomous domain; V can be controlled within 4 or 5, so that each AR knows certain information, then all ARs can be connected to provide global anycast Serve. And by controlling this record information, the storage capacity of ART routing table information is reduced to a certain extent at the same time, thereby improving the scalability of the number of anycast groups;

进一步的,由于目前阶段很难在Internet的实际环境中大规模的部署本发明的网络环境,因此申请人通过仿真试验验证了本发明的效率。Further, since it is difficult to deploy the network environment of the present invention on a large scale in the actual environment of the Internet at the current stage, the applicant has verified the efficiency of the present invention through simulation tests.

仿真的拓扑取自University of Oregon的Route Overview项目所获得的真实Internet拓扑结构.该项目收集全球50多个地区的主干路由器的BGP表并每天进行更新,因此反映了最真实的Internet拓扑结构.结合IANA对自治域的划分,从中提取出5939个自治域连接信息用于仿真。The simulated topology is taken from the real Internet topology obtained by the Route Overview project of the University of Oregon. This project collects BGP tables of backbone routers in more than 50 regions around the world and updates them every day, thus reflecting the most realistic Internet topology. According to the division of autonomous domains by IANA, the connection information of 5939 autonomous domains is extracted for simulation.

首先从自治域邻接关系中求得任意两个自治域的最短路经.这里不考虑自治域之间的路由策略,如成本和距离等,仅以最少跳数作为路由选择的依据.得到的最短路经平均值是4.03,其中最长路径为9,这符合Internet的小世界性质.然后为整个网络分派100个anycast组,组成员数量在[1,1000]间均匀分布.对每一个anycast组我们在网络中随机的选择HAS并假设其它组成员也是随机分布的。Firstly, the shortest path between any two autonomous domains is obtained from the adjacency relationship of autonomous domains. The routing strategy between autonomous domains, such as cost and distance, is not considered here, and only the minimum number of hops is used as the basis for routing selection. The shortest path obtained The average path is 4.03, and the longest path is 9, which is in line with the small world nature of the Internet. Then 100 anycast groups are assigned to the entire network, and the number of group members is evenly distributed between [1, 1000]. For each anycast group We randomly select HAS in the network and assume that other group members are also randomly distributed.

本发明实施例并不保证所有的anycast请求都被路由到全局最优的AS.定义P为AC到AS的实际路径长度,P*为AC到anycast所有组成员的最短路径长度,定义最优服务发现效率φ=P/P*.参见图11说明随着网络中AR数量的增多最优服务的发现效率不断提高.当AR占IR总数的45%及其以上时anycast分组基本上可以找到最优路径.与GIA相比,由于对部分anycast分组,不管请求者周围是否有该组的成员,GIA直接将anycast分组路由到家乡域.因此GIA的效率成直线,取决于前面说的不常用anycast组地址的访问频度.可见在大多数情况下本发明的效率都得到了明显改善。The embodiment of the present invention does not guarantee that all anycast requests are routed to the globally optimal AS. Define P as the actual path length from AC to AS, and P * as the shortest path length from AC to all members of anycast group, and define the optimal service Discovery efficiency φ=P/P * . Refer to Figure 11 to illustrate that as the number of ARs in the network increases, the discovery efficiency of optimal services continues to increase. When ARs account for 45% of the total number of IRs and above, anycast grouping can basically find the optimal service Path. Compared with GIA, due to the partial anycast grouping, regardless of whether there are members of the group around the requester, GIA directly routes the anycast grouping to the home domain. Therefore, the efficiency of GIA is in a straight line, depending on the infrequent anycast group mentioned above. The access frequency of the address. It can be seen that the efficiency of the present invention has been significantly improved in most cases.

以上对本发明所提供的任播服务的实现方法、任播路由器进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The implementation method of the anycast service provided by the present invention and the anycast router have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are only used to help understand the present invention. The method of the invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood To limit the present invention.

Claims (32)

1.一种任播服务实现方法,其特征在于,该方法包括:1. A method for implementing anycast service, characterized in that the method comprises: 接收分组P,所述分组P为任播请求数据包;Receiving a packet P, the packet P is an anycast request packet; 根据所述分组P的目的地址查找任播服务器的单播地址;Find the unicast address of anycast server according to the destination address of the packet P; 将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; 将所述第二分组P发送至所述任播服务器。Sending the second packet P to the anycast server. 2.如权1所述的方法,其特征在于,所述根据所述分组P的地址查找所述任播服务器的单播地址之前还包括:判断所述分组P不是隧道分组TP。2. The method according to claim 1, wherein before searching for the unicast address of the anycast server according to the address of the packet P, further comprising: judging that the packet P is not a tunnel packet TP. 3.根据权利要求2所述的任播服务实现方法,其特征在于,所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP,相应地,判断所述分组P不是隧道分组具体包括:当所述分组P中不含有所述标识时,则判断所述分组P不是隧道分组。3. The method for implementing anycast service according to claim 2, characterized in that, the representation method of the tunnel group is: defining new header information for the group P or setting a certain reserved bit of the group P The position is used as an identifier to represent the tunnel packet TP, and correspondingly, judging that the packet P is not a tunnel packet specifically includes: when the packet P does not contain the identifier, judging that the packet P is not a tunnel packet. 4.一种任播路由器,其特征在于,该任播服务器包括:4. An anycast router, characterized in that the anycast server includes: 第一接收单元,用于接收分组P,所述分组P为任播请求数据包;The first receiving unit is configured to receive a packet P, and the packet P is an anycast request packet; 第一处理单元,用于根据所述分组P的地址查找所述任播服务器的单播地址;A first processing unit, configured to search for the unicast address of the anycast server according to the address of the packet P; 将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; 第一发送单元,用于将所述第二分组P发送至所述任播服务器。A first sending unit, configured to send the second packet P to the anycast server. 5.根据权利要求4所述的任播服务器,其特征在于,所述任播服务器进一步包括第一判断单元,用于根据所述分组P的地址查找所述任播服务器的单播地址之前,先判断所述分组P不是隧道分组TP。5. The anycast server according to claim 4, wherein the anycast server further comprises a first judging unit, configured to search for the unicast address of the anycast server according to the address of the packet P, It is first determined that the packet P is not a tunnel packet TP. 6.根据权利要求5所述的任播服务器,其特征在于,6. The anycast server according to claim 5, characterized in that, 所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP,相应地,判断所述分组P不是隧道分组具体包括:当所述分组P中不含有所述标识时,则判断所述分组P不是隧道分组。The representation method of the tunnel group is as follows: defining new header information for the group P or using a certain reserved bit position of the group P as an identifier to represent the tunnel group TP, and correspondingly judging that the group P is not a tunnel The grouping specifically includes: when the packet P does not contain the identifier, judging that the packet P is not a tunnel packet. 7.一种发送任播请求的方法,其特征在于,该方法包括:7. A method for sending an anycast request, characterized in that the method comprises: 接收分组P,所述分组P为任播请求数据包;Receiving a packet P, the packet P is an anycast request packet; 根据所述分组P的目的地址查找任播路由表选择任播服务器;Search anycast routing table according to the destination address of the packet P to select anycast server; 将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;Encapsulating the packet P into a first packet P, the destination address of the first packet P is the address of anycast router corresponding to the anycast server, and the payload of the first packet P is the packet P; 发送所述第一分组P。The first packet P is sent. 8.根据权利要求7所述的发送任播请求的方法,其特征在于,接收所述分组P后,进一步判断所述分组P不是隧道分组;所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP,相应地,判断所述分组P不是隧道分组具体包括:当所述分组P中不含有所述标识时,则判断所述分组P不是隧道分组。8. The method for sending an anycast request according to claim 7, characterized in that, after receiving the packet P, it is further judged that the packet P is not a tunnel packet; the representation method of the tunnel packet is: P defines new header information or uses a certain reserved bit position of the packet P as an identifier to represent the tunnel packet TP. Correspondingly, judging that the packet P is not a tunnel packet specifically includes: when the packet P does not contain any When the above identifier is found, it is judged that the packet P is not a tunnel packet. 9.根据权利要求7所述的发送任播请求的方法,其特征在于,所述根据所述分组P的目的地址查找任播路由表选择任播服务器具体为根据所述分组P的目的地址查找任播路由表选择离自己最近的任播服务器。9. The method for sending an anycast request according to claim 7, wherein the searching anycast routing table according to the destination address of the packet P to select an anycast server is specifically searching for an anycast server according to the destination address of the packet P The anycast routing table selects the nearest anycast server. 10.根据权利要求7至9其中之一所述的发送任播请求的方法,其特征在于,10. The method for sending an anycast request according to any one of claims 7 to 9, characterized in that, 所述的任播服务器对应的任播路由器为任播服务器的第一跳路由器。The anycast router corresponding to the anycast server is the first-hop router of the anycast server. 11.一种任播路由器,其特征在于,该任播路由器包括:11. An anycast router, characterized in that the anycast router comprises: 第二接收单元,用于接收分组P,所述分组P为任播请求数据包;The second receiving unit is configured to receive a packet P, and the packet P is an anycast request packet; 第二处理单元,用于根据所述分组P的目的地址查找任播路由表选择任播服务器;将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;The second processing unit is configured to search an anycast routing table according to the destination address of the packet P to select an anycast server; encapsulate the packet P into a first packet P, and the destination address of the first packet P is the anycast server. The address of the anycast router corresponding to the broadcast server, the payload of the first packet P is the packet P; 第二发送单元,用于发送所述第一分组P。The second sending unit is configured to send the first packet P. 12.根据权利要求11所述的任播路由器,其特征在于,接收所述分组P后,所述的第二处理单元进一步判断所述分组P不是隧道分组;所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP,相应地,判断所述分组P不是隧道分组具体包括:当所述分组P中不含有所述标识时,则判断所述分组P不是隧道分组。12. The anycast router according to claim 11, wherein after receiving the packet P, the second processing unit further judges that the packet P is not a tunnel packet; the representation method of the tunnel packet is: Defining new header information for the packet P or using a certain reserved bit position of the packet P as an identifier to represent the tunnel packet TP, correspondingly, judging that the packet P is not a tunnel packet specifically includes: when the packet P If does not contain the identifier, it is determined that the packet P is not a tunnel packet. 13.根据权利要求11所述的任播路由器,其特征在于,13. The anycast router according to claim 11, characterized in that, 所述的第二处理单元根据所述分组P的目的地址查找任播路由表选择任播服务器具体为根据所述分组P的目的地址查找任播路由表选择离自己最近的任播服务器。The second processing unit searches the anycast routing table according to the destination address of the packet P to select an anycast server, specifically, searches the anycast routing table according to the destination address of the packet P and selects an anycast server closest to itself. 14.根据权利要求11至13其中之一所述的任播路由器,其特征在于,14. The anycast router according to any one of claims 11 to 13, characterized in that, 所述的第二处理单元选择的任播路由器为任播服务器的第一跳路由器。The anycast router selected by the second processing unit is the first-hop router of the anycast server. 15.一种处理任播请求的方法,其特征在于,该方法包括:15. A method for processing anycast requests, characterized in that the method comprises: 接收第一分组P,将所述第一分组P解封装为分组P,所述的分组P为所述的第一分组P的有效载荷;receiving a first packet P, decapsulating the first packet P into a packet P, the packet P being the payload of the first packet P; 根据所述分组P的目的地址查找所述任播服务器的单播地址;Find the unicast address of the anycast server according to the destination address of the packet P; 将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; 将所述第二分组P发送至所述任播服务器。Sending the second packet P to the anycast server. 16.一种任播路由器,其特征在于,该任播路由器包括:16. An anycast router, characterized in that the anycast router comprises: 第三接收单元,用于接收第一分组P;a third receiving unit, configured to receive the first packet P; 第三处理单元,用于将所述第一分组P解封装为分组P,所述的分组P为所述的第一分组P的有效载荷;根据所述分组P的目的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;The third processing unit is configured to decapsulate the first packet P into a packet P, and the packet P is the payload of the first packet P; search for the anycast according to the destination address of the packet P The unicast address of the server; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; 第三发送单元,用于将所述第二分组P发送至所述任播服务器。A third sending unit, configured to send the second packet P to the anycast server. 17.一种处理任播请求的方法,其特征在于,该方法包括:17. A method for processing anycast requests, characterized in that the method comprises: 接收第一分组P;receiving a first packet P; 判断出所述第一分组P的目的地址不为自身的任播地址,通过查找本地路由表将所述第一分组P按照单播路由进行转发。It is determined that the destination address of the first packet P is not its own anycast address, and the first packet P is forwarded according to a unicast route by searching a local routing table. 18.根据权利要求17所述的处理任播请求的方法,其特征在于,所述查找本地路由表将所述第一分组P进行转发之前进一步包括:判断所述第一分组P的源地址对应的任播服务器的任播地址不在本地任播路由表。18. The method for processing an anycast request according to claim 17, characterized in that before the searching the local routing table and forwarding the first packet P further comprises: judging that the source address of the first packet P corresponds to The anycast address of the anycast server is not in the local anycast routing table. 19.一种任播路由器,其特征在于,该任播路由器包括:19. An anycast router, characterized in that the anycast router comprises: 第四接收单元,用于接收第一分组P;a fourth receiving unit, configured to receive the first packet P; 第四处理单元,用于判断出所述第一分组P的目的地址不为自身的任播地址;A fourth processing unit, configured to determine that the destination address of the first packet P is not its own anycast address; 第四发送单元,用于通过查找本地路由表将所述第一分组P按照单播路由进行转发。The fourth sending unit is configured to forward the first packet P according to a unicast route by searching a local routing table. 20.根据权利要求19所述的任播路由器,其特征在于,该任播路由器进一步包括第二判断单元,用于所述查找本地路由表将所述第一分组P进行转发之前,先判断所述第一分组P的源地址对应的任播服务器的任播地址不在本地任播路由表。20. The anycast router according to claim 19, characterized in that, the anycast router further comprises a second judging unit, which is used to judge the The anycast address of the anycast server corresponding to the source address of the first packet P is not in the local anycast routing table. 21.一种处理响应任播请求的方法,其特征在于,该方法包括:21. A method for processing and responding to anycast requests, characterized in that the method comprises: 接收第二分组P的响应分组;receiving a response packet of the second packet P; 将所述第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;Transforming the source address of the response packet of the second packet P into the anycast address of the anycast server sending the second packet P to form a third packet P; 发送所述第三分组P。Said third packet P is sent. 22.如权利要求21所述的方法,其特征在于,22. The method of claim 21, wherein, 所述将第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P之前还包括:判断出所述第一分组P的目的地址不为自身的任播地址,判断所述第一分组P的源地址对应的任播服务器的任播地址在本地任播路由表。The transforming the source address of the response packet of the second packet P into the anycast address of the anycast server sending the second packet P, before forming the third packet P, also includes: judging the purpose of the first packet P The address is not its own anycast address, and it is determined that the anycast address of the anycast server corresponding to the source address of the first packet P is in the local anycast routing table. 23.一种任播路由器,其特征在于,该任播服务器包括:23. An anycast router, characterized in that the anycast server includes: 第五接收单元,用于接收第二分组P的响应分组;A fifth receiving unit, configured to receive a response packet of the second packet P; 第五处理单元,用于将所述第二分组P的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;A fifth processing unit, configured to transform the source address of the second packet P into the anycast address of the anycast server sending the second packet P, to form a third packet P; 第五发送单元,用于发送所述第三分组P。The fifth sending unit is configured to send the third packet P. 24.根据权利要求23所述的任播路由器,其特征在于,24. The anycast router according to claim 23, wherein: 所述的第五处理单元将第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P之前,先判断出所述第一分组P的目的地址不为自身的任播地址,判断所述第一分组P的源地址对应的任播服务器的任播地址在本地任播路由表。The fifth processing unit transforms the source address of the response packet of the second packet P into the anycast address of the anycast server that sends the second packet P, and before forming the third packet P, first judges that the first The destination address of the packet P is not its own anycast address, and it is determined that the anycast address of the anycast server corresponding to the source address of the first packet P is in the local anycast routing table. 25.一种处理响应任播请求的方法,其特征在于,该方法包括:25. A method for processing and responding to anycast requests, characterized in that the method comprises: 接收第二分组P;receiving a second packet P; 处理第二分组P后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;After processing the second packet P, a response packet of the second packet P is formed, the source address of the response packet is the unicast address of the anycast server, and the destination address is the anycast address of the anycast router sending the packet P; 发送第二分组P的响应分组。A response packet of the second packet P is sent. 26.一种任播服务器,其特征在于,该任播服务器包括:26. An anycast server, characterized in that the anycast server comprises: 第六接收单元,用于接收第二分组P;a sixth receiving unit, configured to receive the second packet P; 第六处理单元,用于处理第二分组P后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;The sixth processing unit is configured to form a response packet of the second packet P after processing the second packet P, the source address of the response packet is the unicast address of the anycast server, and the destination address is the address of the anycast router sending the packet P anycast address; 第六发送单元,用于发送第二分组P的响应分组。A sixth sending unit, configured to send a response packet of the second packet P. 27.一种任播服务实现的系统,其特征在于,该系统包括:27. A system for realizing anycast service, characterized in that the system comprises: 第一任播路由器,用于接收分组P,所述分组P为任播请求数据包;根据所述分组P的目的地址查找任播路由表选择任播服务器;将所述分组P封装为第一分组P,所述第一分组P的目的地址为所述任播服务器对应的任播路由器的地址,所述第一分组P的有效载荷为所述分组P;发送所述第一分组P;The first anycast router is used to receive a packet P, and the packet P is an anycast request packet; according to the destination address of the packet P, the anycast routing table is searched to select an anycast server; and the packet P is encapsulated into a first Packet P, the destination address of the first packet P is the address of the anycast router corresponding to the anycast server, and the payload of the first packet P is the packet P; sending the first packet P; 第二任播路由器,用于接收第一分组P;将所述第一分组P解封装为分组P,也就是说将有效载荷恢复成分组P;根据所述分组P的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;将所述第二分组P发送至所述任播服务器。The second anycast router is configured to receive the first packet P; decapsulate the first packet P into a packet P, that is to say restore the payload into a packet P; search for the anycast according to the address of the packet P The unicast address of the server; converting the destination address of the packet P into the unicast address of the anycast server to form a second packet P; sending the second packet P to the anycast server. 任播服务器,用于接收所述的第二分组P,按照所述的第二分组P的内容提供相应的任播服务。The anycast server is configured to receive the second packet P, and provide corresponding anycast service according to the content of the second packet P. 28.根据权利要求27所述的任播服务实现的系统,其特征在于,所述的第一任播路由器将所述第一分组P的有效载荷为所述分组P后,将所述分组P标记为隧道分组;所述隧道分组的表示方法为:对所述分组P定义新的头部信息或将所述分组P的某一保留位位置作为标识来表示隧道分组TP。28. The system for realizing anycast service according to claim 27, characterized in that, after said first anycast router converts the payload of said first packet P into said packet P, said packet P Marked as a tunnel packet; the representation method of the tunnel packet is: defining new header information for the packet P or using a reserved bit position of the packet P as an identifier to represent the tunnel packet TP. 29.根据权利要求27所述的任播服务实现的系统,其特征在于,29. The system implemented by anycast service according to claim 27, characterized in that, 所述的第一任播路由器执行封装时所述的任播服务器对应的任播路由器为任播服务器的第一跳路由器。When the first anycast router performs encapsulation, the anycast router corresponding to the anycast server is the first-hop router of the anycast server. 30.根据权利要求27所述的任播服务实现的系统,其特征在于,所述的系统进一步包括第三任播路由器,用于接收第一分组P;判断出所述第一分组P的目的地址不为自身的任播地址,通过查找本地路由表将所述第一分组P按照单播路由进行转发。30. The system for implementing anycast service according to claim 27, characterized in that, the system further comprises a third anycast router, configured to receive the first packet P; determine the purpose of the first packet P The address is not its own anycast address, and the first packet P is forwarded according to a unicast route by searching a local routing table. 31.根据权利要求27所述的任播服务实现的系统,其特征在于,所述的系统进一步包括第四任播服务器,用于接收分组P,所述分组P为任播请求数据包;根据所述分组P的地址查找所述任播服务器的单播地址;将所述分组P的目的地址变换为所述任播服务器的单播地址,形成第二分组P;将所述第二分组P发送至所述任播服务器。31. The system for implementing anycast service according to claim 27, characterized in that, the system further comprises a fourth anycast server, configured to receive a packet P, and the packet P is an anycast request packet; according to The address of the group P is searched for the unicast address of the anycast server; the destination address of the group P is transformed into the unicast address of the anycast server to form a second group P; the second group P sent to the anycast server. 32.根据权利要求27所述的任播服务实现的系统,其特征在于,所述的任播服务器进一步用于按照第二分组P的内容提供相应的任播服务后,形成第二分组P的响应分组,所述响应分组的源地址为任播服务器的单播地址、目的地址为发送分组P的任播路由器的任播地址;发送第二分组P的响应分组;32. The system for realizing anycast service according to claim 27, characterized in that, the anycast server is further configured to form the second group P after providing the corresponding anycast service according to the content of the second group P Response packet, the source address of the response packet is the unicast address of the anycast server, and the destination address is the anycast address of the anycast router sending the packet P; the response packet of the second packet P is sent; 所述的系统进一步包括第五任播路由器,用于接收第二分组P的响应分组;将所述第二分组P的响应分组的源地址变换为发出所述第二分组P的任播服务器的任播地址,形成第三分组P;发送所述第三分组P。The system further includes a fifth anycast router, configured to receive the response packet of the second packet P; transform the source address of the response packet of the second packet P into the address of the anycast server sending the second packet P anycast address, forming a third packet P; sending said third packet P.
CNA2007101954981A 2007-11-30 2007-11-30 Implementation method of anycast service, method of sending anycast request, anycast router Pending CN101174970A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNA2007101954981A CN101174970A (en) 2007-11-30 2007-11-30 Implementation method of anycast service, method of sending anycast request, anycast router
PCT/CN2008/073242 WO2009074077A1 (en) 2007-11-30 2008-11-28 Realizing method of anycast service, method for sending anycast request, anycast router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101954981A CN101174970A (en) 2007-11-30 2007-11-30 Implementation method of anycast service, method of sending anycast request, anycast router

Publications (1)

Publication Number Publication Date
CN101174970A true CN101174970A (en) 2008-05-07

Family

ID=39423246

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101954981A Pending CN101174970A (en) 2007-11-30 2007-11-30 Implementation method of anycast service, method of sending anycast request, anycast router

Country Status (2)

Country Link
CN (1) CN101174970A (en)
WO (1) WO2009074077A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009074077A1 (en) * 2007-11-30 2009-06-18 Huawei Technologies Co., Ltd. Realizing method of anycast service, method for sending anycast request, anycast router
CN101902693A (en) * 2010-07-21 2010-12-01 中国科学院计算技术研究所 Method and system for anycast in IP network supporting node mobility
CN103650437A (en) * 2013-06-28 2014-03-19 华为技术有限公司 Anycast service registration, method and apparatus, switching equipment and systems
CN106453090A (en) * 2016-10-19 2017-02-22 常熟理工学院 Communication method taking data as center
CN106507428A (en) * 2016-10-19 2017-03-15 常熟理工学院 A kind of data communications method of following mobile network
CN103947178B (en) * 2011-11-22 2018-10-02 思科技术公司 Method and apparatus for content delivery
CN111447304A (en) * 2020-06-17 2020-07-24 中国人民解放军国防科技大学 An anycast recursive domain name system anycast node IP address enumeration method and system
CN113347047A (en) * 2016-08-31 2021-09-03 Nicira股份有限公司 Edge node cluster network redundancy and fast convergence using underlying anycast VTEP IP

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1233572A1 (en) * 2001-02-19 2002-08-21 Telefonaktiebolaget L M Ericsson (Publ) Method and system for multiple hosts anycast routing
JP3813571B2 (en) * 2002-11-13 2006-08-23 株式会社東芝 Border router device, communication system, routing method, and routing program
US7676595B2 (en) * 2003-12-29 2010-03-09 Intel Corporation Anycast addressing for internet protocol version six
CN101174970A (en) * 2007-11-30 2008-05-07 华为技术有限公司 Implementation method of anycast service, method of sending anycast request, anycast router

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009074077A1 (en) * 2007-11-30 2009-06-18 Huawei Technologies Co., Ltd. Realizing method of anycast service, method for sending anycast request, anycast router
CN101902693A (en) * 2010-07-21 2010-12-01 中国科学院计算技术研究所 Method and system for anycast in IP network supporting node mobility
CN101902693B (en) * 2010-07-21 2013-07-31 中国科学院计算技术研究所 Method and system for performing anycast in internet protocol (IP) network capable of supporting node movement
CN103947178B (en) * 2011-11-22 2018-10-02 思科技术公司 Method and apparatus for content delivery
CN103650437A (en) * 2013-06-28 2014-03-19 华为技术有限公司 Anycast service registration, method and apparatus, switching equipment and systems
WO2014205786A1 (en) * 2013-06-28 2014-12-31 华为技术有限公司 Anycast service registration and implementation method and apparatus, and switching device and system
CN103650437B (en) * 2013-06-28 2016-11-16 华为技术有限公司 Anycast service registration, implementation method and device, switching equipment and system
CN113347047A (en) * 2016-08-31 2021-09-03 Nicira股份有限公司 Edge node cluster network redundancy and fast convergence using underlying anycast VTEP IP
CN113347047B (en) * 2016-08-31 2024-09-10 Nicira股份有限公司 Edge node cluster network redundancy and fast convergence using underlying anycast VTEP IP
CN106453090A (en) * 2016-10-19 2017-02-22 常熟理工学院 Communication method taking data as center
CN106507428B (en) * 2016-10-19 2019-05-07 常熟理工学院 A Data Communication Method for Future Mobile Networks
CN106453090B (en) * 2016-10-19 2019-01-11 常熟理工学院 A kind of data-centered communication means
CN106507428A (en) * 2016-10-19 2017-03-15 常熟理工学院 A kind of data communications method of following mobile network
CN111447304A (en) * 2020-06-17 2020-07-24 中国人民解放军国防科技大学 An anycast recursive domain name system anycast node IP address enumeration method and system

Also Published As

Publication number Publication date
WO2009074077A1 (en) 2009-06-18

Similar Documents

Publication Publication Date Title
US8830857B2 (en) Name-to-address mapping system, data transmission method and name-to-address mapping maintenance method
US10027623B2 (en) Internet protocol address resolution
KR101468831B1 (en) Mapping private and public addresses
US9537793B2 (en) Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments
US10164910B2 (en) Method and apparatus for an information-centric MAC layer
CN101174970A (en) Implementation method of anycast service, method of sending anycast request, anycast router
WO2013123847A1 (en) Packet transmission method and network device
US10187293B2 (en) Apparatus and method for multicast data packet forwarding
CN102075420A (en) Location identifier and host identifier separation-based system and mobility management method thereof
CN103036794A (en) Learning method, device and system of message
CN113556413A (en) Message processing method and device
CN100444573C (en) A Method of Constructing Hierarchical Switching Network
CN111988228A (en) Method and apparatus for processing forwarding table entry
CN115801663B (en) Route generation method, device and storage medium
KR100636273B1 (en) Apparatus and method for transmitting MPL multicast packet through Ethernet
WO2015113456A1 (en) Method for generating media access control table, and network device
US11057342B2 (en) Network address translation
CN101552714B (en) Method and device for realizing traffic engineering in multi-home and multi-address space network
CN103209128B (en) The simultaneously data forwarding method of supported data report and virtual circuit services and router
US20230081052A1 (en) Method and apparatus for sending multicast packet
CN101645835B (en) Method and system of host identity planar route of access network
WO2017107033A1 (en) Identity-based centralized-control network (iccn) architecture
CN114070790B (en) Information forwarding method, PE, system, equipment and media in VPLS equipment
CN110418218B (en) Message processing method and device and FCF switching equipment
WO2024061184A1 (en) Correspondence acquisition method, parameter notification method, and apparatus, device and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080507