CN107210973B - Message processing method, device and system - Google Patents

Message processing method, device and system Download PDF

Info

Publication number
CN107210973B
CN107210973B CN201580075115.XA CN201580075115A CN107210973B CN 107210973 B CN107210973 B CN 107210973B CN 201580075115 A CN201580075115 A CN 201580075115A CN 107210973 B CN107210973 B CN 107210973B
Authority
CN
China
Prior art keywords
message
flow
address
packet
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201580075115.XA
Other languages
Chinese (zh)
Other versions
CN107210973A (en
Inventor
李勇
徐进
李晓刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107210973A publication Critical patent/CN107210973A/en
Application granted granted Critical
Publication of CN107210973B publication Critical patent/CN107210973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Landscapes

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

Abstract

The embodiment of the invention provides a message processing method, which comprises the steps of receiving a message from user side equipment; when the received message is identified to be an IP message, carrying out flow classification on the message according to a source IP address in a message header; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload; sending the message subjected to flow classification through a corresponding service flow; the embodiment of the invention also provides a cable modem; by utilizing the embodiment provided by the invention, the service message in the hybrid optical fiber coaxial network can be accurately corresponding to the corresponding service flow.

Description

Message processing method, device and system
Technical Field
The present invention relates to the field of data communications, and in particular, to a method, an apparatus, and a system for processing a packet.
Background
The Data Over Cable Service Interface Specification (DOCSIS) is a technical standard for bidirectional transmission in a Hybrid Fiber Coaxial (HFC), and fig. 1 illustrates a structure of a Coaxial network. In this standard, a Cable Modem Termination System (CMTS) belongs to a local device, and a coaxial Cable (Cable) network is connected to an upper network. A Cable Modem (CM) is a terminal device, and is used for accessing Customer Premises Equipment (CPE) to a coaxial Cable network; the CMTS and CM perform a process of inter-transmitting data signals over the analog channel. Where the data link from the CMTS to the CM is called the downlink and the data link from the CM to the CMTS is called the uplink.
Multiple services, such as broadband services, voice services, or video services, are transmitted between the CMTS and the CM via multiple service flows, where each service flow represents one service supported. Specifically, the CM performs flow classification based on IP addresses (e.g., source IP addresses) on IP packets of different services, and then the IP packets reach the CMTS through different service flows; there is a CMTS in the Network that assigns different Virtual Local Area Network (VLAN) identities to different traffic streams for differentiation.
For non-IP messages, such as Address Resolution Protocol (ARP) messages, a CM cannot match any stream class, and matches it to a default stream, and the default stream is a VLAN identifier that the CMTS allocates, which is naturally different from the VLAN identifier of a service stream; a VLAN identifier is distributed to a CMTS (Cable termination System) where a message carrying an IP (Internet protocol) sent by a CPE is located according to the class of a service flow to which the message belongs, but not the IP message, and a VLAN identifier corresponding to a default flow is distributed to the CMTS; the two VLANs with different identifications will cause the upper layer device to fail to process normally.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a system for processing a packet, so as to improve a line rate and communication quality and reduce energy consumption.
In a first aspect, an embodiment of the present invention provides a message processing method, including receiving a message from a user end device; when the received message is identified to be an IP message, carrying out flow classification on the message according to a source IP address in a message header; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload; and sending the message subjected to the flow classification through the corresponding service flow.
In a first possible implementation manner of the first aspect, the performing flow classification on the packet according to the source IP address in the packet header includes matching the packet to a service flow corresponding to an IP address field where the source IP address in the packet header is located.
In a second possible implementation manner of the first aspect, the method further includes marking, by different VLANs, packets sent through different service flows; marking the messages sent by the same service flow by the same VLAN
In a third possible implementation manner of the first aspect, before sending the packet subjected to the flow classification through the corresponding service flow, the method further includes, when the packet type cannot be identified, corresponding the packet to a default flow.
With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the service flow is a service flow used for transmitting a service in a hybrid fiber coaxial network.
In a second aspect, an embodiment of the present invention provides a cable modem, which includes a receiver, a stream classifier, and a transmitter, wherein the cable modem includes a receiver, a stream classifier, and a transmitter
The receiver is used for receiving a message from user side equipment;
the flow classifier is used for classifying the flow of the received message according to a source IP address in a message header when the message is identified to be an IP message; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload;
and the sender sends the messages subjected to flow classification through the corresponding service flows.
In a first possible implementation manner of the second aspect, the flow classifier is further configured to match the packet to a traffic flow corresponding to an IP address segment where a source IP address in the packet header is located.
In a second possible implementation manner of the second aspect, the sender marks the messages sent by different service flows with different VLANs; and marking the messages sent by the same service flow by using the same VLAN.
In a third possible implementation manner of the second aspect, the flow classifier corresponds the packet to a default flow when the packet type cannot be identified.
With reference to the second aspect, the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the service flow is a service flow used for transmitting a service in a hybrid fiber coaxial network.
In a third aspect, an embodiment of the present invention provides a message processing system, where the system includes the above-mentioned cable modem and a plurality of customer premise equipment; the cable modem is connected with the plurality of customer premise equipment.
By adopting the scheme of the embodiment, the specific service message and the ARP message sent from the same user end equipment can be sent through the same service flow, so that the normal processing of the service in the hybrid optical fiber coaxial network can be ensured.
Drawings
FIG. 1 is a schematic diagram of a hybrid fiber coaxial network;
fig. 2 is a schematic flow chart of a message processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the structure of an ARP packet;
fig. 4 is a schematic flow chart of specific message processing according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another specific message processing according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a cable modem according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a general network element according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a message processing system according to an embodiment of the present invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a message processing method, which comprises the following steps
Step 201, receiving a message from a user terminal device;
step 203, when the received message is identified to be an IP message, carrying out flow classification on the message according to a source IP address in a message header; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload;
further, the flow classification of the packet according to the source IP address in the packet header includes matching the packet to a service flow corresponding to an IP address segment where the source IP address in the packet header is located;
step 205, the message subjected to the flow classification is sent through the corresponding service flow.
Specifically, the ARP packet format is shown in fig. 3, where in the ARP packet, the contents of the hardware type, the protocol class, the hardware address length, the protocol length, the operation type, and the like are in the packet header, and the sending hardware address, the sending IP address, the target hardware address, and the target IP address are in the payload.
Further, the service flow is a service flow for transmitting service in a hybrid fiber coaxial network.
Further, the method further includes, step 207 (not shown), marking the packets sent through different service flows with different VLANs; and marking the messages sent by the same service flow by using the same VLAN.
Further, step 203 includes, when the message type cannot be identified, mapping the message to a default flow.
By adopting the scheme of the embodiment, the specific service message and the ARP message sent from the same user end equipment can be sent through the same service flow, so that the normal processing of the service in the hybrid optical fiber coaxial network can be ensured.
In the following, a specific scenario is illustrated, and it is assumed that there are two service-flows (service-flows), a default flow and a video service flow on the CM uplink.
Without the example scheme of the present invention, the CM classifies flows according to the prior art using IP addresses, as shown in FIG. 4. A CPE with a source IP address of 1.1.1.2 sends a video service message to the CM; the CM receives the video service message, recognizes that the video service message is an IP message, and performs flow classification according to a source IP address 1.1.1.2 carried in the video service message; the source IP address can be matched with an IP address field corresponding to a video service stream, and the video service message is sent through the video service stream; when the CPE sends the ARP message to the CM, the CM recognizes that the ARP message is not an IP message and does not carry a source IP address after receiving the ARP message, and the ARP message can be sent through a default stream if the ARP message is not matched with a video service stream naturally; since the CMTS will identify different traffic streams with different VLANs, different packets sent from the same CPE are marked with no VLAN identification.
If the embodiment of the present invention is adopted, as shown in fig. 5, the source IP address is CPE of 1.1.1.2, and the video service packet is sent to the CM; the CM receives the video service message, judges that the video service message is an IP message, and then carries out stream classification according to a source IP address 1.1.1.2 carried in the video service message, wherein the source IP address can be matched with an IP address section corresponding to a video service stream, and then sends the video service message through the video service stream; when the CPE sends the ARP message to the CM, the CM recognizes that the ARP message is not an IP message after receiving the ARP message, and carries out flow classification on the message according to the IP address of a sender in the payload of the ARP message; since the sender is the CPE whose source IP address is 1.1.1.2 and the sender IP address is 1.1.1.2, it can match the IP address field corresponding to the video service stream, and the CM will send the ARP message through the video service stream. Therefore, the video service message and the ARP message sent from the same CPE are both sent through the video service stream, and the same VLAN identifier is used at the CMTS, so that the problems in the prior art are avoided.
The embodiment of the present invention further provides a cable modem 600, which comprises a receiver 601, a stream classifier 602 and a transmitter 603, wherein the cable modem comprises a first interface, a second interface, and a third interface
The receiver 601 is configured to receive a message from a user end device;
the flow classifier 602 is configured to, when it is identified that the received packet is an IP packet, perform flow classification on the packet according to a source IP address in a packet header; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload;
the sender 603 sends the flow-classified packet through the corresponding service flow.
Wherein the flow classifier 602 is further configured to match the packet to a traffic flow corresponding to an IP address segment where the source IP address in the packet header is located.
Further, the service flow is a service flow for transmitting service in a hybrid fiber coaxial network.
Further, the sender 603 marks the messages sent by different service flows with different VLANs; and marking the messages sent by the same service flow by using the same VLAN.
Further, the flow classifier 602 corresponds the packet to a default flow when the packet type cannot be identified.
It should be further explained that the specific actions performed by each unit of the cable modem are the methods in the above method embodiments, and the obtained effects are similar, and the detailed steps are not described again.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks. In particular, the network processing described above may be implemented on a general-purpose component such as a computer or network component having sufficient processing power, memory resources, and network throughput capability. Fig. 7 schematically represents an electrical general-purpose network component 700 suitable for implementing one or more embodiments of components disclosed herein. The network component 700 includes a processor 702 (which may be referred to as a central processing unit or CPU), the processor 702 in communication with memory devices including a secondary memory 704, a Read Only Memory (ROM)706, a Random Access Memory (RAM)708, an input/output (I/O) device 710, and a network connectivity device 712. The processor 702 may be implemented as one or more CPU chips or as part of one or more application specific integrated circuits.
The secondary storage 704 is typically comprised of one or more disk drives or disk drives and is used for non-volatile storage of data and as an over-flow data storage device if RAM 708 is not large enough to hold all working data. Secondary storage 704 may be used to store programs that are loaded into RAM 708 when selected for execution. The ROM 706 is used to store instructions and/or data that are read during program execution. The ROM 706 is a non-volatile memory device that typically has a smaller memory capacity relative to the larger memory capacity of the second memory 704. The RAM 708 is used to store volatile data and perhaps to store instructions. Access to both ROM 706 and RAM 708 is typically faster than to second memory 704.
An embodiment of the present invention provides a message processing system, as shown in fig. 8, including a cable modem 801 shown in fig. 6, and a plurality of user end devices 802; the cable modem 801 is connected to the plurality of customer premises devices 802.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A message processing method is characterized by comprising the following steps:
receiving a message from user side equipment;
when the received message is identified to be an IP message, carrying out flow classification on the message according to a source IP address in a message header; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload;
and sending the message subjected to flow classification through a corresponding service flow, wherein the service flow is used for transmitting services in the hybrid optical fiber coaxial network.
2. The message processing method of claim 1, wherein the flow classifying the message according to the source IP address in the message header comprises matching the message to a traffic flow corresponding to an IP address segment in which the source IP address in the message header is located.
3. The message processing method according to claim 1, characterized in that the method further comprises marking messages sent through different traffic flows with different VLANs; and marking the messages sent by the same service flow by using the same VLAN.
4. The message processing method according to claim 3, wherein before sending the message classified by flow through the corresponding traffic flow, the method further comprises, when the message type cannot be identified, corresponding the message to a default flow.
5. A cable modem comprising a receiver 601, a stream classifier 602 and a transmitter 603, wherein
The receiver 601 is configured to receive a message from a user end device;
the flow classifier 602 is configured to, when it is identified that the received packet is an IP packet, perform flow classification on the packet according to a source IP address in a packet header; when the received message is identified to be an ARP message, carrying out flow classification on the message according to the IP address of a sender in the message payload;
the sender 603 sends the flow-classified packet through a corresponding service flow, where the service flow is a service flow used for transmitting a service in a hybrid fiber coaxial network.
6. The cable modem of claim 5, wherein the flow classifier 602 is further configured to match the packet to a traffic flow corresponding to an IP address segment in which a source IP address in the header of the packet is located.
7. The cable modem of claim 5, wherein the transmitter 603 tags messages sent over different traffic flows with different VLANs; and marking the messages sent by the same service flow by using the same VLAN.
8. The cable modem of claim 5, wherein the flow classifier 602 corresponds the packet to a default flow when the packet type cannot be identified.
9. A message processing system, characterized in that the system comprises a cable modem according to any of claims 5-8, and a plurality of customer premises devices; the cable modem is connected with the plurality of customer premise equipment.
CN201580075115.XA 2015-08-12 2015-08-12 Message processing method, device and system Active CN107210973B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/086810 WO2017024571A1 (en) 2015-08-12 2015-08-12 Packet processing method, apparatus and system

Publications (2)

Publication Number Publication Date
CN107210973A CN107210973A (en) 2017-09-26
CN107210973B true CN107210973B (en) 2020-09-29

Family

ID=57984009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580075115.XA Active CN107210973B (en) 2015-08-12 2015-08-12 Message processing method, device and system

Country Status (2)

Country Link
CN (1) CN107210973B (en)
WO (1) WO2017024571A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11251984B2 (en) 2017-10-24 2022-02-15 Interdigital Ce Patent Holdings Cable modem interface mask based virtual local area network mapping
CN113037727A (en) * 2021-02-26 2021-06-25 北京北信源信息安全技术有限公司 Message information processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882781A (en) * 2012-10-11 2013-01-16 华为技术有限公司 Method, route bridge and system for transmitting message
CN103414730A (en) * 2013-08-29 2013-11-27 迈普通信技术股份有限公司 Method and device for processing ARP messages
CN103581059A (en) * 2012-07-23 2014-02-12 华为技术有限公司 Two-layer access method, device and system in HFC network
CN104348716A (en) * 2013-07-23 2015-02-11 杭州华三通信技术有限公司 Message processing method and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2457368C (en) * 2004-02-11 2013-01-08 Solutioninc Limited A server, system and method for providing access to a public network through an internal network of a multi-system operator
US8059546B2 (en) * 2008-09-05 2011-11-15 Cisco Technology, Inc. Traffic flow scheduling techniques implemented on bonded channels of a shared access cable network
US8990431B2 (en) * 2009-05-05 2015-03-24 Citrix Systems, Inc. Systems and methods for identifying a processor from a plurality of processors to provide symmetrical request and response processing
CN102420738B (en) * 2010-09-27 2014-08-20 国基电子(上海)有限公司 Cable modem and method for configuring priority of cable modem
CN104754423B (en) * 2013-12-30 2018-12-21 深圳键桥通讯技术股份有限公司 The MINI CMTS of integrated IPQAM and DOCSIS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581059A (en) * 2012-07-23 2014-02-12 华为技术有限公司 Two-layer access method, device and system in HFC network
CN102882781A (en) * 2012-10-11 2013-01-16 华为技术有限公司 Method, route bridge and system for transmitting message
CN104348716A (en) * 2013-07-23 2015-02-11 杭州华三通信技术有限公司 Message processing method and equipment
CN103414730A (en) * 2013-08-29 2013-11-27 迈普通信技术股份有限公司 Method and device for processing ARP messages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DHCP_Option60_实现业务分流的应用;章海滨;舒明霞;《有线电视技术》;20141015(第10期);第60-62页 *

Also Published As

Publication number Publication date
CN107210973A (en) 2017-09-26
WO2017024571A1 (en) 2017-02-16

Similar Documents

Publication Publication Date Title
CN109194660B (en) Network access method and device of mobile terminal
US9654377B2 (en) Per port ethernet packet processing mode by device type
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN110198345B (en) Data request method, system and device and storage medium
CN110519119B (en) Bandwidth management method and device based on video network and storage medium
CN110381119B (en) Method, system and device for acquiring log information and storage medium
CN109547163B (en) Method and device for controlling data transmission rate
CN110089146B (en) Device shaping in a communication network
CN106559302A (en) Single tunnel method for building up, device and system
CN110035005B (en) Data processing method and device
CN110719258B (en) Server access method and system
CN102098278B (en) Subscriber access method and system as well as access server and device
CN109818960B (en) Data processing method and device
CN111221664A (en) Operation log processing system
CN110809026A (en) File processing method and device, electronic equipment and storage medium
CN109347844B (en) Method and device for accessing equipment to Internet
CN107210973B (en) Message processing method, device and system
CN111478880B (en) Data processing method and device
CN110049009B (en) Identity information acquisition system and method
CN110493149B (en) Message processing method and device
CN110677314B (en) Network interface testing method, system, electronic device and storage medium
CN110336710B (en) Terminal testing method, system and device and storage medium
CN109769012B (en) Web server access method and device
CN108881148B (en) Data acquisition method and device
EP3982598A1 (en) Method and apparatus for sending and receiving message, and communication system

Legal Events

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