WO2014100998A1 - 一种处理报文的方法、设备和*** - Google Patents

一种处理报文的方法、设备和*** Download PDF

Info

Publication number
WO2014100998A1
WO2014100998A1 PCT/CN2012/087510 CN2012087510W WO2014100998A1 WO 2014100998 A1 WO2014100998 A1 WO 2014100998A1 CN 2012087510 W CN2012087510 W CN 2012087510W WO 2014100998 A1 WO2014100998 A1 WO 2014100998A1
Authority
WO
WIPO (PCT)
Prior art keywords
location information
location
remote device
access device
access
Prior art date
Application number
PCT/CN2012/087510
Other languages
English (en)
French (fr)
Inventor
郑若滨
李宏宇
罗勇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280017320.7A priority Critical patent/CN104040988B/zh
Priority to PCT/CN2012/087510 priority patent/WO2014100998A1/zh
Publication of WO2014100998A1 publication Critical patent/WO2014100998A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for processing a message.
  • the user equipment passes through the customer premise equipment (CPE) and the remote node (hereinafter referred to as the remote device). It is connected to an access node (AN) device (hereinafter referred to as an access device), and the AN is connected to an IP edge device.
  • CPE customer premise equipment
  • AN access node
  • IP edge device IP edge device
  • the user equipment or the CPE needs to obtain an IP address through a dynamic host configuration protocol (DHCP).
  • DHCP dynamic host configuration protocol
  • the server in the network needs to know the location information of the user.
  • the server in the network can only correctly assign the IP address to the corresponding user after knowing the location information of the user.
  • the location information is usually carried by the DHCP protocol, and is added by the device in the access network to the corresponding DHCP message. Similarly, there is a ⁇ 6 ⁇ text that needs to be added to the user's location information in the message.
  • Both the remote device and the AN need to add location information to the corresponding packet.
  • the remote device adds the packet to the access device, and then adds the corresponding location information to the IP edge.
  • Another device is that the access device first configures the corresponding location information to the remote device, and the remote device adds the corresponding location information to the corresponding device at a time.
  • the remote device usually has at least one forwarding plane and one control plane, and the control plane is used to add corresponding location information in the corresponding message.
  • the remote device in the access network only has a forwarding plane, and its control plane moves to the access device.
  • the forwarding table of the remote device is accessed by the access device. Take control. Because there is no control plane in the remote device, the complex calculation requirements required for inserting location information in the packet cannot be met, and the location information cannot be successfully added to the packet. Summary of the invention
  • the present invention provides a method, an apparatus, and a system for processing a message, in view of the fact that there is no control plane in the remote device, and the location information cannot be successfully added to the packet.
  • a method for processing a message in an access network is provided, where the access network includes a terminal device, a remote device, and an access device, where the terminal device passes the The remote device is connected to the access device, and the method includes:
  • the access device Receiving, by the access device, a location configuration message from the remote device;
  • the first location information is not carried in the packet, and the access device obtains the first location information, and adds the first location information to the location configuration packet, where the first location information includes the remote device.
  • a first port identifier of the first port connected to the terminal device.
  • the access device adds second location information to the location configuration packet, where the second location information includes the access device and the remote location The second port identifier of the second port to which the end device is connected.
  • the access device may send the location configuration 4 to which the first location information and the second location information are added to the IP edge device connected to the access device. Yan Wen.
  • the access device may further send, to the remote device, a location configuration packet that adds the first location information and the second location information, so as to facilitate After receiving the packet, the remote device forwards the location configuration message to which the first location information and the second location information are added, where the data channel is the access device and the remote device.
  • the access device receives the location configuration message added by the remote device and adds the first location information and the second location information, and forwards the packet to the IP edge device connected to the access device.
  • a location configuration message in which the first location information and the second location information are added.
  • the access device may manage the forwarding table of the remote device, so that the remote device receives the location configuration message after adding the first location information and the second location information, and the data is received by the remote device.
  • the channel forwards the location configuration information to which the first location information and the second location information are added to the access device.
  • the receiving, by the access device, the first location configuration packet from the remote device may be: the access device receiving the pass control from the remote device The first location configuration packet sent by the channel, where the control channel is a control channel between the access device and the remote device.
  • the acquiring, by the access device, the first location information may include: the access device acquiring the first location information that is reported by the remote device by using the control channel.
  • the first port identifier includes one or more of a frame number, a slot number, a port number, and a virtual local area network identifier of the first port.
  • the location configuration message is a dynamic host configuration protocol 82 mode DHCP OPTION 82 message or a sixth version Internet Protocol IPv6 router request ⁇ .
  • the embodiment of the present invention further provides a method for processing a packet in an access network, where the access network includes a terminal device, a remote device, and an access device, where the terminal device passes the remote device. Connected to the access device, the method includes:
  • the remote device receives a first location configuration message from the terminal device; the remote device sends the first location configuration message to the access device, and sends the first location configuration message to the access device Sending location information or a label corresponding to the location information, facilitating the access device to The location information is added to the first location configuration message to form a second location configuration message, where the control channel is a control channel between the remote device and the access device, and the location information includes a port identifier of a port connected to the terminal device on the remote device; the remote device receives the second location configuration packet from the access device; The access device forwards the second location configuration message.
  • the port identifier includes one or more of a frame number, a slot number, a port number, and a virtual local area network identifier of the port.
  • the first location configuration message is a dynamic host configuration protocol 82 mode DHCP OPTION 82 message or a sixth version Internet Protocol IPv6 router request message.
  • the embodiment of the present invention further provides an access device, where the access network includes a terminal device, a remote device, and the access device, where the terminal device passes the remote device.
  • the end device is connected to the access device, and the access device includes:
  • the location information obtained by the second obtaining module is added to the location configuration message when the location configuration message obtained by the first obtaining module does not carry the location information, where the location information includes The port identifier of the port connected to the terminal device on the remote device; the first acquiring module, configured to acquire the location configuration packet sent by the terminal device and forwarded by the remote device; The second obtaining module is configured to acquire the location information.
  • the second acquiring module may be configured to obtain the location information from the storage module according to the label sent by the remote device;
  • the storage module is further configured to store a correspondence between the label and the location information.
  • the port identifier may include one or more of a frame number, a slot number, a port number, and a virtual local area network identifier of the port.
  • the location configuration packet may be a dynamic host configuration protocol 82 mode DHCP OPTION 82 message or a sixth version of the Internet protocol IPv6 router request.
  • the embodiment of the present invention further provides a remote device, which is applied to an access network, where the access network includes a terminal device, the remote device, and an access device, where the terminal device passes the remote device.
  • the end device is connected to the access device, and the remote device includes:
  • the location information includes the port identifier of the port connected to the terminal device on the remote device; the receiving module is further configured to receive the second location configuration packet from the access device The sending module is further configured to forward the second location configuration file to the access device by using a data channel.
  • the port identifier may include the port One or more of the frame number, slot number, port number, and virtual LAN ID.
  • the location configuration message may be a dynamic host configuration protocol 82 mode DHCP OPTION 82 message or a sixth version Internet Protocol IPv6 router request message.
  • the fifth aspect further provides a network system, where the network system includes a terminal device, a remote device, and an access device, where the terminal device is connected to the access device by using the remote device, the terminal device, And the remote device is configured to receive the location configuration packet, forward the location packet to the access device, and send the location information to the access device by using a control channel.
  • the control channel is a control channel between the remote device and the access device, and the location information includes a connection with the terminal device on the remote device.
  • the port identifier of the port is configured to receive the location configuration packet from the remote device, obtain the location information, and add the location information to the location configuration packet.
  • the access device is further configured to send, to the remote device, a location configuration packet that adds the location information; Receiving a location configuration message from the access device to which the location information is added, and forwarding, by using a data channel, the location configuration message to which the location information is added.
  • the location information may include a port identifier of a port connected to the terminal device on the remote device.
  • the first location configuration packet may be a dynamic host configuration protocol 82 mode packet or an IPv6 router request packet.
  • the location configuration message is a dynamic host configuration protocol 82 mode DHCP OPTION 82 message or a sixth version Internet Protocol IPv6 router request message.
  • the method, the device, and the system for processing a message add the location information used to represent the connection between the remote device and the terminal device in the corresponding location configuration message by the upstream access device, and solve the problem.
  • the control plane and forwarding plane of the remote device are separated in the inbound network, some location information cannot be added to the location configuration packet.
  • 1 is a networking diagram of an access network in the prior art
  • FIG. 2 is a flowchart of a method for processing a message according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for processing a message according to Embodiment 2 of the present invention.
  • FIG. 4 is a structural diagram of an access device according to Embodiment 3 of the present invention.
  • FIG. 5 is a structural diagram of a remote device according to Embodiment 4 of the present invention.
  • FIG. 6 is a structural diagram of a network device according to Embodiment 5 of the present invention
  • FIG. 7 is a structural diagram of a network device according to Embodiment 6 of the present invention.
  • an embodiment of the present invention provides a method for processing a message, which is applied to a communication network, where a terminal device in the communication network is connected to an access device by using a remote device.
  • the terminal device may be a user terminal device or a Customer Premise Equipment (CPE).
  • the remote device may be an Optical Network Unit (ONU), a Multi-Dwelling Unit (MDU), a Multi-Tenant Unit (MTU), or a Digital Subscriber Line Access Multiplexer (Digital). Subscriber Line Access Multiplexer (DSLAM), switches, and distribution point units in the Fiber to the drop point (FTTdp) scenario.
  • ONU Optical Network Unit
  • MDU Multi-Dwelling Unit
  • MTU Multi-Tenant Unit
  • DSLAM Digital Subscriber Line Access Multiplexer
  • switches and distribution point units in the Fiber to the drop point (FTTdp) scenario.
  • the access device may be a Digital Subscriber Line Access Multiplexer (DSLAM), a switch, or an optical line terminal (OLT). Further, the access device can be connected to the IP edge device.
  • the IP edge device may be a Broadband Network Gateway (BNG), a Broadband Remote Access Server (BRAS), or a Broadband Access Server (BAS). Specifically, the method includes the following steps.
  • Step S101 The access device acquires a location configuration message from the remote device.
  • the location configuration message is usually sent by the terminal device or by other terminal devices connected to the remote device.
  • the access device is configured to add first location information to the location configuration message sent by the terminal device, where the first location information is used to represent the connection between the terminal device and the remote device;
  • the access device may also add the first location information to a location configuration message sent by the remote device but sent by the other terminal device.
  • the method for obtaining the method may be the receiving, that is, after receiving the location configuration packet sent by the terminal device, the remote device sends the location configuration packet to the access device by using the data channel.
  • the location configuration packet may be forwarded by the remote device through a control channel, where the control channel is a control channel between the access device and the remote device.
  • the control channel is used to transmit control packets (that is, control signaling), and the packets transmitted through the channel have specific identifiers, such as a virtual local area network identifier, an IP address, or a MAC address, and the receiving end can identify the text by using the identifier. And to determine that these messages are sent through the control channel.
  • the control channel can be established through a corresponding control protocol, which can be an Openflow protocol, an Access Node Control Protocol (ANCP), or an optical network terminal device/optical network unit management and control interface.
  • ANCP Access Node Control Protocol
  • the access device obtains the location configuration message sent by the control channel, and may receive and parse the corresponding control. A packet, where the location configuration message carried by the control packet is obtained.
  • the location configuration packet is a packet that requires the device to add corresponding location information to the packet, so that the device that obtains the location information can confirm that the sending device that sends the location configuration packet is in the network according to the location information. s position.
  • the location information can be used to describe the connection relationship of devices in the network.
  • the location configuration packet needs the remote device, and the access device adds corresponding location information to the packet.
  • the location configuration packet may be a dynamic host configuration protocol 82 mode DHCP OPTION 82 packet, which may be an IPv6 Router Solicitation packet or a configuration message of another location.
  • the DHCP OPTION 82 packet mentioned here refers to the DHCP packet carrying the OPTION 82 option information.
  • Step S102 If the location information does not carry the first location information, the access device acquires the first location information, and adds the first location information to the location configuration packet, where the first location information is used.
  • the location information includes a first port identifier of the first port on the remote device that is connected to the terminal device.
  • the remote device does not add the packet.
  • the reason for this may be that the remote device does not have a control plane configured, cannot be added, or it may have limited control plane functions, or it may be overloaded on the control plane of the remote device, or it may be a control plane failure or other reasons.
  • the access device needs to add the first location information in the corresponding location configuration.
  • the first location information may be added to the corresponding location configuration by using the method of the embodiment of the present invention.
  • the remote device can be configured to send the configuration information of the remote device through the control channel, and the access device receives the location configuration packet sent by the remote device through the control channel.
  • the first location information is not carried in the packet.
  • the access device may parse and determine whether the first location information is carried in the location configuration message received by the remote device.
  • the access device may default to the location configuration message received from the remote device without carrying the first location information.
  • the first location information may include a port identifier that is connected between the terminal device and the remote device, and may include link information for connecting the terminal device and the remote device, and may include a line identifier that is connected between the remote device and the terminal device. It may include other information that can be used to characterize the connection between the terminal device and the remote device, and may also include location information such as a MAC address.
  • the first port identifier, the second port, the first port label including one or more of a frame number, a slot number, a port number, and a virtual local area network identifier of the first port.
  • the first port identifier may be defined as a line identifier (Line ID) connected to the terminal device on the remote device, and may include a slot and a port identifier of the terminal device connected to the terminal device, and may also include a virtual local area network identifier of the terminal device. (Vlan ID), Further, if the remote device has one or more frames that can be connected, it may also include a corresponding frame number on the remote device.
  • the first location information obtained herein may be received, or may be manually pre-configured by the user on the access device, or may be read by the first location information received and stored before, or may be added to the location information.
  • the first location information in the location configuration packet may be that the remote device reports to the access device through the control channel, and may be implemented by using the method if the remote device has no control plane.
  • the location configuration message and the first location information may be sent to the access device through the control channel, or may be separately sent, and the specific identifier or rule is required to be sent separately, so that the access device receives the corresponding After the message and the location information, the corresponding correspondence can be identified.
  • the control packet for sending the location configuration message and the control packet for sending the first location information carry the same identifier.
  • the first location information may also be pre-stored by the access device, for example, the first location information is stored in the access device when the network is configured, or the network management device sends the first location information to the access device. It may also be before the remote device sends the information to the access device, or may be reported by other devices that know the first location information.
  • the correspondence table between the label and the location information needs to be configured in advance on the access device, and the label may be a multi-protocol label exchange label, which may be a pseudo wire (PW) label, or may be a virtual local area network identifier. , or other tags that can be used to distinguish the source of the message.
  • PW pseudo wire
  • the remote device sends a label corresponding to the location information to the access device, and the label corresponds to the corresponding location information.
  • the tag can be sent through the control channel or through the data channel. It can be sent with the location configuration message or separately from the location configuration message.
  • the location configuration message and the label may be separately sent, and the specific identifier or rule is required to be sent separately, so that the access device can identify the corresponding correspondence after receiving the corresponding message and label.
  • the access device obtains the first location information according to the locally stored corresponding relationship table of the label, where the correspondence relationship table is used to represent a correspondence between the label and the location information.
  • Step S103 optionally, the access device adds second location information to the location configuration message, where the second location information includes a second port connected to the remote device on the access device.
  • the second port identifier may pre-establish a correspondence table between the label, the first location information, and the second location information, and locally search for the second location information by using the label or the first location information reported by the remote device.
  • the access device may obtain the second location information by using the port that receives the location configuration packet locally, or obtain the second location by using the identifier of the control channel when the location configuration packet is sent through the control channel. location information.
  • the specific content of the second location information and its function are similar to the first location information, and will not be described again.
  • the access device may send, to the IP edge device connected thereto, a location configuration message that adds the first location information and the second location information.
  • the access device sends a location configuration message with the first location information and the second location information to the remote device, so that the remote device forwards the addition through the data channel after receiving the packet.
  • a location configuration message of the first location information and the second location information, the data channel a data channel between the access device and the remote device;
  • the access device receives a location configuration message that is added by the remote device and adds the first location information and the second location information, and
  • the IP edge device connected to the access device forwards the location configuration message to which the first location information and the second location information are added.
  • the location configuration packet is sent back to the remote device for further processing.
  • the method of sending can be sent through the control channel or through the data channel.
  • the remote device finds that the location configuration packet has been added with the first location information, and continues processing the packet. For example, if the received text has not been added with the virtual local area network identifier, the remote device may add the text.
  • the corresponding virtual local area network identifier is sent to the access device after processing. The access device finds that the packet has been added with the location information, and then forwards the packet to the IP edge device connected to the access device.
  • the remote device can be configured to receive the location configuration packet from the terminal device and forward the packet to the access device through the control channel, and receive the location configuration packet from the access device to forward the data through the data channel.
  • the ingress device can determine whether the location packet is a forwarded packet through the channel through which the packet is received, or the access device can add a specific identifier to the location configuration packet sent to the remote device to distinguish, or use other Means to identify the forwarded message.
  • the access device manages the forwarding table of the remote device, so that the remote device receives the location configuration packet with the added first location information and the second location information, and then passes the data channel. Transmitting, to the access device, the location configuration message to which the first location information and the second location information are added.
  • Management refers to the operations of creating, maintaining, and changing. For example, if the remote device does not have a corresponding forwarding rule, the corresponding forwarding table is created. If the corresponding forwarding entry already exists but the forwarding rule needs to be changed, the corresponding forwarding table is changed. If the corresponding forwarding entry already exists and the forwarding rule does not need to be changed, the forwarding table can be maintained.
  • the forwarding rule of the remote device may be that after receiving the location configuration message that needs to be added with the first location information, if the location configuration message does not carry the first location information, the location configuration report is sent through the control channel. The message is sent to the access device, and if the location configuration message already carries the first location information, the location configuration packet to which the first location information is added is sent to the access device through the data channel.
  • the access device receives the location configuration from the control channel, the first location information is added to the " ⁇ text (the second location information can also be added at the same time), if the location from the data channel is received If the packet is configured, the first location information is added to the message, and the second location information is added to the " ⁇ text (if the second location information has been added before this step is skipped), The IP edge device forwards.
  • the forwarding rule of the remote device may also be static, that is, the corresponding location configuration packet is forwarded to the access device.
  • the access device after receiving the location configuration message, if the access device does not carry the first location information, the access device adds the first location information to the packet (or the second location information may also be added). The first location information is carried in the packet, and the second location information is added to the packet (for example, if the second location information has been added before the step is skipped), forwarding is performed to the IP edge device by forwarding. .
  • the upstream access device adds location information for characterizing the connection between the remote device and the terminal device in the corresponding location configuration packet, and the access network is solved. In the case where the control plane and the forwarding plane of the remote device are separated, the corresponding location information cannot be added to the location configuration message.
  • Embodiment 2 For the networking structure in the first embodiment, as shown in FIG. 3, the embodiment of the present invention provides another method for processing a message.
  • Step S201 The remote device receives a first location configuration message from the terminal device.
  • Step S202 The remote device sends the first location configuration packet to the access device, and sends a location information or a label corresponding to the location information to the access device by using a control channel. Adding the location information to the first location configuration packet to form a second location configuration packet, where the control channel is a control channel between the remote device and the access device, The location information includes a port identifier of a port on the remote device that is connected to the terminal device.
  • the first location configuration packet is the same as the location configuration packet in the first embodiment, and details are not described herein.
  • the location information is the same as the first location information in the first embodiment.
  • the manner in which the remote device sends the first location configuration>3 ⁇ 4 text to the access device may be sent through a data channel or through a control channel, or may be separately associated with the location information or the location information. send together.
  • the access device After receiving the first location configuration message, the access device adds the obtained location information to form a second location configuration message.
  • the method for obtaining the location information by the access device may be directly reported by the remote device, or may be a label stored locally by the access device according to the label corresponding to the location information reported by the remote device.
  • the query obtained in the correspondence table with the location information is obtained.
  • Step 203 The remote device receives the second location configuration message from the access device, and the remote device forwards the second location configuration message to the access device by using a data channel.
  • the remote device sends the received location configuration message to the upstream access device, and sends the location information to the access device or corresponds to the location information.
  • the label enables the upstream access device to add location information according to the location information or the label in the corresponding location configuration message, and solves the problem in the access network when the control plane and the forwarding plane of the remote device are separated. The location information could not be added to the problem in the location configuration message.
  • the third embodiment of the present invention provides an access device, as shown in FIG.
  • the access device can be used as the access device in the first embodiment and the second embodiment to implement the methods in the first embodiment and the second embodiment.
  • the access device includes: an adding module, configured to: when the location configuration packet obtained by the first obtaining module does not carry the location information, add the location information obtained by the second acquiring module to the location configuration packet, where The location information is used to identify the connection between the terminal device and the remote device; the first acquiring module is configured to acquire the location configuration message sent by the terminal device and forwarded by the remote device; , for obtaining the location information.
  • the location configuration message and the location The location information is the same as the location configuration message and location information in Embodiments 1 and 2.
  • the adding module may be configured to determine whether the location information is carried in the packet by using the location configuration message; or may be configured at the remote device: if the access device is required to add the location information, The control channel sends the location configuration packet, and the access device does not carry the location information if the location device receives the location configuration packet sent from the remote device through the control channel.
  • the first obtaining module may obtain the location configuration packet sent by the remote device through the data channel, and may also receive and parse the packet sent by the remote device through the control channel, and the result is obtained from the parsing result. Obtaining the location configuration message.
  • the location information is the same as the location information in the first and second embodiments, and may include a line identifier that is connected to the terminal device by the remote device.
  • the location configuration packet is the same as the location configuration packet in the first and second embodiments, and may be a dynamic host configuration protocol 82 mode message or an IPv6 router request.
  • the second obtaining module is specifically configured to receive and obtain the location information sent by the remote device.
  • the specific manner of the location information sent by the remote device is the same as the manner in which the remote device sends the location information in the first and second embodiments.
  • the second obtaining module is configured to acquire the location information from the storage module according to the label that is sent by the remote device and that is corresponding to the location information.
  • the access device further includes a storage module, where Corresponding relationship between the label and the location information.
  • the label is the same as the labels in the first and second embodiments.
  • the location information may be pre-stored by the access device, for example, the first location information is stored in the access device when the network is deployed, or the network management device sends the first location information to the access device. It may also be before the remote device sends the information to the access device, or may be reported by other devices that know the first location information.
  • the second obtaining module may obtain the location information by using another acquiring manner, for example, by sending a query message, querying the corresponding device that knows the message, or requesting the network management to send the location message by sending a request message. Or directly obtain the location information manually input by the user, and the like.
  • the access device disclosed in the embodiment of the present invention adds the location information reported by the remote device to the location configuration packet sent by the remote device, or adds the location obtained by the local device according to the label submitted by the remote device.
  • the information solves the problem that the corresponding location information cannot be added to the location configuration packet when the control plane and the forwarding plane of the remote device are separated in the access network.
  • Embodiment 4 The embodiment of the present invention provides a remote device, as shown in FIG. 5.
  • the remote device can be used as the remote device in the first embodiment and the second embodiment to implement the methods in the first embodiment and the second embodiment.
  • the remote device includes: a receiving module, configured to receive a first location configuration message from the terminal device, and send the first location configuration message to the sending module;
  • the access device connected to the remote device sends the first location configuration message, and sends the location information or a label corresponding to the location information to the access device by using a control channel, where the control The channel is a control channel between the remote device and the access device, and the location information is used to indicate a connection between the terminal device and the remote device.
  • the location information may include a line identifier that is connected to the terminal device by the remote device.
  • the first location configuration packet and the second location configuration packet may be a dynamic host configuration protocol 82 mode packet or an IPv6 router request packet.
  • the receiving module is further configured to receive a second location configuration message from the access device, where the sending module is further configured to forward the second location configuration report to the access device by using a data channel. Text.
  • the manner in which the sending module sends the location configuration packet may be sent through the data channel or through the control channel, or may be sent together with the location information or the label, or may be sent separately.
  • the remote device disclosed in the embodiment of the present invention adds the location information reported by the remote device to the location configuration packet sent by the remote device by using the upstream access device, or adds the label that is reported according to the remote device.
  • the location information obtained by the local query solves the problem that the corresponding location information cannot be added to the location configuration packet when the control plane and the forwarding plane of the remote device are separated in the access network.
  • Embodiment 5 The embodiment of the present invention provides a network device, as shown in FIG. 6.
  • the network device can be used as the access device in the first embodiment and the second embodiment to implement the methods in the first embodiment and the second embodiment.
  • the network device includes: a receiver, configured to receive a message; a memory, configured to store information, where the information includes a program and a correspondence table, where the program includes: when the receiver receives the first device When the location information is not carried in the location configuration packet, the location information is obtained, and the location information is added to the location configuration packet, where the acquiring the location information is specifically, acquiring the information sent by the first device.
  • the location information, or the obtaining the location information specifically, acquiring the location information in the correspondence relationship table according to the label corresponding to the location information sent by the first device;
  • the memory coupled processor is configured to execute the program.
  • the receiver is also coupled to the memory.
  • the program may be configured to determine whether the location information is carried in the packet by parsing the location configuration message, or may be set at the first device: if the network device is required to add the location The information is sent by the control channel, and the network device receives the location configuration packet sent by the first device through the control channel, and considers that the packet does not carry the location. information.
  • the program may further include directly receiving, sending, by using the data channel from the first device.
  • the location configuration packet may also include receiving and parsing a packet sent by the first device through the control channel, and obtaining the location configuration packet from the parsing result.
  • the location information is similar to the location information in the first and second embodiments, and may include the line identifier of the first device and the user terminal device or the CPE.
  • the location configuration message is the same as the location configuration in the first and second embodiments, and may be a dynamic host configuration protocol 82 mode message or an IPv6 router request message.
  • the labels in the embodiments of the present invention are the same as those in the first and second embodiments.
  • the location information may be pre-stored by the network device, for example, the location information is stored in the network device when the network is deployed, or the network management device sends the location information to the network device. Before this, the first device sends the network device to the network device, and may also be reported by other devices that know the location information.
  • the acquiring the location information in the program may be: sending a query message, querying a device that knows the location message, or requesting the network management to send the location message by sending a request message. , or directly obtain the location information manually input by the user, and the like.
  • the network device disclosed in the embodiment of the present invention adds the location information reported by the first device to the location configuration packet sent by the first device, or adds the location information obtained by the local device according to the label reported by the first device.
  • the problem that the corresponding location information cannot be added to the location configuration message when the control plane and the forwarding plane of the first device are separated in the access network is solved.
  • the sixth embodiment of the present invention provides a network device, as shown in FIG. 7.
  • the network device can be used as the remote device in the first embodiment and the second embodiment to implement the methods in the first embodiment and the second embodiment.
  • the network device includes: a receiver, configured to receive a message; a transmitter, configured to send a message; a memory, configured to store information, where the information includes a program, the program includes: transmitting the receiver to a first device a received location configuration message, and sending, by the control channel, location information or a label corresponding to the location information to the first device, where the control channel is between the network device and the first device Control channel; a processor coupled to the receiver, the transmitter, and the memory for executing the program.
  • the memory is coupled to the receiver and the transmitter.
  • the first device is connected to a downstream device connected to the first device, and the location information is used to identify a connection between the first device and the downstream device.
  • the location information may include a line identifier of a connection between the first device and the downstream device.
  • the first location configuration packet and the second location configuration packet may be dynamic host configuration protocol 82 mode packets or IPv6 router request messages.
  • the receiver is further configured to receive a second location configuration message from the first device, where the program further includes: forwarding, by the data channel, the second location configuration packet to the first device .
  • the manner in which the sender sends the location configuration packet can be through the data channel, or The control channel may be transmitted together with the location information or the tag, or may be sent separately.
  • the location information is similar to the location information in the first and second embodiments, and may include a line identifier of the network device and the user terminal device or the CPE.
  • the location configuration message is the same as the location configuration in the first and second embodiments, and may be a dynamic host configuration protocol 82 mode message or an IPv6 router request message.
  • the network device disclosed in the embodiment of the present invention adds the location information reported by the network device to the location configuration packet sent by the network device by the first device in the upstream, or adds the local query according to the label submitted by the network device.
  • the location information solves the problem that the corresponding location information cannot be added to the location configuration message when the control plane and the forwarding plane of the network device are separated in the access networking.
  • Embodiment 7 The embodiment of the present invention provides a network system.
  • the network of the network system is the same as the network in the first and second embodiments.
  • the terminal device, the remote device, and the access device in the network system are the terminal device, the remote device, and the access in the first and second embodiments.
  • the remote device in the network system may be the device in the fourth and sixth embodiments, and the access device in the network system may be the device in the third and fifth embodiments.
  • the network system includes a terminal device, a remote device, and an access device, where the terminal device is connected to the access device by using the remote device.
  • the terminal device is configured to send a location configuration message, where the remote device is configured to receive the location configuration message, forward the location message to the access device, and connect to the terminal through the control channel.
  • the inbound device sends the location information or the label corresponding to the location information
  • the control channel is a control channel between the remote device and the access device
  • the location information is used to represent the terminal device and a connection of the remote device
  • the access device configured to receive the location configuration packet from the remote device, obtain the location information, and add the first location in the location configuration packet A location information.
  • the location information may include a line identifier that is connected to the terminal device by the remote device.
  • the location configuration packet may be a dynamic host configuration protocol 82 mode packet or an IPv6 router request packet.
  • the location configuration packet is sent by the remote device through a control channel, where the control channel is a control channel between the access device and the remote device.
  • the location configuration message may also be sent through the data channel, and the location configuration message may be sent through the control channel together with the location information or the label, or may be sent separately.
  • the acquiring, by the access device, the location information may be: the access device acquiring the location information that is reported by the remote device by using the control channel.
  • the access device obtains The location information may be: the access device acquires a label corresponding to the location information that is reported by the remote device, and obtains the location information according to the locally stored correspondence relationship table of the label, The correspondence table is used to characterize the correspondence between the tag and the location information.
  • the access device may add the second location information to the location configuration packet, where the second location information is used to describe the connection between the remote device and the access device, where the second The location information includes a line identifier that the access device is connected to the remote device. Further, the access device sends a location configuration message to which the location information and the second location information are added to the IP edge device connected thereto. Or the access device may further send, to the remote device, a location configuration message that adds the location information and the second location information, and receives a response location configuration of the remote device, and And transmitting, to the IP edge device connected to the access device, the response location configuration message.
  • the access device may manage the forwarding table of the remote device, so that the remote device receives the location configuration with the location information and the second location information added, and then passes the text. And the data channel between the access device and the access device forwards the location configuration message received by the access device to the access device.
  • the forwarding table of the remote device For details on how to manage the forwarding table of the remote device, refer to the related content in the first embodiment.
  • the upstream access device adds location information for characterizing the connection between the remote device and the terminal device in the corresponding location configuration packet, and the access network is solved.
  • the control plane and the forwarding plane of the remote device are separated, the corresponding location information cannot be added to the location configuration message.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • the desired program code and any other medium that can be accessed by the computer Also. Any connection may suitably be a computer readable medium.
  • a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray.
  • Optical discs in which discs are usually magnetically replicated, while discs use lasers to optically replicate data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

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

Abstract

本发明提供了一种处理报文的方法、设备及***,应用于通信技术领域。具体包括:在远端设备的控制面与转发面相分离的组网中,与远端设备连接的接入设备接收来自远端设备的位置配置报文,并在该报文中添加其所获得的位置信息,解决了接入组网中在远端设备的控制面和转发面分离时,相应的位置信息无法添加到位置配置报文中的问题。

Description

一种处理报文的方法、 设备和*** 技术领域
本发明涉及通信技术领域, 具体涉及一种处理报文的方法、设备和***。
背景技术
如图 1所示, 现有的典型的接入网组网中, 用户设备通过图中的用户驻地 设备 ( customer premise equipment, CPE ) 以及远端节点 ( remote node )设备 (下称远端设备)与接入节点 (access node, AN )设备(下称接入设备)相 连, AN再连接到 IP边缘设备 ( IP edge device ) 。 用户设备或 CPE在接入网络 的过程中往往需要通过动态主机设置协议 (dynamic host configuration protocol , DHCP)获取 IP地址, 在用户获取 IP地址的过程中网络中的服务器等 需要了解用户的位置信息, 网络中的服务器只有知道用户的位置信息后, 才 能把 IP地址正确地分配给相应的用户。位置信息通常由 DHCP协议携带, 由接 入网络中的设备在相应的 DHCP报文中添加。与此相类似的, 需要在报文中添 加用户的位置信息的还有 ΙΡν6·^艮文。
其中, 远端设备与 AN都需要在相应的报文中添加位置信息。 具体添加的 方式主要有俩种, 一种是由远端设备在报文中先添加, 再将该报文转发给接 入设备, 再由接入设备添加相应的位置信息, 并转发给 IP边缘设备; 另外一 种是接入设备先将相应的位置信息配置到远端设备上, 远端设备一次性地将 相应的位置信息添加到相应的 ^艮文中。
在现有技术中, 远端设备通常至少有一个转发面和一个控制面, 控制面 用于在相应的报文中添加相应的位置信息。 有一种新型的控制转发分离的接 入网, 接入网中的远端设备中只有转发面, 而其控制面上移到接入设备当中, 远端设备的转发表等都是由接入设备进行控制。 因为远端设备中没有控制面, 不能满足在报文中***位置信息时所需要的复杂计算要求, 导致位置信息无 法成功地添加到报文中。 发明内容
鉴于目前部分远端设备中没有控制面, 而导致位置信息无法成功地添加 到报文中, 本发明实施例提供一种处理报文的方法、 装置及***。 具体的: 根据本发明实施例的第一方面, 提供一种接入网中处理报文的方法, 所 述接入网包括终端设备、 远端设备以及接入设备, 所述终端设备通过所述远 端设备与所述接入设备相连, 所述方法包括:
所述接入设备接收来自所述远端设备的位置配置报文; 若所述位置配置 报文中没有携带第一位置信息, 所述接入设备获取第一位置信息, 并在所述 位置配置报文中添加所述第一位置信息, 所述第一位置信息包括所述远端设 备上与所述终端设备连接的第一端口的第一端口标识。
在第一方面的第一种可能的实现方式中, 所述接入设备在所述位置配置 报文中添加第二位置信息, 所述第二位置信息包括所述接入设备上与所述远 端设备连接的第二端口的第二端口标识。
结合第一方面的第一种可能的实现方式, 进一步的, 所述接入设备可以 向与所述接入设备连接的 IP边缘设备发送添加了第一位置信息和第二位置信 息的位置配置 4艮文。
结合第一方面的第一种可能的实现方式中, 进一步的, 所述接入设备还 可以向所述远端设备发送添加了第一位置信息和第二位置信息的位置配置报 文, 以便于所述远端设备在接收到报文后通过数据通道转发该添加了第一位 置信息和第二位置信息的位置配置报文, 所述数据通道为所述接入设备与所 述远端设备之间的数据通道; 所述接入设备接收所述远端设备转发的添加了 第一位置信息和第二位置信息的位置配置报文, 并向与所述接入设备连接的 IP边缘设备转发该添加了第一位置信息和第二位置信息的位置配置报文。 更 进一步的, 所述接入设备可以管理所述远端设备的转发表, 使得所述远端设 备接收到添加了第一位置信息和第二位置信息的位置配置报文后, 通过所述 数据通道向所述接入设备转发该添加了第一位置信息和第二位置信息的位置 配置 ^艮文。
结合以上几种可能的实现方式中, 具体的, 所述接入设备接收来自所述 远端设备的第一位置配置报文可以为: 所述接入设备接收来自所述远端设备 的通过控制通道发送的第一位置配置报文, 所述控制通道为所述接入设备与 所述远端设备之间的控制通道。 进一步的, 所述接入设备获取第一位置信息 具体可以包括: 所述接入设备获取所述远端设备通过所述控制通道报送的所 述第一位置信息。
结合以上所有可能的实现方式中, 具体的, 所述第一端口标识包括所述 第一端口的框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。 所述 位置配置报文为动态主机配置协议 82模式 DHCP OPTION 82报文或者第六版 因特网协议 IPv6路由器请求 ^艮文。
第二方面, 本发明实施例还提供了一种接入网中处理报文的方法, 所述 接入网包括终端设备、 远端设备以及接入设备, 所述终端设备通过所述远端 设备与所述接入设备相连, 所述方法包括:
所述远端设备接收来自所述终端设备的第一位置配置报文; 所述远端设 备向所述接入设备发送所述第一位置配置报文, 并通过控制通道向所述接入 设备发送位置信息或者与所述位置信息相对应的标签, 便于所述接入设备在 所述第一位置配置报文中添加所述位置信息以形成第二位置配置报文, 所述 控制通道为所述远端设备与所述接入设备之间的控制通道, 所述位置信息包 括所述远端设备上与所述终端设备连接的端口的端口标识; 所述远端设备接 收来自所述接入设备的所述第二位置配置报文; 所述远端设备通过数据通道 向所述接入设备转发所述第二位置配置报文。
在第二方面的第一种可能的实现方式中, 所述端口标识包括所述端口的 框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。 所述第一位置配 置报文为动态主机配置协议 82模式 DHCP OPTION 82报文或者第六版因特网 协议 IPv6路由器请求报文。
第三方面, 本发明实施例还提供一种接入设备, 应用于接入网中, 所述 接入网包括终端设备、 远端设备以及所述接入设备, 所述终端设备通过所述 远端设备与所述接入设备相连, 所述接入设备包括:
添加模块, 用于在第一获取模块获得的位置配置报文中没有携带位置信 息时, 在所述位置配置报文中添加第二获取模块所获得的所述位置信息, 所 述位置信息包括所述远端设备上与所述终端设备连接的端口的端口标识; 第 一获取模块, 用于获取由所述终端设备发送的, 并由所述远端设备转发的所 述位置配置报文; 第二获取模块, 用于获取所述位置信息。
在第三方面的第一种可能的实现方式中, 进一步的, 第二获取模块, 具 体可以用于根据所述远端设备发送的标签, 从存储模块获取所述位置信息; 所述接入设备还包括存储模块, 用于存储所述标签与所述位置信息的对应关 系。
结合第三方面的以上实现方式, 具体的, 所述端口标识可以包括所述端 口的框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。 所述位置配 置报文可以为动态主机配置协议 82模式 DHCP OPTION 82报文或者第六版因 特网协议 IPv6路由器请求 ^艮文。
第四方面, 本发明实施例还提供一种远端设备, 应用于接入网中, 所述 接入网包括终端设备、 所述远端设备以及接入设备, 所述终端设备通过所述 远端设备与所述接入设备相连, 所述远端设备包括:
接收模块, 用于接收来自终端设备的第一位置配置报文, 并将所述第一 位置配置报文报送给发送模块; 发送模块, 用于向与所述远端设备连接的接 入设备发送所述第一位置配置报文 , 并通过控制通道向所述接入设备发送位 置信息或者与所述位置信息相对应的标签, 所述控制通道为所述远端设备与 所述接入设备之间的控制通道, 所述位置信息包括所述远端设备上与所述终 端设备连接的端口的端口标识; 所述接收模块还用于接收来自所述接入设备 的第二位置配置报文; 所述发送模块还用于通过数据通道向所述接入设备转 发所述第二位置配置 文。 其中, 具体的, 所述端口标识可以包括所述端口 的框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。 所述位置配置 报文可以是为动态主机配置协议 82模式 DHCP OPTION 82报文或者第六版因 特网协议 IPv6路由器请求报文。
第五方面, 还提供一种网络***, 所述网络***包括终端设备、 远端设 备和接入设备, 所述终端设备通过所述远端设备与所述接入设备连接, 所述 终端设备, 用于发送位置配置报文; 所述远端设备, 用于接收所述位置配置 报文, 向所述接入设备转发所述位置报文, 并通过控制通道向所述接入设备 发送位置信息或者与所述位置信息相对应的标签, 所述控制通道为所述远端 设备与所述接入设备之间的控制通道, 所述位置信息包括所述远端设备上与 所述终端设备连接的端口的端口标识; 所述接入设备, 用于接收来自所述远 端设备的所述位置配置报文, 获取所述位置信息, 并在所述位置配置报文中 添加所述位置信息。
在第五方面的第一种实现方式中, 进一步的, 所述接入设备还用于向所 述远端设备发送添加了所述位置信息的位置配置报文; 所述远端设备还用于 接收来自所述接入设备的添加了所述位置信息的位置配置报文, 并通过数据 通道向所述接入设备转发该添加了所述位置信息的位置配置报文。
结合第五方面的以上实现方式, 具体的, 所述位置信息可以包括所述远 端设备上与所述终端设备连接的端口的端口标识。 根据第二方面的以上几种 实现方式, 具体的, 所述第一位置配置报文可以为动态主机配置协议 82模式 报文或者 IPv6路由器请求报文。 所述位置配置报文为动态主机配置协议 82模 式 DHCP OPTION 82报文或者第六版因特网协议 IPv6路由器请求报文。
本发明实施例所揭示的处理报文的方法、 设备和***, 通过上游的接入 设备在相应的位置配置报文中添加用于表征远端设备与终端设备的连接的位 置信息, 解决了接入组网中在远端设备的控制面和转发面分离时, 部分位置 信息无法添加到位置配置报文中的问题。
附图说明
为了更清楚地说明本发明及相关实施例, 提供以下附图:
图 1为现有技术中接入网的组网图;
图 2为本发明实施例一中处理报文的方法流程图;
图 3为本发明实施例二中处理报文的方法流程图;
图 4为本发明实施例三中接入设备的结构图;
图 5为本发明实施例四中远端设备的结构图;
图 6为本发明实施例五中网络设备的结构图; 图 7为本发明实施例六中网络设备的结构图。
具体实施例
为使本发明的目的、 技术方案和优点更加清楚明白, 下面结合实施例和 附图, 对本发明做进一步详细说明。 在此, 本发明的示意性实施例及其说明 用于解释本发明, 但并不作为对本发明的限定。
实施例一: 如图 2所示, 本发明实施例提供一种处理报文方法, 应用于通 信网络中, 所述通信网络中的终端设备通过远端设备与接入设备连接。 其中, 终端设备可以是用户终端设备, 也可以是用户驻地设备 ( Customer Premise Equipment, CPE )。远端设备可以是光网络单元( Optical Network Unit, ONU )、 多住户单元 ( Multi-Dwelling Unit, MDU ) 、 多租户单元 ( Multi-Tenant Unit, MTU )、数字用户线路接入复用器( Digital Subscriber Line Access Multiplexer, DSLAM ) 、 交换机、 光纤到分配点 (Fiber to the drop point, FTTdp )场景下 的分配点单元等各种设备。接入设备可以是数字用户线路接入复用器( Digital Subscriber Line Access Multiplexer, DSLAM ) 、 交换机或光线路终端设备 ( optical line terminal, OLT ) 。 其中, 进一步的, 接入设备可以与 IP边缘设 备相连。 IP边缘设备可以是宽带网络网关 ( Broadband Network Gateway, BNG ) 、 宽带远程接入网关( Broadband Remote Access Server, BRAS ) 、 宽 带接入网关( Broadband Access Server, BAS )等设备。 具体的, 该方法包括 以下步骤。
步骤 S101 , 所述接入设备获取来自所述远端设备的位置配置报文。 该位 置配置报文通常由所述终端设备所发送, 也可以由与远端设备连接的其他终 端设备所发送。 相应的, 接入设备可用于在由所述终端设备发送的位置配置 报文中添加第一位置信息, 该第一位置信息用于表征所述终端设备与所述远 端设备的连接; 在有需要的场景下, 接入设备也可以在来自所述远端设备但 是由所述其他终端设备发送的位置配置报文中添加所述第一位置信息。
其中获取的方法, 可以是接收, 即远端设备接收终端设备发送得位置配 置报文后, 通过数据通道向该接入设备发送该位置配置报文。 可选的, 该位 置配置报文也可以是远端设备通过控制通道转发的 , 该控制通道为所述接入 设备与所述远端设备之间的控制通道。 控制通道用于传输控制报文(也即控 制信令) , 通过该通道传输的报文具有特定的标识, 比如虚拟局域网标识、 IP地址或 MAC地址等, 接收端可以通过这些标识来识别 文, 并确定这些才艮 文是通过控制通道发送的。 控制通道可以通过相应的控制协议建立, 控制协 议可以是 Openflow协议, 可以是接入节点控制协议 (Access Node Control Protocol, ANCP), 也可以是光网络终端设备 /光网络单元管理和控制接口
( ONT/ONU Management and Control Interface, OMCI )。 接入设备获取通过 控制通道发送过来的的位置配置报文的方式, 可以是接收并解析相应的控制 报文, 从中获得该控制报文所携带的位置配置报文。
其中位置配置报文是指需要设备在该报文中添加相应的位置信息的报 文, 这样, 获得这些位置信息的设备, 可以根据这些位置信息确认发送该位 置配置报文的发送设备在网络中的位置。 具体的, 这些位置信息可以用于表 征网络中设备的连接关系。 具体到本方案中, 所述位置配置报文需要远端设 备、 接入设备在该报文中添加相应的位置信息。 该位置配置报文可以是动态 主机配置协议 82模式 DHCP OPTION 82报文, 可以是 IPv6路由器请求( IPv6 Router Solicitation )报文, 也可以是其他位置配置报文。 这里所说的 DHCP OPTION 82报文是指携带有 OPTION 82这个选项信息的 DHCP报文。
步骤 S102 , 若所述位置配置报文中没有携带第一位置信息, 所述接入设 备获取第一位置信息, 并在所述位置配置报文中添加所述第一位置信息, 所 述第一位置信息包括所述远端设备上与所述终端设备连接的第一端口的第一 端口标识。
如果接入设备接收到的位置配置报文中没有携带第一位置信息, 说明远 端设备没有在该报文添加。 发生这种情况的原因可能是远端设备没有配置控 制面, 无法添加, 也可能是控制面功能有限, 也可能是远端设备控制面过载, 也可能是控制面故障, 也可能是其他原因。 总之, 这种情况下, 需要接入设 备在相应的位置配置 ^艮文中添加第一位置信息。 以上的几种情况, 通过本发 明实施例的方法都可以在相应的位置配置 ^艮文中添加第一位置信息。可选的, 可以在远端设备设定, 没有携带第一位置信息的位置配置报文统一通过控制 通道发送, 如此, 则接入设备收到远端设备通过控制通道发送的位置配置报 文, 则认为该报文中没有携带第一位置信息。 或者, 可选的, 接入设备可以 通过解析并判断其所收到的来自远端设备的位置配置报文中是否携带所述第 一位置信息。 或者, 可选的, 在远端设备没有控制面的情况下, 接入设备可 以默认其所接收到的来自所述远端设备的位置配置报文都没有携带所述第一 位置信息。
根据不同的需要, 第一位置信息可以包括终端设备与远端设备连接的端 口标识, 可以包括用于连接终端设备和远端设备的链路信息, 可以包括远端 设备与终端设备连接的线路标识, 可以包括其他可用于表征终端设备与远端 设备之间的连接的信息, 还可以包括 MAC地址等位置信息。 具体的, 所述第 端口标识, 二步的, 该第一端口标 ί、包括所述第一端口的框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。 这个第一端口标识可以理解为远 端设备上与终端设备连接的线路标识 (Line ID ) , 可以包括远端设备上与终 端设备连接的槽、端口的标识,也可以包括终端设备的虚拟局域网标识( Vlan ID ) , 进一步的, 如果远端设备具有一个或多个可供连接的框, 还可以包括 远端设备上相应的框号。 此处获取第一位置信息可以是指接收到的, 也可以是用户在接入设备人 工预先配置的, 也可以是读取在这之前接收到并储存的第一位置信息, 也可 加到所述位置配置报文中的第一位置信息可以是, 所述远端设备通过所述控 制通道报送给所述接入设备的, 在远端设备没有控制面的情况下也可以通过 此方法实现, 具体的, 可以把所述位置配置报文和第一位置信息通过控制通 道一起发送至接入设备, 也可以分开发送, 分开发送时需配备特定的标识或 者规则, 使得接入设备接收到相应的报文和位置信息后能识别相应的对应关 系, 比如在用于发送位置配置报文的控制报文和用于发送第一位置信息的控 制报文携带相同的标识。
第一位置信息也可以是接入设备预先储存的, 比如在组网的时候把第一 位置信息存储在接入设备中, 也可以是, 网管把该第一位置信息下发给接入 设备的, 也可以是在这之前, 远端设备发送给接入设备的, 还可以是, 其他 知道该第一位置信息的设备报送的。 在这种情况下, 需要预先在接入设备上 配置好标签和位置信息的对应关系表, 标签可以是多协议标签交换标签, 可 以是伪线( pseudo wire , PW )标签, 可以是虚拟局域网标识, 也可以是其他 可用于区分报文来源的标签。 远端设备向接入设备发送跟所述位置信息相对 应的标签, 标签与相应的位置信息是相对应的、 相匹配的。 标签可以通过控 制通道发送, 也可以通过数据通道发送, 可以与位置配置报文一起发送, 也 可以与位置配置报文分开发送。 可选的, 位置配置报文和标签也可分开发送, 分开发送时需配备特定的标识或者规则, 使得接入设备接收到相应的报文和 标签后能识别相应的对应关系。 接入设备根据所述标签在本地存储的对应关 系表中获取所述第一位置信息, 所述对应关系表用于表征标签与位置信息的 对应关系。
步骤 S103 , 可选的, 所述接入设备在所述位置配置报文中添加第二位置 信息, 所述第二位置信息包括所述接入设备上与所述远端设备连接的第二端 口的第二端口标识。 可选的, 接入设备可以预先建立标签、 第一位置信息及 第二位置信息的对应关系表中, 通过远端设备所报送的标签或第一位置信息 在本地查找所述第二位置信息。 可选的, 接入设备也可通过本地接收位置配 置报文的端口获取第二位置信息, 或者当所述位置配置报文是通过控制通道 发送时, 可通过该控制通道的标识来获取第二位置信息。 第二位置信息的具 体内容及其功用与第一位置信息类似, 不再赘述。
可选的, 所述接入设备可向与其连接的 IP边缘设备发送添加了所述第一 位置信息和所述第二位置信息的位置配置报文。
或者, 所述接入设备向所述远端设备发送添加了第一位置信息和第二位 置信息的位置配置报文, 以便于所述远端设备在接收到报文后通过数据通道 转发该添加了第一位置信息和第二位置信息的位置配置报文, 所述数据通道 为所述接入设备与所述远端设备之间的数据通道; 所述接入设备接收所述远 端设备转发的添加了第一位置信息和第二位置信息的位置配置报文, 并向与 所述接入设备连接的 IP边缘设备转发该添加了第一位置信息和第二位置信息 的位置配置报文。
接入设备添加完第一位置信息和第二位置信息后, 把位置配置报文发还 给远端设备继续处理。 发送的方式可以是通过控制通道发送, 也可以通过数 据通道发送。 远端设备收到报文后, 发现该位置配置报文已添加了第一位置 信息, 对该 文继续处理, 例如, 在接收到的 文还未添加虚拟局域网标识 的情况下, 可以在 文中添加相应的虚拟局域网标识, 处理完后将 ^艮文发送 至接入设备。 接入设备发现该报文已添加了位置信息, 则向与所述接入设备 相连的 IP边缘设备转发。 可选的, 可以在远端设备设定, 收到来自终端设备 的位置配置报文通过控制通道向接入设备转发, 收到来自接入设备的位置配 置报文通过数据通道转发, 如此, 接入设备可以通过其接收报文的通道判断 该位置报文是否为转发的报文, 或者接入设备可以在向远端设备发送的位置 配置报文中添加特定的标识用以区分, 或者利用其他手段来识别该转发的报 文。
可选的, 所述接入设备管理所述远端设备的转发表, 使得所述远端设备 接收到添加了第一位置信息和第二位置信息的位置配置报文后, 通过所述数 据通道向所述接入设备转发该添加了第一位置信息和第二位置信息的位置配 置报文。 管理是指创建、 维护、 更改等操作, 比如如果远端设备没有相应的 转发规则, 则创建相应的转发表, 如果相应的转发表项已存在但转发规则需 要更改, 则更改相应的转发表, 如果相应的转发表项已存在且转发规则不需 要更改, 则维持该转发表即可。 优选的, 远端设备的转发规则可以是接收到 需要添加第一位置信息的位置配置报文后, 若该位置配置报文中没有携带第 一位置信息, 则通过控制通道把所述位置配置报文发送至接入设备, 若该位 置配置报文中已经携带有第一位置信息, 则通过数据通道将添加了第一位置 信息的位置配置报文发送至接入设备。 相应的, 接入设备接到来自所述控制 通道的位置配置>¾文, 则在该 "^文中添加第一位置信息 (也可同时添加第二 位置信息) , 如果接到来自数据通道的位置配置报文, 则认为该报文已添加 了第一位置信息, 在该 "^文中添加第二位置信息 (如在这之前已经添加了第 二位置信息则略过此步) , 通过转发面向所述 IP边缘设备转发。
可选的, 远端设备的转发规则也可以是静态的, 即接到相应的位置配置 报文就向接入设备转发。 相应的, 接入设备在接到位置配置报文后, 如果发 现该报文中没有携带第一位置信息, 则在报文中添加第一位置信息 (也可同 时添加第二位置信息) , 如果发现报文中已携带了第一位置信息, 在该报文 中添加第二位置信息 (如在这之前已经添加了第二位置信息则略过此步) , 通过转发面向所述 IP边缘设备转发。 本发明实施例所揭示的处理报文的方法中, 通过上游的接入设备在相应 的位置配置报文中添加用于表征远端设备与终端设备的连接的位置信息, 解 决了接入组网中在远端设备的控制面和转发面分离时, 相应的位置信息无法 添加到位置配置报文中的问题
实施例二: 针对实施例一中的组网结构, 如图 3所示, 本发明实施例提供 又一种处理 ^艮文的方法。
步骤 S201 , 所述远端设备接收来自所述终端设备的第一位置配置报文。 步骤 S202 , 所述远端设备向所述接入设备发送所述第一位置配置报文, 并通过控制通道向所述接入设备发送位置信息或者与所述位置信息相对应的 标签, 便于所述接入设备在所述第一位置配置报文中添加所述位置信息以形 成第二位置配置报文, 所述控制通道为所述远端设备与所述接入设备之间的 控制通道, 所述位置信息包括所述远端设备上与所述终端设备连接的端口的 端口标识。
第一位置配置报文与实施例一中的位置配置报文相同, 不再赘述。 位置 信息与实施例一中的第一位置信息相同。 远端设备向接入设备发送所述第一 位置配置>¾文的方式可以是通过数据通道, 也可以通过控制通道, 可以单独 发送, 也可以与所述位置信息或者与位置信息向对应的标签一起发送。 接入 设备接收到所述第一位置配置报文后, 将获得的位置信息添加其中形成第二 位置配置报文。 其中, 接入设备获得得所述位置信息的方法可以是所述远端 设备直接报送得, 也可以是接入设备根据远端设备报送的与位置信息相对应 的标签在本地存储的标签与位置信息对应关系表中查询获得的。
步骤 203 , 所述远端设备接收来自所述接入设备的所述第二位置配置报 文;所述远端设备通过数据通道向所述接入设备转发所述第二位置配置报文。
本发明实施例所揭示的处理报文的方法中, 远端设备向上游的接入设备 发送其所接收到的位置配置报文中, 并向该接入设备发送位置信息或者与该 位置信息对应的标签, 使得上游的接入设备能根据该位置信息或者该标签在 对应的位置配置报文中添加位置信息, 解决了接入组网中在远端设备的控制 面和转发面分离时, 相应的位置信息无法添加到位置配置报文中的问题。
实施例三, 本发明实施例提供了一种接入设备, 如图 4所示。 该接入设备 可用于充当实施例一和实施例二中的接入设备, 用于实现实施例一和实施例 二中的方法。
该接入设备包括: 添加模块, 用于在第一获取模块获得的位置配置报文 中没有携带位置信息时, 在所述位置配置报文中添加第二获取模块所获得的 所述位置信息, 所述位置信息用于表征终端设备与远端设备的连接; 第一获 取模块, 用于获取由终端设备发送的, 并由所述远端设备转发的所述位置配 置报文; 第二获取模块, 用于获取所述位置信息。 所述位置配置报文以及所 述位置信息与实施例一、 二中的位置配置报文和位置信息相同。
具体的, 添加模块可以通过解析所述位置配置报文以确定该报文中是否 携带所述位置信息; 也可以在远端设备处设定: 如需要接入设备添加所述位 置信息, 则通过控制通道发送所述位置配置报文, 接入设备接收到从远端设 备通过控制通道发送来的位置配置报文, 则认为该报文没有携带所述位置信 息。
第一获取模块获取的方式, 可以是直接接收来自远端设备通过数据通道 发送的所述位置配置报文, 也可以通过接收并解析来自远端设备通过控制通 道发送的报文并从解析结果中获得所述位置配置报文。
其中, 所述位置信息与实施例一、 二中的位置信息相同, 可以包括所述 远端设备与所述终端设备连接的线路标识。所述的位置配置报文与实施例一、 二中的位置配置报文相同 , 可以为动态主机配置协议 82模式报文或者 IPv6路 由器请求 ^艮文
可选的, 第二获取模块, 具体用于接收并获取所述远端设备发送的所述 位置信息。 远端设备发送的所述位置信息的具体方式, 与实施例一、 二中远 端设备发送位置信息的方式相同。
可选的, 第二获取模块, 具体用于根据所述远端设备发送的与所述位置 信息相对应的标签, 从存储模块获取所述位置信息; 所述接入设备还包括存 储模块, 用于所述标签与所述位置信息的对应关系。 所述标签与实施例一、 二中的标签相同。 所述位置信息可以是接入设备预先储存的, 比如在组网的 时候把第一位置信息存储在接入设备中, 也可以是, 网管把该第一位置信息 下发给接入设备的, 也可以是在这之前, 远端设备发送给接入设备的, 还可 以是, 其他知道该第一位置信息的设备报送的。
可选的, 第二获取模块还可利用其他获取方式获得所述位置信息, 比如 通过发送查询消息, 向相应的知道该消息的设备查询, 或者通过发送请求消 息请求网管下发所述位置消息,或者直接获取用户人工输入的所述位置信息, 等等。
本发明实施例所揭示的接入设备, 通过在远端设备发送的位置配置报文 中, 添加远端设备报送的位置信息, 或者添加根据远端设备报送的标签在本 地查询获得的位置信息, 解决了接入组网中在远端设备的控制面和转发面分 离时, 相应的位置信息无法添加到位置配置报文中的问题。
实施例四, 本发明实施例提供了一种远端设备, 如图 5所示。 该远端设备 可用于充当实施例一和实施例二中的远端设备, 用于实现实施例一和实施例 二中的方法。
具体的, 远端设备包括: 接收模块, 用于接收来自终端设备的第一位置 配置报文, 并将所述第一位置配置报文报送给发送模块; 发送模块, 用于向 与所述远端设备连接的接入设备发送所述第一位置配置报文, 并通过控制通 道向所述接入设备发送所述位置信息或者与所述位置信息相对应的标签, 所 述控制通道为所述远端设备与所述接入设备之间的控制通道, 所述位置信息 用于表征所述终端设备与所述远端设备的连接。 可选的, 所述位置信息可包 括所述远端设备与所述终端设备连接的线路标识。 可选的, 所述第一位置配 置报文和所述第二位置配置报文可为动态主机配置协议 82模式报文或者 IPv6 路由器请求报文。
可选的, 所述接收模块还用于接收来自所述接入设备的第二位置配置报 文; 所述发送模块还用于通过数据通道向所述接入设备转发所述第二位置配 置报文。
具体的, 发送模块发送位置配置报文的方式可以通过数据通道, 也可以 通过控制通道, 可以与所述位置信息或所述标签一起发送, 也可以分开发送。 接收到所述位置配置报文的接入设备 , 将所述位置信息添加到所述位置配置 报文中, 或者先根据所述标签查找到所述位置信息, 再把该位置信息添加到 所述位置配置报文中。
本发明实施例所揭示的远端设备, 通过上游的接入设备在远端设备发送 的位置配置报文中, 添加远端设备报送的位置信息, 或者添加根据远端设备 报送的标签在本地查询获得的位置信息, 解决了接入组网中在远端设备的控 制面和转发面分离时, 相应的位置信息无法添加到位置配置报文中的问题。
实施例五, 本发明实施例提供了一种网络设备, 如图 6所示。 该网络设备 可用于充当实施例一和实施例二中的接入设备, 用于实现实施例一和实施例 二中的方法。
该网络设备包括: 接收器, 用于接收报文; 存储器, 用于存储信息, 所 述信息包括程序和对应关系表, 所述程序包括: 当所述接收器所接收到的来 自第一设备的位置配置报文中没有携带位置信息时, 获取所述位置信息, 并 在所述位置配置报文中添加所述位置信息, 其中, 获取所述位置信息具体为, 获取所述第一设备所发送的位置信息, 或者获取所述位置信息具体为, 根据 所述第一设备所发送的与所述位置信息相对应的标签在所述对应关系表中获 取所述位置信息; 与所述接收器及所述存储器耦合的处理器, 用于执行所述 程序。 可选的, 所述接收器也可与所述存储器耦合。
具体的, 所述程序, 可以为通过解析所述位置配置报文以确定该报文中 是否携带所述位置信息; 也可以在第一设备处设定: 如需要所述网络设备添 加所述位置信息, 则通过控制通道发送所述位置配置报文, 这时, 所述网络 设备接收到从所述第一设备通过控制通道发送来的位置配置报文, 则认为该 报文没有携带所述位置信息。
可选的, 所述程序还可以包括直接接收来自第一设备通过数据通道发送 的所述位置配置报文, 也可以包括通过接收并解析来自第一设备通过控制通 道发送的报文并从解析结果中获得所述位置配置报文。
其中, 所述位置信息与实施例一、 二中的位置信息类似, 可以包括所述 所述第一设备与用户终端设备或者 CPE连接的线路标识。 所述的位置配置报 文与实施例一、 二中的位置配置 "^文相同, 可以为动态主机配置协议 82模式 报文或者 IPv6路由器请求报文。
本发明实施例中的标签与实施例一、 二中的标签相同。 所述位置信息可 以是所述网络设备预先储存的, 比如在组网的时候把位置信息存储在所述网 络设备中, 也可以是, 网管把该位置信息下发给所述网络设备的, 也可以是 在这之前, 第一设备发送给所述网络设备的, 还可以是, 其他知道该位置信 息的设备报送的。
可选的, 所述程序中的所述获取所述位置信息, 具体还可以为, 发送查 询消息, 向相应的知道该位置消息的设备查询, 或者通过发送请求消息请求 网管下发所述位置消息, 或者直接获取用户人工输入的所述位置信息, 等等。
本发明实施例所揭示的网络设备, 通过在第一设备发送的位置配置报文 中, 添加第一设备报送的位置信息, 或者添加根据第一设备报送的标签在本 地查询获得的位置信息, 解决了接入组网中在第一设备的控制面和转发面分 离时, 相应的位置信息无法添加到位置配置报文中的问题。
实施例六, 本发明实施例提供了一种网络设备, 如图 7所示。 该网络设备 可用于充当实施例一和实施例二中的远端设备, 用于实现实施例一和实施例 二中的方法。
该网络设备包括: 接收器, 用于接收报文; 发送器, 用于发送报文; 存 储器, 用于存储信息, 所述信息包括程序, 所述程序包括: 向第一设备发送 所述接收器所接收到的位置配置报文, 并通过控制通道向所述第一设备发送 位置信息或者与所述位置信息相对应的标签, 所述控制通道为所述网络设备 与所述第一设备之间的控制通道; 与所述接收器、 所述发送器及所述存储器 耦合的处理器, 用于执行所述程序。 可选的, 所述存储器可与所述接收器以 及所述发送器耦合。
所述第一设备与该第一设备连接的下游设备相连, 所述位置信息用于表 征所述第一设备和该下游设备的连接。 可选的, 所述位置信息可包括所述第 一设备与该下游设备的连接的线路标识。 可选的, 所述第一位置配置报文和 所述第二位置配置报文可为动态主机配置协议 82模式报文或者 IPv6路由器请 求报文。
可选的 ,所述接收器还用于接收来自所述第一设备的第二位置配置报文; 所述程序还包括,通过数据通道向所述第一设备转发所述第二位置配置报文。
具体的, 发送器发送位置配置报文的方式可以通过数据通道, 也可以通 过控制通道, 可以与所述位置信息或所述标签一起发送, 也可以分开发送。 接收到所述位置配置报文的第一设备 , 将所述位置信息添加到所述位置配置 报文中, 或者先根据所述标签查找到所述位置信息, 再把该位置信息添加到 所述位置配置报文中。
其中, 所述位置信息与实施例一、 二中的位置信息类似, 可以包括所述 所述网络设备与用户终端设备或者 CPE连接的线路标识。 所述的位置配置报 文与实施例一、 二中的位置配置 "^文相同, 可以为动态主机配置协议 82模式 报文或者 IPv6路由器请求报文。
本发明实施例所揭示的网络设备, 通过上游的第一设备在网络设备发送 的位置配置报文中, 添加网络设备报送的位置信息, 或者添加根据网络设备 报送的标签在本地查询获得的位置信息, 解决了接入组网中在所述网络设备 的控制面和转发面分离时, 相应的位置信息无法添加到位置配置报文中的问 题。
实施例七, 本发明实施例提供了一种网络***。 该网络***的组网与实 施例一、 二中的组网相同, 该网络***中的终端设备、 远端设备和接入设备 与实施例一、 二中的终端设备、 远端设备和接入设备——对应。 该网络*** 中的远端设备可以是实施例四、 六中的设备, 该网络***中的接入设备可以 实施例三、 五中的设备。
具体的, 所述网络***包括终端设备、 远端设备和接入设备, 所述终端 设备通过所述远端设备与所述接入设备连接。 所述终端设备, 用于发送位置 配置报文; 所述远端设备, 用于接收所述位置配置报文, 向所述接入设备转 发所述位置报文, 并通过控制通道向所述接入设备发送位置信息或者与所述 位置信息相对应的标签, 所述控制通道为所述远端设备与所述接入设备之间 的控制通道, 所述位置信息用于表征所述终端设备与所述远端设备的连接; 所述接入设备, 用于接收来自所述远端设备的所述位置配置报文, 获取所述 位置信息, 并在所述位置配置报文中添加所述第一位置信息。
可选的, 所述位置信息可以包括所述远端设备与所述终端设备连接的线 路标识。
可选的, 所述位置配置报文可为动态主机配置协议 82模式报文或者 IPv6 路由器请求报文。
可选的, 所述位置配置报文可为所述远端设备通过控制通道发送的, 所 述控制通道为所述接入设备与所述远端设备之间的控制通道。 位置配置报文 也可以是通过数据通道发送, 位置配置报文可以与所述位置信息或者标签一 起通过控制通道发送, 也可以分开发送。
可选的, 所述接入设备获取位置信息具体可为: 所述接入设备获取所述 远端设备通过所述控制通道报送的所述位置信息。 或者, 所述接入设备获取 位置信息具体可为: 所述接入设备获取所述远端设备报送的与所述位置信息 相对应的标签,根据所述标签在本地存储的对应关系表中获取所述位置信息, 所述对应关系表用于表征标签与位置信息的对应关系。
进一步的, 所述接入设备可在所述位置配置报文中添加第二位置信息, 所述第二位置信息用于表征所述远端设备与所述接入设备的连接, 所述第二 位置信息包括所述接入设备与所述远端设备连接的线路标识。 再进一步的, 所述接入设备向与其连接的 IP边缘设备发送添加了所述位置信息和所述第二 位置信息的位置配置报文。 或者, 所述接入设备还可向所述远端设备发送添 加了所述位置信息和所述第二位置信息的位置配置报文, 接收所述远端设备 的响应位置配置 4艮文, 并向与所述接入设备相连的 IP边缘设备转发所述响应 位置配置报文。 与此同时, 所述接入设备可以管理所述远端设备的转发表, 使得所述远端设备接收到添加了所述位置信息和所述第二位置信息的位置配 置才艮文后, 通过其与所述接入设备之间的数据通道向所述接入设备转发其所 接收到的该位置配置报文。接入设备, 具体如何管理所述远端设备的转发表, 可参见实施例一中的有关内容。
本发明实施例所揭示的处理报文的方法中, 通过上游的接入设备在相应 的位置配置报文中添加用于表征远端设备与终端设备的连接的位置信息, 解 决了接入组网中在远端设备的控制面和转发面分离时, 相应的位置信息无法 添加到位置配置报文中的问题。 通过以上的实施例的描述, 所属领域的技术人员可以清楚地了解到本发 明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实 现时, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的 一个或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通 信介质, 其中通信介质包括便于从一个地方向另一个地方传送计算机程序的 任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不 限于: 计算机可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其他 光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储具 有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介 质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是使 用同轴电缆、 光纤光缆、 双绞线、 数字用户线 (DSL )或者诸如红外线、 无 线电和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么同 轴电缆、 光纤光缆、 双绞线、 DSL或者诸如红外线、 无线和微波之类的无线 技术包括在所属介质的定影中。 如本发明所使用的, 盘 (Disk )和碟(disc ) 包括压缩光碟(CD ) 、 激光碟、 光碟、 数字通用光碟(DVD ) 、 软盘和蓝光 光碟, 其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面 的组合也应当包括在计算机可读介质的保护范围之内。
总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定 本发明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种接入网中处理报文的方法, 其特征在于, 所述接入网包括终端设 备、 远端设备以及接入设备, 所述终端设备通过所述远端设备与所述接入设 备相连, 所述方法包括:
所述接入设备接收来自所述远端设备的位置配置报文;
若所述位置配置报文中没有携带第一位置信息, 所述接入设备获取第一 位置信息, 并在所述位置配置报文中添加所述第一位置信息, 所述第一位置 信息包括所述远端设备上与所述终端设备连接的第一端口的第一端口标识。
2、 根据权利要求 1所述方法, 其特征在于, 所述方法还包括:
所述接入设备在所述位置配置报文中添加第二位置信息, 所述第二位置 信息包括所述接入设备上与所述远端设备连接的第二端口的第二端口标识。
3、 根据权利要求 2所述方法, 其特征在于, 所述方法还包括:
所述接入设备向与所述接入设备连接的 IP边缘设备发送添加了第一位置 信息和第二位置信息的位置配置报文。
4、 根据权利要求 2所述方法, 其特征在于, 所述方法还包括:
所述接入设备向所述远端设备发送添加了第一位置信息和第二位置信息 的位置配置报文, 以便于所述远端设备在接收到报文后通过数据通道转发该 添加了第一位置信息和第二位置信息的位置配置报文, 所述数据通道为所述 接入设备与所述远端设备之间的数据通道;
所述接入设备接收所述远端设备转发的添加了第一位置信息和第二位置 信息的位置配置报文, 并向与所述接入设备连接的 IP边缘设备转发该添加了 第一位置信息和第二位置信息的位置配置报文。
5、 根据权利要求 4所述方法, 其特征在于, 所述方法还包括:
所述接入设备管理所述远端设备的转发表, 使得所述远端设备接收到添 加了第一位置信息和第二位置信息的位置配置报文后, 通过所述数据通道向 所述接入设备转发该添加了第一位置信息和第二位置信息的位置配置报文。
6、 根据权利要求 1至 5任意一项所述的方法, 其特征在于:
所述接入设备接收来自所述远端设备的第一位置配置报文具体为: 所述 接入设备接收来自所述远端设备的通过控制通道发送的第一位置配置报文, 所述控制通道为所述接入设备与所述远端设备之间的控制通道。
7、 根据权利要求 6所述方法, 其特征在于, 所述接入设备获取第一位置 信息具体包括: 所述接入设备获取所述远端设备通过所述控制通道艮送的所 述第一位置信息。
8、 根据权利要求 1至 6任意一项所述的方法, 其特征在于, 所述接入设备 获取第一位置信息具体包括: 所述接入设备获取所述远端设备报送的标签, 根据所述标签在本地存储的对应关系表中获取所述第一位置信息, 所述对应 关系表中存储有所述标签与所述第一位置信息的对应关系。
9、 根据权利要求 1至 8任意一项所述的方法, 其特征在于, 所述第一端口 标识包括所述第一端口的框号、 槽位号、 端口号、 虚拟局域网标识中的一个 或多个。
10、 根据权利要求 1至 9任意一项所述的方法, 其特征在于:
所述位置配置报文为动态主机配置协议 82模式 DHCP OPTION 82报文或 者第六版因特网协议 IPv6路由器请求报文。
11、 一种接入网中处理报文的方法, 其特征在于, 所述接入网包括终端 设备、 远端设备以及接入设备, 所述终端设备通过所述远端设备与所述接入 设备相连, 所述方法包括:
所述远端设备接收来自所述终端设备的第一位置配置报文;
所述远端设备向所述接入设备发送所述第一位置配置报文, 并通过控制 通道向所述接入设备发送位置信息或者与所述位置信息相对应的标签, 便于 所述接入设备在所述第一位置配置报文中添加所述位置信息以形成第二位置 配置报文, 所述控制通道为所述远端设备与所述接入设备之间的控制通道, 所述位置信息包括所述远端设备上与所述终端设备连接的端口的端口标识; 所述远端设备接收来自所述接入设备的所述第二位置配置报文; 所述远端设备通过数据通道向所述接入设备转发所述第二位置配置报 文。
12、 根据权利要求 11所述方法, 其特征在于, 所述端口标识包括所述端 口的框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。
13、 根据权利要求 11或 12所述方法, 其特征在于,
所述第一位置配置报文为动态主机配置协议 82模式 DHCP OPTION 82报 文或者第六版因特网协议 IPv6路由器请求报文。
14、 一种接入设备, 其特征在于, 应用于接入网中, 所述接入网包括终 端设备、 远端设备以及所述接入设备, 所述终端设备通过所述远端设备与所 述接入设备相连, 所述接入设备包括:
添加模块, 用于在第一获取模块获得的位置配置报文中没有携带位置信 息时, 在所述位置配置报文中添加第二获取模块所获得的所述位置信息, 所 述位置信息包括所述远端设备上与所述终端设备连接的端口的端口标识; 第一获取模块, 用于获取由所述终端设备发送的, 并由所述远端设备转 发的所述位置配置报文;
第二获取模块, 用于获取所述位置信息。
15、 根据权利要求 14所述接入设备, 其特征在于:
第二获取模块, 具体用于根据所述远端设备发送的标签, 从存储模块获 取所述位置信息;
所述接入设备还包括存储模块, 用于存储所述标签与所述位置信息的对 应关系。
16、 根据权利要求 14或 15所述接入设备, 其特征在于:
所述端口标识包括所述端口的框号、 槽位号、 端口号、 虚拟局域网标识 中的一个或多个。
17、 根据权利要求 14至 16任意一种所述的接入设备, 其特征在于, 所述 位置配置报文为动态主机配置协议 82模式 DHCP OPTION 82报文或者第六版 因特网协议 IPv6路由器请求报文。
18、 一种远端设备, 其特征在于, 应用于接入网中, 所述接入网包括终 端设备、 所述远端设备以及接入设备, 所述终端设备通过所述远端设备与所 述接入设备相连, 所述远端设备包括:
接收模块, 用于接收来自终端设备的第一位置配置报文, 并将所述第一 位置配置报文报送给发送模块;
发送模块, 用于向与所述远端设备连接的接入设备发送所述第一位置配 置报文, 并通过控制通道向所述接入设备发送位置信息或者与所述位置信息 相对应的标签, 所述控制通道为所述远端设备与所述接入设备之间的控制通 道, 所述位置信息包括所述远端设备上与所述终端设备连接的端口的端口标 识;
所述接收模块还用于接收来自所述接入设备的第二位置配置报文; 所述发送模块还用于通过数据通道向所述接入设备转发所述第二位置配 置报文。
19、 根据权利要求 18所述远端设备, 其特征在于: 所述端口标识包括所 述端口的框号、 槽位号、 端口号、 虚拟局域网标识中的一个或多个。
20、 根据权利要求 18或 19所述远端设备, 其特征在于,
所述位置配置报文为动态主机配置协议 82模式 DHCP OPTION 82报文或 者第六版因特网协议 IPv6路由器请求报文。
21、 一种网络***, 所述网络***包括终端设备、 远端设备和接入设备, 所述终端设备通过所述远端设备与所述接入设备连接, 其特征在于: 所述终端设备, 用于发送位置配置报文;
所述远端设备, 用于接收所述位置配置报文, 向所述接入设备转发所述 位置报文, 并通过控制通道向所述接入设备发送位置信息或者与所述位置信 息相对应的标签, 所述控制通道为所述远端设备与所述接入设备之间的控制 通道, 所述位置信息包括所述远端设备上与所述终端设备连接的端口的端口 标识;
所述接入设备, 用于接收来自所述远端设备的所述位置配置报文, 获取 所述位置信息 , 并在所述位置配置报文中添加所述位置信息。
22、 根据权利要求 21所述网络***, 其特征在于:
所述接入设备还用于向所述远端设备发送添加了所述位置信息的位置配 置报文;
所述远端设备还用于接收来自所述接入设备的添加了所述位置信息的位 置配置报文, 并通过数据通道向所述接入设备转发该添加了所述位置信息的 位置配置报文。
23、 根据权利要求 22所述网络***, 其特征在于, 所述位置信息包括所 述远端设备上与所述终端设备连接的端口的端口标识。
24、 根据权利要求 21至 23任意一种所述的网络***, 所述位置配置报文 为动态主机配置协议 82模式 DHCP OPTION 82报文或者第六版因特网协议 IPv6路由器请求报文。
PCT/CN2012/087510 2012-12-26 2012-12-26 一种处理报文的方法、设备和*** WO2014100998A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280017320.7A CN104040988B (zh) 2012-12-26 2012-12-26 一种处理报文的方法、设备和***
PCT/CN2012/087510 WO2014100998A1 (zh) 2012-12-26 2012-12-26 一种处理报文的方法、设备和***

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087510 WO2014100998A1 (zh) 2012-12-26 2012-12-26 一种处理报文的方法、设备和***

Publications (1)

Publication Number Publication Date
WO2014100998A1 true WO2014100998A1 (zh) 2014-07-03

Family

ID=51019667

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087510 WO2014100998A1 (zh) 2012-12-26 2012-12-26 一种处理报文的方法、设备和***

Country Status (2)

Country Link
CN (1) CN104040988B (zh)
WO (1) WO2014100998A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428792B (zh) * 2017-08-29 2021-12-14 中兴通讯股份有限公司 一种用户宽带接入处理的方法及装置、设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626330A (zh) * 2008-07-09 2010-01-13 华为技术有限公司 位置查询方法、装置和***以及应用设备
CN101730067A (zh) * 2009-06-25 2010-06-09 中兴通讯股份有限公司 控制用户设备上报网络发现的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2874779A1 (fr) * 2004-08-25 2006-03-03 France Telecom Procede et systeme de localisation d'utilisateurs pour les services bases sur les protocoles sip ou h.323 avec attribution d'adresse ip dynamique
CN100584097C (zh) * 2007-05-11 2010-01-20 华为技术有限公司 用户位置信息获取、传输方法及网络设备
CN101374336B (zh) * 2007-08-23 2013-04-24 华为技术有限公司 一种用户设备位置更新***、装置及方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626330A (zh) * 2008-07-09 2010-01-13 华为技术有限公司 位置查询方法、装置和***以及应用设备
CN101730067A (zh) * 2009-06-25 2010-06-09 中兴通讯股份有限公司 控制用户设备上报网络发现的方法和装置

Also Published As

Publication number Publication date
CN104040988A (zh) 2014-09-10
CN104040988B (zh) 2017-02-22

Similar Documents

Publication Publication Date Title
US11405314B2 (en) Packet processing method and apparatus
EP3328004A1 (en) Broadband access
WO2015135425A1 (zh) 一种消息处理方法、接入控制器及网络节点
EP3091697B1 (en) Communication method, optical module and network device
US20150121476A1 (en) Service Processing Method, Device, and System
WO2012139453A1 (zh) 一种dpoe***及基于该***业务自动配置方法和网络
US20220060344A1 (en) Method for indicating multicast forwarding entry and device
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
CN102098278B (zh) 用户接入方法、***及接入服务器、接入设备
CN109076019B (zh) 用于客户驻地lan扩展的寻址
US8964749B2 (en) Method, device and system for establishing a pseudo wire
EP2765743A1 (en) Layer 2 inter-connecting method, apparatus and system based on ipv6
WO2015018069A1 (zh) 网络终端获取业务的方法、设备、***
CN108712338A (zh) 报文处理方法及装置
CN113489646B (zh) 基于vxlan的分段路由传输方法、服务器、源节点及存储介质
US9503418B2 (en) Method and apparatus for obtaining remote IP address
WO2015100585A1 (zh) 光纤到分配点设备及其通信方法
US10171346B2 (en) Method, apparatus and system for transmitting information
WO2014100998A1 (zh) 一种处理报文的方法、设备和***
WO2017092822A1 (en) Method for establishing data traffic between a client device and one or more devices of an operator's network

Legal Events

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

Ref document number: 12890940

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12890940

Country of ref document: EP

Kind code of ref document: A1